|
|
@ -267,6 +267,13 @@ public enum PowersManager { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// get power
|
|
|
|
|
|
|
|
PowersBase pb = PowersManager.powersBaseByToken.get(msg.getPowerUsedID()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(pb.description.equals("Personal Movement Buff") && playerCharacter.isFlying()) { |
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(playerCharacter, "You cannot use movement speed buffs while flying"); |
|
|
|
|
|
|
|
earlyExit = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (earlyExit) { |
|
|
|
if (earlyExit) { |
|
|
|
|
|
|
|
|
|
|
@ -288,8 +295,7 @@ public enum PowersManager { |
|
|
|
Logger.warn("usePowerA(): Cheat attempted? '" + msg.getPowerUsedID() + "' recycle timer not finished " + playerCharacter.getName()); |
|
|
|
Logger.warn("usePowerA(): Cheat attempted? '" + msg.getPowerUsedID() + "' recycle timer not finished " + playerCharacter.getName()); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
// get power
|
|
|
|
|
|
|
|
PowersBase pb = PowersManager.powersBaseByToken.get(msg.getPowerUsedID()); |
|
|
|
|
|
|
|
if (pb == null) { |
|
|
|
if (pb == null) { |
|
|
|
ChatManager.chatSayInfo(playerCharacter, |
|
|
|
ChatManager.chatSayInfo(playerCharacter, |
|
|
|
"This power is not implemented yet."); |
|
|
|
"This power is not implemented yet."); |
|
|
|