the Lumpy
►►►
- Reaction score
- 53
Yes, but I wouldn't have to make about 30 dummy units in the Object Editor. I'm testing it now.
Event
A unit begins the effect of ability
Conditions
Ability being cast equals to Load (dummy one)
Actions
Custom script: local unit caster = GetSpellAbilityUnit()
Custom script: local unit target = GetSpellTargetUnit()
Custom script: local boolean isFlying = IsUnitType(target, UNIT_TYPE_FLYING)
-------- - --------
Custom script: if isFlying then
Unit - Remove A flying unit classification from (target)
Unit - Add A ground unit classification to (target)
Custom script: endif
-------- - --------
Unit - Remove Load (dummy one) from (caster)
Unit - Add Load (Goblin sapper) to (caster)
-------- - --------
Unit - Order (caster) to Load (target)
-------- This waiting is merely for test purposes --------
Wait 1.0 seconds
-------- - --------
Unit - Remove Load (Goblin sapper) from (caster)
Unit - Add Load (dummy one) to (caster)
-------- - --------
Custom script: if isFlying then
Unit - Remove A ground unit classification from (target)
Unit - Add A flying unit classification to (target)
Custom script: endif
-------- - --------
Custom script: set target = null
Custom script: set caster = null