From 29f89cdfbc6f4a67c49a407a507766b2df3dd12c Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Tue, 27 Feb 2018 23:42:18 -0500 Subject: [PATCH] NPCs parsed less than normal push Checking the packets, I was getting 0.3 for bash against PCs and 0.03 against NPCs. Same for other attacks. --- zone/attack.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/attack.cpp b/zone/attack.cpp index 58e1510ff..8fcf508c3 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -3615,6 +3615,8 @@ void Mob::CommonDamage(Mob* attacker, int &damage, const uint16 spell_id, const if (RuleB(Combat, MeleePush) && damage > 0 && !IsRooted() && (IsClient() || zone->random.Roll(RuleI(Combat, MeleePushChance)))) { a->force = EQEmu::skills::GetSkillMeleePushForce(skill_used); + if (IsNPC()) + a->force *= 0.10f; // force against NPCs is divided by 10 I guess? ex bash is 0.3, parsed 0.03 against an NPC // update NPC stuff auto new_pos = glm::vec3(m_Position.x + (a->force * std::cos(a->meleepush_xy) + m_Delta.x), m_Position.y + (a->force * std::sin(a->meleepush_xy) + m_Delta.y), m_Position.z);