Returns whether protected properties of the region can be changed by non-secure scripts. Returns 1 for non-secure frames or for secure frames while the player is not in combat.

Signature:

canChange = Region:CanChangeProtectedState()

Returns:

  • canChange - 1 if addon scripts are currently allowed to change protected properties of the region (e.g. showing or hiding it, changing its position, or altering attributes); otherwise nil (value, 1nil)