mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
minor rewrite of urborg syphon mage
This commit is contained in:
parent
fbd985b5b1
commit
bd0b1bffa4
1 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ public final class UrborgSyphonMage extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
public UrborgSyphonMage(final UrborgSyphonMage card) {
|
||||
private UrborgSyphonMage(final UrborgSyphonMage card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ class UrborgSyphonMageEffect extends OneShotEffect {
|
|||
staticText = "Each other player loses 2 life. You gain life equal to the life lost this way";
|
||||
}
|
||||
|
||||
public UrborgSyphonMageEffect(final UrborgSyphonMageEffect effect) {
|
||||
private UrborgSyphonMageEffect(final UrborgSyphonMageEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ class UrborgSyphonMageEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
if (!Objects.equals(playerId, source.getControllerId())) {
|
||||
if (!source.isControlledBy(playerId)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
damage += player.loseLife(2, game, false);
|
||||
|
|
Loading…
Reference in a new issue