mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Fixed buff stacks
Stackable buffs will no longer have their stack count reset when exceeding the cap.
This commit is contained in:
@@ -66,7 +66,7 @@ public class BuffService implements INetworkDispatch {
|
||||
//System.out.println("Buff script doesnt exist for: " + buffName);
|
||||
return;
|
||||
}*/
|
||||
|
||||
|
||||
final Buff buff = new Buff(buffName, creature.getObjectID());
|
||||
if(buff.isGroupBuff()) {
|
||||
addGroupBuff(creature, buffName);
|
||||
@@ -92,6 +92,8 @@ public class BuffService implements INetworkDispatch {
|
||||
if(creature.getDotByBuff(otherBuff) != null) // reset duration when theres a dot stack
|
||||
creature.getDotByBuff(otherBuff).setStartTime(buff.getStartTime());
|
||||
|
||||
} else {
|
||||
buff.setStacks(buff.getMaxStacks());
|
||||
}
|
||||
|
||||
if (otherBuff.getRemainingDuration() > buff.getDuration() && otherBuff.getStacks() >= otherBuff.getMaxStacks()) {
|
||||
|
||||
Reference in New Issue
Block a user