mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-03 04:16:19 -04:00
Buffs - Permanent duration buffs now correctly replace non-permanent version
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user