Fix TC build

This commit is contained in:
Rochet2
2021-08-18 00:09:00 +03:00
parent 8b77940be7
commit 33f9b264db

View File

@@ -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