Returns whether the region is protected. Non-secure scripts may change certain properties of a protected region (e.g. showing or hiding it, changing its position, or altering frame attributes) only while the player is not in combat. Regions may be explicitly protected by Blizzard scripts or XML; other regions can become protected by becoming children of protected regions or by being positioned relative to protected regions.
Signature:
isProtected,
explicit
=
Region:IsProtected()
Returns:
isProtected
-1
if the region is protected; otherwisenil
(value
, 1nil)explicit
-1
if the region is explicitly protected;nil
if the frame is only protected due to relationship with a protected region (value
, 1nil)