From d18a30b047704162a97fe1b397fee9fde64ff6ac Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Sun, 6 Apr 2025 14:34:52 -0400 Subject: [PATCH] root no break variable update root no break variable update --- common/spdat.h | 2 +- zone/attack.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/spdat.h b/common/spdat.h index 35b38b5e3..0af9cb049 100644 --- a/common/spdat.h +++ b/common/spdat.h @@ -246,7 +246,7 @@ #define MAX_INVISIBILTY_LEVEL 254 -#define NO_ROOT_BREAK 200 +#define NO_ROOT_BREAK_SKILL_ID 200 //Live mechanic where if skill id in a spell is set to 200 it will prevent that spell from having a chance to break roots. //instrument item id's used as song components #define INSTRUMENT_HAND_DRUM 13000 diff --git a/zone/attack.cpp b/zone/attack.cpp index 92105b268..aef192ba9 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -4439,7 +4439,7 @@ void Mob::CommonDamage(Mob* attacker, int64 &damage, const uint16 spell_id, cons if (IsValidSpell(spell_id) && !iBuffTic) { //see if root will break - if (IsRooted() && !FromDamageShield && spells[spell_id].skill != NO_ROOT_BREAK) { // neotoyko: only spells cancel root + if (IsRooted() && !FromDamageShield && spells[spell_id].skill != NO_ROOT_BREAK_SKILL_ID) { // neotoyko: only spells cancel root TryRootFadeByDamage(buffslot, attacker); } }