fix [LTR] Orcish Bowmasters (#10547)

The "except the first one they draw in each of their draw steps" part of the trigger was not properly checked, and cards drawn on your end step was never triggering an opposing Orcish Bowmasters.

`OpponentDrawCardExceptFirstCardDrawStepTriggeredAbility` is a triggered ability that initializes a watcher `CardsDrawnDuringDrawStepWatcher`.
However `OrTriggeredAbility` was not exposing its sub triggers' watchers to the game engine.
I am not sure the global fix to `OrTriggeredAbility` is better than a `triggeredAbility.addWatcher(...)` in OrcishBowmaster.java.

Also, the trigger text was not set at the proper level.
This commit is contained in:
Susucre 2023-07-03 00:21:00 +02:00 committed by GitHub
parent 6b5d4abb69
commit 1f0189a098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -41,6 +41,10 @@ public class OrTriggeredAbility extends TriggeredAbilityImpl {
for (TriggeredAbility ability : triggeredAbilities) {
//Remove useless data
ability.getEffects().clear();
for(Watcher watcher : ability.getWatchers()) {
super.addWatcher(watcher);
}
}
setTriggerPhrase(generateTriggerPhrase());
}