View Single Post
Old 11-27-2008, 04:08 PM   #3 (permalink)
Registered User Eccho
User
 
Join Date: Nov 2006
Posts: 2,415
Eccho is a splendid one to behold (777)Eccho is a splendid one to behold (777)
PayPal Donor: This user has donated at least $20 to The Hive. Former Staff Member: This user used to be on the Hive Workshop staff. Zepyhr Challenge #5 - Winner: Frost Vortex 
Well, the spell can be active more than once, simply to demonstrate that it is Mui. It is up to the user to change the spell duration to something higher than 20 seconds.

I thought I did do so. And yeah I did. I decided not to make an OnDestroy method for the missile since it haves to loop through all missiles attached to the data struct anyways. Therefor, I nulled them before I call the 'native OnDestroy' at the end of the OrbitalMovement:
Jass:
set j = 0
loop
    exitwhen j >= dt.mtot
    call KillUnit(dt.m[j].mis)
    call DestroyTrigger(dt.m[j].trg)
    set dt.m[j].mis = null
    set dt.m[j].trg = null
    call dt.m[j].destroy()
    set j = j + 1
endloop

Thanks for the warning though:p
Eccho is online now