* Mogis, God of Slaughter - fixed that it deals combat damage, fixed AI targeting;

This commit is contained in:
Oleg Agafonov 2020-01-14 08:24:31 +04:00
parent 1f99249d10
commit 846200c093

View file

@ -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);