Buffs - Permanent duration buffs now correctly replace non-permanent version

This commit is contained in:
Ziggeh
2014-03-23 02:46:47 +01:00
parent ca1ff0b98f
commit a3e7b10372
+3 -4
View File
@@ -97,10 +97,9 @@ public class BuffService implements INetworkDispatch {
} else {
buff.setStacks(buff.getMaxStacks());
}
if (otherBuff.getRemainingDuration() > buff.getDuration() && otherBuff.getStacks() >= otherBuff.getMaxStacks()) {
return null;
}
if (buff.getDuration() != -1.0)
if (otherBuff.getRemainingDuration() > buff.getDuration() && otherBuff.getStacks() >= otherBuff.getMaxStacks())
return null;
}
removeBuffFromCreature(creature, otherBuff);