-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Metatable:Spell
Stefan A. Brannfjell edited this page Mar 15, 2020
·
2 revisions
The Spell metatable. Revscriptsys interface
local spell = Spell("incantation words")
local spell = Spell("spell name")
name
id
group
cooldown
groupCooldown
level
magicLevel
mana
manaPercent
health
healthPercent
soul
range
isPremium
isEnabled
needTarget
needWeapon
needLearn
isSelfTarget
isBlocking
isAggressive
vocation
words
needDirection
hasParams
hasPlayerNameParam
needCasterTargetOrDirection
isBlockingWalls
runeId
charges
allowFarUse
blockWalls
checkFloor
Description: Get or set the spell name
Parameters:Returns: N/A
- (optional) spell_name - No description
Example:
for _, spell in ipairs(player:getInstantSpells()) do
print(spell:name())
end
Added in version: 1.0