Bug - Fixed Wandering Monster handling

Xande1

Member
I'm short on time right now, so I can't investigate thoroughly, but I thought I'd get the ball rolling:

On r18328
Fought a witchess piece and 'winked at' it with my Reanimator. Fought another witchess piece immediately after, and got a DEBUG log (attached), and mafia did't put combat buttons at the top of the combat, so I handled it manually. Fought another witchess piece, same behavior. Went to an overgrown shrine (adventure.php), to start the wandering monster counter, and my next 2 witchess piece fights did not generate errors. So the problem appears to be related to doing stuff with the wandering monster counting pending but not yet started (under the new code). I'll be back around this evening to provide more info.

PS - here's the GCLI output before and during the bug, in case it clarifies what was going on:

Code:
[8067] Your Witchess Set
Encounter: Play against the Witchess Pieces
Encounter: Witchess Bishop
Round 0: Baradur wins initiative!
Round 1: Baradur casts WINK AT!
Round 2: You point a finger at Tobert, then at your opponent. Tobert nods and begins calculating how much glow-juice he'll need to reanimate him.
Round 2: Vaxvux shakes loose a considerable quantity of spice. You conjure up a canister and collect it.
You acquire an item: spices
Round 2: Baradur executes a macro!
Round 2: Baradur tries to steal an item!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 2: Baradur casts POCKET CRUMBS!
Round 3: Witchess Bishop drops 136 attack power.
Round 3: Witchess Bishop drops 123 defense.
You acquire an item: high-calorie sugar substitute
Round 3: Baradur attacks!
Round 4: Witchess Bishop takes 787 damage.
Round 4: Baradur wins the fight!
After Battle: Vaxvux demonstrates a dance of celebration from his native land. Translated into couscous, it's basically incomprehensible.
You acquire an item: Sacramento wine
You acquire an item: oil-filled donut
After Battle: Tobert drags your opponent off the battlefield to reanimate him with dark magic totally science.
After Battle: Tobert shouts, "It's all so clear now! One part hydrogen dioxide to one part sodium chloride!" and smiles at his cleverness. (+9 Stats)
After Battle: You gain 40 Muscleboundness
After Battle: You gain 135 Wizardliness
After Battle: You gain 44 Roguishness

[8067] Your Witchess Set
Encounter: Play against the Witchess Pieces
Unexpected error, debug log printed.
Encounter: Witchess Bishop
Unexpected error, debug log printed.
Round 0: Baradur attacks!
Encounter: Witchess Bishop
Unexpected error, debug log printed.

[8067] Your Witchess Set
Encounter: Play against the Witchess Pieces
Unexpected error, debug log printed.
Encounter: Witchess Knight
Unexpected error, debug log printed.
Round 0: Baradur attacks!
Encounter: Witchess Knight
Unexpected error, debug log printed.

[8067] An Overgrown Shrine (Southeast)
Encounter: Fire When Ready
 

Attachments

  • DEBUG_20171221.txt
    17.3 KB · Views: 29
Top