forked from External/mage
fixed land sacrifice effect to damage player if sacrificed land is an island
This commit is contained in:
parent
ea342f9336
commit
19a4d7dc7a
1 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue