I'm trying to make this spell... so far I have created a dummy unit at the center of my map with the ability polymorph. I have modified polymorph so that its range is 9999 cooldown 0 mana cost 0 upgrades 0. Then I used a modified version of the spell 'slow' for the autocast effect. This spell places a custom buff on the target called 'polymorphizm.' In order to cast polymorph on these buffed units I use the following trigger:
It does not work and I have tried many other variations of basically these same actions with no success. The enemy units are receiving the 'polymorphizm' buff but they aren't getting polymorphed by the dummy unit (which is owned by the same player as the unit autocasting the buff). any idea why this is not working?
Trigger:
- autopoly
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked unit) has buff Polymorphizm ) Equal to True
- Then - Actions
- Unit - Order morph_dummy to Human Sorceress - Polymorph (Picked unit)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
- Events
It does not work and I have tried many other variations of basically these same actions with no success. The enemy units are receiving the 'polymorphizm' buff but they aren't getting polymorphed by the dummy unit (which is owned by the same player as the unit autocasting the buff). any idea why this is not working?