mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Revert "Merge pull request #1101 from KinglyKrab/custom"
This reverts commit43108acae1, reversing changes made todaa1db65b9.
This commit is contained in:
@@ -5677,14 +5677,6 @@ 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