• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Why does this spell lag my game up after using it 5 times?

Status
Not open for further replies.
Level 11
Joined
Dec 21, 2008
Messages
766
[trigger=Colossal Might]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Colossal Might
Actions
Set CM_Hero = (Triggering unit)
Set CM_Point[1] = (Position of (Triggering unit))
Set CM_Real[1] = 600.00
Set CM_Inter[1] = (Level of Colossal Might for CM_Hero)
Set CM_Unit_Group = (Units within CM_Real[1] of CM_Point[1] matching (((Picked unit) belongs to an enemy of (Owner of CM_Hero)) Equal to True))
Unit Group - Pick every unit in CM_Unit_Group and do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of CM_Hero) at CM_Point[1] facing (1.00 + 1.00) degrees
Set CM_Dummy = (Last created unit)
Unit - Set level of Storm Bolt for CM_Dummy to CM_Inter[1]
Unit - Add a 0.50 second Generic expiration timer to CM_Dummy
Unit - Order CM_Dummy to Human Mountain King - Storm Bolt (Picked unit)
Custom script: call RemoveLocation(udg_CM_Point[1])
Custom script: call DestroyGroup(udg_CM_Unit_Group)[/trigger]

Never mind, I fixed it :) Took a while tho.
 
Last edited:
Status
Not open for further replies.
Top