fix(Scripts/TheEye): Alar dont take 2% damage during dive bomb (#18599)

This commit is contained in:
Andrew
2024-03-21 16:27:51 -03:00
committed by GitHub
parent 482f4c94ff
commit 79df83ec0c

View File

@@ -37,7 +37,9 @@ enum Spells
SPELL_CHARGE = 35412,
SPELL_REBIRTH_DIVE = 35369,
SPELL_DIVE_BOMB_VISUAL = 35367,
SPELL_DIVE_BOMB = 35181
SPELL_DIVE_BOMB = 35181,
SPELL_MODEL_VISIBILITY = 24401 // Might not be accurate
};
// @todo: Alar doesnt seem to move to waypoints but instead to the triggers in p1
@@ -473,7 +475,8 @@ class spell_alar_ember_blast : public SpellScript
{
if (Creature* alar = instance->GetCreature(DATA_ALAR))
{
Unit::DealDamage(GetCaster(), alar, alar->CountPctFromMaxHealth(2));
if (!alar->HasAura(SPELL_MODEL_VISIBILITY))
Unit::DealDamage(GetCaster(), alar, alar->CountPctFromMaxHealth(2));
}
}
}