mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
* Mogis, God of Slaughter - fixed that it deals combat damage, fixed AI targeting;
This commit is contained in:
parent
1f99249d10
commit
846200c093
1 changed files with 3 additions and 3 deletions
|
@ -82,9 +82,9 @@ class MogisGodOfSlaughterEffect extends OneShotEffect {
|
|||
}
|
||||
TargetPermanent target = new TargetControlledCreaturePermanent(1);
|
||||
target.setNotTarget(true);
|
||||
if (!player.chooseUse(outcome, "Sacrifice a creature to prevent 2 damage?", source, game)
|
||||
|| !player.choose(outcome, target, source.getSourceId(), game)) {
|
||||
return player.damage(2, source.getSourceId(), game) > 0;
|
||||
if (!player.chooseUse(Outcome.Detriment, "Sacrifice a creature to prevent 2 damage?", source, game)
|
||||
|| !player.choose(Outcome.Sacrifice, target, source.getSourceId(), game)) {
|
||||
return player.damage(2, source.getSourceId(), game, false, true) > 0;
|
||||
}
|
||||
Permanent permanent = game.getPermanent(target.getFirstTarget());
|
||||
return permanent != null && permanent.sacrifice(source.getSourceId(), game);
|
||||
|
|
Loading…
Reference in a new issue