* Wildfire Eternal - Fixed that the ability triggered multiple times if more than one player blocked during the turn (fixes #4466).

This commit is contained in:
LevelX2 2018-01-31 00:10:02 +01:00
parent 7afc157ba0
commit f9ca04dfbb
3 changed files with 3 additions and 4 deletions

View file

@ -66,7 +66,7 @@ public class AttacksAndIsNotBlockedTriggeredAbility extends TriggeredAbilityImpl
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType() == EventType.DECLARED_BLOCKERS;
return event.getType() == EventType.DECLARE_BLOCKERS_STEP;
}
@Override

View file

@ -83,6 +83,7 @@ public abstract class Step implements Serializable {
public void priority(Game game, UUID activePlayerId, boolean resuming) {
if (hasPriority) {
stepPart = StepPart.PRIORITY;
game.fireEvent(new GameEvent(stepEvent, null, null, activePlayerId));
game.playPriority(activePlayerId, resuming);
}
}