processMove calling endPhase twice
See original GitHub issueI have a situation where I end the turn and the phase at the same time, the new phase has it’s own conditions of endTurnIf and endPhaseIf.
- The
processMove
set’s the variableconf
end then activates theendTurnEvent
. [phase0
] - The
endTurnEvent
activates theendPhaseEvent
. [phase1
] - The
processMove
activates theendPhaseEvent
of theconf
variable set in the begining. [phase0
]
This way when the endPhaseIf
at the end of the processMove
is called, it calls the phase 0
during the phase 1
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
What is meiosis? - YourGenome
Meiosis is a process where a single cell divides twice to produce four cells containing half the original amount of genetic information.
Read more >Standard Fight Rules | Cardfight!! Vanguard Wiki - Fandom
If a card is moved from a zone to another zone (except when moving from one circle to another) or becomes unlocked, then...
Read more >State of Charge Recovery for An Enphase Storage System
This procedure is only intended for recovering battery state of charge. Do not use this procedure to continuously power home loads in parallel ......
Read more >Best Practices for Operation and Maintenance of Photovoltaic ...
then call the company to ship the replacement materials authorization, which is a long process when compared to replacing failed components of a...
Read more >Rulebook - My Hero Academia Collectible Card Game
You may choose to discard an attack that dealt damage during the End Phase, if you don't want the momentum. e. Attacks have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OK the bug seems clear to me now. Thanks for creating the test! That really helped.
Will work on a fix.
I think you can also do
git commit --no-verify
to commit with failing tests.