Browse Source

sundancer given Find Weakness

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
9604ee4399
  1. 15
      src/engine/gameManager/PowersManager.java

15
src/engine/gameManager/PowersManager.java

@ -312,7 +312,12 @@ public enum PowersManager { @@ -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 { @@ -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()) {

Loading…
Cancel
Save