Fix Hidden Predators trigger (#10163)

* Remove extraneous comma

* Fix trigger to filter opponent's permanents only

* Fix text wording
This commit is contained in:
xenohedron 2023-04-20 18:21:47 -04:00 committed by GitHub
parent 1bfb339d57
commit 639106ad19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ class HiddenPredatorsStateTriggeredAbility extends StateTriggeredAbility {
public HiddenPredatorsStateTriggeredAbility() {
super(Zone.BATTLEFIELD, new BecomesCreatureSourceEffect(new HiddenPredatorsToken(), "", Duration.Custom, true, false));
setTriggerPhrase("When an opponent controls a creature with 4 or greater power, if {this} is an enchantment, ");
setTriggerPhrase("When an opponent controls a creature with power 4 or greater, if {this} is an enchantment");
}
public HiddenPredatorsStateTriggeredAbility(final HiddenPredatorsStateTriggeredAbility ability) {
@ -61,7 +61,7 @@ class HiddenPredatorsStateTriggeredAbility extends StateTriggeredAbility {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
return !game.getBattlefield().getAllActivePermanents(filter, game).isEmpty();
return !game.getBattlefield().getActivePermanents(filter, game.getControllerId(getSourceId()), game).isEmpty();
}
@Override