- Joined
- May 1, 2008
- Messages
- 1,605
Yes, about this error massage I have a question. This error massage comes up in this part of my spell:
The error comes up, if I add "GetTriggerUnit()"
Now I learned it like this, that this function gives one or more arguments to the create method and my create native is this:
Now, if I delete "GetTriggerUnit()", the error is gone, but I still need this argument, to give it to the create method or not? =O Because when I cast nothing happen, I search for mistakes now (because JassHelper say everything is fine and I was wondering first about this part)
[It's my first time with "thistype", else it returns the name of the spell and then I don't get any error.
Hope someone can help with this
Greetings and Peace
Dr. Boom
JASS:
private function ESCast takes nothing returns boolean
if GetSpellAbilityId() == SPELL_ID then
call ElementalSpin.create(GetTriggerUnit())
endif
return false
endfunction
Now I learned it like this, that this function gives one or more arguments to the create method and my create native is this:
JASS:
static method ESCreate takes unit caster returns thistype
Now, if I delete "GetTriggerUnit()", the error is gone, but I still need this argument, to give it to the create method or not? =O Because when I cast nothing happen, I search for mistakes now (because JassHelper say everything is fine and I was wondering first about this part)
[It's my first time with "thistype", else it returns the name of the spell and then I don't get any error.
Hope someone can help with this
Greetings and Peace
Dr. Boom