|
|
@ -312,7 +312,12 @@ public enum PowersManager { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Check powers for normal users
|
|
|
|
// 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 (!playerCharacter.isCSR()) { |
|
|
|
if (!MBServerStatics.POWERS_DEBUG) { |
|
|
|
if (!MBServerStatics.POWERS_DEBUG) { |
|
|
|
// ChatManager.chatSayInfo(pc, "You may not cast that spell!");
|
|
|
|
// ChatManager.chatSayInfo(pc, "You may not cast that spell!");
|
|
|
@ -342,6 +347,14 @@ public enum PowersManager { |
|
|
|
CharacterPower cp = playerCharacter.getPowers().get(msg.getPowerUsedID()); |
|
|
|
CharacterPower cp = playerCharacter.getPowers().get(msg.getPowerUsedID()); |
|
|
|
if (cp != null) { |
|
|
|
if (cp != null) { |
|
|
|
int tot = cp.getTotalTrains(); |
|
|
|
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()) |
|
|
|
if (tot == 0 && !playerCharacter.isCSR()) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
if (trains != tot && !playerCharacter.isCSR()) { |
|
|
|
if (trains != tot && !playerCharacter.isCSR()) { |
|
|
|