Remove AttackedBy hook. Use CREATURE_EVENT_ON_DAMAGE_TAKEN instead - for more read 1660bb7d27 (TC removed it)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user