Hey Guys
I have some trouble making a creep red dragon cast a firebolt.
The problem started a few days ago during testing when I saw a salamander lord only casts his "rain of fire" ability on firelords's lava spawn, but not firelord itself (that made me look into the "targeted as" (for firelord) and "targets allowed" (for rain of fire [creep version]) for a possible solution, but everything checks out)
After nothing seemed to work I read a few stuff on triggered casting, made the attached trigger and still nothing. I tested it with a minimap ping and the code executes all the way until I order the attacked unit to use the ability on the attacking unit. I even tested it with a "do damage" command in the place of the "use ability" command(which works fine)
(firebolt is in the abilities list of the red dragon... I'm not sure if it even needs to be there)
Why doesn't salamander lord cast "rain of fire" on heroes(or make it seem that way)?
Thanks
I have some trouble making a creep red dragon cast a firebolt.
The problem started a few days ago during testing when I saw a salamander lord only casts his "rain of fire" ability on firelords's lava spawn, but not firelord itself (that made me look into the "targeted as" (for firelord) and "targets allowed" (for rain of fire [creep version]) for a possible solution, but everything checks out)
After nothing seemed to work I read a few stuff on triggered casting, made the attached trigger and still nothing. I tested it with a minimap ping and the code executes all the way until I order the attacked unit to use the ability on the attacking unit. I even tested it with a "do damage" command in the place of the "use ability" command(which works fine)
(firebolt is in the abilities list of the red dragon... I'm not sure if it even needs to be there)
Why doesn't salamander lord cast "rain of fire" on heroes(or make it seem that way)?
Thanks
-
Events
- Unit - A unit Is attacked
-
Actions
- -------- Red Dragon --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Attacked unit)) Equal to Red Dragon
-
Then - Actions
- Unit - Order (Attacked unit) to Neutral - Firebolt (Attacking unit)
- Else - Actions
-
If - Conditions