mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix(Core/Pets): fix crash at pet resurrect (#10120)
This commit is contained in:
@@ -5932,17 +5932,6 @@ SpellCastResult Spell::CheckCast(bool strict)
|
||||
if (pet && pet->IsAlive())
|
||||
return SPELL_FAILED_ALREADY_HAVE_SUMMON;
|
||||
|
||||
Player* player = unitCaster->ToPlayer();
|
||||
if (player)
|
||||
{
|
||||
// Check pet before resurrect
|
||||
auto [petStable, petSlot] = Pet::GetLoadPetInfo(*player->GetPetStable(), 0, 0, false);
|
||||
if (!petStable)
|
||||
{
|
||||
return SPELL_FAILED_NO_PET;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
// This is generic summon effect
|
||||
|
||||
Reference in New Issue
Block a user