- small fix Isolation Cell.

This commit is contained in:
Jeff 2019-03-14 08:46:40 -05:00
parent 23271d9b9b
commit 9aa699ac4e

View file

@ -64,7 +64,8 @@ class IsolationCellTriggeredAbility extends TriggeredAbilityImpl {
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
if (game.getOpponents(controllerId).contains(event.getPlayerId())) { if (game.getOpponents(controllerId).contains(event.getPlayerId())) {
Card card = game.getCard(event.getSourceId()); Card card = game.getCard(event.getSourceId());
if (card != null && card.isCreature()) { if (card != null
&& card.isCreature()) {
this.getEffects().get(0).setTargetPointer(new FixedTarget(event.getPlayerId())); this.getEffects().get(0).setTargetPointer(new FixedTarget(event.getPlayerId()));
return true; return true;
} }
@ -100,7 +101,7 @@ class IsolationCellEffect extends OneShotEffect {
if (player != null) { if (player != null) {
GenericManaCost cost = new GenericManaCost(2); GenericManaCost cost = new GenericManaCost(2);
if (!cost.pay(source, game, player.getId(), player.getId(), false)) { if (!cost.pay(source, game, player.getId(), player.getId(), false)) {
player.damage(2, source.getSourceId(), game, false, true); player.loseLife(2, game, false);
} }
return true; return true;
} }