Spell Payload
When creating a new spell, you can configure its behavior using the payload table. Here are all available options:
Payload Options
Option | Type | Default | Description |
---|---|---|---|
ignoreCasting | boolean | false | Ignore if player is casting |
ignoreChanneling | boolean | false | Ignore if player is channeling |
ignoreCost | boolean | false | Ignore resource costs |
ignoreFacing | boolean | false | Ignore facing requirements |
ignoreMoving | boolean | false | Ignore movement restrictions |
isSkillshot | boolean | false | Treat as skillshot spell |
maxOffset | number | 0 | Maximum targeting offset |
minOffset | number | 0 | Minimum targeting offset |
nextMelee | boolean | false | Queue for next melee |
radius | number | 0 | Spell effect radius |
queued | boolean | false | Allow spell queueing |
timeToHit | number | 0 | Time until spell impact |
ignoreUsable | boolean | false | Ignores usable check |
angleCallback | function|number | nil | Custom angle callback function or direct angle value in radians |
facehack | boolean | false | Enable automatic facing toward target |
Example Usage
local spell = Aurora.SpellHandler.NewSpell(spellID, {
ignoreFacing = true,
ignoreMoving = true,
isSkillshot = true,
radius = 8,
maxOffset = 30
})