| 06-23-2006, 10:51 AM | #2 |
I don't know much about how this trigger is working, and don't know a whole lot about certain variable types, but could it be possible that without clearing these variables, something went wrong? Maybe you did too, i don't really know. I am tired too. Set Caster=(Casting unit) Set Temp_Target=(Target unit of ability being cast) I think the second one is ok, but you never cleared the variable labled Caster, did you? |
| 06-23-2006, 10:56 AM | #3 |
well, i dont think there would be any need to clear the caster variable. Since its a global varibale it can just be reassigned the next time the spell is casted. Atleast as far as i know, someone correct me if im wrong. |
| 06-23-2006, 11:40 AM | #4 |
Clearing it wont matter since you reset it the next instance of the spell. It's only a problem if you can cast another time before the spell finishes the first time. I recommend setting (last created unit) to a variable as well. GetLastCreatedUnit() is problematic in many cases. Also, TriggerSleepAction(...) is problematic in most cases too since it's delayed. [Im referring to the wait] Perhaps consider using a countdown timer instead. Other than that, it looks ok to me. I would imagine some other trigger must interfere if this isnt working past the first time. Either that or what I noted above. |
