mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
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());
|
Permanent permanent = game.getPermanent(target.getFirstTarget());
|
||||||
if (permanent != null) {
|
if (permanent != null) {
|
||||||
permanent.sacrifice(source.getSourceId(), game);
|
permanent.sacrifice(source.getSourceId(), game);
|
||||||
|
if (permanent.hasSubtype("Island")) {
|
||||||
|
player.damage(3, source.getSourceId(), game, false, true);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (permanent.hasSubtype("Island")){
|
|
||||||
player.damage(3, source.getSourceId(), game, false, true);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue