From 945db17cb828bf9c5acfe5e74e1ea7412604bf14 Mon Sep 17 00:00:00 2001 From: af4t Date: Mon, 25 Feb 2013 10:33:53 -0500 Subject: [PATCH] Fix targeting for summoned pets in Mob::DetermineSpellTargets --- zone/spells.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index 41fe4d191..26393b76f 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -1313,8 +1313,8 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce case ST_SummonedPet: { uint8 body_type = spell_target ? spell_target->GetBodyType() : 0; - if(!spell_target || (spell_target != GetPet()) || - (body_type != BT_Summoned && body_type != BT_Summoned2 && body_type != BT_Summoned3 && body_type != BT_Animal)) + if(spell_target && (spell_target == GetPet()) && + (body_type == BT_Summoned || body_type == BT_Summoned2 || body_type == BT_Summoned3 || body_type == BT_Animal)) { mlog(SPELLS__CASTING_ERR, "Spell %d canceled: invalid target of body type %d (summoned pet)", spell_id, body_type);