CBBPhoenix
New Member
- Reaction score
- 1
HI everyone. I am working on a spell that should cause all units affected to be polymorphed (using dummies). It is an AoE spell and my trigger looks like this.
The dummies are created but they do not polymorph the units in the units group. I have already checked whether the spell can be cast manually and it can. I guess the problem is the unit group thing but I can't really figure out why.
Anyone got a clue? Thanks in advance
Trigger:
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Multi Polymorph
- (Level of (Ability being cast) for (Casting unit)) Equal to 1
- Actions
- Wait 0.10 seconds
- Set Xsheepcaster = (Casting unit)
- Set Morphgroup = (Units in (Playable map area) matching ((((Matching unit) has buff Multi Polymorph ) Equal to True) and (((Matching unit) has buff Polymorph) Equal to False)))
- Unit - Create 1 Dummy unit (multisheep) for (Owner of Xsheepcaster) at (Position of Xsheepcaster) facing Default building facing degrees
- Set sheep1 = (Last created unit)
- Unit - Add Polymorph (dummy) (Neutral Hostile) to sheep1
- Unit - Create 1 Dummy unit (multisheep) for (Owner of Xsheepcaster) at (Position of Xsheepcaster) facing Default building facing degrees
- Set sheep2 = (Last created unit)
- Unit - Add Polymorph (dummy) (Neutral Hostile) to sheep2
- Unit - Create 1 Dummy unit (multisheep) for (Owner of Xsheepcaster) at (Position of Xsheepcaster) facing Default building facing degrees
- Set sheep3 = (Last created unit)
- Unit - Add Polymorph (dummy) (Neutral Hostile) to sheep3
- Unit - Create 1 Dummy unit (multisheep) for (Owner of Xsheepcaster) at (Position of Xsheepcaster) facing Default building facing degrees
- Set sheep4 = (Last created unit)
- Unit - Add Polymorph (dummy) (Neutral Hostile) to sheep4
- Unit - Order sheep1 to Human Sorceress - Polymorph (Random unit from Morphgroup)
- Unit - Order sheep2 to Human Sorceress - Polymorph (Random unit from Morphgroup)
- Unit - Order sheep3 to Human Sorceress - Polymorph (Random unit from Morphgroup)
- Unit - Order sheep4 to Human Sorceress - Polymorph (Random unit from Morphgroup)
The dummies are created but they do not polymorph the units in the units group. I have already checked whether the spell can be cast manually and it can. I guess the problem is the unit group thing but I can't really figure out why.
Anyone got a clue? Thanks in advance