Fix script local clear bug (shouldn't readjust array bound during the loop).
Damageonlanding now receives damage type correctly.
Authored by: utunnels 2011-09-17
Parent: [r3449]
Child: [r3451]