mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Scripts/TheEye): Alar dont take 2% damage during dive bomb (#18599)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user