|
|
@ -27,6 +27,7 @@ import engine.net.client.ClientConnection; |
|
|
|
import engine.net.client.msg.*; |
|
|
|
import engine.net.client.msg.*; |
|
|
|
import engine.objects.*; |
|
|
|
import engine.objects.*; |
|
|
|
import engine.powers.*; |
|
|
|
import engine.powers.*; |
|
|
|
|
|
|
|
import engine.powers.effectmodifiers.SeeInvisibleEffectModifier; |
|
|
|
import engine.powers.poweractions.AbstractPowerAction; |
|
|
|
import engine.powers.poweractions.AbstractPowerAction; |
|
|
|
import engine.powers.poweractions.TrackPowerAction; |
|
|
|
import engine.powers.poweractions.TrackPowerAction; |
|
|
|
import engine.server.MBServerStatics; |
|
|
|
import engine.server.MBServerStatics; |
|
|
@ -318,7 +319,13 @@ public enum PowersManager { |
|
|
|
|
|
|
|
|
|
|
|
// get numTrains for power
|
|
|
|
// get numTrains for power
|
|
|
|
int trains = msg.getNumTrains(); |
|
|
|
int trains = msg.getNumTrains(); |
|
|
|
|
|
|
|
int token = pb.token; |
|
|
|
|
|
|
|
int overrideTrains = 0; |
|
|
|
|
|
|
|
int overrideRecycle = 0; |
|
|
|
|
|
|
|
if(token == 429420458){ |
|
|
|
|
|
|
|
overrideTrains = 40; |
|
|
|
|
|
|
|
overrideRecycle = 300000; |
|
|
|
|
|
|
|
} |
|
|
|
// can't go over the max trains for the power, unless CSR
|
|
|
|
// can't go over the max trains for the power, unless CSR
|
|
|
|
if (trains > pb.getMaxTrains() && !playerCharacter.isCSR()) { |
|
|
|
if (trains > pb.getMaxTrains() && !playerCharacter.isCSR()) { |
|
|
|
trains = pb.getMaxTrains(); |
|
|
|
trains = pb.getMaxTrains(); |
|
|
@ -337,19 +344,13 @@ public enum PowersManager { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(overrideTrains > 0) |
|
|
|
|
|
|
|
msg.setNumTrains(overrideTrains); |
|
|
|
// get recycle time in ms
|
|
|
|
// get recycle time in ms
|
|
|
|
int time = pb.getRecycleTime(trains); |
|
|
|
int time = pb.getRecycleTime(trains); |
|
|
|
|
|
|
|
|
|
|
|
// verify player is in correct mode (combat/nonCombat)
|
|
|
|
if(overrideRecycle > 0) |
|
|
|
//if (playerCharacter.isCombat()) {
|
|
|
|
time = overrideRecycle; |
|
|
|
// if (!pb.allowedInCombat())
|
|
|
|
|
|
|
|
// ChatManager.chatPowerError(pc,
|
|
|
|
|
|
|
|
// "This power is not allowed in combat mode.");
|
|
|
|
|
|
|
|
// return true;
|
|
|
|
|
|
|
|
//} else if (!pb.allowedOutOfCombat())
|
|
|
|
|
|
|
|
// ChatManager.chatPowerError(pc,
|
|
|
|
|
|
|
|
// "You must be in combat mode to use this power.");
|
|
|
|
|
|
|
|
// return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// verify player is not stunned or prohibited from casting
|
|
|
|
// verify player is not stunned or prohibited from casting
|
|
|
|
PlayerBonuses bonus = playerCharacter.getBonuses(); |
|
|
|
PlayerBonuses bonus = playerCharacter.getBonuses(); |
|
|
|