This commit is contained in:
Treeku
2013-12-11 12:34:20 +00:00
39 changed files with 1975 additions and 665 deletions
+3 -1
View File
@@ -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()) {