Add HealReceived event for Creature AI to be used in scripts
--HG-- branch : trunk
This commit is contained in:
1 parent
2d877bbbfd
commit
f81dcf55bb
3 files changed
+7
No files matched your search
@@ -9912,6 +9912,9 @@ int32 Unit::DealHeal(Unit *pVictim, uint32 addhealth)
|
||||
{
|
||||
int32 gain = 0;
|
||||
|
||||
if (pVictim->GetTypeId() == TYPEID_UNIT && pVictim->ToCreature()->IsAIEnabled)
|
||||
pVictim->ToCreature()->AI()->HealReceived(this, addhealth);
|
||||
|
||||
if (addhealth)
|
||||
gain = pVictim->ModifyHealth(int32(addhealth));
|
||||
|
||||
|
||||
Reference in new issue
Block a user