mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Make end turn button meet player's expectations by skipping the attack phase and not requiring you to respond to triggers
This commit is contained in:
@@ -92,8 +92,8 @@ public abstract class PlayerController {
|
||||
autoPassUntilPhase = null;
|
||||
}
|
||||
|
||||
public boolean mayAutoPass(PhaseType phase) {
|
||||
return phase.isBefore(autoPassUntilPhase);
|
||||
public boolean mayAutoPass() {
|
||||
return autoPassUntilPhase != null && game.getPhaseHandler().getPhase().isBefore(autoPassUntilPhase);
|
||||
}
|
||||
|
||||
public boolean isAI() {
|
||||
|
||||
@@ -344,11 +344,6 @@ public class TriggerHandler implements IGameStateObject {
|
||||
private void runSingleTrigger(final Trigger regtrig, final Map<String, Object> runParams) {
|
||||
final Map<String, String> triggerParams = regtrig.getMapParams();
|
||||
|
||||
// Any trigger should cause the phase not to skip
|
||||
for (Player p : game.getPlayers()) {
|
||||
p.getController().autoPassCancel();
|
||||
}
|
||||
|
||||
regtrig.setRunParams(runParams);
|
||||
|
||||
// All tests passed, execute ability.
|
||||
|
||||
Reference in New Issue
Block a user