Hi guys I'm making a "crushing wave" spell that stuns all targets that it hits.
Currently the base spell for "Crushing Wave" is "Breath of Frost" this is to place my "stun this unit" buff onto the unit to cast Firebolt on. The dummy has firebolt (nodamageversion) on it to save time.
I need help optimizing my trigger and to check if its MUI. Any help would be greatly appreciated!!
Here is the trigger:
Things to note:
- Fireball deals no damage, has no manacost or cooldown.
- Dummy units have over 9000 Max and Init Mana and regen!! ( OVER 9000! )
- Dummy units have no cast backswing.
- I know that the (Units in playable map area) in kinda wrong but I cant seem to create cone shaped regions or that kinda stuff..
PS: Also I tried making 1 dummy cast all the firebolts but for some reason it would only cast it on some of the affected units (Even w/o adding the generic expiration timer on the dummy unit) Can any1 explain this?
PSS: The wait 0.10 second is essential as when the trigger fires off sometimes the targets have not been hit by the CrushingWave yet. If theres another way to detect when the spell hits please inform me XD
Thanks again in advance!
EDIT: Btw does anyone know how to post those triggers which the icons and all? Not as code or a image but as a post kinda like what I have seen around these forums so far?
Currently the base spell for "Crushing Wave" is "Breath of Frost" this is to place my "stun this unit" buff onto the unit to cast Firebolt on. The dummy has firebolt (nodamageversion) on it to save time.
I need help optimizing my trigger and to check if its MUI. Any help would be greatly appreciated!!
Here is the trigger:
Code:
[Trigger - Crushing Wave (With Stun)]
- Events
Unit - A unit starts an effect of an ability
- Conditions
(Ability being cast) Equal to Crushing Wave (With Stun)
- Actions
For each (Integer A) from 1 to 3, do (Actions)
- Loop - Actions
- Wait 0.10 seconds
- Unit Group - (Pick every unit in playable map area) matching ( Matching unit has buff (Stun me!(Cause:Crushingwave)) equal to true ) and do Actions
- Unit - Remove buff (Stun me!(Cause:Crushingwave))
- Unit - Create 1 dummy(fireball) for (Owner of triggering unit) at (Position of (picked unit)) facing default
- Unit - Order (Last created Unit) to Neutral - Firebolt (Picked unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Things to note:
- Fireball deals no damage, has no manacost or cooldown.
- Dummy units have over 9000 Max and Init Mana and regen!! ( OVER 9000! )
- Dummy units have no cast backswing.
- I know that the (Units in playable map area) in kinda wrong but I cant seem to create cone shaped regions or that kinda stuff..
PS: Also I tried making 1 dummy cast all the firebolts but for some reason it would only cast it on some of the affected units (Even w/o adding the generic expiration timer on the dummy unit) Can any1 explain this?
PSS: The wait 0.10 second is essential as when the trigger fires off sometimes the targets have not been hit by the CrushingWave yet. If theres another way to detect when the spell hits please inform me XD
Thanks again in advance!
EDIT: Btw does anyone know how to post those triggers which the icons and all? Not as code or a image but as a post kinda like what I have seen around these forums so far?