|
|
|
@ -297,15 +297,15 @@ public enum PowersManager {
@@ -297,15 +297,15 @@ public enum PowersManager {
|
|
|
|
|
int time = pb.getRecycleTime(trains); |
|
|
|
|
|
|
|
|
|
// verify player is in correct mode (combat/nonCombat)
|
|
|
|
|
if (playerCharacter.isCombat()) { |
|
|
|
|
if (!pb.allowedInCombat()) |
|
|
|
|
//if (playerCharacter.isCombat()) {
|
|
|
|
|
// if (!pb.allowedInCombat())
|
|
|
|
|
// ChatManager.chatPowerError(pc,
|
|
|
|
|
// "This power is not allowed in combat mode.");
|
|
|
|
|
return true; |
|
|
|
|
} else if (!pb.allowedOutOfCombat()) |
|
|
|
|
// return true;
|
|
|
|
|
//} else if (!pb.allowedOutOfCombat())
|
|
|
|
|
// ChatManager.chatPowerError(pc,
|
|
|
|
|
// "You must be in combat mode to use this power.");
|
|
|
|
|
return true; |
|
|
|
|
// return true;
|
|
|
|
|
|
|
|
|
|
// verify player is not stunned or prohibited from casting
|
|
|
|
|
PlayerBonuses bonus = playerCharacter.getBonuses(); |
|
|
|
|