mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix TC build
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user