GetCombatState

Gets the actor's current combat state.

Return ValueEdit

The actor's current combat state, which is one of the following values:

  • 0: Not in combat
  • 1: In combat
  • 2: Searching

BugEdit

This condition is unreliable the first time it is called after a certain amount of time has passed. If this condition is used in a place where it is frequently checked (for instance, as a spell condition on an ability, checking every second) it will probably be correct after the first iteration. But if it is used in a single shot spell, it may not be. Try adding multiple magic effects to your spell, each checking for this condition, and only making the last one actually do something.