Skip to content

Included Scripts (Conditional)

NellsRelo edited this page Sep 11, 2023 · 1 revision

Conditionals

These functions return true or false depending on specific situations.


CL_ActiveWeaponHasStatus

Introduced: 2.0.4.2

Parameters: statusName: String representation of Status Name

Returns True if Active Weapon has Status


CL_AttackIsSpell

Introduced: 2.0.4.2

Parameters: None

Returns True if Attack Type is either a Melee Spell Attack or a Ranged Spell Attack.


CL_HasPactWeapon - Params: entity: Entity, mainHand

Introduced: 2.0.4.2

Parameters:

  • entity - Target object to check
  • mainHand - Boolean value for if weapon is in the mainhand or offhand slot.

Same as vanilla HasPactWeapon() function, only it uses CL_HasStatusFromArray by passing in an array of all PACT_BLADE statuses included in the library in addition to the vanilla version.


Clone this wiki locally