mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
[Bug Fix] All NPC classes could stun with kick/only warriors could be stunned (#4273)
* [Bug Fix] All NPC classes could stun with kick/only warriors could be stunned. * Fix default NPCKickStun value to match existing code * Remove else and make NPC the default. * assign stun_level in declaration.
This commit is contained in:
+6
-2
@@ -4302,8 +4302,12 @@ void Mob::CommonDamage(Mob* attacker, int64 &damage, const uint16 spell_id, cons
|
||||
}
|
||||
}
|
||||
else if (skill_used == EQ::skills::SkillKick &&
|
||||
(attacker->GetLevel() > 55 || attacker->IsNPC()) && GetClass() == Class::Warrior) {
|
||||
can_stun = true;
|
||||
attacker->GetClass() == Class::Warrior) {
|
||||
int stun_level = RuleI(Combat, NPCKickStunLevel);
|
||||
if (attacker->IsClient()) {
|
||||
stun_level = RuleI(Combat, PCKickStunLevel);
|
||||
}
|
||||
can_stun = (attacker->GetLevel() >= stun_level);
|
||||
}
|
||||
|
||||
bool is_immune_to_frontal_stun = false;
|
||||
|
||||
Reference in New Issue
Block a user