mirror of
https://github.com/correl/mage.git
synced 2024-12-28 19:19:20 +00:00
- Fixed #8642
This commit is contained in:
parent
87bc7da639
commit
5fe1b9a46c
1 changed files with 6 additions and 3 deletions
|
@ -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 won’t 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
|
||||||
|
|
Loading…
Reference in a new issue