APN-Pucky / tyrant_optimize

MIT License
15 stars 7 forks source link

Barrier did not trigger first turn #45

Closed TrevorNBudd closed 1 year ago

TrevorNBudd commented 1 year ago
TUO v4.8.0> .\tuo-debug.exe "Cyrus[1110], Arctis Half-track" "Maion[1022], Loki the Trickster" +v sim 1
Your Deck:1: Deck: WChJSYh
Cyrus, Arctis Half-track
Cyrus: hp:31 imperial, Heal imperial 5, Mortar 3
  Arctis Half-track: 20/55/2 imperial, Barrier 60, Weaken all 30, Mortar all 30

Enemy's Deck:1: Deck: e/VQeh
Maion, Loki the Trickster
Maion: hp:32 righteous, Counter 5, Rally all righteous 2
  Loki the Trickster: 5/15/0 vindi progenitor, (On Play)Sunder all 3, Bravery 6, Hunt 7

RNG seed 887107680
------------------------------------------------------------------------
TURN 1 begins for P0 Commander [Cyrus hp:31]
P0 Commander [Cyrus hp:31] plays Assault 0 [Arctis Half-track: 20/55/2 imperial, Barrier 60, Weaken all 30, Mortar all 30]

// Should barrier have triggered above?

TURN 1 ends for P0 Commander [Cyrus hp:31]
------------------------------------------------------------------------
TURN 2 begins for P1 Commander [Maion hp:32]
P1 Commander [Maion hp:32] plays Assault 0 [Loki the Trickster: 5/15/0 vindi progenitor, (On Play)Sunder all 3, Bravery 6, Hunt 7]
P1 Assault 0 [Loki the Trickster att:[[5(base)]]=5 hp:15] activates Bravery 6
P1 Commander [Maion hp:32] Rally 2 on P1 Assault 0 [Loki the Trickster att:[[5(base)+[6(perm)]]]=11 hp:15]
P1 Assault 0 [Loki the Trickster att:[[5(base)+[6(perm)]]+2(temp)]=13 hp:15] attacks P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:55 cd:2] for 13 damage

// No barrier so card got damaged.

P1 Assault 0 [Loki the Trickster att:[[5(base)+[6(perm)]]+2(temp)]=13 hp:15] hunts P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:42 cd:2] for 7 damage

// No barrier so card got damaged again. Should it have triggered after first attack?

P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:35 cd:2] protects itself for 120 (barrier 60 x 2 damage taken)
TURN 2 ends for P1 Commander [Maion hp:32]
------------------------------------------------------------------------
TURN 3 begins for P0 Commander [Cyrus hp:31]
P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:35 cd:2, protected 60] reduces its timer

// Barrier active now, so this looks correct.

P0 Commander [Cyrus hp:31] Heal 5 on P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:35 cd:1, protected 60]
P0 Commander [Cyrus hp:31] Mortar 3 on P1 Assault 0 [Loki the Trickster att:[[5(base)+[6(perm)]]]=11 hp:15]
TURN 3 ends for P0 Commander [Cyrus hp:31]
------------------------------------------------------------------------
TURN 4 begins for P1 Commander [Maion hp:32]
P1 Assault 0 [Loki the Trickster att:[[5(base)+[6(perm)]]]=11 hp:13] activates Bravery 6
P1 Commander [Maion hp:32] Rally 2 on P1 Assault 0 [Loki the Trickster att:[[5(base)+[12(perm)]]]=17 hp:13]
P1 Assault 0 [Loki the Trickster att:[[5(base)+[12(perm)]]+2(temp)]=19 hp:13] attacks P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:40 cd:1, protected 60] fo
r 19-[60(protected)]=0 damage
P1 Assault 0 [Loki the Trickster att:[[5(base)+[12(perm)]]+2(temp)]=19 hp:13] hunts P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:40 cd:1, protected 60] for 
0 damage

