fixed land sacrifice effect to damage player if sacrificed land is an island

This commit is contained in:
Kenny Wottrich 2016-04-24 17:45:30 -05:00
parent ea342f9336
commit 19a4d7dc7a

View file

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