APN-Pucky / tyrant_optimize

MIT License
15 stars 7 forks source link

Cards without Venom trying to apply Venom 0 - v6.3.0 #49

Closed TrevorNBudd closed 1 year ago

TrevorNBudd commented 1 year ago

I got a weird error with v6.3.0. It is testing for venom on a card that does have venom:

Your Deck:1: Deck: EAhGdCiGdCi
Halcyon, Furrage_Test, Furrage_Test
Halcyon: hp:61 legend imperial, Enhance all Stasis 9, Rally all imperial 6, Enrage imperial 10
  Furrage_Test: 1/400/4 imperial, Barrier 10, Armor 20, Absorb 5
  Furrage_Test: 1/400/4 imperial, Barrier 10, Armor 20, Absorb 5

Enemy's Deck:1: Deck: S/YGrZJbh
Malika, Trench Hurler, Prixis Worldbender
Malika: hp:30 raider, Counter 3, Heal raider 4, Strike 3
  Trench Hurler: 5/15/0 legend raider, Bravery 10, Pierce 13, Flurry every 2
  Prixis Worldbender: 15/50/2 mythic progenitor, Scavenge 15, Coalition 15, Flurry 2 every 3

RNG seed 2972837496
------------------------------------------------------------------------
TURN 1 begins for P0 Commander [Halcyon hp:61]
P0 Commander [Halcyon hp:61] plays Assault 0 [Furrage_Test: 1/400/4 imperial, Barrier 10, Armor 20, Absorb 5]
P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:400 cd:4] gets barrier protection 10 per turn
TURN 1 ends for P0 Commander [Halcyon hp:61]
------------------------------------------------------------------------
TURN 2 begins for P1 Commander [Malika hp:30]
P1 Commander [Malika hp:30] plays Assault 0 [Prixis Worldbender: 15/50/2 mythic progenitor, Scavenge 15, Coalition 15, Flurry 2 every 3]

// Prixis does not have venom

P1 Commander [Malika hp:30] Strike 3 on P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:4, protected 10]
P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:4, protected 10] absorbs 3 damage
TURN 2 ends for P1 Commander [Malika hp:30]

...

TURN 6 begins for P1 Commander [Malika hp:30]
P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:50 cd:1] reduces its timer
P1 Assault 1 [Trench Hurler att:[[5(base)]]=5 hp:15] loses Bravery (weak blocker P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:3, protected 10])
P1 Commander [Malika hp:30] Strike 3 on P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:2, protected 10]
P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:2, protected 10] absorbs 3 damage
P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:50] attacks P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:2 cd:2, protected 10] for 15+30(coalition/x2)-[20(armor)+10(protected)]=15 damage
P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:50] venoms P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:385 absorb:2 cd:2, protected 10] by 0

// Error: Prixis trying to use venom 0. The result is correct but this should not have happened.

P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:385 absorb:2 cd:2, protected 10] protects itself for 10 (barrier 10 x 1 damage taken)
P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:50] activates Flurry x 2
P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:50] attacks P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:385 absorb:2 cd:2, protected 20] for 15+30(coalition/x2)-[20(armor)+20(protected)]=5 damage
P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:50] venoms P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:380 absorb:2 cd:2, protected 20] by 0

// Error: Prixis trying to use venom again.

P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:380 absorb:2 cd:2, protected 20] protects itself for 10 (barrier 10 x 1 damage taken)
P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:50] attacks P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:380 absorb:2 cd:2, protected 30] for 15+30(coalition/x2)-[20(armor)+30(protected)]=0 damage
P1 Assault 1 [Trench Hurler att:[[5(base)]]=5 hp:15] attacks P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:3, protected 10] for 5-[20(armor)+10(protected)-13(pierce)]=0 damage
TURN 6 ends for P1 Commander [Malika hp:30]
------------------------------------------------------------------------
TURN 7 begins for P0 Commander [Halcyon hp:61]
P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:380 absorb:5 cd:2] gets barrier protection 10 per turn
P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:380 absorb:5 cd:2, protected 10] reduces its timer
P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:3] gets barrier protection 10 per turn
P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:3, protected 10] reduces its timer
TURN 7 ends for P0 Commander [Halcyon hp:61]
------------------------------------------------------------------------
TURN 8 begins for P1 Commander [Malika hp:30]
P1 Assault 1 [Trench Hurler att:[[5(base)]]=5 hp:15] loses Bravery (weak blocker P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:2, protected 10])
P1 Commander [Malika hp:30] Strike 3 on P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:2, protected 10]
P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:2, protected 10] absorbs 3 damage
P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:50] attacks P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:380 absorb:5 cd:1, protected 10] for 15+30(coalition/x2)-[20(armor)+10(protected)]=15 damage
P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:50] venoms P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:365 absorb:5 cd:1, protected 10] by 0

// Error: Prixis trying to use venom again in a different turn.

P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:365 absorb:5 cd:1, protected 10] protects itself for 10 (barrier 10 x 1 damage taken)
P1 Assault 1 [Trench Hurler att:[[5(base)]]=5 hp:15] attacks P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:2 cd:2, protected 10] for 5-[20(armor)+10(protected)-13(pierce)]=0 damage
P1 Assault 1 [Trench Hurler att:[[5(base)]]=5 hp:15] activates Flurry x 1
P1 Assault 1 [Trench Hurler att:[[5(base)]]=5 hp:15] attacks P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:2 cd:2, protected 10] for 5-[20(armor)+10(protected)-13(pierce)]=0 damage
TURN 8 ends for P1 Commander [Malika hp:30]
------------------------------------------------------------------------
TURN 9 begins for P0 Commander [Halcyon hp:61]
P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:365 absorb:5 cd:1] gets barrier protection 10 per turn
P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:365 absorb:5 cd:1, protected 10] reduces its timer
P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:2] gets barrier protection 10 per turn
P0 Assault 1 [Furrage_Test att:[[1(base)]]=1 hp:400 absorb:5 cd:2, protected 10] reduces its timer
P0 Commander [Halcyon hp:61] Rally 6 on P0 Assault 0 [Furrage_Test att:[[1(base)]]=1 hp:365 absorb:5, protected 10]
P0 Commander [Halcyon hp:61] Enrage 10 on P0 Assault 0 [Furrage_Test att:[[1(base)]+6(temp)]=7 hp:365 absorb:5, protected 10]
P0 Assault 0 [Furrage_Test att:[[1(base)]+6(temp)]=7 hp:365 absorb:5, protected 10, enraged 10] attacks P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:50] for 7 damage
P0 Assault 0 [Furrage_Test att:[[1(base)]+6(temp)]=7 hp:365 absorb:5, protected 10, enraged 10] venoms P1 Assault 0 [Prixis Worldbender att:[[15(base)]]=15 hp:43] by 0

_// Error: FurrageTest card tries to use venom.

TURN 9 ends for P0 Commander [Halcyon hp:61]

In this test, Trench hurler was the only assault that did not try to use venom.

APN-Pucky commented 1 year ago

If I am understanding this right it does not make a difference here, but also unnecessarily spams the log.