opentibia / server

An open source server for the MMORPG Tibia.
GNU General Public License v2.0
414 stars 149 forks source link

Actor onLoadSpell #20

Open Silvest89 opened 11 years ago

Silvest89 commented 11 years ago

function Actor.onLoadSpell(event) --print("loading spell - " .. event.name)

local spell = nil

if event.configureSpell then    
    spell = Spell:new(event.name)
    spell.aggressive  = event.aggressive
    spell.words       = event.name
    spell.damageType  = event.damageType or COMBAT_FIREDAMAGE

damageType is always NIL so all damagetype will turn to the combat firedamage effect.

iryont commented 10 years ago

It was commented in source code, probably by Remere himself.

I'm not really sure why, so I did remove the comment.