diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 157d6d48..680c8fce 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -312,7 +312,12 @@ public enum PowersManager { // Check powers for normal users - if (playerCharacter.getPowers() == null || !playerCharacter.getPowers().containsKey(msg.getPowerUsedID())) + boolean skipCheck = false; + if(msg.getPowerUsedID() == 429399948) + for(CharacterRune cr : playerCharacter.getRunes()) + if(cr.getRuneBaseID() == 3029) + skipCheck = true; + if (!skipCheck && (playerCharacter.getPowers() == null || !playerCharacter.getPowers().containsKey(msg.getPowerUsedID()))) if (!playerCharacter.isCSR()) { if (!MBServerStatics.POWERS_DEBUG) { // ChatManager.chatSayInfo(pc, "You may not cast that spell!"); @@ -342,6 +347,14 @@ public enum PowersManager { CharacterPower cp = playerCharacter.getPowers().get(msg.getPowerUsedID()); if (cp != null) { int tot = cp.getTotalTrains(); + switch(token){ + case 430596127: + if(playerCharacter.getPromotionClass().getName().equals("Wizard")) + tot = 40; //single teleport granted at 40 for wizard + break; + + } + if (tot == 0 && !playerCharacter.isCSR()) return false; if (trains != tot && !playerCharacter.isCSR()) {