Skip to content

ContextualConditionCastTarget

Inheritance 1 ancestor · 62 siblings

Class Documentation

Edit documentation

A condition that tests the relation of the cast target of the situation to the unit that the situation belongs to. The target has exactly one relation:

Relation Target
self the unit itself
ally another unit of the same team
enemy a unit of another team

Each flag is compared with its relation: IsSelf with self, IsAlly with ally and IsEnemy with enemy. ConditionRelationship combines the three results.

Properties

ConditionRelationship

U32 = 0
Edit documentation

How the three flag tests combine.

Value Name Passes when
0 And every flag equals its relation
any other Or at least one flag equals its relation

With And, set exactly one flag. With Or, a flag that is false also matches each relation that is false. The Or test fails only when every flag is the opposite of its relation.