K
Kael666
Guest
Is their any ability or trigger that pushes attacking unit back e.g; a unit is coming towards a Tower and tower attacks on it and pushes it back. :banghead:
Spell Trigger
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Your Ability
Actions
Set n = 0.00
Set point = (Position of (Target unit of ability being cast))
Unit - Make (Target unit of ability being cast) face (Casting unit) over 0.00 seconds
[B][I]//This action is only needed if you want your ability to do a demage[/I]
Unit - Order (Casting unit) to damage (Target unit of ability being cast) for 100.00 using attack type Chaos and damage type Universal.[/B]
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Set n = (n + 40.00)
Unit - Move (Target unit of ability being cast) instantly to (point offset by n towards (Angle from (Position of (Casting unit)) to (Position of (Target unit of ability being cast))) degrees), facing point
Wait 0.01 seconds
Order Trigger
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Triggering unit)) Equal to Caster Tower
Actions
Unit - Order (Triggering unit) to Human Mountain King - Storm Bolt (Attacking unit)
Order Trigger
Events
Unit - A unit Is attacked
Conditions
[B] [I]//Player comparsion if u sure that player 1 has this kind of tower[/I]
(Owner of (Attacked unit)) Equal to Player 1 (Red)
[I]//Race comparsion you know that humans has that tower[/I]
(Race of (Attacked unit)) Equal to Human
[I]//or without any condition[/I][/B]
Actions
Unit Group - Pick every unit in (Units owned by (Owner of (Attacked unit)) of type Caster Tower) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Human Mountain King - Storm Bolt (Attacking unit)