Skip to content

GameCalculationConditional

Inheritance 1 ancestor · 2 siblings

Class Documentation

Edit documentation

A game calculation that selects one of two other calculations of the same owner with a cast requirement.

The client selects the calculation on every evaluation:

  • If the caster is not a unit, or mConditionalCalculationRequirements is not set, it selects mDefaultGameCalculation.
  • Otherwise it evaluates the requirement, with its mInvertResult applied. If the requirement passes, it selects mConditionalGameCalculation. If it fails, it selects mDefaultGameCalculation.

The client then looks up the selected name in the calculations of the owner and evaluates it with the same caster, owner, spell slot and spell level. The value is 0 if the name does not resolve or if the selected calculation is not a GameCalculation.

Properties

UseTargetForRequirements

Bool = false
15.11
Edit documentation

When set, the requirement tests the target of the context instead of the caster.

mConditionalGameCalculation

Hash = "0x0"
Edit documentation

Name of the calculation that is used when the requirement passes.

mDefaultGameCalculation

Hash = "0x0"
Edit documentation

Name of the calculation that is used when the requirement fails or cannot be evaluated.