melek / lib_elevation

A flexible elevation library for creating vertical encounter maps in MapTool.
4 stars 0 forks source link

State updates not working in some scenarios #16

Closed moonbrew closed 1 year ago

moonbrew commented 2 years ago
melek commented 2 years ago

@MoonBrew

I'm so far unable to replicate this on the demo campaign. On the Blue Water Inn map in the demo for 1.0b8 I tried:

Can you please check if your elevation tokens had the isElevationToken state before copying the layer's tokens? If not, the state might not get applied in this case (which would not be a bug per se, as you may have intentionally turned off that state).

As for why your elevation token would gain the isBelow state, that certainly should not happen - elevation tokens should never be assigned those states automatically and are ignored for the token-fading/elevation state calculation. However, if the token has an isBelow state before you copied the elevation (either purposefully or due to a bug in a past version), that state would be carried forward.

Let me know if you can still replicate this bug and the steps on the demo or a blank campaign (with the 3 elevation states added) so I can test and fix if there is a bug here!

melek commented 1 year ago

I still have not been able to replicate this in either 1.0b8 nor 1.0rc-1 during development. If you still have the issue, let me know along with how you replicate it and a copy of the affected map so I can test it!