// This looks correct. 0 damage from 2 attacks because barrier worked as expected

TURN 4 ends for P1 Commander [Maion hp:32]

// This happens even when the update-barrier-each-turn flag is used.

TUO v4.8.0> .\tuo-debug.exe "Cyrus[1110], Arctis Half-track" "Maion[1022], Loki the Trickster" +v sim 1 update-barrier-each-turn
Your Deck:1: Deck: WChJSYh
Cyrus, Arctis Half-track
Cyrus: hp:31 imperial, Heal imperial 5, Mortar 3
  Arctis Half-track: 20/55/2 imperial, Barrier 60, Weaken all 30, Mortar all 30

Enemy's Deck:1: Deck: e/VQeh
Maion, Loki the Trickster
Maion: hp:32 righteous, Counter 5, Rally all righteous 2
  Loki the Trickster: 5/15/0 vindi progenitor, (On Play)Sunder all 3, Bravery 6, Hunt 7

RNG seed 3983414880
------------------------------------------------------------------------
TURN 1 begins for P0 Commander [Cyrus hp:31]
P0 Commander [Cyrus hp:31] plays Assault 0 [Arctis Half-track: 20/55/2 imperial, Barrier 60, Weaken all 30, Mortar all 30]
TURN 1 ends for P0 Commander [Cyrus hp:31]
------------------------------------------------------------------------
TURN 2 begins for P1 Commander [Maion hp:32]
P1 Commander [Maion hp:32] plays Assault 0 [Loki the Trickster: 5/15/0 vindi progenitor, (On Play)Sunder all 3, Bravery 6, Hunt 7]
P1 Assault 0 [Loki the Trickster att:[[5(base)]]=5 hp:15] activates Bravery 6
P1 Commander [Maion hp:32] Rally 2 on P1 Assault 0 [Loki the Trickster att:[[5(base)+[6(perm)]]]=11 hp:15]
P1 Assault 0 [Loki the Trickster att:[[5(base)+[6(perm)]]+2(temp)]=13 hp:15] attacks P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:55 cd:2] for 13 damage
P1 Assault 0 [Loki the Trickster att:[[5(base)+[6(perm)]]+2(temp)]=13 hp:15] hunts P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:42 cd:2] for 7 damage
P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:35 cd:2] protects itself for 120 (barrier 60 x 2 damage taken)
TURN 2 ends for P1 Commander [Maion hp:32]
------------------------------------------------------------------------
TURN 3 begins for P0 Commander [Cyrus hp:31]
P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:35 cd:2, protected 60] reduces its timer
P0 Commander [Cyrus hp:31] Heal 5 on P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:35 cd:1, protected 60]
P0 Commander [Cyrus hp:31] Mortar 3 on P1 Assault 0 [Loki the Trickster att:[[5(base)+[6(perm)]]]=11 hp:15]
TURN 3 ends for P0 Commander [Cyrus hp:31]
------------------------------------------------------------------------
TURN 4 begins for P1 Commander [Maion hp:32]
P1 Assault 0 [Loki the Trickster att:[[5(base)+[6(perm)]]]=11 hp:13] activates Bravery 6
P1 Commander [Maion hp:32] Rally 2 on P1 Assault 0 [Loki the Trickster att:[[5(base)+[12(perm)]]]=17 hp:13]
P1 Assault 0 [Loki the Trickster att:[[5(base)+[12(perm)]]+2(temp)]=19 hp:13] attacks P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:40 cd:1, protected 60] for 19-[60(protected)]=0 damage
P1 Assault 0 [Loki the Trickster att:[[5(base)+[12(perm)]]+2(temp)]=19 hp:13] hunts P0 Assault 0 [Arctis Half-track att:[[20(base)]]=20 hp:40 cd:1, protected 60] for 0 damage
TURN 4 ends for P1 Commander [Maion hp:32]
APN-Pucky commented 1 year ago

Thanks. Fixed in version 6.3.0.