From 5da1261ffcee89df9ab82e4afd24752ee9084152 Mon Sep 17 00:00:00 2001 From: ProducerZekServer Date: Wed, 19 May 2021 10:41:56 +0000 Subject: [PATCH] Added rule option to Cazic pet Check --- common/ruletypes.h | 1 + zone/spells.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/ruletypes.h b/common/ruletypes.h index 36a5630e4..1530a06cc 100644 --- a/common/ruletypes.h +++ b/common/ruletypes.h @@ -370,6 +370,7 @@ RULE_BOOL(Spells, OldRainTargets, false, "Use old incorrectly implemented maximu RULE_BOOL(Spells, NPCSpellPush, false, "Enable spell push on NPCs") RULE_BOOL(Spells, July242002PetResists, true, "Enable Pets using PCs resist change from July 24 2002") RULE_INT(Spells, AOEMaxTargets, 0, "Max number of targets a Targeted AOE spell can cast on. Set to 0 for no limit.") +RULE_BOOL(Spells, CazicTouchTargetsPetOwner, true, "If True, causes Cazic Touch to swap targets from pet to pet owner if a pet is tanking.") RULE_CATEGORY_END() RULE_CATEGORY(Combat) diff --git a/zone/spells.cpp b/zone/spells.cpp index 94bc83cb5..3b1a6b271 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -2045,7 +2045,7 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, ui return false; //Cazic Touch targets the pet owner instead of the pet when said pet is tanking. - if (spell_id == 982 && spell_target->HasOwner()) { + if (RuleB(Spells,CazicTouchTargetsPetOwner) && spell_id == 982 && spell_target->HasOwner()) { Mob* owner = spell_target->GetOwner(); if (owner)