Browse Source

remove combat/nocombat requirement form powers

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
3dc7f7c9ed
  1. 10
      src/engine/gameManager/PowersManager.java

10
src/engine/gameManager/PowersManager.java

@ -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();

Loading…
Cancel
Save