mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[BRO] fix Visions of Phyrexia
This commit is contained in:
parent
94c534fba5
commit
221cc8433a
1 changed files with 6 additions and 6 deletions
|
@ -39,7 +39,7 @@ public final class VisionsOfPhyrexia extends CardImpl {
|
|||
this.addAbility(new BeginningOfEndStepTriggeredAbility(
|
||||
new CreateTokenEffect(new PowerstoneToken(), 1, true),
|
||||
TargetController.YOU, VisionsOfPhyrexiaCondition.instance, false
|
||||
), new VisionsOfPhyrexiaConditionWatcher());
|
||||
), new VisionsOfPhyrexiaWatcher());
|
||||
}
|
||||
|
||||
private VisionsOfPhyrexia(final VisionsOfPhyrexia card) {
|
||||
|
@ -57,7 +57,7 @@ enum VisionsOfPhyrexiaCondition implements Condition {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return !VisionsOfPhyrexiaConditionWatcher.checkPlayer(game, source);
|
||||
return !VisionsOfPhyrexiaWatcher.checkPlayer(game, source);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -66,11 +66,11 @@ enum VisionsOfPhyrexiaCondition implements Condition {
|
|||
}
|
||||
}
|
||||
|
||||
class VisionsOfPhyrexiaConditionWatcher extends Watcher {
|
||||
class VisionsOfPhyrexiaWatcher extends Watcher {
|
||||
|
||||
private final Set<UUID> playerSet = new HashSet<>();
|
||||
|
||||
VisionsOfPhyrexiaConditionWatcher() {
|
||||
VisionsOfPhyrexiaWatcher() {
|
||||
super(WatcherScope.GAME);
|
||||
}
|
||||
|
||||
|
@ -99,8 +99,8 @@ class VisionsOfPhyrexiaConditionWatcher extends Watcher {
|
|||
static boolean checkPlayer(Game game, Ability source) {
|
||||
return game
|
||||
.getState()
|
||||
.getWatcher(VisionsOfPhyrexiaConditionWatcher.class)
|
||||
.getWatcher(VisionsOfPhyrexiaWatcher.class)
|
||||
.playerSet
|
||||
.add(source.getControllerId());
|
||||
.contains(source.getControllerId());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue