fix(Scripts/SpellHunter): prevent crash in spell_hun_readiness (#8847)
This commit is contained in:
@@ -798,8 +798,12 @@ public:
|
|||||||
++next;
|
++next;
|
||||||
|
|
||||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(itr->first);
|
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(itr->first);
|
||||||
if (spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && spellInfo->Id != SPELL_HUNTER_READINESS && spellInfo->Id != SPELL_HUNTER_BESTIAL_WRATH &&
|
if (spellInfo
|
||||||
spellInfo->Id != SPELL_DRAENEI_GIFT_OF_THE_NAARU && spellInfo->GetRecoveryTime() > 0)
|
&& 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);
|
caster->RemoveSpellCooldown(spellInfo->Id, itr->second.needSendToClient);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user