Valkyrie: [Bug] DefeatedMonster<xxx> triggered event in Monster Phase not correctly handled

Created on 5 Sep 2020  路  8Comments  路  Source: NPBruce/valkyrie

Describe the bug

The bug was initially found on scenario Disturbance at the Docks. A player was attacked by a Monster, but the damage from the monster backfired back on the monster, killing it in the process. When that monster is killed, an event is activated by DefeatedMonster trigger. This should display a message to hand out a quest item and increase a variable by 1. A second monster (of a different type) was present at the moment the first one died.
The second monsters' activation prevented the message from being displayed. The variable is increased by 1, so the event is triggered, but the message was lost.

Scenario

Found in Disturbance at the Docks, but all scenarios that use the DefeatedMonster trigger are affected.

Steps to reproduce the behavior:

  1. Quick to reproduce with Disturbance at the docks: From the start position, move one tile to the right (east street)
  2. Click on the explore button to open the door -> A cultist spawns
  3. Click a couple of times on "next round" until another (random) monster spawns)
  4. Then Kill cultist in the Monster Phase!!!

Expected behavior

DefeatedMonsterCultist trigger activates an event that displays a message handing out a quest item (with a continue button). The variable GrotesqueStonesFound increases by one.

What actually happens is that the second monster's activation prevents the message from being displayed. The Event trigger is called because, in the Log function, you can actually see the variable GrotesqueStonesFound increase 1.

LogFile

Screenshots

Valkyrie Version

2.4.09

Desktop

  • OS: Windows
  • Browser n.a.
  • Version n.a.

Additional context

bug

Most helpful comment

I knocked together a quick test scenario to confirm this bug is happening.
Please note it only occurs in the Monster Phase and not the Investigator Phase,

All 8 comments

I knocked together a quick test scenario to confirm this bug is happening.
Please note it only occurs in the Monster Phase and not the Investigator Phase,

@NicolaZee Can you please share your test scenario to make it easier to investigate and fix the issue?

Happy to oblige.

DefeatedMonsterExample.zip

Related to #982 .
I have a fix, but I think it's good to test this more.
Maybe with event without text, just audio or any other specific behaviour when monster is defeated

If you have some time for a test, here is a pre release :
https://github.com/NPBruce/valkyrie/releases/tag/prerelease%2F2.4%2Fv2.4.10a

I've given it a quick test and it seems to be OK.
I will try to fit in a game or two of Mansions this week but I am playing the game much less than I used to.
Hopefully antontimmermans will give it a more thorough test as it is affecting his scenario.
:)

Sorry for the late response, I was on a short holiday.

I have tried to make it go wrong on 2.4.10 but was unsuccessful :)

Well done, and thank you

I'll close this up then?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrismaliszewski picture chrismaliszewski  路  7Comments

EMILIPULIDO picture EMILIPULIDO  路  8Comments

Hacai666 picture Hacai666  路  7Comments

jlederer2 picture jlederer2  路  7Comments

BenRQ picture BenRQ  路  3Comments