mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-04 05:16:21 -04:00
Fixed 0000022: Most persistent buffs being removed on soft-relog
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user