mirror of
https://github.com/correl/mage.git
synced 2024-12-27 20:06:31 +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(
|
this.addAbility(new BeginningOfEndStepTriggeredAbility(
|
||||||
new CreateTokenEffect(new PowerstoneToken(), 1, true),
|
new CreateTokenEffect(new PowerstoneToken(), 1, true),
|
||||||
TargetController.YOU, VisionsOfPhyrexiaCondition.instance, false
|
TargetController.YOU, VisionsOfPhyrexiaCondition.instance, false
|
||||||
), new VisionsOfPhyrexiaConditionWatcher());
|
), new VisionsOfPhyrexiaWatcher());
|
||||||
}
|
}
|
||||||
|
|
||||||
private VisionsOfPhyrexia(final VisionsOfPhyrexia card) {
|
private VisionsOfPhyrexia(final VisionsOfPhyrexia card) {
|
||||||
|
@ -57,7 +57,7 @@ enum VisionsOfPhyrexiaCondition implements Condition {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
return !VisionsOfPhyrexiaConditionWatcher.checkPlayer(game, source);
|
return !VisionsOfPhyrexiaWatcher.checkPlayer(game, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -66,11 +66,11 @@ enum VisionsOfPhyrexiaCondition implements Condition {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class VisionsOfPhyrexiaConditionWatcher extends Watcher {
|
class VisionsOfPhyrexiaWatcher extends Watcher {
|
||||||
|
|
||||||
private final Set<UUID> playerSet = new HashSet<>();
|
private final Set<UUID> playerSet = new HashSet<>();
|
||||||
|
|
||||||
VisionsOfPhyrexiaConditionWatcher() {
|
VisionsOfPhyrexiaWatcher() {
|
||||||
super(WatcherScope.GAME);
|
super(WatcherScope.GAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,8 +99,8 @@ class VisionsOfPhyrexiaConditionWatcher extends Watcher {
|
||||||
static boolean checkPlayer(Game game, Ability source) {
|
static boolean checkPlayer(Game game, Ability source) {
|
||||||
return game
|
return game
|
||||||
.getState()
|
.getState()
|
||||||
.getWatcher(VisionsOfPhyrexiaConditionWatcher.class)
|
.getWatcher(VisionsOfPhyrexiaWatcher.class)
|
||||||
.playerSet
|
.playerSet
|
||||||
.add(source.getControllerId());
|
.contains(source.getControllerId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue