informPlayers improvements

This commit is contained in:
Zzooouhh 2017-11-07 11:34:52 +01:00 committed by GitHub
parent bf85dca9f7
commit d5af4ad4b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,8 +143,7 @@ class LoxodonPeacekeeperEffect extends OneShotEffect {
for (UUID playerId : game.getState().getPlayersInRange(source.getControllerId(), game)) {
if (tiedPlayers.contains(playerId)) {
newControllerId = playerId;
game.informPlayers(game.getPlayer(playerId).getLogName() + " has gained control of " + sourcePermanent.getLogName());
break;
}
}
}
@ -152,6 +151,7 @@ class LoxodonPeacekeeperEffect extends OneShotEffect {
ContinuousEffect effect = new GainControlTargetEffect(Duration.Custom, newControllerId);
effect.setTargetPointer(new FixedTarget(sourcePermanent, game));
game.addEffect(effect, source);
game.informPlayers(game.getPlayer(newControllerId).getLogName() + " has gained control of " + sourcePermanent.getLogName());
return true;
}
}