Problems :
1) TriggerSleepAction does not allow such short period. You need a timer to achieve that.
2) You can't override the default order string. It should be "thunderbolt".
Try this :
library ShadowWalk initializer OnInit
private function IsAttackerBehindTarget takes unit atkr, unit...
Beta 09 is up! Critical bug fixes.
Future beta will be focused on bug hunting instead of adding new features, then followed by RC (Release Candidate). :)
P/S : Ignore the cheat and bug testing triggers. I used it for debugging purpose.
Maths operation in War3 is quite slow.
In another way to make the spell work, you can make an integer array, store the data up in initialization function. When the spell is cast, simply use the data in array. It consumes more memory but less hogging to available raw power.
New beta update, big improvement again!
(Bug hunting yet to be performed and fixed in next beta.)
P/S : NewGen 5e is bugged on this map now. When you complied the map by using it, 2 players are unable to build any tower as the ground data is messed up. Use NewGen 5d + Jasshelper 0.A.2.B.
It can be MUI if the spell is instant (Without any timers/TriggerSleepActions).
It does not matter if you use globals in instant spells as Warcraft 3 runs on single thread.
So, replace the udg_units01[bct] with a local, then you are good to go.
Even it does the trick, it isn't not recommend, because the efficiency will be lowered.
TESH does provide autocomplete, which does not require you to type out the function fully.
Handles from event response don't leak unless you assign a variable to it.
Actually the best way would be using array for O(1) checking, either table or hashing unit id into array will do.
library Test requires Table initializer OnInit
globals
private Table UnitTypeFilter
endglobals
function BlacklistUnitType takes integer uid returns nothing
set...
The beauty of vJass.
Actually one dummy per map is enough, as the spell casting is instant if you set the animation time for the dummy to 0.000
library ForceOfNature initializer OnInit requires GT, TimerUtils, GroupUtils, DummyCaster
globals
private constant integer ABIL_ID='A066'...