From bd5567ebe21c2ba08c963d9257c9326213b8b238 Mon Sep 17 00:00:00 2001 From: ProducerZekServer Date: Wed, 19 May 2021 10:17:34 +0000 Subject: [PATCH] Added a pet check to Cazic Touch --- zone/spells.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zone/spells.cpp b/zone/spells.cpp index 13c7ff1cf..94bc83cb5 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -2044,6 +2044,14 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, ui if(!IsValidSpell(spell_id)) return false; + //Cazic Touch targets the pet owner instead of the pet when said pet is tanking. + if (spell_id == 982 && spell_target->HasOwner()) { + Mob* owner = spell_target->GetOwner(); + + if (owner) + spell_target = owner; + } + if( spells[spell_id].zonetype == 1 && !zone->CanCastOutdoor()){ if(IsClient()){ if(!CastToClient()->GetGM()){