• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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