small fix Isolation Cell.
@@ -64,7 +64,8 @@ class IsolationCellTriggeredAbility extends TriggeredAbilityImpl {
public boolean checkTrigger(GameEvent event, Game game) {
if (game.getOpponents(controllerId).contains(event.getPlayerId())) {
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()));
return true;
}
@@ -100,7 +101,7 @@ class IsolationCellEffect extends OneShotEffect {
if (player != null) {
GenericManaCost cost = new GenericManaCost(2);
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;
}
