Merge pull request #1903 from KWottrich/fix-serendib-djinn-island-damage

Fix serendib djinn island damage
This commit is contained in:
LevelX2 2016-04-26 11:44:09 +02:00
commit 55ed1c3121

View file

@ -121,13 +121,12 @@ class SerendibDjinnEffect extends OneShotEffect {
player.choose(Outcome.Sacrifice, target, source.getSourceId(), game);
Permanent permanent = game.getPermanent(target.getFirstTarget());
if (permanent != null) {
if (permanent.hasSubtype("Island")) {
player.damage(3, source.getSourceId(), game, false, true);
}
permanent.sacrifice(source.getSourceId(), game);
return true;
}
if (permanent.hasSubtype("Island")){
player.damage(3, source.getSourceId(), game, false, true);
return true;
}
}
return false;
}