leberechtreinhold / dba3_tts

A module for playing De Bellis Antiquitatis 3 on Tabletop Simulator
https://steamcommunity.com/sharedfiles/filedetails/?id=2105272640
MIT License
3 stars 2 forks source link

Filter out non-bases when reorganizing casualty zone #35

Closed marcpawl closed 3 years ago

marcpawl commented 3 years ago

Non-base objects may not have the methods that are used for calculating size and position of where the casualties are to be placed.

The pcall would catch and report an error, but it did not help the user know what was wrong.

Test case is to insert dice into the casualties area and the use the context menu for set dead.