davewx7 / citadel

A turn based strategy game based on the Anura engine
Other
99 stars 25 forks source link

static effects not recalculated after delayed_command #225

Open sapientN3T opened 6 years ago

sapientN3T commented 6 years ago

Steps to Reproduce:

  1. revert the workaround in this commit: https://github.com/davewx7/citadel/commit/db77a58c0f0c6b175eac763f9a7cc63ec58985e1
  2. run play_test("chrono")
  3. Play "Dark Future" cards until your deck is totally depleted or down to a couple of cards. (You may use debug_card("Dark Future") to give yourself a sufficient number of them.)
  4. Summon a "Herald of Jurex" creature. Its energy counter should be updated via static effect whenever the player takes damage.
  5. Play another "Dark Future" card.
  6. Observe that the energy counter has not updated on the Herald of Jurex. Possible reason? static effects not being recalculated after delayed_command.
  7. Move the Doomsday Clockwork forward.
  8. Observe that the energy counter has now updated on the Herald of Jurex.

Note: I added a workaround so that you are still able to activate the Herald of Jurex's Deplete Shell ability even though the energy level was not updated via static effect.