Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Patch-Submissions (http://mangos.ytdb.ru/forumdisplay.php?f=65)
-   -   [Patch] Fix SummonedCreatureJustDied (http://mangos.ytdb.ru/showthread.php?t=6081)

xfurry 06.09.2012 02:03

[Patch] Fix SummonedCreatureJustDied
 
Description: this will fix the SummonedCreatureJustDied function call in case of summoned pets.
Right now, this is not called because the
Код:

pVictim->SetDeathState(JUST_DIED);
is placed before
Код:

pVictim->SetHealth(0);
PetOwnerKilledUnit(pVictim);
JustKilledCreature((Creature*)pVictim);

Please note that this needs proper testing in order to not break the spirit of redemption talent.
Revision: cmangos [12145]
Author: me (with the help from Schmoozerd)
Patch: http://paste2.org/p/2195526

schmoozerd 10.09.2012 00:11

pused to new "testing" branch at:
https://github.com/cmangos/mangos-wo...dceafd0ffb9c37

Let's await if there will be feedback :)

schmoozerd 05.10.2012 02:52

And in 12191 and 12192, Thank you :)


Текущее время: 04:41. Часовой пояс GMT +3.

ru-mangos.ru - Русское сообщество MaNGOS