From cc4c6b633913a1d4b48121a5054313d1079374aa Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Sun, 1 Feb 2015 06:31:53 -0500 Subject: [PATCH 1/2] Fix/Implemented - Pets who cast group spells (Target Type 43) will now have the spell affect entire group instead of just the pet. This used to work at some point, no clue when it broke... --- zone/spells.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zone/spells.cpp b/zone/spells.cpp index 1b1cb16f4..8fbbfa6d5 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -2025,6 +2025,9 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, uint16 slot, uint16 // // Switch #2 - execute the spell // + + Shout("TEST %i %i", CastAction, spell_id); + switch(CastAction) { default: @@ -2148,6 +2151,15 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, uint16 slot, uint16 // caster if they're not using TGB // NOTE: this will always hit the caster, plus the target's group so // it can affect up to 7 people if the targeted group is not our own + + // Allow pets who cast group spells to affect the group. + if (spell_target->IsPetOwnerClient()){ + Mob* owner = spell_target->GetOwner(); + + if (owner) + spell_target = owner; + } + if(spell_target->IsGrouped()) { Group *target_group = entity_list.GetGroupByMob(spell_target); From 73ac566c17358d79e163830eca1b4dad6808900e Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Sun, 1 Feb 2015 06:32:56 -0500 Subject: [PATCH 2/2] remove debug... --- zone/spells.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index 8fbbfa6d5..849dacfbe 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -2026,8 +2026,6 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, uint16 slot, uint16 // Switch #2 - execute the spell // - Shout("TEST %i %i", CastAction, spell_id); - switch(CastAction) { default: