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

Loading…
Cancel
Save