mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fixed Cleanup Phase Triggers not firing.
This commit is contained in:
@@ -205,8 +205,10 @@ public class PhaseHandler implements java.io.Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final void onPhaseBegin() {
|
private final void onPhaseBegin() {
|
||||||
|
boolean skipped = false;
|
||||||
|
|
||||||
if ( isSkippingPhase(phase) ) {
|
if ( isSkippingPhase(phase) ) {
|
||||||
|
skipped = true;
|
||||||
givePriorityToPlayer = false;
|
givePriorityToPlayer = false;
|
||||||
if( phase == PhaseType.COMBAT_DECLARE_ATTACKERS )
|
if( phase == PhaseType.COMBAT_DECLARE_ATTACKERS )
|
||||||
playerTurn.removeKeyword("Skip your next combat phase.");
|
playerTurn.removeKeyword("Skip your next combat phase.");
|
||||||
@@ -428,7 +430,7 @@ public class PhaseHandler implements java.io.Serializable {
|
|||||||
// Handle effects that happen at the beginning of phases
|
// Handle effects that happen at the beginning of phases
|
||||||
game.getAction().checkStateEffects();
|
game.getAction().checkStateEffects();
|
||||||
|
|
||||||
if (this.givePriorityToPlayer) {
|
if (!skipped) {
|
||||||
// Run triggers if phase isn't being skipped
|
// Run triggers if phase isn't being skipped
|
||||||
final HashMap<String, Object> runParams = new HashMap<String, Object>();
|
final HashMap<String, Object> runParams = new HashMap<String, Object>();
|
||||||
runParams.put("Phase", this.getPhase().nameForScripts);
|
runParams.put("Phase", this.getPhase().nameForScripts);
|
||||||
|
|||||||
Reference in New Issue
Block a user