New Premium Module: Tyrants of the Moonsea! Read More
"GetIsImmune" for a damage type - how to?
I'm looking for a scripting way to determine if a creature has a damage type immunity. GetIsImmune doesn't seem to work for damage types, e.g., fire. Is there any quick way to check? I'm just wondering if there is a command I am not finding - or is the best way to just cycle through effects, probably with a helper function?
My use case is I want a script against dragons, and check their immunities / vulnerabilities via script, e.g., if there is a red dragon I want to be able to discover via script it has 50% immunity to DAMAGE_TYPE_FIRE, and optionally a bonus would be if I could also discover its 50% vulnerability to DAMAGE_TYPE_COLD. Thanks so much!