mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08: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);
|
TargetPermanent target = new TargetControlledCreaturePermanent(1);
|
||||||
target.setNotTarget(true);
|
target.setNotTarget(true);
|
||||||
if (!player.chooseUse(outcome, "Sacrifice a creature to prevent 2 damage?", source, game)
|
if (!player.chooseUse(Outcome.Detriment, "Sacrifice a creature to prevent 2 damage?", source, game)
|
||||||
|| !player.choose(outcome, target, source.getSourceId(), game)) {
|
|| !player.choose(Outcome.Sacrifice, target, source.getSourceId(), game)) {
|
||||||
return player.damage(2, source.getSourceId(), game) > 0;
|
return player.damage(2, source.getSourceId(), game, false, true) > 0;
|
||||||
}
|
}
|
||||||
Permanent permanent = game.getPermanent(target.getFirstTarget());
|
Permanent permanent = game.getPermanent(target.getFirstTarget());
|
||||||
return permanent != null && permanent.sacrifice(source.getSourceId(), game);
|
return permanent != null && permanent.sacrifice(source.getSourceId(), game);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue