Fixed 0000022: Most persistent buffs being removed on soft-relog

This commit is contained in:
Waverunner
2014-07-07 09:30:56 -04:00
parent 2d58b70284
commit 86e37dccbf
+5 -2
View File
@@ -280,14 +280,17 @@ public class BuffService implements INetworkDispatch {
// copy to array for thread safety
for(final Buff buff : creature.getBuffList().get().toArray(new Buff[] { })) {
if (buff.getGroup1().startsWith("setBonus") || buff.getRemovalTask() != null) { continue; }
if (buff.getRemovalTask() != null) { continue; }
if(buff.isGroupBuff() && buff.getGroupBufferId() != creature.getObjectID()) {
removeBuffFromCreature(creature, buff);
continue;
}
if (buff.getDuration() == (float) -1)
continue;
if(buff.getRemainingDuration() > 0 && buff.getDuration() > 0) {
ScheduledFuture<?> task = scheduler.schedule(() -> {
try {