mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/Mage) Water Elemental wrongly ressurected at Spirit Healer (#12684)
This commit is contained in:
@@ -13895,20 +13895,27 @@ void Player::ResummonPetTemporaryUnSummonedIfAny()
|
||||
|
||||
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;
|
||||
else if (spellid == 52150)
|
||||
return false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
else if (getClass() == CLASS_HUNTER || getClass() == CLASS_MAGE || getClass() == CLASS_WARLOCK)
|
||||
return true;
|
||||
|
||||
if (!HasSpell(spellid))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return HasSpell(spellid);
|
||||
}
|
||||
|
||||
bool Player::CanSeeSpellClickOn(Creature const* c) const
|
||||
|
||||
Reference in New Issue
Block a user