This commit is contained in:
Jeff Wadsworth 2022-02-04 15:05:42 -06:00
parent 87bc7da639
commit 5fe1b9a46c

View file

@ -63,7 +63,10 @@ class WillbreakerTriggeredAbility extends TriggeredAbilityImpl {
return false; return false;
} }
Permanent permanent = game.getPermanent(event.getTargetId()); Permanent permanent = game.getPermanent(event.getTargetId());
if (permanent == null || !permanent.isCreature(game) Permanent willbreaker = game.getPermanent(sourceId);
if (willbreaker == null // If you lose control of Willbreaker before its ability resolves, you wont gain control of the creature at all.
|| permanent == null
|| !permanent.isCreature(game)
|| !game.getOpponents(getControllerId()).contains(permanent.getControllerId())) { || !game.getOpponents(getControllerId()).contains(permanent.getControllerId())) {
return false; return false;
} }
@ -74,8 +77,8 @@ class WillbreakerTriggeredAbility extends TriggeredAbilityImpl {
@Override @Override
public String getRule() { public String getRule() {
return "Whenever a creature an opponent controls becomes the target of a spell or ability you control, " + return "Whenever a creature an opponent controls becomes the target of a spell or ability you control, "
"gain control of that creature for as long as you control {this}"; + "gain control of that creature for as long as you control {this}";
} }
@Override @Override