oEtG Forum

Opponents with purify counters die with positive HP

CaRmAgE

  • New Member
  • *
    • Posts: 2
I was in a match against a commoner that had 11 HP left and 2 purify counters :water. According to the text, I was to deal 10 total damage, but when I ended my turn, the game acted like I won, while the opponent still had 1 HP. Now, I don't know if the intended behavior is for the opponent to live or die in this scenario, but assuming the original Flash game's behavior, I would expect the AI to still be alive, because purify/poison was always calculated before any other source of damage. If the AI was supposed to die, then it probably should skip the purify step in this scenario.

Unfortunately, I wasn't expecting this to happen, so I didn't get a screenshot of the oddity in action. I did capture the replay JSON of the game, though, so hopefully, that will be good enough.

Code: [Select]
{"date":1622252890785,"seed":-2138751296,"players":[{"idx":1,"name":"CaRmAgE","user":"CaRmAgE","deck":"077ac057bu017al027ai037ae037ar027bd037ao037am027au017ak018pn"},{"idx":2,"ai":1,"name":"Rocky","deck":"01596015990159i0158p0258s0159k01591015980159g015950159a015950159i0158u0158q01590015980159101592015ii015is015i8015id015i5015ii015ia015i8015iq015ia014td034sa014te014sa014te014sa0c58o035i4018pp","hp":100,"drawpower":1,"markpower":1}],"moves":[{"x":"accept"},{"x":"accept","c":0,"t":0},{"x":"cast","c":14},{"x":"end"},{"x":"cast","c":80,"t":0},{"x":"cast","c":79,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":26},{"x":"end"},{"x":"cast","c":43,"t":26},{"x":"cast","c":87,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":18},{"x":"end"},{"x":"cast","c":61,"t":2},{"x":"cast","c":78,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":19},{"x":"end"},{"x":"cast","c":40,"t":0},{"x":"cast","c":76,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":3},{"x":"cast","c":22},{"x":"end"},{"x":"cast","c":50,"t":0},{"x":"cast","c":73,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":7},{"x":"cast","c":33},{"x":"end"},{"x":"cast","c":51,"t":0},{"x":"cast","c":71,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":30},{"x":"end"},{"x":"cast","c":42,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":6},{"x":"cast","c":31},{"x":"cast","c":22},{"x":"end"},{"x":"end","c":0,"t":0},{"x":"cast","c":29},{"x":"end"},{"x":"cast","c":57,"t":18},{"x":"cast","c":67,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":11},{"x":"cast","c":23},{"x":"cast","c":22},{"x":"cast","c":88},{"x":"end"},{"x":"cast","c":36,"t":19},{"x":"cast","c":51,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":32},{"x":"end"},{"x":"cast","c":46,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":23},{"x":"end"},{"x":"cast","c":59,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":20},{"x":"cast","c":92},{"x":"end"},{"x":"cast","c":85,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":5},{"x":"cast","c":25,"t":20},{"x":"end"},{"x":"cast","c":37,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":13},{"x":"cast","c":92},{"x":"cast","c":23},{"x":"cast","c":93},{"x":"end"},{"x":"cast","c":82,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":10},{"x":"cast","c":96},{"x":"end"},{"x":"end","c":0,"t":0},{"x":"cast","c":28},{"x":"end"}]}
« Last Edit: May 29, 2021, 03:42:55 am by serprex »


dragtom

  • New Member
  • *
    • Posts: 19
it is not obvious because there are no animations, but end-of-turn things actually happens in an order.
Poison damage (or purify counters) happen at the very end. The game does always calculate everything that happens, and shows you the result- but it does keep track of if someone dies.

In fact, you get extra electrum in this case: 'first one past the post'. (it also triggers if both players die 'at the same time'- but the player who dies last wins in this case).


serprex

  • Global Moderator
  • *****
    • Posts: 1486
Poison mechanic was revised since oetg's engine supports more than 2 players (granted, I never got the interface working to a point that this could be exposed)

As a result in oetg poison/purify counters apply at the very beginning of a player's turn