Using mag's ability system
The storm bolt ability is copied off of the human mountain king ability, hero ability set to false casting range 99999 casting time 0 duration 0 damage 0 etc. If i force it to use the ability, it works fine
-
Cast
- Events
- Conditions
-
Actions
- Custom script: local unit u = GetSpellTargetUnit()
- Custom script: local unit u2 = GetTriggerUnit()
- Set TempLoc2 = (Position of (Target unit of ability being cast))
-
For each (Integer TempInt) from 1 to 4, do (Actions)
-
Loop - Actions
- Game - Display to (All players) for 30.00 seconds the text: hsfdghf
- Set TempLoc = (TempLoc2 offset by 1000.00 towards ((Real(TempInt)) x 90.00) degrees)
- Unit - Create 1 Ice Sting Dummy for (Triggering player) at TempLoc facing TempLoc2
- Custom script: call RemoveLocation(udg_TempLoc)
- Unit - Order (Picked unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TempLoc2)
- Wait 1.25 seconds
- Custom script: set udg_TempUnit = u
- Custom script: set udg_TempUnit2 = u2
- Unit - Cause TempUnit2 to damage TempUnit, dealing ((30.00 x (Real((Level of Shockblast (|cffFFcc00S|r) T1 ELEM for TempUnit2)))) x (Real((Intelligence of TempUnit2 (Include bonuses))))) damage of attack type Spells and damage type Normal
The storm bolt ability is copied off of the human mountain king ability, hero ability set to false casting range 99999 casting time 0 duration 0 damage 0 etc. If i force it to use the ability, it works fine