- Joined
- Apr 7, 2016
- Messages
- 13
So I've been thinking, if it is possible to make an effect like: "Mark an enemy unit. Whenever any enemy unit casts a spell on your hero, cast a copy of it on the marked enemy"
So here is what I had in mind it may look like:
Event:
-Unit activates (uses) a spell
Conditions:
-Marked Unit is alive
and
-Casting (triggering) unit belongs to an enemy of owner target of ability being cast
Actions:
-Set CopyOrigin = Casting (triggering) unit
-Set CopySpell = Ability being cast
-Set CopyLevel = Level of CopySpell for CopyOrigin
-Create a unit "Dummy Caster" for owner of target of ability at position of MarkedUnit
-Set CopyCaster = Last Created Unit
-Add CopySpell to CopyCaster
-Set level of CopySpell for CopyCaster to CopyLevel
--------------------------------
and that is where've I met a problem: I don't know for sure what kind of ability will be cast so I can't set one defined order and if I set CopyOrder = Issued order (or whatever) I still can't access it via "-Issue order targeting a unit"
With that given can anyone help me with that problem, please?
So here is what I had in mind it may look like:
Event:
-Unit activates (uses) a spell
Conditions:
-Marked Unit is alive
and
-Casting (triggering) unit belongs to an enemy of owner target of ability being cast
Actions:
-Set CopyOrigin = Casting (triggering) unit
-Set CopySpell = Ability being cast
-Set CopyLevel = Level of CopySpell for CopyOrigin
-Create a unit "Dummy Caster" for owner of target of ability at position of MarkedUnit
-Set CopyCaster = Last Created Unit
-Add CopySpell to CopyCaster
-Set level of CopySpell for CopyCaster to CopyLevel
--------------------------------
and that is where've I met a problem: I don't know for sure what kind of ability will be cast so I can't set one defined order and if I set CopyOrder = Issued order (or whatever) I still can't access it via "-Issue order targeting a unit"
With that given can anyone help me with that problem, please?