diff --git a/zone/spells.cpp b/zone/spells.cpp index 1b1cb16f4..849dacfbe 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -2025,6 +2025,7 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, uint16 slot, uint16 // // Switch #2 - execute the spell // + switch(CastAction) { default: @@ -2148,6 +2149,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);