mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-03 04:16:19 -04:00
Added basis for server-side cooldown checks, added warmup checks, closed #273
Note that cooldown check is currently used only for the holoemote command. To add a cooldown to any command, all you have to do is CreatureObject.addCooldown(name). In this commit I also moved some cooldown variables from CombatCommand to BaseSWGCommand since many non-combat commands had cooldowns (Wookie Roar, Holo-Emotes). I also put in a warmup cooldown (time before command is called) for non-combat commands.
This commit is contained in:
@@ -179,7 +179,7 @@ public class BuffService implements INetworkDispatch {
|
||||
if (buffer == null)
|
||||
removeBuffFromCreature(target, buff);
|
||||
|
||||
if (target.getPosition().getDistance2D(buffer.getWorldPosition()) > 80) {
|
||||
if (target.getWorldPosition().getDistance2D(buffer.getWorldPosition()) > 80) {
|
||||
removeBuffFromCreature(target, buff);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user