League-of-Foundry-Developers / fvtt-module-trigger-happy

Trigger Happy! FVTT Triggering system
Creative Commons Attribution 4.0 International
28 stars 12 forks source link

Movement trigger does not consider the elevation. #91

Open lucasmiranda2711 opened 2 years ago

lucasmiranda2711 commented 2 years ago

While trigging an effect due to movement I'd like to trigger it only if the token trigger is in the same elevation. A character flying should't trigger a spike trap for example. I think it would be accomplished by considering the placeable.data.elevation of token documents on the _placeableContains method. For the other kinds of tokens,

ps: for the other kinds of documents (to me not important at the moment) if using the module levels I think it would be possible considering the placeable.data.flags.levels.rangeBottom and placeable.data.flags.levels.rangeTop