root no break variable update

root no break variable update
This commit is contained in:
KayenEQ 2025-04-06 14:34:52 -04:00
parent 359f90a987
commit d18a30b047
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);
}
}