[#6154] Add new Region Behavior type for condition AE application#6822
Conversation
|
Any chance for more nuanced filtering as well? Such as by creature subtype (Wood-Elf, Orc, Goblin, etc)? |
Based on // TODO: Add FiltersField for arbitrary conditions once https://github.com/foundryvtt/dnd5e/issues/6672 is donein the code: yeah, eventually. |
|
Would this be able to handle something like Sorcerer's Careful Spell metamagic, that lets them designate specific creatures to be unaffected by an AoE? |
Adds a new Region Behavior that behaves the same as core's Apply Active Effect behavior but with some extra conditions that are evaluated before applying the effect. Tokens can be filtered by disposition, size, and creature type. Closes #6154
ade1639 to
25a0ece
Compare
Fyorl
left a comment
There was a problem hiding this comment.
Do we need an analogue to the core ApplyActiveEffectRegionBehaviorType's _onUpdate? This fires if the behaviour is updated such that tokens already inside the region need to be re-evaluated as to whether the region's criteria still apply to them.
We would factor out the effect creation and effect deletion marshalling from their respective methods so they can be called from _onUpdate.
Adds a new Region Behavior that behaves the same as core's Apply Active Effect behavior but with some extra conditions that are evaluated before applying the effect. Tokens can be filtered by disposition, size, and creature type.
Closes #6154