[MoM] Check for beta talker on damage EoCs #77087
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Bugfixes "[MoM] Check for beta talker on damage EoCs"
Purpose of change
The
monster_takes_damage
EoCs also trigger if the monster suffers damage with no source (like the unviable portal life forms). If the damage has no source, they have no attacker, and the EoC checking the attacker for conditions fails to find anything, causing a talker error.Fixes #77085
Describe the solution
Make the first condition
has_beta
and only check effects on the beta talker if there is a beta talker to check effects on.Describe alternatives you've considered
Testing
Cannot load the provided save, but spawned in an alien meadow and waited for 20 hours while veiled butterflies flew around. No crashes.
Additional context
Sukkot starts tonight at sundown straight into Shabbat so it's going to be a few days until I can make sure this actually works.