Core/Pets: Fixed automatic resurrecting pets on battleground graveyards

Closes #25289
This commit is contained in:
Shauren
2020-08-20 18:44:36 +02:00
parent fc32c3fd3b
commit 74a0d579ee
2 changed files with 3 additions and 3 deletions

View File

@@ -2744,8 +2744,8 @@ class spell_gen_pet_summoned : public SpellScript
if (newPet->LoadPetFromDB(player, 0, player->GetLastPetNumber(), true))
{
// revive the pet if it is dead
if (newPet->getDeathState() == DEAD)
newPet->setDeathState(ALIVE);
if (newPet->getDeathState() != ALIVE && newPet->getDeathState() != JUST_RESPAWNED)
newPet->setDeathState(JUST_RESPAWNED);
newPet->SetFullHealth();
newPet->SetPower(newPet->GetPowerType(), newPet->GetMaxPower(newPet->GetPowerType()));