I am working on a new spell it's most trigger and i am stuck.
Problem : Deals NO DAMAGE and unit 40 is not removed
Trigger:
- Next Dance
- Events
- Unit - A unit Starts the efect of an ability
- Conditions
- (Ability being cast) Equal to White Ripple
- Actions
- Unit - Create 1 Next Dance for Player 1 (Red) at (Point(-6207.00, 2228.00)) facing Default building facing(270.0) degrees
- Set Units[40] = (Last created unit)
- Set dis[0] = (Distance between (Position of (Target unit of ability being cast)) and (Position of Units[40]))
- Unit - Order Units[40] to Attack (Target unit of ability being cast)
- Set Units[42] = (Target unit of ability being cast)
- Trigger - Turn on Next Dance 2 <gen>
- Events
Trigger:
- Next Dance 2
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- dis[0] Less than of equal to 200.00
- Actions
- Unit - Cause Units[40] to damage Units[42], dealing dis[0] damage of attack type Spell and damage type normal
- Unit - Remove Units[40] from the game
- Events
Problem : Deals NO DAMAGE and unit 40 is not removed