Skip to content

Commit

Permalink
Fix integration bug with Modifiers Matter (empty animations were play…
Browse files Browse the repository at this point in the history
…ed) (#171)

This prevents error messages from appearing in the console each time MM
triggers while this module is active. (except when Bless causes an MM
improvement, because that's the one animation that does exist)
  • Loading branch information
shemetz authored Dec 6, 2023
1 parent 0e627fb commit e8cb183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/modifiers-matter.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ self.pf2eAnimations.modifiersMatter = Hooks.on("modifiersMatter", ({
animationName = `Modifiers Matter: ${name}`
}

if (!name) {
if (!animationName) {
return pf2eAnimations.debug(`Modifiers Matter | No Animation Found for:`, `${name} (${significance})`);
} else {
AutomatedAnimations.playAnimation(
Expand Down

0 comments on commit e8cb183

Please sign in to comment.