|
|
@ -217,6 +217,7 @@ public enum PowersManager { |
|
|
|
origin); |
|
|
|
origin); |
|
|
|
if (playerCharacter == null) |
|
|
|
if (playerCharacter == null) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
boolean CSRCast = false; |
|
|
|
boolean CSRCast = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -283,6 +284,14 @@ public enum PowersManager { |
|
|
|
// get power
|
|
|
|
// get power
|
|
|
|
PowersBase pb = PowersManager.powersBaseByToken.get(msg.getPowerUsedID()); |
|
|
|
PowersBase pb = PowersManager.powersBaseByToken.get(msg.getPowerUsedID()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(pb.isHarmful){ |
|
|
|
|
|
|
|
//manually break stealth for offensive casts
|
|
|
|
|
|
|
|
if(playerCharacter.getHidden() > 0) { |
|
|
|
|
|
|
|
playerCharacter.setHidden(0); |
|
|
|
|
|
|
|
playerCharacter.removeEffectBySource(EffectSourceType.Invisibility,40, true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(pb.description.equals("Personal Movement Buff") && playerCharacter.isFlying()) { |
|
|
|
if(pb.description.equals("Personal Movement Buff") && playerCharacter.isFlying()) { |
|
|
|
ChatManager.chatSystemInfo(playerCharacter, "You cannot use movement speed buffs while flying"); |
|
|
|
ChatManager.chatSystemInfo(playerCharacter, "You cannot use movement speed buffs while flying"); |
|
|
|
earlyExit = true; |
|
|
|
earlyExit = true; |
|
|
|