mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 09:47:20 +00:00
Custom changes.
This commit is contained in:
1 parent
98340751b0
commit
ff7c3aff92
14 files changed
+190
-20
No files matched your search
@@ -5677,6 +5677,14 @@ int32 Mob::GetMeleeMitigation() {
|
||||
mitigation += spellbonuses.MeleeMitigationEffect;
|
||||
mitigation += itembonuses.MeleeMitigationEffect;
|
||||
mitigation += aabonuses.MeleeMitigationEffect;
|
||||
|
||||
if (RuleB(Combat, CustomScaling) && IsClient()) {
|
||||
int scale_value = itembonuses.AGI;
|
||||
float melee_mitigation_scale = RuleR(Combat, CustomScalingMeleeMitigation);
|
||||
if (scale_value > int(melee_mitigation_scale)) {
|
||||
mitigation = int(static_cast<float>(mitigation) + static_cast<float>(scale_value / melee_mitigation_scale));
|
||||
}
|
||||
}
|
||||
return mitigation;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user