question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

processMove calling endPhase twice

See original GitHub issue

I 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 variable conf end then activates the endTurnEvent. [phase 0]
  • The endTurnEvent activates the endPhaseEvent. [phase 1]
  • The processMove activates the endPhaseEvent of the conf variable set in the begining. [phase 0]

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:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolodaviscommented, Mar 27, 2018

OK the bug seems clear to me now. Thanks for creating the test! That really helped.

Will work on a fix.

1reaction
nicolodaviscommented, Mar 27, 2018

I think you can also do

git commit --no-verify

to commit with failing tests.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found