mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix(Core/Spells): Lock and Load proc on immune (#24818)
This commit is contained in:
@@ -1199,12 +1199,11 @@ class spell_hun_lock_and_load : public AuraScript
|
|||||||
if (!spellInfo || !(spellInfo->GetSchoolMask() & (SPELL_SCHOOL_MASK_FROST | SPELL_SCHOOL_MASK_FIRE)))
|
if (!spellInfo || !(spellInfo->GetSchoolMask() & (SPELL_SCHOOL_MASK_FROST | SPELL_SCHOOL_MASK_FIRE)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// TODO: Research whether Lock and Load should proc on targets
|
// immune to Frost Trap slow (bosses) in WotLK patch 3.2.0
|
||||||
// immune to Frost Trap slow (bosses) in WotLK 3.3.5a.
|
if (Spell const* procSpell = eventInfo.GetProcSpell())
|
||||||
// if (Spell const* procSpell = eventInfo.GetProcSpell())
|
if (Unit* target = procSpell->GetOriginalTarget())
|
||||||
// if (Unit* target = procSpell->GetOriginalTarget())
|
if (target->IsImmunedToSpell(sSpellMgr->GetSpellInfo(SPELL_FROST_TRAP_SLOW)))
|
||||||
// if (target->IsImmunedToSpell(sSpellMgr->GetSpellInfo(SPELL_FROST_TRAP_SLOW)))
|
return false;
|
||||||
// return false;
|
|
||||||
|
|
||||||
return roll_chance_i(aurEff->GetAmount());
|
return roll_chance_i(aurEff->GetAmount());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user