kandashi / Active-Auras

MIT License
29 stars 36 forks source link

Add creature subtypes to the type of creature option #318

Closed YenBenGrey closed 5 months ago

YenBenGrey commented 5 months ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like WHen I choose creature type, it works with the major creature types, however is it possible to be able to put sub-types in the box for example in my case 'humanoid(ratfolk)'

Describe alternatives you've considered I can't think of an alternative

Additional context N/A

MrPrimate commented 5 months ago

Use a custom evaluation condition, see the README here https://github.com/kandashi/Active-Auras#custom-evaluation-conditions for an example

YenBenGrey commented 5 months ago

So this should work for my example -

['humanoid','ratfolk'].includes(system.details?.type?.subtype ?? system.details?.race.toLowerCase())

And this should go in 'Custom Check'?

YenBenGrey commented 5 months ago

It does work, THANK YOU SO MUCH :-)