- Joined
- Jun 13, 2008
- Messages
- 353
Hello,
I found an old spell in the section and wanted to modify and use it in my map.
spell: [vJass] Fiery Run v1.1b
What it does is simply, I just need to change it so the effect doesn't apply on the triggerUnit but on the summonedUnit that is created when I cast the spell.
Code compiles but just doesn't take any effect. Unit is created but nothing after that, no any effect whatsoever as if spell doesn't call the rest of the functions. What is it wrong that I'm doing?
I found an old spell in the section and wanted to modify and use it in my map.
spell: [vJass] Fiery Run v1.1b
What it does is simply, I just need to change it so the effect doesn't apply on the triggerUnit but on the summonedUnit that is created when I cast the spell.
Code:
private function Actions takes nothing returns nothing
// Starting the Spell
// If you want a modification that its targeted and the Targeted unit starts burning just change the GetTriggerUnit() to the unit you want
call CreateUnitAtLoc( GetOwningPlayer(GetTriggerUnit()),'hfoo', GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
call F.create(GetLastCreatedUnit(),GetUnitAbilityLevel(GetTriggerUnit(),Spell))
endfunction
Code compiles but just doesn't take any effect. Unit is created but nothing after that, no any effect whatsoever as if spell doesn't call the rest of the functions. What is it wrong that I'm doing?