Fix TC build after 6113b9dec2 and d507a7e338

This commit is contained in:
Rochet2
2018-01-01 18:32:34 +02:00
parent 5d70069560
commit 92f4783af2
2 changed files with 35 additions and 1 deletions

View File

@@ -70,6 +70,15 @@ struct ElunaCreatureAI : ScriptedAI
}
}
#ifdef TRINITY
// Called for reaction when initially engaged - this will always happen _after_ JustEnteredCombat
// Called at creature aggro either by MoveInLOS or Attack Start
void JustEngagedWith(Unit* target) override
{
if (!sEluna->EnterCombat(me, target))
ScriptedAI::JustEngagedWith(target);
}
#else
//Called for reaction at enter to combat if not in combat yet (enemy can be NULL)
//Called at creature aggro either by MoveInLOS or Attack Start
void EnterCombat(Unit* target) override
@@ -77,6 +86,7 @@ struct ElunaCreatureAI : ScriptedAI
if (!sEluna->EnterCombat(me, target))
ScriptedAI::EnterCombat(target);
}
#endif
// Called at any Damage from any attacker (before damage apply)
void DamageTaken(Unit* attacker, uint32& damage) override