I trying to make a taunt ability but somehow it did not work. Below is two trigger I do.
Hatred Taunt
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Hatred
(Unit-type of (Casting unit)) Equal to Magtheridon
Actions
Set caster = (Casting unit)
Trigger - Turn on Hatred pull <gen>
Wait 4.00 seconds
Trigger - Turn off Hatred pull <gen>
Hatred pull
Events
Time - Every 0.25 seconds of game time
Conditions
(Unit-type of (Casting unit)) Equal to Magtheridon
Actions
Unit Group - Pick every unit in (Units within 300.00 of (Position of caster) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an ally of (Owner of Caster)) Equal to False) and (((Matching unit) has buff Hatred ) Equal to True)))) and do (Actions)
Loop - Actions
Set caster = (Casting unit)
Unit - Order (Picked unit) to Attack Caster
Could anyone help me as the unit with the Hatred buff don't seems to attack my hero, and somehow if i use the hero <GEN>viarable it works.
Hatred Taunt
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Hatred
(Unit-type of (Casting unit)) Equal to Magtheridon
Actions
Set caster = (Casting unit)
Trigger - Turn on Hatred pull <gen>
Wait 4.00 seconds
Trigger - Turn off Hatred pull <gen>
Hatred pull
Events
Time - Every 0.25 seconds of game time
Conditions
(Unit-type of (Casting unit)) Equal to Magtheridon
Actions
Unit Group - Pick every unit in (Units within 300.00 of (Position of caster) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an ally of (Owner of Caster)) Equal to False) and (((Matching unit) has buff Hatred ) Equal to True)))) and do (Actions)
Loop - Actions
Set caster = (Casting unit)
Unit - Order (Picked unit) to Attack Caster
Could anyone help me as the unit with the Hatred buff don't seems to attack my hero, and somehow if i use the hero <GEN>viarable it works.