- Joined
- Nov 15, 2010
- Messages
- 112
Hey guys, I'm working with my new spell, so i wanna make sure if this is right or not...
The spell is like this;
The caster targets a point and deals damage to enemies at the point, that's mean when the caster cast the spell, he creates a dummy at the point and then the dummy cast a dummy spell to damage the enemies....
Is the code is like this:
PS: My JNGP has errors like his case....
The spell is like this;
The caster targets a point and deals damage to enemies at the point, that's mean when the caster cast the spell, he creates a dummy at the point and then the dummy cast a dummy spell to damage the enemies....
Is the code is like this:
JASS:
library DarknessBlaze
function DarknessBlaze_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A001'
endfunction
globals
private integer DUMMY = 'h000'
private integer DUMMY_SPELL = 'A021'
private string ORDER = "thunderclap"
endglobals
function DarknessBlaze_Actions takes nothing returns nothing
local location l = GetSpellTargetLoc
local unit d
set d = CreateUnitAtLoc(p, DUMMY, l, 0)
call UnitAddAbility(d, DUMMY_SPELL)
call UnitApplyTimedLife(d, 'BTLF', 1.50)
call IssueImmediateOrder(d, ORDER)
endfunction
endlibrary
PS: My JNGP has errors like his case....