Fix TC build

This commit is contained in:
Rochet2
2020-06-29 13:58:03 +03:00
parent f7adf33028
commit 31f4cfd98c
4 changed files with 17 additions and 5 deletions

View File

@@ -216,14 +216,22 @@ struct ElunaCreatureAI : ScriptedAI
}
// Called when hit by a spell
#if defined TRINITY
void SpellHit(WorldObject* caster, SpellInfo const* spell) override
#else
void SpellHit(Unit* caster, SpellInfo const* spell) override
#endif
{
if (!sEluna->SpellHit(me, caster, spell))
ScriptedAI::SpellHit(caster, spell);
}
// Called when spell hits a target
#if defined TRINITY
void SpellHitTarget(WorldObject* target, SpellInfo const* spell) override
#else
void SpellHitTarget(Unit* target, SpellInfo const* spell) override
#endif
{
if (!sEluna->SpellHitTarget(me, target, spell))
ScriptedAI::SpellHitTarget(target, spell);