Well, I have two abilities I can't get working. One is based off firebolt, and the other is based off chain lightning. The idea with the firebolt is the hero shoots the bolt at an enemy unit, and a flame strike is targeted there. My code currently looks like this:
The problem with this is that when the ability is cast, it instantly casts the flame strike at the point where the unit was. If the unit is moving, it looks terrible. Also, some of the time, when a unit is killed by the flame strike no experience is given.
The chain lightning skill does this: when cast, it creates a dummycaster which then casts chain lightning at random nearby units. That part works fine. However, I want it to also cast more chain lightning at other random units when a unit is struck by the first chain lightning, if that makes sense. Sadly, I have no idea whatsoever on how to do this.
Thanks in advance.
Code:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Conflagration
Actions
Set CasLoc = (Position of (Triggering unit))
Set Caster = (Triggering unit)
Unit - Create 1 Dummycaster for (Owner of Caster) at CasLoc facing Default building facing degrees
Unit - Hide (Last created unit)
Unit - Add Flame Strike (Conflagration) to (Last created unit)
Unit - Set level of Flame Strike (Conflagration) for (Last created unit) to (Level of Conflagration for (Triggering unit))
Unit - Order (Last created unit) to Human Blood Mage - Flame Strike (Target point of ability being cast)
Unit - Add a 21.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_CasLoc)
The problem with this is that when the ability is cast, it instantly casts the flame strike at the point where the unit was. If the unit is moving, it looks terrible. Also, some of the time, when a unit is killed by the flame strike no experience is given.
The chain lightning skill does this: when cast, it creates a dummycaster which then casts chain lightning at random nearby units. That part works fine. However, I want it to also cast more chain lightning at other random units when a unit is struck by the first chain lightning, if that makes sense. Sadly, I have no idea whatsoever on how to do this.
Thanks in advance.