SE_NegateAttacks buff stacking optimized.

This commit is contained in:
KayenEQ 2014-06-22 15:55:04 -04:00 committed by Arthur Ice
parent 6821dc27f5
commit ad31de5f78

View File

@ -2291,7 +2291,8 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses* ne
case SE_NegateAttacks:
{
if (!newbon->NegateAttacks[0]){
if (!newbon->NegateAttacks[0] ||
((newbon->NegateAttacks[0] && newbon->NegateAttacks[2]) && (newbon->NegateAttacks[2] < max))){
newbon->NegateAttacks[0] = 1;
newbon->NegateAttacks[1] = buffslot;
newbon->NegateAttacks[2] = max;