From 3c09448e9057a697f2e9a279c8315611e43fcfda Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Thu, 20 Jan 2022 12:13:14 -0500 Subject: [PATCH] [Spells] NPC spell push should work on rooted mobs. (#1941) * Update spells.cpp * [Spells] NPC spell push should work on rooted mobs. don't push perma or psuedorooted mobs --- zone/spells.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index fbefdad0e..4b1326bab 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -4234,7 +4234,7 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob *spelltar, int reflect_effectivenes spelltar->CastToClient()->cheat_manager.SetExemptStatus(KnockBack, true); } } - else if (RuleB(Spells, NPCSpellPush) && !spelltar->IsRooted() && spelltar->ForcedMovement == 0) { + else if (RuleB(Spells, NPCSpellPush) && !permarooted && !IsPseudoRooted() && spelltar->ForcedMovement == 0) { spelltar->m_Delta.x += action->force * g_Math.FastSin(action->hit_heading); spelltar->m_Delta.y += action->force * g_Math.FastCos(action->hit_heading); spelltar->m_Delta.z += action->hit_pitch;