• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

[Trigger] Cooldown leak?

Status
Not open for further replies.
I have this spell for a long time, but just now i noticed that it have a cooldown leak.
The spell works like this:
-it moves caster and the targeted unit to the point that is centered between the position of caster and targeted unit
-it damages the targeted unit
-creates 2 dummies that will cast shock wave (in this formation < (like split shot))

And i'm not sure why the leak?

  • Double Edge
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Double Edge
    • Actions
      • Set UnitVarCaster6 = (Triggering unit)
      • Set UnitVarTarget5 = (Target unit of ability being cast)
      • Set TempLoc18 = (Position of UnitVarCaster6)
      • Set TempLoc19 = (Position of UnitVarTarget5)
      • Set AngleVar02 = (Angle from TempLoc18 to TempLoc19)
      • Set AngleVar03 = (Angle from TempLoc19 to TempLoc18)
      • Set DistanceVar = ((Distance between TempLoc18 and TempLoc19) - 100.00)
      • Set DistanceVar01 = ((Distance between TempLoc19 and TempLoc18) - 100.00)
      • Set TempLoc20 = (TempLoc18 offset by (DistanceVar / 2.00) towards AngleVar02 degrees)
      • Set TempLoc21 = (TempLoc19 offset by (DistanceVar01 / 2.00) towards AngleVar03 degrees)
      • Unit - Move UnitVarTarget5 instantly to TempLoc21, facing TempLoc18
      • Unit - Move UnitVarCaster6 instantly to TempLoc20, facing TempLoc19
      • Special Effect - Create a special effect attached to the origin of UnitVarCaster6 using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Special Effect - Create a special effect attached to the origin of UnitVarTarget5 using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Create 1 Dummy for (Owner of UnitVarCaster6) at TempLoc20 facing Default building facing degrees
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
      • Unit - Add Double Edge(dummy) to (Last created unit)
      • Unit - Set level of Double Edge(dummy) for (Last created unit) to (Level of Double Edge for UnitVarCaster6)
      • Set TempLoc22 = (TempLoc20 offset by 300.00 towards ((Facing of UnitVarCaster6) + 15.00) degrees)
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave TempLoc22
      • Unit - Create 1 Dummy for (Owner of UnitVarCaster6) at TempLoc20 facing Default building facing degrees
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
      • Unit - Add Double Edge(dummy) to (Last created unit)
      • Unit - Set level of Double Edge(dummy) for (Last created unit) to (Level of Double Edge for UnitVarCaster6)
      • Set TempLoc23 = (TempLoc21 offset by 300.00 towards ((Facing of UnitVarCaster6) - 15.00) degrees)
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave TempLoc23
      • Custom script: call RemoveLocation (udg_TempLoc18)
      • Custom script: call RemoveLocation (udg_TempLoc19)
      • Custom script: call RemoveLocation (udg_TempLoc20)
      • Custom script: call RemoveLocation (udg_TempLoc21)
      • Custom script: call RemoveLocation (udg_TempLoc22)
      • Custom script: call RemoveLocation (udg_TempLoc23)
Any ideas?
 
Status
Not open for further replies.
Top