mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-09 18:50:33 +00:00
fix(Core/Spells): Fix Lock and Load procs (#24795)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -67,6 +67,7 @@ enum HunterSpells
|
||||
SPELL_HUNTER_GLYPH_OF_ARCANE_SHOT = 61389,
|
||||
SPELL_LOCK_AND_LOAD_TRIGGER = 56453,
|
||||
SPELL_LOCK_AND_LOAD_MARKER = 67544,
|
||||
SPELL_FROST_TRAP_SLOW = 67035,
|
||||
SPELL_HUNTER_PET_LEGGINGS_OF_BEAST_MASTERY = 38297, // Leggings of Beast Mastery
|
||||
|
||||
// Proc system spells
|
||||
@@ -1177,7 +1178,8 @@ class spell_hun_lock_and_load : public AuraScript
|
||||
return ValidateSpellInfo(
|
||||
{
|
||||
SPELL_LOCK_AND_LOAD_TRIGGER,
|
||||
SPELL_LOCK_AND_LOAD_MARKER
|
||||
SPELL_LOCK_AND_LOAD_MARKER,
|
||||
SPELL_FROST_TRAP_SLOW
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1197,6 +1199,13 @@ class spell_hun_lock_and_load : public AuraScript
|
||||
if (!spellInfo || !(spellInfo->GetSchoolMask() & (SPELL_SCHOOL_MASK_FROST | SPELL_SCHOOL_MASK_FIRE)))
|
||||
return false;
|
||||
|
||||
// TODO: Research whether Lock and Load should proc on targets
|
||||
// immune to Frost Trap slow (bosses) in WotLK 3.3.5a.
|
||||
// if (Spell const* procSpell = eventInfo.GetProcSpell())
|
||||
// if (Unit* target = procSpell->GetOriginalTarget())
|
||||
// if (target->IsImmunedToSpell(sSpellMgr->GetSpellInfo(SPELL_FROST_TRAP_SLOW)))
|
||||
// return false;
|
||||
|
||||
return roll_chance_i(aurEff->GetAmount());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user