mirror of
https://github.com/correl/mage.git
synced 2024-12-28 11:14:13 +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;
|
||||
}
|
||||
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())) {
|
||||
return false;
|
||||
}
|
||||
|
@ -74,8 +77,8 @@ class WillbreakerTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public String getRule() {
|
||||
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}";
|
||||
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}";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue