- Joined
- Oct 6, 2007
- Messages
- 43
So, basicly this spell makes a hero charge towards target point and SHOULD do damage when moving, but the spell doesn't deal any damage for some reason, could anyone explain me why?
-
Heroic Charge
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Heroic Charge
-
Actions
- Set ChargeDmgAmount = ((Real((Level of Heroic Charge for Charge_caster))) x 10.00)
- Set Charge_caster = (Casting unit)
- Set Charge_cast_location = (Target point of ability being cast)
- Set Charge_cast_point = (Position of Charge_caster)
- Set charge_time_to_wait = ((Distance between Charge_cast_location and Charge_cast_point) / 1000.00)
- Special Effect - Create a special effect attached to the origin of Charge_caster using Abilities\Spells\Orc\Shockwave\ShockwaveMissile.mdl
- Set Charge_Effect = (Last created special effect)
- Unit - Make Charge_caster Invulnerable
- Trigger - Turn on HG <gen>
- Wait charge_time_to_wait seconds
- Trigger - Turn off HG <gen>
- Unit - Make Charge_caster Vulnerable
- Special Effect - Destroy Charge_Effect
- Custom script: call RemoveLocation(udg_Charge_cast_point)
- Custom script: call RemoveLocation(udg_Charge_cast_location)
- Set Charge_caster = No unit
-
Events
-
HG
-
Events
- Time - Every 0.05 seconds of game time
- Conditions
-
Actions
- Set Charge_caster_temp_point = (Position of Charge_caster)
- Set Charge_DmgAreaSecondary = (Units within 250.00 of Charge_caster_temp_point)
-
Unit Group - Pick every unit in Charge_DmgAreaSecondary and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an enemy of (Owner of Charge_caster)) Equal to True
-
Then - Actions
- Unit - Cause Charge_caster to damage (Picked unit), dealing ChargeDmgAmount damage of attack type Spells and damage type Normal
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Unit - Move Charge_caster instantly to (Charge_caster_temp_point offset by 50.00 towards (Angle from Charge_caster_temp_point to Charge_cast_location) degrees)
- Custom script: call RemoveLocation(udg_Charge_caster_temp_point)
- Custom script: call DestroyGroup(udg_Charge_DmgAreaSecondary)
-
Events