mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-05 01:02:24 +00:00
[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
This commit is contained in:
parent
e09a8f8f8f
commit
3c09448e90
@ -4234,7 +4234,7 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob *spelltar, int reflect_effectivenes
|
|||||||
spelltar->CastToClient()->cheat_manager.SetExemptStatus(KnockBack, true);
|
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.x += action->force * g_Math.FastSin(action->hit_heading);
|
||||||
spelltar->m_Delta.y += action->force * g_Math.FastCos(action->hit_heading);
|
spelltar->m_Delta.y += action->force * g_Math.FastCos(action->hit_heading);
|
||||||
spelltar->m_Delta.z += action->hit_pitch;
|
spelltar->m_Delta.z += action->hit_pitch;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user