Skip to content

IsCastingBoolDriver

Inheritance 4 ancestors · 50 siblings

Class Documentation

Edit documentation

Bool logic driver that is true while the owner unit's spellbook has an ongoing spell cast in a chosen slot. It reads the spellbook's current cast instance directly, so it tracks the cast itself - independent of any buff or animation the spell may also apply (compare HasBuffDynamicMaterialBoolDriver and IsAnimationPlayingDynamicMaterialBoolDriver).

Evaluation: the driver resolves the owner unit it is evaluated against and asks the unit's spellbook for the current cast instance. With no owner or no ongoing cast it returns false. Otherwise it returns whether the cast instance's slot equals SpellSlot. The driver special-cases the value 62 as a wildcard: true while any cast is ongoing - including basic attacks, which are spellbook casts too (slots 64-81).

"Ongoing" means the window in which the instance is the spellbook's active cast (cast time and channel). Missiles in flight and lingering spell effects are outside that window.

Properties

SpellSlot

U32 = 4294967295
Edit documentation

Spellbook slot to watch. The comparison against the current cast's slot is exact, so the driver only fires for casts from this one slot. 62 is the any-cast wildcard.

Slot layout: 0-3 basic abilities, 4-5 summoner spells, 6-12 item slots, 63 the champion passive, 64-81 basic-attack casts. See SpellBookIndex for the full addressing scheme. A spell cast by script (e.g. a champion SpellObject cast from a buff script) occupies whatever slot the script casts it into - ExtendedSpellSlotIntDriver reports the slot of the current cast and can be used to discover it.