mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
- small fix Isolation Cell.
This commit is contained in:
parent
23271d9b9b
commit
9aa699ac4e
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue