Skip to main content

Spell Payload

When creating a new spell, you can configure its behavior using the payload table. Here are all available options:

Payload Options

OptionTypeDefaultDescription
ignoreCastingbooleanfalseIgnore if player is casting
ignoreChannelingbooleanfalseIgnore if player is channeling
ignoreCostbooleanfalseIgnore resource costs
ignoreFacingbooleanfalseIgnore facing requirements
ignoreMovingbooleanfalseIgnore movement restrictions
isSkillshotbooleanfalseTreat as skillshot spell
maxOffsetnumber0Maximum targeting offset
minOffsetnumber0Minimum targeting offset
nextMeleebooleanfalseQueue for next melee
radiusnumber0Spell effect radius
queuedbooleanfalseAllow spell queueing
timeToHitnumber0Time until spell impact
ignoreUsablebooleanfalseIgnores usable check
angleCallbackfunction|numbernilCustom angle callback function or direct angle value in radians
facehackbooleanfalseEnable automatic facing toward target

Example Usage

local spell = Aurora.SpellHandler.NewSpell(spellID, {
ignoreFacing = true,
ignoreMoving = true,
isSkillshot = true,
radius = 8,
maxOffset = 30
})