Pf2eToolsOrg / Pf2eTools

A site dedicated to making playing games with your friends as easy as possible.
https://pf2etools.com/
MIT License
99 stars 62 forks source link

BUG-164 Failing to scale a creature #325

Closed crawltracker closed 2 months ago

crawltracker commented 1 year ago

Steps to reproduce Try to scale Duergar Bobardier

Severity High

Additional information Trying to scale a creature throws "TypeError: Cannot read properties of undefined (reading 'replace')" error. This bug seems to come from the fact that the scaler function ('_scaleEliteWeak') always tries to adjust the damage of the creature's attacks, but as is the case with Duegar Bombardier Ranged attack, if that attack does not have a 'Damage' entry, the code throws the error and doesn't scale the creature. I'm using the Pf2eTools app Version 0.8.4 with preloaded data on win10

crawltracker commented 2 months ago

Note - vauxs (Vauxs)

Resolved - https://github.com/Pf2eToolsOrg/Pf2eTools/pull/361