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,11 +121,10 @@ class SerendibDjinnEffect extends OneShotEffect {
player.choose(Outcome.Sacrifice, target, source.getSourceId(), game);
Permanent permanent = game.getPermanent(target.getFirstTarget());
if (permanent != null) {
permanent.sacrifice(source.getSourceId(), game);
return true;
}
if (permanent.hasSubtype("Island")){
if (permanent.hasSubtype("Island")) {
player.damage(3, source.getSourceId(), game, false, true);
}
permanent.sacrifice(source.getSourceId(), game);
return true;
}
}