SE_NegateAttacks buff stacking optimized.

This commit is contained in:
KayenEQ authored and Arthur Ice committed 2014-07-08 21:09:52 -07:00
1 parent 6821dc27f5
commit ad31de5f78
1 file changed
+2 -1
+2 -1
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;