mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 08:08:25 +00:00
Fixes and Updates to spell and melee mitigation runes.
-Fix for calculation error when rune was to be removed. -Updated to support these spell effect limit values which give a max amount per hit/spell that can be mitigated. -Updated to allow support for these spells effects when the max (rune value) is set to zero, which essentially gives you unlimited mitigation but typically there is a limit value set.
This commit is contained in:
@@ -2303,6 +2303,8 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses* ne
|
||||
if (newbon->MitigateMeleeRune[0] < effect_value){
|
||||
newbon->MitigateMeleeRune[0] = effect_value;
|
||||
newbon->MitigateMeleeRune[1] = buffslot;
|
||||
newbon->MitigateMeleeRune[2] = base2;
|
||||
newbon->MitigateMeleeRune[3] = max;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -2333,6 +2335,8 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses* ne
|
||||
if (newbon->MitigateSpellRune[0] < effect_value){
|
||||
newbon->MitigateSpellRune[0] = effect_value;
|
||||
newbon->MitigateSpellRune[1] = buffslot;
|
||||
newbon->MitigateSpellRune[2] = base2;
|
||||
newbon->MitigateSpellRune[3] = max;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -2342,6 +2346,8 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses* ne
|
||||
if (newbon->MitigateDotRune[0] < effect_value){
|
||||
newbon->MitigateDotRune[0] = effect_value;
|
||||
newbon->MitigateDotRune[1] = buffslot;
|
||||
newbon->MitigateDotRune[2] = base2;
|
||||
newbon->MitigateDotRune[3] = max;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user