ArmyOfFrogs
New Member
- Reaction score
- 20
Whenever my hero casts this spell based off of shadow strike which adds critical strike to him for 5 seconds, the game starts lagging extremely bad.. Here's the coding if you can spot anything.
On
Off
If it matters I have another spell trigger running which increases a variable then setting the level of that ability to the variable, each time he attacks. That itself doesn't lag but i'm not sure if it's affecting this spell in some way.
Thanks a bunch if you know whats going on ^^
On
Trigger:
- Events
- A unit begins casting an ability
- Conditions
- (Ability being cast) Equal to Spell
- Actions
- If (all conditions are true) then do (then actions) else do (else actions)
- If - conditions
- (Level of Spell for (Triggering unit)) equal to 1
- then - actions
- countdown timer - start spelltimer as a one shot timer that will expire in 5 seconds
- unit - add spellcritical to (triggering unit)
- unit - set level of spellcritical for (triggering unit) to 1
- else - actions
- if (all conditions are true)
- If - conditions
- (level of expose weakness for (triggering unit)) equal to 2
- then - actions
- unit - add spell critical to (triggering unit)
- countdown timer - start spelltimer as a One-shot timer that will expire in 6 seconds
- unit - set level of spellcritical for (triggering unit) to 2
- If - conditions
- if (all conditions are true)
- If - conditions
- If (all conditions are true) then do (then actions) else do (else actions)
Off
Trigger:
- Events
- Timer - spelltimer expires
- conditions
- actions
- unit - remove spellcritical from (triggering unit)
If it matters I have another spell trigger running which increases a variable then setting the level of that ability to the variable, each time he attacks. That itself doesn't lag but i'm not sure if it's affecting this spell in some way.
Thanks a bunch if you know whats going on ^^