mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 19:52:26 +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;
|
break;
|
||||||
|
|
||||||
case SE_IncreaseBlockChance:
|
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;
|
break;
|
||||||
|
|
||||||
case SE_PersistantCasting:
|
case SE_PersistantCasting:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user