Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Actor onLoadSpell #20

Open
Silvest89 opened this issue Sep 21, 2012 · 1 comment
Open

Actor onLoadSpell #20

Silvest89 opened this issue Sep 21, 2012 · 1 comment

Comments

@Silvest89
Copy link

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
Copy link
Contributor

iryont commented Jan 4, 2014

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants