Minor Tweaks to Previous Commit.

This commit is contained in:
Olof Larsson 2016-07-01 15:47:48 +02:00
parent 83767dc275
commit 8eac170550
No known key found for this signature in database
GPG Key ID: BBEF14F97DA52474

View File

@ -50,8 +50,7 @@ public class TaskPlayerPowerUpdate extends ModuloRepeatTask
if (player.isDead()) continue;
// Check the powergain flag is not disabled
Faction faction = BoardColl.get().getFactionAt(PS.valueOf(player.getLocation()));
Faction faction = BoardColl.get().getFactionAt(PS.valueOf(player));
if ( ! faction.getFlag(MFlag.getFlagPowergain())) return;
// Check power gain has not been disabled in this world