mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 19:59:54 -08:00
Minor changes.
This commit is contained in:
parent
77c9d6e989
commit
12cba2d0ab
2 changed files with 10 additions and 9 deletions
|
|
@ -96,15 +96,15 @@ class DoomgapeEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player you = game.getPlayer(source.getControllerId());
|
||||
if (you != null) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
Target target = new TargetControlledCreaturePermanent();
|
||||
target.setNotTarget(true);
|
||||
if (you.choose(Outcome.Sacrifice, target, source.getSourceId(), game)) {
|
||||
if (controller.choose(Outcome.Sacrifice, target, source.getSourceId(), game)) {
|
||||
Permanent creature = game.getPermanent(target.getFirstTarget());
|
||||
if (creature != null) {
|
||||
if (creature.sacrifice(source.getSourceId(), game)) {
|
||||
you.gainLife(creature.getToughness().getValue(), game);
|
||||
controller.gainLife(creature.getToughness().getValue(), game);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -112,4 +112,4 @@ class DoomgapeEffect extends OneShotEffect {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue