fix(Core/Mage) Water Elemental wrongly ressurected at Spirit Healer (#12684)

This commit is contained in:
Synful-Syn
2022-08-15 02:35:07 -04:00
committed by GitHub
parent 866f5e128c
commit b7b882367e

View File

@@ -13895,20 +13895,27 @@ void Player::ResummonPetTemporaryUnSummonedIfAny()
bool Player::CanResummonPet(uint32 spellid) bool Player::CanResummonPet(uint32 spellid)
{ {
if (getClass() == CLASS_DEATH_KNIGHT) switch (getClass())
{ {
if (CanSeeDKPet()) case CLASS_DEATH_KNIGHT:
if (CanSeeDKPet())
return true;
else if (spellid == 52150) //Raise Dead
return false;
break;
case CLASS_MAGE:
if (HasSpell(31687) && HasAura(70937)) //Has [Summon Water Elemental] spell and [Glyph of Eternal Water].
return true;
break;
case CLASS_HUNTER:
case CLASS_WARLOCK:
return true; return true;
else if (spellid == 52150) break;
return false; default:
break;
} }
else if (getClass() == CLASS_HUNTER || getClass() == CLASS_MAGE || getClass() == CLASS_WARLOCK)
return true;
if (!HasSpell(spellid)) return HasSpell(spellid);
return false;
return true;
} }
bool Player::CanSeeSpellClickOn(Creature const* c) const bool Player::CanSeeSpellClickOn(Creature const* c) const