oEtG Forum

General Category => General Game Discussion => Topic started by: BGA_NICE99 on July 17, 2025, 02:44:08 pm

Title: Should I win? since the Writ of Vindication was triggered
Post by: BGA_NICE99 on July 17, 2025, 02:44:08 pm
I cast gravity pull on a high strength martyr, and there's a WoV on my field. I think I should win the game, but didn't. Why?

Here is the replay code
{"date":1752762953112,"seed":1066652331,"players":[{"idx":2,"ai":1,"name":"Mati94","deck":"0259f087780878q067840677h018pm05779","hp":140,"drawpower":2,"markpower":2},{"idx":1,"name":"BGA_NICE99","user":"BGA_NICE99","deck":"036qs046r00274d0677l047b1027h4027h6017jo017la017kg047kb018pi"}],"moves":[{"x":"accept","c":0,"t":0},{"x":"accept"},{"x":"cast","c":11,"t":0},{"x":"cast","c":48,"t":0},{"x":"cast","c":71,"t":0},{"x":"cast","c":6,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":97},{"x":"cast","c":73},{"x":"end"},{"x":"cast","c":38,"t":0},{"x":"cast","c":72,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":99},{"x":"cast","c":77},{"x":"end"},{"x":"cast","c":24,"t":0},{"x":"cast","c":55,"t":0},{"x":"cast","c":18,"t":0},{"x":"end","c":0,"t":0},{"x":"end"},{"x":"cast","c":22,"t":0},{"x":"cast","c":60,"t":0},{"x":"cast","c":51,"t":0},{"x":"cast","c":17,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":77,"t":83},{"x":"cast","c":83,"t":99},{"x":"end"},{"x":"cast","c":68,"t":0},{"x":"cast","c":40,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":76},{"x":"cast","c":84,"t":99},{"x":"cast","c":85,"t":99},{"x":"end"},{"x":"cast","c":36,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":82,"t":99},{"x":"end"},{"x":"cast","c":34,"t":0},{"x":"cast","c":32,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":94},{"x":"cast","c":80,"t":99},{"x":"cast","c":98},{"x":"end"},{"x":"cast","c":42,"t":0},{"x":"cast","c":71,"t":0},{"x":"cast","c":72,"t":0},{"x":"cast","c":68,"t":0},{"x":"cast","c":36,"t":0},{"x":"cast","c":34,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":94,"t":99},{"x":"end"},{"x":"cast","c":66,"t":0},{"x":"cast","c":37,"t":0},{"x":"end","c":0,"t":0},{"x":"end"},{"x":"cast","c":71,"t":0},{"x":"cast","c":72,"t":0},{"x":"cast","c":68,"t":0},{"x":"cast","c":36,"t":0},{"x":"cast","c":34,"t":0},{"x":"end","c":0,"t":0}]}

Edited for an additional example:
{"date":1753376441461,"seed":449529635,"players":[{"idx":2,"ai":1,"name":"IcamenaI","deck":"017jo017la027k0017k1048080d81q0180r0380h0280b06812018pi057k8","hp":170,"drawpower":2,"markpower":1},{"idx":1,"name":"BGA_NICE99","user":"BGA_NICE99","deck":"036qs046r00274d0677l047b1027h4027h6017jo017la017kg047kb018pi"}],"moves":[{"x":"accept","c":0,"t":0},{"x":"accept"},{"x":"cast","c":17,"t":0},{"x":"cast","c":19,"t":0},{"x":"cast","c":54,"t":0},{"x":"cast","c":55,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":87},{"x":"cast","c":100},{"x":"cast","c":81},{"x":"cast","c":101},{"x":"cast","c":86},{"x":"end"},{"x":"cast","c":13,"t":0},{"x":"end","c":0,"t":0},{"x":"end"},{"x":"cast","c":21,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":83},{"x":"end"},{"x":"cast","c":56,"t":0},{"x":"end","c":0,"t":0},{"x":"end"},{"x":"cast","c":44,"t":0},{"x":"cast","c":15,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":85},{"x":"end"},{"x":"cast","c":50,"t":0},{"x":"end","c":0,"t":0},{"x":"end"},{"x":"end","c":0,"t":40},{"x":"cast","c":108},{"x":"end"},{"x":"cast","c":80,"t":0},{"x":"cast","c":29,"t":80},{"x":"cast","c":68,"t":80},{"x":"cast","c":23,"t":0},{"x":"end","c":0,"t":0},{"x":"end"},{"x":"cast","c":51,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":95,"t":108},{"x":"end"},{"x":"cast","c":59,"t":0},{"x":"cast","c":3,"t":0},{"x":"end","c":0,"t":0},{"x":"cast","c":92,"t":108},{"x":"end"},{"x":"cast","c":46,"t":0},{"x":"cast","c":31,"t":0},{"x":"cast","c":9,"t":0},{"x":"cast","c":80,"t":31},{"x":"end","c":0,"t":0},{"x":"cast","c":105},{"x":"cast","c":89,"t":108},{"x":"cast","c":103},{"x":"end"},{"x":"cast","c":36,"t":0},{"x":"cast","c":80,"t":36},{"x":"end","c":0,"t":0},{"x":"cast","c":96,"t":108},{"x":"cast","c":106},{"x":"cast","c":103,"t":108},{"x":"end"},{"x":"cast","c":43,"t":0},{"x":"cast","c":60,"t":0},{"x":"cast","c":80,"t":108},{"x":"end","c":0,"t":0},{"x":"end"},{"x":"cast","c":77,"t":0},{"x":"cast","c":30,"t":108},{"x":"end","c":0,"t":0}]}
Title: Re: Should I win? since the Writ of Vindication was triggered
Post by: serprex on July 18, 2025, 06:12:54 pm
attacks are a queue, not a stack

https://github.com/serprex/openEtG/blob/6529bf5c0f645190a8c7a743965bfb13c1dd4d8c/src/rs/src/game.rs#L2687

when martyr dies its attack is queued, so it doesn't attack until after the opponent's creatures' attacks complete

(this used to not be the case, but when engine moved from JS to WASM stack overflows became prevalent, so this change was made to reduce recursion in engine)