Core/Spells: Fix summoning SUMMON_PET type pets
Port From (https://github.com/TrinityCore/TrinityCore/commit/48d491ae2ffbebc05aae46cad2c012a4e983fb11)
This commit is contained in:
@@ -5228,7 +5228,9 @@ namespace Game.Spells
|
||||
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);
|
||||
return SpellCastResult.DontReport;
|
||||
@@ -5246,6 +5248,7 @@ namespace Game.Spells
|
||||
return SpellCastResult.DontReport;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SpellEffectName.SummonPlayer:
|
||||
|
||||
Reference in New Issue
Block a user