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:
@@ -90,16 +90,20 @@ struct ElunaCreatureAI : ScriptedAI
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Called at any Damage from any attacker (before damage apply)
|
// Called at any Damage from any attacker (before damage apply)
|
||||||
#if AZEROTHCORE
|
#if defined AZEROTHCORE
|
||||||
void DamageTaken(Unit* attacker, uint32& damage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask) override
|
void DamageTaken(Unit* attacker, uint32& damage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask) override
|
||||||
|
#elif defined TRINITY
|
||||||
|
void DamageTaken(Unit* attacker, uint32& damage, DamageEffectType damageType, SpellInfo const* spellInfo) override
|
||||||
#else
|
#else
|
||||||
void DamageTaken(Unit* attacker, uint32& damage) override
|
void DamageTaken(Unit* attacker, uint32& damage) override
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if (!sEluna->DamageTaken(me, attacker, damage))
|
if (!sEluna->DamageTaken(me, attacker, damage))
|
||||||
{
|
{
|
||||||
#if AZEROTHCORE
|
#if defined AZEROTHCORE
|
||||||
ScriptedAI::DamageTaken(attacker, damage, damagetype, damageSchoolMask);
|
ScriptedAI::DamageTaken(attacker, damage, damagetype, damageSchoolMask);
|
||||||
|
#elif defined TRINITY
|
||||||
|
ScriptedAI::DamageTaken(attacker, damage, damageType, spellInfo);
|
||||||
#else
|
#else
|
||||||
ScriptedAI::DamageTaken(attacker, damage);
|
ScriptedAI::DamageTaken(attacker, damage);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user