Core/Spells: Spells with TARGET_SELECT_CATEGORY_NEARBY requires a valid target

This commit is contained in:
hondacrx
2017-12-11 10:49:57 -05:00
parent 27fe48e33d
commit 2e356e240a
2 changed files with 34 additions and 1 deletions
+1 -1
View File
@@ -2523,7 +2523,7 @@ namespace Game.Entities
// need to add Battle pets automatically into pet journal
foreach (BattlePetSpeciesRecord entry in CliDB.BattlePetSpeciesStorage.Values)
{
{
if (entry.SummonSpellID == spellId && GetSession().GetBattlePetMgr().GetPetCount(entry.Id) == 0)
{
GetSession().GetBattlePetMgr().AddPet(entry.Id, entry.CreatureID, BattlePetMgr.RollPetBreed(entry.Id), BattlePetMgr.GetDefaultPetQuality(entry.Id));