- Joined
- Jul 19, 2007
- Messages
- 772
I have an ability in my map named Split Cold Arrows and it's meant to deal a flat initial damage + the Hero's total agility as damage but it doesn't seems to do the damage it's supposed to do at all. What could be wrong?
-
Init
-
Events
- Time - Elapsed game time is 0.01 seconds
- Conditions
-
Actions
- Hashtable - Create a hashtable
- Set VariableSet SpellHash = (Last created hashtable)
- Custom script: call SaveTriggerHandle(udg_SpellHash, StringHash("triggers"), 'A02A', gg_trg_Split_Cold_Arrows)
-
Events
-
Call Spells
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Split Cold Arrows
-
Actions
- Custom script: call TriggerExecute(LoadTriggerHandle(udg_SpellHash, StringHash("triggers"), GetSpellAbilityId()))
-
Events
-
Split Cold Arrows
- Events
- Conditions
-
Actions
- Set VariableSet Caster = (Triggering unit)
- Set VariableSet Target = (Target unit of ability being cast)
- Set VariableSet TempLoc = (Position of Caster)
- Set VariableSet TempLoc2 = (Position of Target)
- Set VariableSet AbilityLevel = (Level of (Ability being cast) for Caster)
- Set VariableSet DummyDamage = ((Agility of Caster (Include bonuses)) + (150 x AbilityLevel))
- Set VariableSet TempGroup = (Units within 400.00 of TempLoc2 matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Triggering playe
- Set VariableSet TempInt2 = (Level of Split Cold Arrows for Caster)
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
- Unit - Create 1 Dummy Attack for (Owner of (Triggering unit)) at TempLoc facing Default building facing degrees
- Set VariableSet TempUnit = (Last created unit)
- Unit - Add Split Cold Arrows Dummy to TempUnit
- Unit - Set level of Split Cold Arrows Dummy for TempUnit to TempInt2
- Unit - Add a 1.00 second Generic expiration timer to TempUnit
- Unit - Set Base Damage of TempUnit to DummyDamage for weapon index: 0
- Unit - Order TempUnit to Neutral Sea Witch - Activate Frost Arrows.
- Unit - Order TempUnit to Attack Once (Picked unit)
-
Loop - Actions
- Custom script: call RemoveLocation (udg_TempLoc)
- Custom script: call RemoveLocation (udg_TempLoc2)
- Custom script: call DestroyGroup (udg_TempGroup)