mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
fix(Scripts/SpellHunter): prevent crash in spell_hun_readiness (#8847)
This commit is contained in:
@@ -798,8 +798,12 @@ public:
|
||||
++next;
|
||||
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(itr->first);
|
||||
if (spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && spellInfo->Id != SPELL_HUNTER_READINESS && spellInfo->Id != SPELL_HUNTER_BESTIAL_WRATH &&
|
||||
spellInfo->Id != SPELL_DRAENEI_GIFT_OF_THE_NAARU && spellInfo->GetRecoveryTime() > 0)
|
||||
if (spellInfo
|
||||
&& spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER
|
||||
&& spellInfo->Id != SPELL_HUNTER_READINESS
|
||||
&& spellInfo->Id != SPELL_HUNTER_BESTIAL_WRATH
|
||||
&& spellInfo->Id != SPELL_DRAENEI_GIFT_OF_THE_NAARU
|
||||
&& spellInfo->GetRecoveryTime() > 0)
|
||||
{
|
||||
caster->RemoveSpellCooldown(spellInfo->Id, itr->second.needSendToClient);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user