Remove AttackedBy hook. Use CREATURE_EVENT_ON_DAMAGE_TAKEN instead - for more read 1660bb7d27 (TC removed it)

This commit is contained in:
Rochet2
2017-06-17 00:32:15 +03:00
parent 9939cb3834
commit 73fdcfe83f
4 changed files with 1 additions and 18 deletions

View File

@@ -140,13 +140,6 @@ struct ElunaCreatureAI : ScriptedAI
}
#endif
// Called when the creature is target of hostile action: swing, hostile spell landed, fear/etc)
void AttackedBy(Unit* attacker) override
{
if (!sEluna->AttackedBy(me, attacker))
ScriptedAI::AttackedBy(attacker);
}
// Called when creature is spawned or respawned (for reseting variables)
void JustRespawned() override
{