mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-03 02:13:51 +00:00
Fix SE_IncreaseBlockChance stacking
This commit is contained in:
parent
ca32e35ef6
commit
3746128014
@ -2495,7 +2495,12 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses *ne
|
||||
break;
|
||||
|
||||
case SE_IncreaseBlockChance:
|
||||
new_bonus->IncreaseBlockChance += effect_value;
|
||||
if (AdditiveWornBonus)
|
||||
new_bonus->IncreaseBlockChance += effect_value;
|
||||
else if (effect_value < 0 && new_bonus->IncreaseBlockChance > effect_value)
|
||||
new_bonus->IncreaseBlockChance = effect_value;
|
||||
else if (new_bonus->IncreaseBlockChance < effect_value)
|
||||
new_bonus->IncreaseBlockChance = effect_value;
|
||||
break;
|
||||
|
||||
case SE_PersistantCasting:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user