Powerboost now adds to the current powerboost instead of sets it. Adds #501

This will break existing functionality but that existing functionality is stupid.
This commit is contained in:
drtshock 2015-08-08 21:53:31 -05:00
parent 518eba9e18
commit 05cbf4cf5d

View File

@ -50,6 +50,8 @@ public class CmdPowerBoost extends FCommand {
if (targetPlayer == null) {
return;
}
targetPower += targetPlayer.getPowerBoost();
targetPlayer.setPowerBoost(targetPower);
target = TL.COMMAND_POWERBOOST_PLAYER.format(targetPlayer.getName());
} else {
@ -57,6 +59,8 @@ public class CmdPowerBoost extends FCommand {
if (targetFaction == null) {
return;
}
targetPower += targetFaction.getPowerBoost();
targetFaction.setPowerBoost(targetPower);
target = TL.COMMAND_POWERBOOST_FACTION.format(targetFaction.getTag());
}