From 9604ee439955e551ca652af5223055dc67593bf4 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 21 Apr 2024 18:30:12 -0500 Subject: [PATCH] sundancer given Find Weakness --- src/engine/gameManager/PowersManager.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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()) {