My ability, bloodscent, is supposed to make enemies near the target unit of ability being cast attack the target enemy of ability being cast for X seconds. The base ability I used was firebolt (because the ability stuns the target unit of ability being cast as well)
This is my Trigger:
(Events)
Unit - A Unit Finnishes Casting an Ability
(Conditions)
(Ability being cast) equal to Bloodscent
(Actions)
Unit - Change Ownership of target unit of ability being cast to player 5 yellow*
Unit - Add No Cooldown No Cost Taunt to target unit of ability being cast**
Unit - Order target unit of ability being cast to Night Elf Giant - Taunt
Unit Group - Pick every unit within a range of X from target unit of ability being cast
-Unit Group add Picked unit to Bloodscent Attackers Unit Group
- Order picked unit to attack target unit of ability being cast
wait X seconds
Change ownership of target unit of ability being cast to neutral hostile
Unit Group - Pick every unit in Bloodscent Attackers
- Order picked unit to stop
Unit Group
- Remove all units from Bloodscent Attackers
I want to know why this doesn't work.
*-Player 5 is an enemy of the caster and neutral creeps
**- When my ability didn't work initially I put this in just in case
This is my Trigger:
(Events)
Unit - A Unit Finnishes Casting an Ability
(Conditions)
(Ability being cast) equal to Bloodscent
(Actions)
Unit - Change Ownership of target unit of ability being cast to player 5 yellow*
Unit - Add No Cooldown No Cost Taunt to target unit of ability being cast**
Unit - Order target unit of ability being cast to Night Elf Giant - Taunt
Unit Group - Pick every unit within a range of X from target unit of ability being cast
-Unit Group add Picked unit to Bloodscent Attackers Unit Group
- Order picked unit to attack target unit of ability being cast
wait X seconds
Change ownership of target unit of ability being cast to neutral hostile
Unit Group - Pick every unit in Bloodscent Attackers
- Order picked unit to stop
Unit Group
- Remove all units from Bloodscent Attackers
I want to know why this doesn't work.
*-Player 5 is an enemy of the caster and neutral creeps
**- When my ability didn't work initially I put this in just in case