fix(Scripts/TheEye): Alar dont take 2% damage during dive bomb (#18599)
This commit is contained in:
parent
482f4c94ff
commit
79df83ec0c
1 changed files with 5 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue