mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 15:41:30 +00:00
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.
This commit is contained in:
parent
6f49a37914
commit
29f89cdfbc
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user