Core/Spells: Fix summoning SUMMON_PET type pets

Port From (https://github.com/TrinityCore/TrinityCore/commit/48d491ae2ffbebc05aae46cad2c012a4e983fb11)
This commit is contained in:
hondacrx
2022-03-10 09:41:42 -05:00
parent 718302fa18
commit 26a3fb92b1
+4 -1
View File
@@ -5228,7 +5228,9 @@ namespace Game.Spells
return SpellCastResult.DontReport; return SpellCastResult.DontReport;
} }
if (info.Item1.Type == PetType.Hunter && info.Item1.Health == 0) if (info.Item1.Type == PetType.Hunter)
{
if (info.Item1.Health == 0)
{ {
playerCaster.SendTameFailure(PetTameResult.Dead); playerCaster.SendTameFailure(PetTameResult.Dead);
return SpellCastResult.DontReport; return SpellCastResult.DontReport;
@@ -5246,6 +5248,7 @@ namespace Game.Spells
return SpellCastResult.DontReport; return SpellCastResult.DontReport;
} }
} }
}
break; break;
} }
case SpellEffectName.SummonPlayer: case SpellEffectName.SummonPlayer: