- Joined
- Jun 22, 2004
- Messages
- 109
hey peeps heres a spell i made up...im having a couple of probs with it.. firstly after its done going throught every interger when the spell has finished its trigger, the units created do not retain the level of the original hero, secondly the dummy abulity i added does not go away, it stays there making it possible to click it and recast the spell. heres my "code" (duno how to use jass)
Mirror Split
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Shadow Image
(Level of Shadow Image for (Casting unit)) Greater than or equal to 1
Actions
Set MirrorSplitCaster = (Triggering unit)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Death's Shadow)) and do (Actions)
Loop - Actions
Set Shadowdummyunit = (Picked unit)
Unit Group - Add Shadowdummyunit to MirrorsplitGroup
Unit - Order Shadowdummyunit to Neutral Pandaren Brewmaster - Storm, Earth, And Fire
Hero - Set Shadowdummyunit Hero-level to ((Hero level of MirrorSplitCaster) x 1), Hide level-up graphics
Wait 1.00 seconds
Wait 6.00 seconds
Unit Group - Pick every unit in MirrorsplitGroup and do (Unit - Remove Shadow Image Dummy from Shadowdummyunit)
Wait 2.00 seconds
Unit Group - Remove all units from MirrorsplitGroup
Mirror Split
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Shadow Image
(Level of Shadow Image for (Casting unit)) Greater than or equal to 1
Actions
Set MirrorSplitCaster = (Triggering unit)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Death's Shadow)) and do (Actions)
Loop - Actions
Set Shadowdummyunit = (Picked unit)
Unit Group - Add Shadowdummyunit to MirrorsplitGroup
Unit - Order Shadowdummyunit to Neutral Pandaren Brewmaster - Storm, Earth, And Fire
Hero - Set Shadowdummyunit Hero-level to ((Hero level of MirrorSplitCaster) x 1), Hide level-up graphics
Wait 1.00 seconds
Wait 6.00 seconds
Unit Group - Pick every unit in MirrorsplitGroup and do (Unit - Remove Shadow Image Dummy from Shadowdummyunit)
Wait 2.00 seconds
Unit Group - Remove all units from MirrorsplitGroup