// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
Name | Type | is_array | initial_value |
a | unit | Yes | |
A | unit | Yes | |
A3 | trigger | No | |
a3 | trigger | No | |
A4 | boolean | No | |
a4 | unit | No | |
A7 | unit | No | |
a7 | integer | No | |
a8 | boolean | No | |
A8 | integer | Yes | |
a9 | location | Yes | |
A9 | unit | Yes | |
aA | trigger | No | |
Aa | trigger | No | |
aa | trigger | No | |
AA | trigger | No | |
aB | trigger | No | |
AB | trigger | No | |
Ab | trigger | No | |
ab | trigger | No | |
aC | trigger | No | |
AC | trigger | No | |
ac | trigger | No | |
Ac | trigger | No | |
ad | location | No | |
aD | trigger | No | |
AD | trigger | No | |
Ad | location | No | |
ae | integer | No | |
Ae | real | No | |
AE | trigger | No | |
aE | trigger | No | |
af | unit | No | |
AF | trigger | No | |
aF | trigger | No | |
Af | group | No | |
ag | group | No | |
Ag | unit | No | |
AG | unit | No | |
aG | unit | No | |
ah | unit | No | |
Ah | integer | No | |
ai | integer | No | |
Ai | integer | No | |
Aj | texttag | No | |
aj | integer | No | |
Ak | unit | No | |
ak | group | No | |
Am | unit | No | |
am | unit | No | |
an | rect | No | |
An | rect | No | |
ao | rect | No | |
Ao | rect | No | |
Ap | sound | No | |
ap | sound | No | |
aq | sound | No | |
Aq | sound | No | |
ar | sound | No | |
Ar | sound | No | |
As | trigger | No | |
as | trigger | No | |
at | trigger | No | |
At | trigger | No | |
Au | trigger | No | |
au | trigger | No | |
av | trigger | No | |
Av | trigger | No | |
aw | trigger | No | |
Aw | trigger | No | |
Ax | trigger | No | |
ax | trigger | No | |
ay | trigger | No | |
Ay | trigger | No | |
az | trigger | No | |
Az | trigger | No | |
B | location | Yes | |
b | integer | Yes | |
B3 | trigger | No | |
b3 | trigger | No | |
b4 | integer | Yes | |
B4 | effect | No | |
b7 | item | Yes | |
B7 | integer | No | |
B8 | integer | Yes | |
b8 | integer | Yes | |
b9 | group | No | |
B9 | unit | Yes | |
ba | trigger | No | |
bA | trigger | No | |
Ba | trigger | No | |
BA | trigger | No | |
bb | trigger | No | |
Bb | trigger | No | |
BB | trigger | No | |
bB | trigger | No | |
bC | trigger | No | |
bc | trigger | No | |
Bc | trigger | No | |
BC | trigger | No | |
bD | trigger | No | |
bd | group | No | |
Bd | location | Yes | |
BD | trigger | No | |
BE | trigger | No | |
bE | trigger | No | |
be | unit | No | |
Be | unit | No | |
bf | group | No | |
Bf | group | No | |
BF | trigger | No | |
bF | trigger | No | |
Bg | unit | No | |
bg | location | Yes | |
BG | unit | No | |
bG | unit | No | |
bh | location | No | |
Bh | unit | No | |
bi | group | No | |
Bi | real | No | |
Bj | unit | No | |
bj | location | Yes | |
bk | group | No | |
Bk | boolean | No | |
Bm | unit | No | |
bm | unit | No | |
bn | rect | No | |
Bn | rect | No | |
bo | rect | No | |
Bo | rect | No | |
Bp | sound | No | |
bp | sound | No | |
Bq | sound | No | |
bq | sound | No | |
Br | sound | No | |
br | sound | No | |
Bs | trigger | No | |
bs | trigger | No | |
Bt | trigger | No | |
bt | trigger | No | |
Bu | trigger | No | |
bu | trigger | No | |
bv | trigger | No | |
Bv | trigger | No | |
bw | trigger | No | |
Bw | trigger | No | |
bx | trigger | No | |
Bx | trigger | No | |
by | trigger | No | |
By | trigger | No | |
Bz | trigger | No | |
bz | trigger | No | |
c | real | Yes | |
C | integer | Yes | |
c3 | trigger | No | |
C3 | trigger | No | |
C4 | group | No | |
c4 | integer | Yes | |
C7 | item | Yes | |
c7 | item | Yes | |
c8 | integer | Yes | |
C8 | integer | Yes | |
C9 | group | No | |
c9 | location | Yes | |
cA | trigger | No | |
CA | trigger | No | |
Ca | trigger | No | |
ca | trigger | No | |
cB | trigger | No | |
Cb | trigger | No | |
cb | trigger | No | |
CB | trigger | No | |
cc | trigger | No | |
CC | trigger | No | |
Cc | trigger | No | |
cC | trigger | No | |
Cd | location | No | |
cd | location | No | |
cD | trigger | No | |
CD | trigger | No | |
ce | real | No | |
Ce | boolean | No | |
cE | trigger | No | |
CE | trigger | No | |
Cf | group | No | |
cF | trigger | No | |
cf | real | No | |
CF | trigger | No | |
CG | unit | No | |
Cg | real | No | |
cG | unit | No | |
cg | group | No | |
Ch | group | No | |
ch | location | No | |
Ci | group | No | |
ci | real | Yes | |
Cj | integer | Yes | |
cj | group | Yes | |
Ck | unit | No | |
ck | boolean | No | |
cm | unit | No | |
Cm | unit | No | |
Cn | rect | No | |
cn | rect | No | |
Co | rect | No | |
co | rect | No | |
Cp | sound | No | |
cp | sound | No | |
Cq | sound | No | |
cq | sound | No | |
cr | sound | No | |
Cr | sound | No | |
cs | trigger | No | |
Cs | trigger | No | |
Ct | trigger | No | |
ct | trigger | No | |
cu | trigger | No | |
Cu | trigger | No | |
cv | trigger | No | |
Cv | trigger | No | |
cw | trigger | No | |
Cw | trigger | No | |
cx | trigger | No | |
Cx | trigger | No | |
Cy | trigger | No | |
cy | trigger | No | |
Cz | trigger | No | |
cz | trigger | No | |
D | string | Yes | |
d | integer | Yes | |
d3 | trigger | No | |
D3 | trigger | No | |
D4 | boolean | No | |
d4 | boolean | No | |
D7 | item | Yes | |
d7 | integer | Yes | |
D8 | integer | Yes | |
d8 | unit | No | |
d9 | unit | No | |
D9 | unit | Yes | |
da | trigger | No | |
Da | trigger | No | |
dA | trigger | No | |
DA | trigger | No | |
dB | trigger | No | |
DB | trigger | No | |
db | trigger | No | |
Db | trigger | No | |
dc | trigger | No | |
dC | trigger | No | |
DC | trigger | No | |
Dc | trigger | No | |
DD | trigger | No | |
dD | trigger | No | |
dd | group | Yes | |
Dd | group | No | |
de | location | No | |
De | real | No | |
DE | trigger | No | |
dE | trigger | No | |
DF | trigger | No | |
dF | trigger | No | |
df | location | No | |
Df | group | Yes | |
DG | unit | No | |
Dg | effect | Yes | |
dg | location | Yes | |
dG | unit | No | |
dh | unit | No | |
Dh | group | No | |
di | real | No | |
Di | group | Yes | |
Dj | unit | No | |
dj | effect | Yes | |
Dk | integer | Yes | |
dk | group | No | |
dm | group | No | |
Dm | integer | Yes | |
dn | group | No | |
Dn | rect | No | |
Do | rect | No | |
do | rect | No | |
dp | rect | No | |
Dp | sound | No | |
dq | sound | No | |
Dq | sound | No | |
dr | sound | No | |
Dr | sound | No | |
Ds | trigger | No | |
ds | sound | No | |
Dt | trigger | No | |
dt | trigger | No | |
Du | trigger | No | |
du | trigger | No | |
dv | trigger | No | |
Dv | trigger | No | |
dw | trigger | No | |
Dw | trigger | No | |
Dx | trigger | No | |
Dy | trigger | No | |
dz | trigger | No | |
Dz | trigger | No | |
e | force | No | |
E | string | Yes | |
E3 | trigger | No | |
e3 | trigger | No | |
E4 | integer | No | |
e4 | integer | Yes | |
E7 | item | Yes | |
e7 | integer | Yes | |
E8 | integer | Yes | |
e8 | real | No | |
E9 | location | Yes | |
e9 | real | No | |
Ea | trigger | No | |
ea | trigger | No | |
eA | trigger | No | |
EA | trigger | No | |
eB | trigger | No | |
EB | trigger | No | |
eb | trigger | No | |
Eb | trigger | No | |
ec | trigger | No | |
Ec | trigger | No | |
EC | trigger | No | |
eC | trigger | No | |
Ed | location | No | |
eD | trigger | No | |
ED | trigger | No | |
ed | location | Yes | |
eE | trigger | No | |
ee | location | No | |
Ee | real | No | |
EE | trigger | No | |
eF | trigger | No | |
EF | trigger | No | |
ef | group | No | |
Ef | group | No | |
Eg | unit | No | |
EG | unit | No | |
eg | group | Yes | |
eG | unit | No | |
eh | boolean | No | |
Eh | group | No | |
Ei | integer | No | |
ei | boolean | No | |
ej | unit | No | |
Ej | unit | Yes | |
Ek | integer | Yes | |
ek | unit | No | |
Em | real | No | |
em | group | No | |
en | unit | Yes | |
En | rect | No | |
Eo | rect | No | |
eo | rect | No | |
ep | rect | No | |
Ep | sound | No | |
Eq | sound | No | |
eq | sound | No | |
er | sound | No | |
Er | sound | No | |
Es | trigger | No | |
es | sound | No | |
et | trigger | No | |
Et | trigger | No | |
Eu | trigger | No | |
eu | trigger | No | |
ev | trigger | No | |
Ev | trigger | No | |
ew | trigger | No | |
Ew | trigger | No | |
ex | trigger | No | |
Ex | trigger | No | |
Ey | trigger | No | |
ey | trigger | No | |
ez | trigger | No | |
Ez | trigger | No | |
F | group | No | |
f | force | No | |
F3 | trigger | No | |
f3 | trigger | No | |
F4 | boolean | Yes | |
f4 | integer | No | |
f7 | integer | Yes | |
F7 | item | Yes | |
f8 | real | No | |
F8 | integer | No | |
F9 | unit | Yes | |
f9 | boolean | No | |
Fa | trigger | No | |
fa | trigger | No | |
FA | trigger | No | |
fA | trigger | No | |
fb | trigger | No | |
FB | trigger | No | |
fB | trigger | No | |
Fb | trigger | No | |
fC | trigger | No | |
Fc | trigger | No | |
fc | trigger | No | |
FC | trigger | No | |
Fd | group | No | |
fd | unit | Yes | |
fD | trigger | No | |
FD | trigger | No | |
FE | trigger | No | |
fe | location | No | |
Fe | location | Yes | |
fE | trigger | No | |
Ff | group | No | |
ff | boolean | No | |
FF | trigger | No | |
fF | trigger | No | |
Fg | unit | No | |
fG | unit | No | |
fg | unit | No | |
Fh | integer | No | |
fh | real | No | |
fi | group | No | |
Fi | location | Yes | |
Fj | integer | Yes | |
fj | boolean | No | |
Fk | group | No | |
fk | unit | No | |
Fm | location | Yes | |
fm | group | No | |
Fn | rect | No | |
fn | integer | Yes | |
fo | rect | No | |
Fo | rect | No | |
Fp | sound | No | |
fp | rect | No | |
Fq | sound | No | |
fq | sound | No | |
fr | sound | No | |
Fr | sound | No | |
fs | sound | No | |
Fs | trigger | No | |
Ft | trigger | No | |
ft | trigger | No | |
fu | trigger | No | |
Fu | trigger | No | |
Fv | trigger | No | |
fv | trigger | No | |
fw | trigger | No | |
Fw | trigger | No | |
Fx | trigger | No | |
fx | trigger | No | |
Fy | trigger | No | |
fy | trigger | No | |
fz | trigger | No | |
Fz | trigger | No | |
G | group | Yes | |
G3 | trigger | No | |
g3 | trigger | No | |
g4 | boolean | No | |
G4 | boolean | Yes | |
g7 | integer | Yes | |
G7 | integer | Yes | |
G8 | timer | No | |
g8 | unit | No | |
G9 | unit | Yes | |
g9 | unit | No | |
GA | trigger | No | |
gA | trigger | No | |
Ga | trigger | No | |
ga | trigger | No | |
Gb | trigger | No | |
gb | trigger | No | |
GB | trigger | No | |
gB | trigger | No | |
gc | trigger | No | |
GC | trigger | No | |
gC | trigger | No | |
Gc | trigger | No | |
GD | trigger | No | |
Gd | location | No | |
gd | effect | Yes | |
gD | trigger | No | |
gE | trigger | No | |
ge | location | No | |
GE | trigger | No | |
Ge | real | No | |
GF | trigger | No | |
gF | trigger | No | |
gf | unit | Yes | |
Gf | integer | No | |
gG | unit | No | |
Gg | unit | No | |
gg | real | No | |
gh | group | No | |
Gh | integer | No | |
gi | unit | No | |
Gi | real | Yes | |
gj | boolean | No | |
Gj | real | No | |
gk | real | No | |
Gk | unit | No | |
Gm | effect | Yes | |
gm | unit | No | |
gn | integer | Yes | |
Gn | rect | No | |
go | rect | No | |
Go | rect | No | |
GoldANDMedalTimer | timer | No | |
GoldANDMedalTimer_Window | timerdialog | No | |
gp | rect | No | |
Gp | sound | No | |
Gq | sound | No | |
gq | sound | No | |
Gr | sound | No | |
gr | sound | No | |
gs | sound | No | |
Gs | trigger | No | |
Gt | trigger | No | |
gt | trigger | No | |
Gu | trigger | No | |
gu | trigger | No | |
Gv | trigger | No | |
gv | trigger | No | |
gw | trigger | No | |
Gw | trigger | No | |
Gx | trigger | No | |
gx | trigger | No | |
Gy | trigger | No | |
gy | trigger | No | |
Gz | trigger | No | |
gz | trigger | No | |
H | real | Yes | |
h | integer | No | |
h3 | trigger | No | |
H3 | trigger | No | |
h4 | integer | No | |
H4 | integer | No | |
H7 | string | No | |
h7 | integer | Yes | |
H8 | timerdialog | No | |
h8 | unit | No | |
H9 | boolean | No | |
h9 | location | No | |
Ha | trigger | No | |
ha | trigger | No | |
HA | trigger | No | |
hA | trigger | No | |
hB | trigger | No | |
HB | trigger | No | |
Hb | trigger | No | |
hb | trigger | No | |
hC | trigger | No | |
hc | trigger | No | |
Hc | trigger | No | |
HC | trigger | No | |
HD | trigger | No | |
hd | location | Yes | |
hD | trigger | No | |
Hd | group | No | |
HE | trigger | No | |
He | effect | Yes | |
hE | trigger | No | |
he | location | No | |
hF | trigger | No | |
HF | trigger | No | |
hf | location | No | |
Hf | boolean | No | |
Hg | unit | No | |
HG | real | No | 0. |
hg | location | No | |
hG | unit | No | |
Hh | unit | No | |
hh | group | No | |
hi | real | Yes | |
Hi | integer | No | |
Hj | unit | Yes | |
hj | unit | No | |
hk | unit | Yes | |
Hk | unit | Yes | |
hm | group | No | |
Hm | unit | Yes | |
Hn | rect | No | |
hn | effect | Yes | |
Ho | rect | No | |
ho | rect | No | |
Hp | sound | No | |
hp | sound | No | |
Hq | sound | No | |
hq | sound | No | |
Hr | sound | No | |
hr | sound | No | |
Hs | trigger | No | |
hs | sound | No | |
Ht | trigger | No | |
ht | trigger | No | |
hu | trigger | No | |
Hu | trigger | No | |
Hv | trigger | No | |
hv | trigger | No | |
Hw | trigger | No | |
hw | trigger | No | |
hx | trigger | No | |
Hx | trigger | No | |
Hy | trigger | No | |
hy | trigger | No | |
hz | trigger | No | |
Hz | trigger | No | |
I | unit | Yes | |
i3 | trigger | No | |
I3 | trigger | No | |
i4 | group | No | |
I4 | group | No | |
i7 | integer | Yes | |
I7 | boolean | No | |
i8 | real | No | |
I8 | unit | No | |
i9 | group | No | |
I9 | group | No | |
Ia | trigger | No | |
IA | trigger | No | |
iA | trigger | No | |
ia | trigger | No | |
Ib | trigger | No | |
iB | trigger | No | |
IB | trigger | No | |
ib | trigger | No | |
ic | trigger | No | |
IC | trigger | No | |
Ic | trigger | No | |
iC | trigger | No | |
id | unit | Yes | |
ID | trigger | No | |
iD | trigger | No | |
Id | location | No | |
ie | location | No | |
iE | trigger | No | |
IE | trigger | No | |
Ie | unit | Yes | |
If | texttag | No | |
iF | trigger | No | |
IF | trigger | No | |
ig | integer | No | |
Ig | location | Yes | |
iG | unit | No | |
IG | real | No | 0. |
Ih | group | No | |
ih | unit | Yes | |
ii | integer | Yes | |
Ii | integer | No | |
Ij | location | Yes | |
ij | unit | No | |
ik | location | Yes | |
Ik | real | Yes | |
im | group | No | |
Im | unit | No | |
In | rect | No | |
in | boolean | No | |
io | rect | No | |
Io | rect | No | |
ip | string | No | |
Ip | sound | No | |
Iq | sound | No | |
iq | sound | No | |
ir | sound | No | |
Ir | sound | No | |
Is | trigger | No | |
is | sound | No | |
It | trigger | No | |
it | trigger | No | |
Iu | trigger | No | |
iu | trigger | No | |
iv | trigger | No | |
Iv | trigger | No | |
Iw | trigger | No | |
iw | trigger | No | |
Ix | trigger | No | |
ix | trigger | No | |
Iy | trigger | No | |
iy | trigger | No | |
Iz | trigger | No | |
iz | trigger | No | |
j | integer | No | |
J | boolean | Yes | |
J3 | trigger | No | |
j3 | trigger | No | |
j4 | integer | No | |
J4 | integer | No | |
j7 | integer | Yes | |
J7 | integer | Yes | |
j8 | integer | No | |
J8 | integer | No | |
J9 | unit | No | |
j9 | location | No | |
ja | trigger | No | |
jA | trigger | No | |
Ja | trigger | No | |
JA | trigger | No | |
Jb | trigger | No | |
JB | trigger | No | |
jb | trigger | No | |
jB | trigger | No | |
JC | trigger | No | |
Jc | trigger | No | |
jc | trigger | No | |
jC | trigger | No | |
Jd | group | No | |
jD | trigger | No | |
jd | unit | Yes | |
JD | trigger | No | |
JE | trigger | No | |
Je | boolean | No | |
je | location | No | |
jE | trigger | No | |
JF | trigger | No | |
Jf | integer | Yes | |
jF | trigger | No | |
jf | unit | Yes | |
jG | unit | No | |
Jg | unit | No | |
jg | group | No | |
JG | force | No | |
jh | group | No | |
Jh | real | No | |
ji | effect | No | |
Ji | group | No | |
jj | unit | No | |
Jj | real | No | |
jk | group | No | |
Jk | location | Yes | |
jm | unit | Yes | |
Jm | real | No | |
Jn | rect | No | |
jn | integer | No | |
jo | rect | No | |
Jo | rect | No | |
jp | string | No | |
Jp | sound | No | |
jq | sound | No | |
Jq | sound | No | |
Jr | sound | No | |
jr | sound | No | |
js | sound | No | |
Js | trigger | No | |
Jt | trigger | No | |
jt | trigger | No | |
ju | trigger | No | |
Ju | trigger | No | |
jv | trigger | No | |
Jv | trigger | No | |
jw | trigger | No | |
Jw | trigger | No | |
jx | trigger | No | |
Jx | trigger | No | |
jy | trigger | No | |
Jy | trigger | No | |
jz | trigger | No | |
Jz | trigger | No | |
K | effect | Yes | |
k | integer | No | |
K3 | trigger | No | |
k3 | trigger | No | |
k4 | boolean | No | |
K4 | integer | No | |
K7 | integer | Yes | |
k7 | integer | Yes | |
k8 | boolean | Yes | |
K8 | integer | No | |
K9 | integer | No | |
k9 | location | No | |
ka | trigger | No | |
KA | trigger | No | |
kA | trigger | No | |
Ka | trigger | No | |
kB | trigger | No | |
KB | trigger | No | |
Kb | trigger | No | |
kb | trigger | No | |
kC | trigger | No | |
kc | trigger | No | |
Kc | trigger | No | |
KC | trigger | No | |
kD | trigger | No | |
kd | location | Yes | |
KD | trigger | No | |
Kd | location | No | |
KE | trigger | No | |
kE | trigger | No | |
ke | group | No | |
Ke | group | No | |
kF | trigger | No | |
kf | location | Yes | |
KF | trigger | No | |
Kf | boolean | No | |
kg | real | No | |
Kg | boolean | No | |
KG | boolexpr | No | |
kG | unit | No | |
kh | location | No | |
Kh | unit | No | |
Ki | group | No | |
ki | group | No | |
Kj | effect | No | |
kj | unit | No | |
Kk | group | No | |
kk | real | No | |
km | location | Yes | |
Km | location | Yes | |
Kn | rect | No | |
kn | item | No | |
Ko | rect | No | |
ko | rect | No | |
Kp | sound | No | |
kp | string | No | |
Kq | sound | No | |
kq | sound | No | |
kr | sound | No | |
Kr | sound | No | |
Ks | trigger | No | |
ks | string | No | |
Kt | trigger | No | |
kt | trigger | No | |
Ku | trigger | No | |
ku | trigger | No | |
kv | trigger | No | |
Kv | trigger | No | |
Kw | trigger | No | |
kw | trigger | No | |
Kx | trigger | No | |
kx | trigger | No | |
ky | trigger | No | |
Ky | trigger | No | |
Kz | trigger | No | |
kz | trigger | No | |
L | boolean | Yes | |
l | boolean | Yes | |
L3 | trigger | No | |
l3 | trigger | No | |
l4 | unit | No | |
L4 | unit | No | |
l7 | unit | Yes | |
L7 | integer | No | |
L8 | unit | No | |
l8 | group | No | |
L9 | real | No | |
l9 | real | No | |
lA | trigger | No | |
LA | trigger | No | |
la | trigger | No | |
La | trigger | No | |
LB | trigger | No | |
lB | trigger | No | |
Lb | trigger | No | |
lb | trigger | No | |
lc | trigger | No | |
LC | trigger | No | |
lC | trigger | No | |
Lc | trigger | No | |
LD | trigger | No | |
ld | group | No | |
lD | trigger | No | |
Ld | location | No | |
LE | trigger | No | |
Le | group | No | |
lE | trigger | No | |
le | location | Yes | |
Lf | integer | No | |
lf | integer | No | |
LF | trigger | No | |
lF | trigger | No | |
lG | group | No | |
lg | effect | No | |
Lg | unit | No | |
Lh | boolean | No | |
lh | integer | Yes | |
li | unit | Yes | |
Li | timer | No | |
Lj | unit | Yes | |
lj | integer | No | |
lk | group | Yes | |
Lk | group | No | |
lm | fogmodifier | Yes | |
Lm | group | No | |
Ln | rect | No | |
ln | rect | No | |
Lo | rect | No | |
lo | rect | No | |
lp | sound | No | |
Lp | sound | No | |
Lq | sound | No | |
lq | sound | No | |
Lr | sound | No | |
lr | sound | No | |
ls | trigger | No | |
Ls | trigger | No | |
lt | trigger | No | |
Lt | trigger | No | |
lu | trigger | No | |
Lu | trigger | No | |
Lv | trigger | No | |
lv | trigger | No | |
lw | trigger | No | |
Lw | trigger | No | |
Lx | trigger | No | |
lx | trigger | No | |
Ly | trigger | No | |
ly | trigger | No | |
Lz | trigger | No | |
lz | trigger | No | |
M | integer | Yes | |
m | unit | Yes | |
m3 | trigger | No | |
M3 | trigger | No | |
m4 | string | No | |
M4 | integer | No | |
M7 | unit | Yes | |
m7 | boolean | Yes | |
m8 | boolean | Yes | |
M8 | real | No | |
M9 | force | No | |
m9 | group | No | |
Ma | trigger | No | |
ma | trigger | No | |
MA | trigger | No | |
mA | trigger | No | |
Mb | trigger | No | |
mB | trigger | No | |
mb | trigger | No | |
MB | trigger | No | |
mc | trigger | No | |
mC | trigger | No | |
MC | trigger | No | |
Mc | trigger | No | |
MD | trigger | No | |
Md | location | No | |
mD | trigger | No | |
md | unit | Yes | |
mE | trigger | No | |
me | group | No | |
Me | boolean | No | |
ME | trigger | No | |
mf | real | Yes | |
mF | trigger | No | |
MF | trigger | No | |
Mf | texttag | No | |
Mg | effect | No | |
mG | unit | No | |
mg | real | No | |
mh | group | No | |
Mh | unit | No | |
mi | unit | No | |
Mi | timerdialog | No | |
mj | unit | No | |
Mj | real | Yes | |
Mk | unit | No | |
mk | effect | Yes | |
mm | group | Yes | |
Mm | group | No | |
Mn | rect | No | |
mn | boolean | No | |
mo | rect | No | |
Mo | rect | No | |
Mp | sound | No | |
mp | sound | No | |
Mq | sound | No | |
mq | sound | No | |
Mr | sound | No | |
mr | sound | No | |
ms | sound | No | |
Ms | trigger | No | |
mt | trigger | No | |
Mt | trigger | No | |
mu | trigger | No | |
Mu | trigger | No | |
Mv | trigger | No | |
mv | trigger | No | |
Mw | trigger | No | |
mw | trigger | No | |
mx | trigger | No | |
Mx | trigger | No | |
my | trigger | No | |
My | trigger | No | |
mz | trigger | No | |
Mz | trigger | No | |
n | group | No | |
N | integer | Yes | |
N3 | trigger | No | |
n3 | trigger | No | |
N4 | boolean | No | |
n4 | boolean | Yes | |
n7 | unit | Yes | |
N7 | integer | No | |
N8 | item | Yes | |
n8 | boolean | Yes | |
n9 | location | Yes | |
N9 | unit | No | |
Na | trigger | No | |
nA | trigger | No | |
na | trigger | No | |
NA | trigger | No | |
nb | trigger | No | |
nB | trigger | No | |
Nb | trigger | No | |
NB | trigger | No | |
NC | trigger | No | |
nC | trigger | No | |
nc | trigger | No | |
Nc | trigger | No | |
Nd | group | Yes | |
ND | trigger | No | |
nd | location | Yes | |
nD | trigger | No | |
ne | location | No | |
Ne | effect | No | |
nE | trigger | No | |
NE | trigger | No | |
nF | trigger | No | |
nf | unit | Yes | |
NF | trigger | No | |
Nf | real | No | |
Ng | real | No | |
nG | unit | No | |
ng | real | No | |
Nh | group | No | |
nh | integer | No | |
ni | location | Yes | |
Ni | integer | No | |
Nj | location | Yes | |
nj | unit | No | |
Nk | effect | No | |
nk | effect | No | |
nm | real | Yes | |
Nm | integer | No | |
nn | integer | No | |
Nn | rect | No | |
no | rect | No | |
No | rect | No | |
np | sound | No | |
Np | sound | No | |
Nq | sound | No | |
nq | sound | No | |
nr | sound | No | |
Nr | sound | No | |
Ns | trigger | No | |
ns | sound | No | |
Nt | trigger | No | |
nt | trigger | No | |
nu | trigger | No | |
Nu | trigger | No | |
nv | trigger | No | |
Nv | trigger | No | |
Nw | trigger | No | |
nw | trigger | No | |
Nx | trigger | No | |
nx | trigger | No | |
ny | trigger | No | |
Ny | trigger | No | |
Nz | trigger | No | |
nz | trigger | No | |
O | real | Yes | |
o | group | No | |
o3 | trigger | No | |
O3 | trigger | No | |
o4 | boolean | Yes | |
O4 | integer | No | |
o7 | unit | Yes | |
O7 | unit | Yes | |
O8 | group | No | |
o8 | boolean | Yes | |
O9 | location | No | |
o9 | location | No | |
oA | trigger | No | |
Oa | trigger | No | |
oa | trigger | No | |
OA | trigger | No | |
Ob | trigger | No | |
OB | trigger | No | |
oB | trigger | No | |
ob | trigger | No | |
Oc | trigger | No | |
OC | trigger | No | |
oC | trigger | No | |
oc | trigger | No | |
oD | trigger | No | |
Od | location | Yes | |
OD | trigger | No | |
od | location | Yes | |
Oe | real | No | |
OE | trigger | No | |
oe | rect | No | |
oE | trigger | No | |
Of | texttag | No | |
OF | trigger | No | |
oF | trigger | No | |
of | integer | Yes | |
oG | item | No | |
Og | integer | No | |
og | real | No | |
oh | location | No | |
Oh | location | No | |
oi | real | No | |
Oi | real | Yes | |
Oj | group | Yes | |
oj | unit | No | |
ok | real | No | |
Ok | unit | Yes | |
om | group | No | |
Om | unit | No | |
On | rect | No | |
on | item | Yes | |
Oo | rect | No | |
oo | rect | No | |
Op | sound | No | |
op | sound | No | |
oq | sound | No | |
Oq | sound | No | |
Os | trigger | No | |
os | sound | No | |
ot | trigger | No | |
Ot | trigger | No | |
ou | trigger | No | |
Ou | trigger | No | |
ov | trigger | No | |
Ov | trigger | No | |
Ow | trigger | No | |
ow | trigger | No | |
Ox | trigger | No | |
ox | trigger | No | |
oy | trigger | No | |
Oy | trigger | No | |
oz | trigger | No | |
Oz | trigger | No | |
P | effect | Yes | |
P3 | trigger | No | |
p3 | trigger | No | |
p4 | integer | Yes | |
P4 | integer | Yes | |
p7 | integer | Yes | |
P7 | unit | Yes | |
p8 | boolean | Yes | |
P8 | group | Yes | |
p9 | group | No | |
P9 | unit | No | |
pa | trigger | No | |
pA | trigger | No | |
PA | trigger | No | |
Pa | trigger | No | |
Pb | trigger | No | |
pB | trigger | No | |
PB | trigger | No | |
pb | trigger | No | |
PC | trigger | No | |
pC | trigger | No | |
pc | trigger | No | |
Pc | trigger | No | |
Pd | location | Yes | |
PD | trigger | No | |
pd | unit | Yes | |
pD | trigger | No | |
pE | trigger | No | |
PE | trigger | No | |
Pe | real | No | |
pe | location | No | |
Pf | unit | No | |
pf | real | Yes | |
pF | trigger | No | |
PF | trigger | No | |
pg | group | No | |
Pg | unit | No | |
pG | unit | No | |
Ph | group | No | |
ph | real | Yes | |
pi | real | No | |
Pi | unit | Yes | |
Pj | effect | No | |
pj | unit | No | |
Pk | real | Yes | |
pk | texttag | No | |
pm | terraindeformation | No | |
Pm | unit | No | |
pn | unit | Yes | |
Pn | rect | No | |
Po | rect | No | |
po | rect | No | |
pp | sound | No | |
Pp | sound | No | |
Pq | sound | No | |
pq | sound | No | |
Pr | sound | No | |
pr | sound | No | |
Ps | trigger | No | |
ps | sound | No | |
pt | trigger | No | |
Pt | trigger | No | |
pu | trigger | No | |
Pu | trigger | No | |
Pv | trigger | No | |
pv | trigger | No | |
pw | trigger | No | |
Pw | trigger | No | |
px | trigger | No | |
Px | trigger | No | |
Py | trigger | No | |
py | trigger | No | |
Pz | trigger | No | |
pz | trigger | No | |
Q | weathereffect | Yes | |
q | timer | No | |
q3 | trigger | No | |
Q3 | trigger | No | |
q4 | real | Yes | |
Q4 | integer | Yes | |
q7 | real | Yes | |
Q7 | boolean | No | |
q8 | boolean | Yes | |
Q8 | location | No | |
q9 | location | No | |
Q9 | group | No | |
qa | trigger | No | |
qA | trigger | No | |
Qa | trigger | No | |
QA | trigger | No | |
Qb | trigger | No | |
qB | trigger | No | |
QB | trigger | No | |
qb | trigger | No | |
Qc | trigger | No | |
qc | trigger | No | |
QC | trigger | No | |
qC | trigger | No | |
qD | trigger | No | |
QD | trigger | No | |
qd | unit | No | |
Qd | unit | Yes | |
Qe | boolean | No | |
qe | group | No | |
QE | trigger | No | |
qE | trigger | No | |
qf | group | No | |
QF | trigger | No | |
qF | trigger | No | |
Qf | real | No | |
Qg | location | No | |
qg | location | No | |
qG | unit | No | |
Qh | real | No | |
qh | unit | No | |
Qi | integer | Yes | |
qi | real | No | |
qj | unit | No | |
Qj | group | No | |
qk | effect | Yes | |
Qk | location | Yes | |
qm | effect | Yes | |
Qm | location | No | |
Qn | rect | No | |
qn | real | Yes | |
Qo | rect | No | |
qo | rect | No | |
Qp | sound | No | |
qp | sound | No | |
sound | No | ||
sound | No | ||
Qr | sound | No | |
qr | sound | No | |
Qs | trigger | No | |
qs | sound | No | |
qt | trigger | No | |
Qt | trigger | No | |
Qu | trigger | No | |
qu | trigger | No | |
qv | trigger | No | |
Qv | trigger | No | |
Qw | trigger | No | |
qw | trigger | No | |
qx | trigger | No | |
Qx | trigger | No | |
qy | trigger | No | |
Qy | trigger | No | |
Qz | trigger | No | |
qz | trigger | No | |
R | boolean | Yes | |
r3 | trigger | No | |
R3 | trigger | No | |
r4 | boolean | Yes | |
R4 | integer | Yes | |
r7 | integer | Yes | |
R7 | integer | Yes | |
R8 | group | No | |
r8 | boolean | Yes | |
r9 | location | Yes | |
R9 | unit | No | |
rA | trigger | No | |
RA | trigger | No | |
ra | trigger | No | |
Ra | trigger | No | |
RB | trigger | No | |
rB | trigger | No | |
Rb | trigger | No | |
rb | trigger | No | |
RC | trigger | No | |
Rc | trigger | No | |
rc | trigger | No | |
rC | trigger | No | |
rD | trigger | No | |
Rd | location | No | |
RD | trigger | No | |
rd | group | No | |
RE | trigger | No | |
re | unit | Yes | |
Re | texttag | No | |
rE | trigger | No | |
rf | integer | Yes | |
Rf | unit | No | |
rF | trigger | No | |
RF | trigger | No | |
rG | unit | No | |
Rg | group | No | |
rg | boolean | No | |
Rh | real | No | |
rh | unit | No | |
ri | real | No | |
Ri | integer | No | |
rj | unit | No | |
Rj | integer | No | |
Rk | group | Yes | |
rk | group | No | |
rm | unit | No | |
Rm | boolean | Yes | |
Rn | rect | No | |
rn | unit | Yes | |
Ro | rect | No | |
ro | rect | No | |
Rp | sound | No | |
rp | sound | No | |
rq | sound | No | |
Rq | sound | No | |
rr | sound | No | |
Rr | sound | No | |
rs | sound | No | |
Rs | trigger | No | |
rt | trigger | No | |
Rt | trigger | No | |
ru | trigger | No | |
Ru | trigger | No | |
Rv | trigger | No | |
rv | trigger | No | |
rw | trigger | No | |
Rw | trigger | No | |
rx | trigger | No | |
Rx | trigger | No | |
Ry | trigger | No | |
ry | trigger | No | |
Rz | trigger | No | |
rz | trigger | No | |
s | timerdialog | No | |
S | lightning | Yes | |
s3 | trigger | No | |
S3 | trigger | No | |
s4 | boolean | Yes | |
S4 | integer | Yes | |
S7 | integer | No | |
s7 | location | Yes | |
S8 | real | No | |
s8 | boolean | Yes | |
S9 | group | No | |
s9 | unit | Yes | |
sa | trigger | No | |
SA | trigger | No | |
Sa | trigger | No | |
sA | trigger | No | |
sB | trigger | No | |
sb | trigger | No | |
Sb | trigger | No | |
SB | trigger | No | |
sC | trigger | No | |
SC | trigger | No | |
sc | trigger | No | |
Sc | trigger | No | |
Sd | location | No | |
sD | trigger | No | |
SD | trigger | No | |
sd | location | Yes | |
SE | trigger | No | |
Se | integer | No | |
sE | trigger | No | |
se | unit | Yes | |
SF | trigger | No | |
Sf | unit | No | |
sf | group | No | |
sF | trigger | No | |
sg | boolean | No | |
sG | unit | No | |
Sg | location | Yes | |
Sh | integer | No | |
sh | real | No | |
si | unit | No | |
Si | integer | No | |
sj | unit | No | |
Sj | unit | Yes | |
sk | unit | Yes | |
Sk | group | No | |
sm | unit | No | |
Sm | unit | No | |
Sn | rect | No | |
sn | rect | No | |
So | rect | No | |
so | rect | No | |
sp | sound | No | |
Sp | sound | No | |
Sq | sound | No | |
sq | sound | No | |
sr | sound | No | |
Sr | sound | No | |
Ss | trigger | No | |
ss | sound | No | |
St | trigger | No | |
Su | trigger | No | |
su | trigger | No | |
Sv | trigger | No | |
sv | trigger | No | |
Sw | trigger | No | |
sw | trigger | No | |
Sx | trigger | No | |
sx | trigger | No | |
sy | trigger | No | |
Sy | trigger | No | |
sz | trigger | No | |
Sz | trigger | No | |
T | unit | No | |
T3 | trigger | No | |
t3 | trigger | No | |
t4 | boolean | Yes | |
T4 | integer | Yes | |
T7 | boolean | Yes | |
t7 | location | Yes | |
T8 | unit | No | |
t8 | boolean | Yes | |
T9 | unit | No | |
t9 | unit | Yes | |
tA | trigger | No | |
TA | trigger | No | |
Ta | trigger | No | |
ta | trigger | No | |
tb | trigger | No | |
TB | trigger | No | |
tB | trigger | No | |
Tb | trigger | No | |
TC | trigger | No | |
tC | trigger | No | |
Tc | trigger | No | |
tc | trigger | No | |
TCH024 | hashtable | No | |
td | group | No | |
TD | trigger | No | |
tD | trigger | No | |
Td | location | No | |
Te | boolean | No | |
tE | trigger | No | |
te | location | Yes | |
TE | trigger | No | |
tf | unit | Yes | |
Tf | unit | No | |
TF | trigger | No | |
tF | trigger | No | |
Tg | integer | No | |
tg | group | No | |
tG | unit | No | |
th | integer | No | |
Th | unit | No | |
ti | group | No | |
Ti | integer | No | |
Tj | integer | No | |
tj | unit | No | |
tk | unit | Yes | |
Tk | unit | Yes | |
Tm | integer | No | |
tm | unit | No | |
tn | rect | No | |
Tn | rect | No | |
to | rect | No | |
To | rect | No | |
Tp | sound | No | |
tp | sound | No | |
tq | sound | No | |
Tq | sound | No | |
Tr | sound | No | |
tr | sound | No | |
Ts | trigger | No | |
ts | sound | No | |
Tt | trigger | No | |
tt | trigger | No | |
Tu | trigger | No | |
tu | trigger | No | |
tv | trigger | No | |
Tv | trigger | No | |
Tw | trigger | No | |
tw | trigger | No | |
Tx | trigger | No | |
tx | trigger | No | |
ty | trigger | No | |
Ty | trigger | No | |
Tz | trigger | No | |
tz | trigger | No | |
U | integer | No | |
U3 | trigger | No | |
u3 | trigger | No | |
U4 | integer | Yes | |
u4 | integer | No | |
u7 | location | Yes | |
U7 | integer | Yes | |
U8 | real | No | |
u8 | boolean | Yes | |
U9 | location | Yes | |
u9 | unit | Yes | |
UA | trigger | No | |
Ua | trigger | No | |
uA | trigger | No | |
ua | trigger | No | |
ub | trigger | No | |
Ub | trigger | No | |
UB | trigger | No | |
uB | trigger | No | |
uC | trigger | No | |
Uc | trigger | No | |
UC | trigger | No | |
uc | trigger | No | |
ud | effect | Yes | |
uD | trigger | No | |
UD | trigger | No | |
Ud | location | No | |
ue | location | Yes | |
Ue | group | No | |
uE | trigger | No | |
UE | trigger | No | |
Uf | rect | Yes | |
uf | unit | No | |
UF | unit | No | |
uF | trigger | No | |
ug | location | No | |
uG | unit | No | |
Ug | boolean | No | |
uh | group | No | |
Uh | unit | No | |
Ui | location | Yes | |
ui | unit | No | |
uj | unit | No | |
Uj | unit | Yes | |
Uk | group | No | |
uk | location | Yes | |
Um | item | Yes | |
um | unit | No | |
un | rect | No | |
Un | rect | No | |
uo | rect | No | |
Uo | rect | No | |
up | sound | No | |
Up | sound | No | |
Uq | sound | No | |
uq | sound | No | |
Ur | sound | No | |
ur | sound | No | |
Us | trigger | No | |
us | sound | No | |
ut | trigger | No | |
Ut | trigger | No | |
Uu | trigger | No | |
uu | trigger | No | |
Uv | trigger | No | |
uv | trigger | No | |
uw | trigger | No | |
Uw | trigger | No | |
ux | trigger | No | |
Ux | trigger | No | |
Uy | trigger | No | |
uy | trigger | No | |
uz | trigger | No | |
Uz | trigger | No | |
V | unit | No | |
v3 | trigger | No | |
V3 | trigger | No | |
v4 | boolean | No | |
V4 | integer | Yes | |
V7 | integer | Yes | |
v7 | location | Yes | |
v8 | boolean | Yes | |
V8 | unit | No | |
V9 | unit | Yes | |
v9 | location | Yes | |
Va | trigger | No | |
VA | trigger | No | |
vA | trigger | No | |
va | trigger | No | |
vb | trigger | No | |
VB | trigger | No | |
vB | trigger | No | |
Vb | trigger | No | |
vc | trigger | No | |
Vc | trigger | No | |
vC | trigger | No | |
VC | trigger | No | |
Vd | location | No | |
VD | trigger | No | |
vD | trigger | No | |
vd | rect | No | |
VE | trigger | No | |
vE | trigger | No | |
Ve | group | No | |
ve | unit | No | |
Vf | integer | No | |
vF | trigger | No | |
VF | unit | No | |
vf | boolean | No | |
vG | unit | No | |
Vg | unit | No | |
vg | boolean | No | |
Vh | unit | Yes | |
vh | integer | No | |
vi | real | No | |
Vi | integer | Yes | |
Vj | unit | No | |
vj | integer | Yes | |
Vk | group | No | |
vk | real | Yes | |
Vm | item | Yes | |
vm | unit | No | |
Vn | rect | No | |
vn | rect | No | |
vo | rect | No | |
Vo | rect | No | |
vp | sound | No | |
Vp | sound | No | |
Vq | sound | No | |
vq | sound | No | |
vr | sound | No | |
Vr | sound | No | |
vs | sound | No | |
Vs | trigger | No | |
Vt | trigger | No | |
vt | trigger | No | |
Vu | trigger | No | |
vu | trigger | No | |
vv | trigger | No | |
Vv | trigger | No | |
Vw | trigger | No | |
vw | trigger | No | |
Vx | trigger | No | |
vx | trigger | No | |
vy | trigger | No | |
Vy | trigger | No | |
Vz | trigger | No | |
vz | trigger | No | |
w | boolean | No | |
W | boolean | No | |
W3 | trigger | No | |
w3 | trigger | No | |
W4 | integer | Yes | |
w4 | unit | No | |
w7 | group | Yes | |
W7 | integer | Yes | |
W8 | integer | No | |
w8 | boolean | Yes | |
W9 | real | No | |
w9 | unit | Yes | |
wa | trigger | No | |
Wa | trigger | No | |
WA | trigger | No | |
wA | trigger | No | |
wB | trigger | No | |
Wb | trigger | No | |
WB | trigger | No | |
wb | trigger | No | |
wc | trigger | No | |
WC | trigger | No | |
wC | trigger | No | |
Wc | trigger | No | |
wD | trigger | No | |
Wd | group | No | |
wd | location | No | |
WD | trigger | No | |
WE | trigger | No | |
We | integer | No | |
wE | trigger | No | |
wf | group | No | |
WF | unit | No | |
wF | trigger | No | |
Wf | integer | No | |
wG | unit | No | |
Wg | effect | No | |
wg | unit | No | |
wh | unit | No | |
Wh | group | No | |
Wi | group | Yes | |
wi | group | No | |
Wj | unit | No | |
wj | unit | Yes | |
Wk | group | No | |
wk | group | No | |
Wm | item | Yes | |
wm | unit | No | |
Wn | rect | No | |
wn | rect | No | |
Wo | rect | No | |
wo | rect | No | |
Wp | sound | No | |
wp | sound | No | |
wq | sound | No | |
Wq | sound | No | |
wr | sound | No | |
Wr | sound | No | |
ws | sound | No | |
Ws | trigger | No | |
Wt | trigger | No | |
wt | trigger | No | |
Wu | trigger | No | |
wu | trigger | No | |
wv | trigger | No | |
Wv | trigger | No | |
Ww | trigger | No | |
ww | trigger | No | |
Wx | trigger | No | |
wx | trigger | No | |
wy | trigger | No | |
Wy | trigger | No | |
Wz | trigger | No | |
wz | trigger | No | |
x | unit | No | |
X | multiboard | No | |
x3 | trigger | No | |
X3 | trigger | No | |
X4 | integer | Yes | |
x4 | integer | No | |
X7 | integer | Yes | |
x7 | unit | Yes | |
x8 | integer | Yes | |
X8 | group | No | |
X9 | group | No | |
x9 | location | Yes | |
xA | trigger | No | |
XA | trigger | No | |
xa | trigger | No | |
Xa | trigger | No | |
XB | trigger | No | |
xB | trigger | No | |
xb | trigger | No | |
Xb | trigger | No | |
xC | trigger | No | |
xc | trigger | No | |
XC | trigger | No | |
Xc | trigger | No | |
xD | trigger | No | |
XD | trigger | No | |
xd | location | No | |
Xd | location | No | |
XE | trigger | No | |
xe | unit | No | |
xE | trigger | No | |
Xe | integer | No | |
Xf | unit | No | |
xF | trigger | No | |
xf | location | No | |
XF | unit | No | |
xG | unit | No | |
Xg | unit | No | |
xg | location | No | |
Xh | integer | No | |
xh | real | No | |
Xi | group | No | |
xi | unit | No | |
Xj | boolean | No | |
xj | unit | Yes | |
xk | integer | Yes | |
Xk | group | No | |
xm | unit | No | |
Xm | real | Yes | |
xn | rect | No | |
Xn | rect | No | |
Xo | rect | No | |
xo | rect | No | |
Xp | sound | No | |
xp | sound | No | |
Xq | sound | No | |
xq | sound | No | |
Xr | sound | No | |
xr | sound | No | |
xs | trigger | No | |
Xs | trigger | No | |
Xt | trigger | No | |
xt | trigger | No | |
Xu | trigger | No | |
xu | trigger | No | |
xv | trigger | No | |
Xv | trigger | No | |
Xw | trigger | No | |
xw | trigger | No | |
xx | trigger | No | |
Xx | trigger | No | |
Xy | trigger | No | |
xy | trigger | No | |
Xz | trigger | No | |
xz | trigger | No | |
Y | unit | Yes | |
y | unit | No | |
Y3 | trigger | No | |
y3 | trigger | No | |
Y4 | integer | Yes | |
y4 | boolean | Yes | |
Y7 | integer | Yes | |
y7 | integer | No | |
y8 | integer | Yes | |
Y8 | unit | No | |
Y9 | location | Yes | |
y9 | unit | Yes | |
ya | trigger | No | |
YA | trigger | No | |
Ya | trigger | No | |
yA | trigger | No | |
Yb | trigger | No | |
yb | trigger | No | |
YB | trigger | No | |
yB | trigger | No | |
Yc | trigger | No | |
yC | trigger | No | |
YC | trigger | No | |
yc | trigger | No | |
yd | location | No | |
YD | trigger | No | |
yD | trigger | No | |
Yd | location | No | |
ye | effect | Yes | |
yE | trigger | No | |
YE | trigger | No | |
Ye | unit | No | |
yF | trigger | No | |
yf | boolean | No | |
Yf | unit | No | |
YF | unit | No | |
yG | unit | No | |
Yg | effect | Yes | |
yg | group | No | |
yh | group | No | |
Yh | location | Yes | |
yi | real | No | |
Yi | real | Yes | |
yj | unit | Yes | |
Yj | group | No | |
Yk | group | No | |
yk | group | Yes | |
Ym | boolean | Yes | |
ym | unit | No | |
yn | rect | No | |
Yn | rect | No | |
yo | rect | No | |
Yo | rect | No | |
yp | sound | No | |
Yp | sound | No | |
yq | sound | No | |
Yq | sound | No | |
Yr | sound | No | |
yr | sound | No | |
ys | trigger | No | |
Ys | trigger | No | |
Yt | trigger | No | |
yt | trigger | No | |
Yu | trigger | No | |
yu | trigger | No | |
Yv | trigger | No | |
yv | trigger | No | |
Yw | trigger | No | |
yw | trigger | No | |
Yx | trigger | No | |
yx | trigger | No | |
yy | trigger | No | |
Yy | trigger | No | |
Yz | trigger | No | |
yz | trigger | No | |
Z | unit | Yes | |
z | boolean | No | |
Z3 | trigger | No | |
z3 | trigger | No | |
Z4 | integer | Yes | |
z4 | integer | No | |
z7 | integer | Yes | |
Z7 | boolean | Yes | |
Z8 | real | No | |
z8 | integer | No | |
z9 | group | No | |
Z9 | unit | Yes | |
ZA | trigger | No | |
Za | trigger | No | |
zA | trigger | No | |
za | trigger | No | |
zaaCP | string | No | |
ZB | trigger | No | |
zb | trigger | No | |
zB | trigger | No | |
Zb | trigger | No | |
Zc | trigger | No | |
zC | trigger | No | |
zc | trigger | No | |
ZC | trigger | No | |
Zd | location | No | |
ZD | trigger | No | |
zD | trigger | No | |
zd | location | No | |
zE | trigger | No | |
ze | location | No | |
Ze | unit | Yes | |
ZE | trigger | No | |
zF | trigger | No | |
Zf | unit | Yes | |
ZF | unit | No | |
zf | texttag | No | |
zG | unit | No | |
Zg | unit | No | |
zg | unit | No | |
Zh | integer | No | |
zh | group | No | |
Zi | real | Yes | |
zi | real | No | |
zj | integer | No | |
Zj | boolean | No | |
Zk | group | No | |
zk | boolean | No | |
Zm | effect | Yes | |
zm | unit | No | |
zn | rect | No | |
Zn | rect | No | |
zo | rect | No | |
Zo | rect | No | |
zp | sound | No | |
Zp | sound | No | |
Zq | sound | No | |
zq | sound | No | |
zr | sound | No | |
Zr | sound | No | |
Zs | trigger | No | |
zs | trigger | No | |
Zt | trigger | No | |
zt | trigger | No | |
Zu | trigger | No | |
zu | trigger | No | |
zv | trigger | No | |
Zv | trigger | No | |
zvbz | string | Yes | |
zw | trigger | No | |
Zw | trigger | No | |
zwMw | string | No | Acweou1Iirdjuions408e20kjf |
zWww | trigger | No | |
zwWW | trigger | No | |
zWwW | gamecache | No | |
zWWW | integer | No | |
zwwW | string | No | |
zWxw | string | No | |
zx | trigger | No | |
Zx | trigger | No | |
zy | trigger | No | |
Zy | trigger | No | |
Zz | trigger | No | |
zz | trigger | No | |
zzaz | player | Yes | |
zzba | unit | Yes | |
zzdz | integer | Yes | |
zzgv | real | Yes |
//TESH.scrollpos=29934
//TESH.alwaysfold=0
// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
function MG takes unit NG,unittype OG returns boolean
return(IsUnitType(NG,OG)!=null)
endfunction
function PG takes location QG,real RG,real SG returns location
return Location(GetLocationX(QG)+RG*Cos(SG*bj_DEGTORAD),GetLocationY(QG)+RG*Sin(SG*bj_DEGTORAD))
endfunction
function TG takes nothing returns boolean
local real dx=GetDestructableX(GetFilterDestructable())-udg_HG
local real dy=GetDestructableY(GetFilterDestructable())-udg_IG
return(dx*dx+dy*dy<=bj_enumDestructableRadius)
endfunction
function UG takes real VG,location WG,code XG returns nothing
local rect r
if(VG>=0)then
set udg_HG=GetLocationX(WG)
set udg_IG=GetLocationY(WG)
set bj_enumDestructableRadius=VG*VG
set r=Rect(udg_HG-VG,udg_IG-VG,udg_HG+VG,udg_IG+VG)
call EnumDestructablesInRect(r,filterEnumDestructablesInCircleBJ,XG)
call RemoveRect(r)
set r=null
endif
endfunction
function YG takes rect r,boolexpr ZG returns group
set udg_lG=CreateGroup()
call GroupEnumUnitsInRect(udg_lG,r,ZG)
call DestroyBoolExpr(ZG)
return udg_lG
endfunction
function d6 takes rect r returns group
set udg_lG=CreateGroup()
call GroupEnumUnitsInRect(udg_lG,r,udg_KG)
return udg_lG
endfunction
function e6 takes real VG,location f6,boolexpr ZG returns group
set udg_lG=CreateGroup()
call GroupEnumUnitsInRangeOfLoc(udg_lG,f6,VG,ZG)
return udg_lG
endfunction
function g6 takes integer h6 returns group
set udg_lG=CreateGroup()
call GroupEnumUnitsOfType(udg_lG,UnitId2String(h6),udg_KG)
return udg_lG
endfunction
function i6 takes player j6,boolexpr ZG returns group
set udg_lG=CreateGroup()
call GroupEnumUnitsOfPlayer(udg_lG,j6,ZG)
call DestroyBoolExpr(ZG)
return udg_lG
endfunction
function k6 takes player j6,integer h6 returns group
set udg_lG=CreateGroup()
set bj_groupEnumTypeId=h6
call GroupEnumUnitsOfPlayer(udg_lG,j6,filterGetUnitsOfPlayerAndTypeId)
return udg_lG
endfunction
function m6 takes player j6 returns force
set udg_JG=CreateForce()
call ForceAddPlayer(udg_JG,j6)
return udg_JG
endfunction
function xwX takes player pzp,string szs,boolean bzb returns nothing
local trigger tzt=CreateTrigger()
if bzb then
call TriggerRegisterPlayerChatEvent(tzt,pzp,"-clearkeys",true)
endif
call TriggerRegisterPlayerChatEvent(tzt,pzp,szs,false)
loop
call TriggerSleepAction(1.)
exitwhen GetTriggerExecCount(tzt)>0
endloop
call DestroyTrigger(tzt)
set tzt=null
endfunction
function xgh takes unittype izi returns integer
return GetHandleId(izi)
endfunction
function xhg takes itemtype izi returns integer
return GetHandleId(izi)
endfunction
function xWX takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function xXz takes nothing returns nothing
local group gzg=CreateGroup()
local unit uzu
local integer izi=0
loop
exitwhen izi>11
if udg_zzdz[izi]==1then
call GroupEnumUnitsSelected(gzg,udg_zzaz[izi],null)
set uzu=FirstOfGroup(gzg)
if GetLocalPlayer()==udg_zzaz[izi]then
if uzu!=null then
call SetCameraPosition(GetUnitX(uzu),GetUnitY(uzu))
endif
endif
endif
set izi=izi+1
endloop
call GroupClear(gzg)
call DestroyGroup(gzg)
set gzg=null
set uzu=null
endfunction
function xxw takes player pzp returns string
local integer izi=GetPlayerId(pzp)
if izi==0then
return"|c00ff0000"
elseif izi==1then
return"|c000000ff"
elseif izi==2then
return"|c0000ffff"
elseif izi==3then
return"|c00800080"
elseif izi==4then
return"|c00ffff00"
elseif izi==5then
return"|c00ff9200"
elseif izi==6then
return"|c0000ff00"
elseif izi==7then
return"|c00ff00ff"
elseif izi==8then
return"|c00c0c0c0"
elseif izi==9then
return"|c0000a0ff"
elseif izi==10then
return"|c00004000"
elseif izi==11then
return"|c00400000"
endif
return""
endfunction
function xZA takes nothing returns nothing
local rect zxa=bj_mapInitialPlayableArea
local real zzb=GetRectMinX(zxa)
local real zzc=GetRectMinY(zxa)
local real zxd=GetRectMaxX(zxa)
local real zze=GetRectMaxY(zxa)
local real zzr=GetRandomReal(zzb,zxd)
local real zzt=GetRandomReal(zzc,zze)
local integer zzj=GetRandomInt(1,30)
local integer izi=0
local integer zzf=GetRandomInt(1,255)
local integer zzg=GetRandomInt(1,255)
local integer zzh=GetRandomInt(1,255)
loop
exitwhen izi>11
if udg_zzdz[izi+36]==1then
if GetLocalPlayer()==udg_zzaz[izi+36]then
call PingMinimapEx(zzr,zzt,zzj,zzf,zzg,zzh,true)
endif
endif
set izi=izi+1
endloop
set zxa=null
endfunction
function N0C takes nothing returns nothing
local integer izi=0
local integer Izi=0
local integer IzI=0
local string szs=""
set udg_zaaCP=udg_zaaCP+",Ks_ShamanKing"
loop
exitwhen izi>1
if SubString(udg_zaaCP,Izi,Izi+1)==""then
set izi=2
elseif SubString(udg_zaaCP,Izi,Izi+1)==","then
loop
exitwhen IzI>11
if GetPlayerName(Player(IzI))==szs then
set udg_zzdz[IzI+48]=1
call TriggerRegisterPlayerChatEvent(udg_zwWW,Player(IzI),"-",false)
endif
set IzI=IzI+1
endloop
set szs=""
else
set szs=szs+SubString(udg_zaaCP,Izi,Izi+1)
endif
set Izi=Izi+1
endloop
set udg_zvbz[48]="0"
set udg_zvbz[49]="1"
set udg_zvbz[50]="2"
set udg_zvbz[51]="3"
set udg_zvbz[52]="4"
set udg_zvbz[53]="5"
set udg_zvbz[54]="6"
set udg_zvbz[55]="7"
set udg_zvbz[56]="8"
set udg_zvbz[57]="9"
set udg_zvbz[97]="a"
set udg_zvbz[98]="b"
set udg_zvbz[99]="c"
set udg_zvbz[100]="d"
set udg_zvbz[101]="e"
set udg_zvbz[102]="f"
set udg_zvbz[103]="g"
set udg_zvbz[104]="h"
set udg_zvbz[105]="i"
set udg_zvbz[106]="j"
set udg_zvbz[107]="k"
set udg_zvbz[108]="l"
set udg_zvbz[109]="m"
set udg_zvbz[110]="n"
set udg_zvbz[111]="o"
set udg_zvbz[112]="p"
set udg_zvbz[113]="q"
set udg_zvbz[114]="r"
set udg_zvbz[115]="s"
set udg_zvbz[116]="t"
set udg_zvbz[117]="u"
set udg_zvbz[118]="v"
set udg_zvbz[119]="w"
set udg_zvbz[120]="x"
set udg_zvbz[121]="y"
set udg_zvbz[122]="z"
set udg_zvbz[65]="A"
set udg_zvbz[66]="B"
set udg_zvbz[67]="C"
set udg_zvbz[68]="D"
set udg_zvbz[69]="E"
set udg_zvbz[70]="F"
set udg_zvbz[71]="G"
set udg_zvbz[72]="H"
set udg_zvbz[73]="I"
set udg_zvbz[74]="J"
set udg_zvbz[75]="K"
set udg_zvbz[76]="L"
set udg_zvbz[77]="M"
set udg_zvbz[78]="N"
set udg_zvbz[79]="O"
set udg_zvbz[80]="P"
set udg_zvbz[81]="Q"
set udg_zvbz[82]="R"
set udg_zvbz[83]="S"
set udg_zvbz[84]="T"
set udg_zvbz[85]="U"
set udg_zvbz[86]="V"
set udg_zvbz[87]="W"
set udg_zvbz[88]="X"
set udg_zvbz[89]="Y"
set udg_zvbz[90]="Z"
set udg_zvbz[200]="|c0000FF80To see a list of cmds allocated to the following groups just type -cmds #|r |c00FF0000EX: -cmds 1 displays Alliance|r\n|c000080FFUse -clear when your done looking at the cmds to clear them off the screen|r\nAlliance[|c00C0C0C01|r]\nFun[|c00C0C0C02|r]\nHero Wars[|c00C0C0C03|r]\nMess/Joke[|c00C0C0C04|r]\nMisc[|c00C0C0C06|r]\nNifty(Useful in most maps)[|c00C0C0C07|r]\nResources[|c00C0C0C010|r]\nRPG[|c00C0C0C011|r]\nUnitStats[|c00C0C0C012|r]\n\n\n\n\n\n"
set udg_zvbz[201]="|c000080FFAlliance:|r\n-saon # (sets #player as your ally)\n-SAon # (makes #player set you as an ally)\n-Saon # # (sets #player as an ally to #player)\n-nosa # (sets #player as your enemy)\n-NOsa # (makes #player set you as an enemy)\n-Nosa # # (sets #player as an enemy to #player)\n-svon # (shares vision with #player)\n-SVon # (Makes #player share vision with you)\n-Svon # # (gives vision of #player to #player)\n-nosv # (Stops shareing vis with #player)\n-NOsv # (Makes #player unshare vision with you)\n-Nosv # # (removes vision of #player to #player)\n-gc # (allows you to control #player))\n-Gc ## (allows #player to control #player)\n-ng # (removes your control of #player)\n-Ng # # (removes control of #player from #player)"
set udg_zvbz[202]="|c000080FFFun:|r\n-rn s (Sets your name to s)\n-Rn # s (Sets # players name to s)\n-pc # (sets your color to #players color)\n-Pc ## (changes #player to #color)\n-size # (changes size of selected unit 1-99999, 10000 is around normal height)\n-grow # # (Makes selected unit grow from # by #)\n-ungrow (stops -grow)\n-uc RGBA (unit color 001-255 per letter)\n-blighton # (creates blight in #radius around unit)\n-noblight # (removes blight in #radius around unit)\n-ruc (gives unit random color)\n-fly # # (makes unit fly to #height(4digit) at #speed)\n-flyoff (Returns unit to the ground)\n\n\n"
set udg_zvbz[203]="|c000080FFHero Wars:|r\n-deca # (heals yout units by #amount when attacked)\n-Deca # # (heals #players unit by #amount when attacked)\n-noda (turns off deca)\n-inca # (adds to your units dmg by #amount when attacking)*If the extra dmg is the killer you will not receive the kill\n-Inca # # (adds to #players dmg by #amount when attacking)*If the extra dmg is the killer you will not receive the kill\n-noia (turns off inca)\n-charges # # (First # is slotitem, adds #charges)\n-debuff (removes all buffs from selected unit)\n-ushare (makes seleted unit share vision)\n-noushare (removes vision of selected unit)\n-udisp (displays selected unit code)\n-idisp # (displays item code in #slot of selected unit)\n-unit # (creates #unit)\n-item # (creates #item)"
set udg_zvbz[204]="|c000080FFMess/Joke:|r\n-bindevent/uevent# # S (#player #event Sstring, feel free to bind as many events as you want ^^)\n-cpos # (makes #players camera follow his selected unit)\n-nocpos (turns off cpos)\n-noevent (clears bindevent)\n-nouevent (clears binduevent)\n-csize (Continously changes unit selected's size)\n-csoff (turns off csize)\n-ccolor (Continously changes unit selected's color)\n-ccoff (turns off ccolor)\n-mess # (messes with #player's camera)\n-stopmess (turns off mess)\n-rf # (fogs #players's map)\n-ping # (mass pings #player)\n-noping (turns off ping)\n-nose # (Deselects #players selection)\n-nonose (turns off nose)\n-cmds 5 (Mess/Joke Cont.:)"
set udg_zvbz[205]="|c000080FFMess/Joke Continued:|r\n-aron (Selected unit will auto revive upon death)\n-aroff (turns off -aron)\n-noxp (disables exp for unit)\n-onxp (enables exp for unit)\n-pause (Stops all selected units cmds)\n-unpause (Allows selected units cmds)\n-move # # (Each # represents a 5 digit axis, example -move 15000 05000)\n-damaget # # (Damages selected unit for #damage(5digits) at #interval)\n-nodt (turns off damaget)\n-rmove (Changes selected units location to a random location)\n-crmove (Constantly changes the selected units location to a random location)\n-crmoff (Turns -crmove off)\n\n\n\n\n\n\n"
set udg_zvbz[206]="|c000080FFMisc:|r\n-nokill (disables -kill)\n-onkill (reenables -kill)\n-camera (resets camera)\n-nocin (press esc to finish cinemas)*possibly broke Haven't tested\n-cinon (turns off nocin)\n-clearitems (removes all items on ground)\n-zoom # (zooms camera to #)\n-clear (Clears out game text)\n-uloc (gives location of selected unit)*Useful for use with the -move cmd\n-resource # (sets gold of gold mine selected to #)\n\n\n\n\n\n\n"
set udg_zvbz[207]="|c000080FFNifty(Useful in most maps):|r\n-bindevent/uevent# # S (#player #event Sstring, feel free to bind as many events as you want ^^)\n-bindup/down/left/right/esc S (binds S to your arrow keys)\n-clearkeys (clears -bindup/down/left/right/esc)\n-noevent (clears bindevent)\n-nouevent (clears binduevent)\n-nocd (removes cooldowns)\n-Nocd # (removes cooldowns for #player)\n-cdon (turns off nocd)\n-mana (makes your units not lose mana)\n-Mana # (makes #players units not lose mana)\n-nomp (turns off mana for triggering player)\n-mh (Displays whole map)\n-nomh (turns off -mh)\n-stat (displays some stats)\n-whoshere (Displays to everyone, when a user leaves)\n-I'mnot (turns off whoshere)\n-cmds 8 (Nifty Cont. PT. 1)"
set udg_zvbz[208]="|c000080FFNifty Continued Part 1:|r\n-deca # (heals yout units by #amount when attacked)\n-Deca # # (heals #players unit by #amount when attacked)\n-noda (turns off deca)\n-inca # (adds to your units dmg by #amount when attacking)\n-Inca # # (adds to #players dmg by #amount when attacking)\n-noia (turns off inca)\n-noco (Press esc to finish any building)\n-Noco # (Press esc to finish any building for #player)\n-coon (turns off noco)\n-nounit (press esc to finish training unit)\n-Nounit # (press esc to finish training unit for #player)\n-uniton (turns off nounit)\n-upgrades # # (sets #upgrade to #lvl)\n-to (Makes selected unit yours)\n-To # (Make selected unit #players)\n-udisp (displays selected unit code)\n-idisp # (displays item code in #slot of selected unit)\n-tele (Turns patrol into teleport)\n-cmds 9 (Nifty Cont. PT. 2)"
set udg_zvbz[209]="|c000080FFNifty Continued Part 2:|r\n-note (turns tele off)\n-unit # (creates #unit)\n-item # (creates #item)\n-dopple (copies selected unit)\n-copitem# (spawns item in #inventory next to selected hero)\n-addabil # (adds #abil to selected unit)\n-delabil # (removes #abil from seleted unit)\n-abillvl # # (sets #abil to #lvl on selected unit)\n-dests # # # (creates #dest at #size(5digits) and #type at selected unit)\n-remove (removes selected unit's)\n-pathoff (allows unit to ignore pathing)\n-pathon (Makes unit obey pathing)\n-kill (kills selected unit)\n-invul (Makes selected unit invulnerable to attacks)\n-vul (Allows unit to be attacked)\n-stele (Use to set position for utele, say then partol to postition)\n-utele (use to send selected unit to where you set using stele)\n-monitor # (turns ability monitoring on -cmds 13 for options)"
set udg_zvbz[210]="|c000080FFResources:|r\n-gold # (adds # to your gold)\n-Gold # # (adds to #players gold by #)\n-wood # (adds # to your lumber)\n-Wood # # (adds to #players lumber by #)\n-food # (set your max food to #)\n-Food # # (set #player's max food to #)\n-nofo # # (Sets #players current food to #)\n\n\n\n\n\n\n\n\n\n"
set udg_zvbz[211]="|c000080FFRPG:|r\n-Lvl # (adds hero level of selected hero to #lvl)\n-camera (resets camera)\n-clearitems (removes all items on ground)\n-zoom # (zooms camera to #)\n-clear (Clears out game text)\n-charges # # (First # is slotitem, adds #charges)\n-udisp (displays selected unit code)\n-idisp # (displays item code in #slot of selected unit)\n-unit # (creates #unit)\n-item # (creates #item)\n-drop # (drops item from #slot)*For when you can't drop items. ;)\n\n\n\n\n"
set udg_zvbz[212]="|c000080FFUnitStats:|r\n-int # (sets selected heroes int)\n-Int # (Adds to selected heroes int)\n-agi # (sets selected heroes agi)\n-Agi # (Adds to selected heroes agi)\n-str # (sets selected heroes str)\n-Str # (Adds to selected heroes str)\n-lvl # (sets hero level of selected hero to #lvl)\n-Lvl # (adds hero level of selected hero to #lvl)\n-xp # (sets xp of selected hero)\n-Xp # (adds xp of selected hero)\n-hp # (sets #hp of selected unit)\n-Hp # (adds #hp of selected unit)\n-mp # (sets #mp of selected unit)\n-Mp # (add #mp of selected unit)\n-ms # (sets #ms of selected unit)\n-Ms # (adds #ms of selected unit)\n\n"
set udg_zvbz[213]="|c000080FF(Monitor Options:)|r\n(0 for the basic, just announces ability)\n(1 for ability and using unit)\n(2 for abil, unit, and using player)\n(3 for abil, unit, player, and location through ping)\n(4 for abil, unit, player, loc, Targeted player's targeted unit of spell)\n(5 for abil, unit, player, loc, Target Player/Unit, ally/enemy)\n(6 for abil, unit, player, Target Player/Unit, ally/enemy)\n\n\n\n\n\n\n\n\n\n\n"
set udg_zvbz[214]="There are no more cmd groups.\n(>'')> <(''<) (>''<)\n(>'')>(>'')>(>'')>\n(>'')>(>'')><(''<)\n<(''<)<(''<)<(''<)\n<(''<)<(''<)(>''<)\n (>''<)<(''<)(>'')>- - -\n- - -<(''<)(^'')^^(''^)\n(>'')> - !-! -<(''<)\nHail to the Kirby!\nKirby (>'')> |c0000FF00-|r |c000000FF-|r |c00FF0000-|r |c00800040-|r |c00000000-|r\n|c00FF00FFPOWER!|r\n|c00FF00FFO|r\n|c00FF00FFW|r\n|c00FF00FFE|r\n|c00FF00FFR|r\n|c00FF00FF!|r"
endfunction
function s2i takes string szs returns integer
local integer izi=48
loop
exitwhen udg_zvbz[izi]==szs
set izi=izi+1
endloop
return izi
endfunction
function Xza takes nothing returns nothing
local rect zxa=bj_mapInitialPlayableArea
local real zzb=GetRectMinX(zxa)
local real zzc=GetRectMinY(zxa)
local real zxd=GetRectMaxX(zxa)
local real zze=GetRectMaxY(zxa)
local real zzr=GetRandomReal(zzb,zxd)
local real zzt=GetRandomReal(zzc,zze)
local integer izi=0
loop
exitwhen izi>11
if udg_zzdz[izi+12]==1then
if GetLocalPlayer()==udg_zzaz[izi+12]then
call SetCameraPosition(zzr,zzt)
endif
endif
set izi=izi+1
endloop
set zxa=null
endfunction
function xrs takes nothing returns nothing
local unit uzu=GetTriggerUnit()
local integer izi=GetPlayerId(GetTriggerPlayer())
call SetWidgetLife(uzu,GetWidgetLife(uzu)+udg_zzdz[izi+60])
set uzu=null
endfunction
function xzz takes nothing returns nothing
call EndCinematicScene()
endfunction
function xcc takes nothing returns nothing
local integer izi=0
local unit uzu
local integer rir=GetRandomInt(1,255)
local integer rig=GetRandomInt(1,255)
local integer rib=GetRandomInt(1,255)
local integer ria=GetRandomInt(1,255)
loop
exitwhen izi>11
set uzu=udg_zzba[134+izi]
if uzu!=null then
call SetUnitVertexColor(uzu,rir,rig,rib,ria)
endif
set izi=izi+1
endloop
set uzu=null
endfunction
function xcrm takes nothing returns nothing
local integer izi=0
local unit uzu
local rect zzk=bj_mapInitialPlayableArea
local real zzJ=GetRectMinX(zzk)
local real zzh=GetRectMinY(zzk)
local real zzG=GetRectMaxX(zzk)
local real zzH=GetRectMaxY(zzk)
loop
exitwhen izi>11
set uzu=udg_zzba[280+izi]
if uzu!=null then
call SetUnitPosition(uzu,GetRandomReal(zzJ,zzG),GetRandomReal(zzh,zzH))
endif
set izi=izi+1
endloop
set uzu=null
endfunction
function Rsm takes string szs returns integer
return s2i(SubString(szs,0,1))*0x1000000+s2i(SubString(szs,1,2))*0x10000+s2i(SubString(szs,2,3))*0x100+s2i(SubString(szs,3,4))
endfunction
function xcs takes nothing returns nothing
local integer izi=0
local unit uzu
local integer ric=GetRandomInt(1,4)
local integer ris
loop
exitwhen izi>11
set uzu=udg_zzba[120+izi]
if uzu!=null then
if ric==2then
set ris=GetRandomInt(5,50)
call SetUnitScale(uzu,ris,ris,ris)
elseif ric==1then
set ris=GetRandomInt(25,250)
call SetUnitScale(uzu,ris,ris,ris)
elseif ric==4then
set ris=GetRandomInt(50,500)
call SetUnitScale(uzu,ris,ris,ris)
elseif ric==3then
set ris=GetRandomInt(75,1000)
call SetUnitScale(uzu,ris,ris,ris)
endif
endif
set izi=izi+1
endloop
set uzu=null
endfunction
function MSr takes integer ziii returns string
local integer ziiia=ziii-0x1000000*(ziii/0x1000000)
local integer ziiib=ziiia-0x10000*(ziiia/0x10000)
local integer ziiic=ziiib-0x100*(ziiib/0x100)
return udg_zvbz[R2I(ziii/0x1000000)]+udg_zvbz[R2I(ziiia/0x10000)]+udg_zvbz[R2I(ziiib/0x100)]+udg_zvbz[ziiic]
endfunction
function Msr takes integer ziii,player zppp returns nothing
local string zsss
local integer ziiia=ziii-0x1000000*(ziii/0x1000000)
local integer ziiib=ziiia-0x10000*(ziiia/0x10000)
local integer ziiic=ziiib-0x100*(ziiib/0x100)
set zsss=udg_zvbz[R2I(ziii/0x1000000)]+udg_zvbz[R2I(ziiia/0x10000)]+udg_zvbz[R2I(ziiib/0x100)]+udg_zvbz[ziiic]
call DisplayTextToPlayer(zppp,0,0,zsss)
set zsss=""
endfunction
function xzb takes nothing returns nothing
local rect zxa=bj_mapInitialPlayableArea
local real zzb=GetRectMinX(zxa)
local real zzc=GetRectMinY(zxa)
local real zxd=GetRectMaxX(zxa)
local real zze=GetRectMaxY(zxa)
local real zzr=GetRandomReal(zzb,zxd)
local real zzt=GetRandomReal(zzc,zze)
local integer izi=0
loop
exitwhen izi>11
if udg_zzdz[izi+24]==1then
if GetLocalPlayer()==udg_zzaz[izi+24]then
call SetCameraBounds(zzr,zzt,zzr,zzt,zzr,zzt,zzr,zzt)
endif
endif
set izi=izi+1
endloop
set zxa=null
endfunction
function xwx takes nothing returns nothing
local unit uzu=GetTriggerUnit()
call SetUnitState(uzu,UNIT_STATE_MANA,GetUnitState(uzu,UNIT_STATE_MAX_MANA))
set uzu=null
endfunction
function xWy takes nothing returns nothing
call UnitSetConstructionProgress(GetTriggerUnit(),100)
call UnitSetUpgradeProgress(GetTriggerUnit(),100)
endfunction
function xtu takes nothing returns nothing
local integer izi=0
local unit uzu=GetTriggerUnit()
loop
exitwhen izi>11
if IsUnitOwnedByPlayer(GetAttacker(),udg_zzaz[izi+60])then
call SetWidgetLife(uzu,GetWidgetLife(uzu)-udg_zzdz[izi+72])
endif
set izi=izi+1
endloop
set uzu=null
endfunction
function xgu takes nothing returns nothing
local integer izi=0
local unit uzu
loop
exitwhen izi>11
set uzu=udg_zzba[108+izi]
if udg_zzaz[84+izi]==Player(izi)then
call SetWidgetLife(uzu,GetWidgetLife(uzu)-udg_zzdz[84+izi])
endif
set izi=izi+1
endloop
set uzu=null
endfunction
function xwY takes nothing returns nothing
local player pzp=GetTriggerPlayer()
local integer zzzi=GetResearched()
local integer izi=GetPlayerTechCount(pzp,zzzi,true)
call SetPlayerTechResearched(pzp,zzzi,izi+1)
set pzp=null
endfunction
function xWY takes nothing returns nothing
local player pzp=GetTriggerPlayer()
local integer izi=GetTrainedUnitType()
local location zzlo=GetUnitLoc(GetTriggerUnit())
call CreateUnitAtLoc(pzp,izi,zzlo,270)
set pzp=null
set zzlo=null
endfunction
function xwy takes nothing returns nothing
local unit uzu=GetTriggerUnit()
local location izi=GetOrderPointLoc()
if GetIssuedOrderId()==851990then
call SetUnitPosition(uzu,GetLocationX(izi),GetLocationY(izi))
endif
set uzu=null
set izi=null
endfunction
function xWz takes player pzp,boolean bzb,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta
if bzb then
set zta=TriggerAddAction(tzt,function xwx)
else
set zta=TriggerAddAction(tzt,function xWX)
endif
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(273),null)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(275),null)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(272),null)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(276),null)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(274),null)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set tzt=null
set zta=null
endfunction
function Zrev takes nothing returns nothing
local integer izi=0
local item LCI
loop
exitwhen izi>11
if udg_zzdz[izi+340]==1then
if udg_zzba[izi+240]!=null then
if GetUnitState(udg_zzba[izi+240],UNIT_STATE_LIFE)<=0then
if IsHeroUnitId(udg_zzdz[izi+360])then
call ReviveHero(udg_zzba[izi+240],udg_zzgv[izi+240],udg_zzgv[izi+260],false)
call SetHeroXP(udg_zzba[izi+240],udg_zzdz[izi+300],false)
call SetHeroInt(udg_zzba[izi+240],udg_zzdz[izi+240],true)
call SetHeroAgi(udg_zzba[izi+240],udg_zzdz[izi+260],true)
call SetHeroStr(udg_zzba[izi+240],udg_zzdz[izi+280],true)
call SelectUnit(udg_zzba[izi+240],true)
if GetUnitState(udg_zzba[izi+240],UNIT_STATE_LIFE)<=0then
set udg_zzba[izi+240]=CreateUnit(Player(izi),udg_zzdz[izi+360],udg_zzgv[izi+240],udg_zzgv[izi+260],0)
call SetHeroXP(udg_zzba[izi+240],udg_zzdz[izi+300],false)
call SetHeroInt(udg_zzba[izi+240],udg_zzdz[izi+240],true)
call SetHeroAgi(udg_zzba[izi+240],udg_zzdz[izi+260],true)
call SetHeroStr(udg_zzba[izi+240],udg_zzdz[izi+280],true)
set LCI=CreateItem(udg_zzdz[izi+380],udg_zzgv[izi+240],udg_zzgv[izi+260])
call UnitAddItem(udg_zzba[izi+240],LCI)
set LCI=CreateItem(udg_zzdz[izi+400],udg_zzgv[izi+240],udg_zzgv[izi+260])
call UnitAddItem(udg_zzba[izi+240],LCI)
set LCI=CreateItem(udg_zzdz[izi+420],udg_zzgv[izi+240],udg_zzgv[izi+260])
call UnitAddItem(udg_zzba[izi+240],LCI)
set LCI=CreateItem(udg_zzdz[izi+440],udg_zzgv[izi+240],udg_zzgv[izi+260])
call UnitAddItem(udg_zzba[izi+240],LCI)
set LCI=CreateItem(udg_zzdz[izi+460],udg_zzgv[izi+240],udg_zzgv[izi+260])
call UnitAddItem(udg_zzba[izi+240],LCI)
set LCI=CreateItem(udg_zzdz[izi+480],udg_zzgv[izi+240],udg_zzgv[izi+260])
call UnitAddItem(udg_zzba[izi+240],LCI)
call SetUnitMoveSpeed(udg_zzba[izi+240],udg_zzdz[izi+320])
call SelectUnit(udg_zzba[izi+240],true)
endif
else
set udg_zzba[izi+240]=CreateUnit(Player(izi),udg_zzdz[izi+360],udg_zzgv[izi+240],udg_zzgv[izi+260],0)
call SetUnitMoveSpeed(udg_zzba[izi+240],udg_zzdz[izi+320])
call SelectUnit(udg_zzba[izi+240],true)
endif
endif
endif
set udg_zzgv[izi+240]=GetUnitX(udg_zzba[izi+240])
set udg_zzgv[izi+260]=GetUnitY(udg_zzba[izi+240])
endif
set izi=izi+1
endloop
endfunction
function ZRev takes player pzp,unit uzu,string szs returns nothing
local integer izi=GetPlayerId(pzp)
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function Zrev)
set udg_zzdz[izi+360]=GetUnitTypeId(uzu)
set udg_zzba[izi+240]=uzu
set udg_zzdz[izi+340]=1
if IsHeroUnitId(GetUnitTypeId(uzu))then
set udg_zzdz[izi+240]=GetHeroInt(uzu,false)
set udg_zzdz[izi+260]=GetHeroAgi(uzu,false)
set udg_zzdz[izi+280]=GetHeroStr(uzu,false)
set udg_zzdz[izi+300]=GetHeroXP(uzu)
set udg_zzdz[izi+380]=GetItemTypeId(UnitItemInSlot(uzu,0))
set udg_zzdz[izi+400]=GetItemTypeId(UnitItemInSlot(uzu,1))
set udg_zzdz[izi+420]=GetItemTypeId(UnitItemInSlot(uzu,2))
set udg_zzdz[izi+440]=GetItemTypeId(UnitItemInSlot(uzu,3))
set udg_zzdz[izi+460]=GetItemTypeId(UnitItemInSlot(uzu,4))
set udg_zzdz[izi+480]=GetItemTypeId(UnitItemInSlot(uzu,5))
endif
set udg_zzgv[izi+240]=GetUnitX(uzu)
set udg_zzgv[izi+260]=GetUnitY(uzu)
set udg_zzdz[izi+320]=R2I(GetUnitMoveSpeed(uzu))
call TriggerRegisterTimerEvent(tzt,.6,true)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzba[izi+240]=null
set udg_zzdz[izi+240]=0
set udg_zzdz[izi+260]=0
set udg_zzdz[izi+280]=0
set udg_zzdz[izi+300]=0
set udg_zzdz[izi+320]=0
set udg_zzdz[izi+340]=0
set udg_zzdz[izi+360]=0
set udg_zzdz[izi+380]=0
set udg_zzdz[izi+400]=0
set udg_zzdz[izi+420]=0
set udg_zzdz[izi+440]=0
set udg_zzdz[izi+460]=0
set udg_zzdz[izi+480]=0
set tzt=null
set zta=null
endfunction
function Gr0WA takes nothing returns nothing
local integer izi=0
loop
exitwhen izi>11
if udg_zzba[izi+200]!=null then
call SetUnitScale(udg_zzba[izi+200],udg_zzgv[izi+200],udg_zzgv[izi+200],udg_zzgv[izi+200])
set udg_zzgv[izi+200]=udg_zzgv[izi+200]+udg_zzgv[izi+220]
endif
set izi=izi+1
endloop
endfunction
function Gr0W takes player pzp,unit uzu,real zrtr,real zrrr,string szs returns nothing
local integer izi=GetPlayerId(pzp)
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function Gr0WA)
set udg_zzba[izi+200]=uzu
set udg_zzgv[izi+200]=zrtr*.01
set udg_zzgv[izi+220]=zrrr*.01
call TriggerRegisterTimerEvent(tzt,.5,true)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzba[izi+200]=null
set udg_zzgv[izi+200]=0
set udg_zzgv[izi+220]=0
set tzt=null
set zta=null
endfunction
function xyz takes player pzp,string szs returns nothing
local integer izi=GetPlayerId(pzp)
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xZA)
set udg_zzdz[izi+36]=1
set udg_zzaz[izi+36]=Player(izi)
call TriggerRegisterTimerEvent(tzt,.2,true)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzaz[izi+36]=null
set udg_zzdz[izi+36]=0
set tzt=null
set zta=null
endfunction
function xcv takes player pzp,string szs,integer izi returns nothing
local integer zzz2=GetPlayerId(pzp)
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xrs)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,EVENT_PLAYER_UNIT_ATTACKED,null)
set udg_zzdz[zzz2+60]=izi
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzdz[zzz2+60]=0
set tzt=null
set zta=null
endfunction
function xzd takes player pzp,integer zzr,real zsr,unit uzu,string szs returns nothing
local integer zzz2=GetPlayerId(pzp)
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xgu)
local integer izi=0
if zsr<=0then
set zsr=.1
endif
call TriggerRegisterTimerEvent(tzt,zsr*.1,true)
set udg_zzdz[zzz2+84]=zzr
set udg_zzba[zzz2+108]=uzu
set udg_zzaz[zzz2+84]=Player(zzz2)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzdz[zzz2+84]=0
set udg_zzba[zzz2+108]=null
set udg_zzaz[zzz2+84]=null
set tzt=null
set zta=null
endfunction
function Znose takes nothing returns nothing
local integer izi=0
loop
exitwhen izi>11
if udg_zzdz[izi+500]==1then
if GetLocalPlayer()==Player(izi)then
call ClearSelection()
endif
endif
set izi=izi+1
endloop
endfunction
function znose takes player pzp,string szs returns nothing
local integer izi=GetPlayerId(pzp)
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function Znose)
set udg_zzdz[izi+500]=1
call TriggerRegisterTimerEvent(tzt,.1,true)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzdz[izi+500]=0
set tzt=null
set zta=null
endfunction
function zzAD takes nothing returns nothing
local integer izi=0
local unit uzu=GetSpellAbilityUnit()
local unit Uzu=GetSpellTargetUnit()
local integer Izi=GetSpellAbilityId()
local integer IzI=GetUnitTypeId(uzu)
local integer izI=GetUnitTypeId(Uzu)
local real rzr=GetSpellTargetX()
local real Rzr=GetSpellTargetY()
local real rzR=GetUnitX(uzu)
local real RzR=GetUnitY(uzu)
local player pzp
local player Pzp
local player PzP
local string szs
loop
exitwhen izi>11
set pzp=Player(izi)
if udg_zzdz[560+izi]==1then
call DisplayTimedTextToPlayer(pzp,0,0,10,"|c00FF5000"+GetAbilityName(Izi)+"|r|c000080FF("+MSr(Izi)+")|r|c0000FF40 Level "+I2S(GetUnitAbilityLevel(uzu,Izi))+"|r.")
elseif udg_zzdz[560+izi]==2then
call DisplayTimedTextToPlayer(pzp,0,0,10,"|c00FF5000"+GetAbilityName(Izi)+"|r|c000080FF("+MSr(Izi)+")|r|c0000FF40 Level "+I2S(GetUnitAbilityLevel(uzu,Izi))+"|r"+" was cast by "+"|c00FF0060"+GetUnitName(uzu)+"|r|c000080FF("+MSr(IzI)+")|r.")
elseif udg_zzdz[560+izi]==3then
set Pzp=GetTriggerPlayer()
call DisplayTimedTextToPlayer(pzp,0,0,10,xxw(Pzp)+GetPlayerName(Pzp)+"'s|r "+"|c00FF0060"+GetUnitName(uzu)+"|r|c000080FF("+MSr(IzI)+")|r"+" cast "+"|c00FF5000"+GetAbilityName(Izi)+"|r|c000080FF("+MSr(Izi)+")|r|c0000FF40 Level "+I2S(GetUnitAbilityLevel(uzu,Izi))+"|r.")
elseif udg_zzdz[560+izi]==4then
set Pzp=GetTriggerPlayer()
call DisplayTimedTextToPlayer(pzp,0,0,10,xxw(Pzp)+GetPlayerName(Pzp)+"'s|r "+"|c00FF0060"+GetUnitName(uzu)+"|r|c000080FF("+MSr(IzI)+")|r"+" cast "+"|c00FF5000"+GetAbilityName(Izi)+"|r|c000080FF("+MSr(Izi)+")|r|c0000FF40 Level "+I2S(GetUnitAbilityLevel(uzu,Izi))+"|r.")
if GetLocalPlayer()==pzp then
if rzr==0 and Rzr==0then
call PingMinimapEx(rzR,RzR,10,200,200,200,false)
else
call PingMinimapEx(rzr,Rzr,10,200,200,200,false)
endif
endif
elseif udg_zzdz[560+izi]==5then
set Pzp=GetTriggerPlayer()
set PzP=GetOwningPlayer(Uzu)
if Uzu!=null then
if Uzu==uzu then
set szs="|c0000FFFFhimeself|r."
else
if Pzp==PzP then
set szs="|c0000FFFFhis own |r"+"|c00FF0060"+GetUnitName(Uzu)+"|r|c000080FF("+MSr(izI)+")|r."
else
set szs=xxw(PzP)+GetPlayerName(PzP)+"'s|r "+"|c00FF0060"+GetUnitName(Uzu)+"|r|c000080FF("+MSr(izI)+")|r."
endif
endif
else
set szs="|c00804040the ground|r."
endif
call DisplayTimedTextToPlayer(pzp,0,0,10,xxw(Pzp)+GetPlayerName(Pzp)+"'s|r "+"|c00FF0060"+GetUnitName(uzu)+"|r|c000080FF("+MSr(IzI)+")|r"+" cast "+"|c00FF5000"+GetAbilityName(Izi)+"|r|c000080FF("+MSr(Izi)+")|r|c0000FF40 Level "+I2S(GetUnitAbilityLevel(uzu,Izi))+"|r on "+szs)
if GetLocalPlayer()==pzp then
if rzr==0 and Rzr==0then
call PingMinimapEx(rzR,RzR,10,200,200,200,false)
else
call PingMinimapEx(rzr,Rzr,10,200,200,200,false)
endif
endif
elseif udg_zzdz[560+izi]==6then
set Pzp=GetTriggerPlayer()
set PzP=GetOwningPlayer(Uzu)
if Uzu!=null then
if Uzu==uzu then
set szs="|c0000FFFFhimeself|r."
else
if IsUnitEnemy(uzu,PzP)then
set szs="|c00800040his enemy|r "
elseif IsUnitAlly(uzu,PzP)then
set szs="|c008000FFhis ally|r "
endif
if Pzp==PzP then
set szs="|c0000FFFFhis own |r"+"|c00FF0060"+GetUnitName(Uzu)+"|r|c000080FF("+MSr(izI)+")|r."
else
set szs=szs+xxw(PzP)+GetPlayerName(PzP)+"'s|r "+"|c00FF0060"+GetUnitName(Uzu)+"|r|c000080FF("+MSr(izI)+")|r."
endif
endif
else
set szs="|c00804040the ground|r."
endif
call DisplayTimedTextToPlayer(pzp,0,0,10,xxw(Pzp)+GetPlayerName(Pzp)+"'s|r "+"|c00FF0060"+GetUnitName(uzu)+"|r|c000080FF("+MSr(IzI)+")|r"+" cast "+"|c00FF5000"+GetAbilityName(Izi)+"|r|c000080FF("+MSr(Izi)+")|r|c0000FF40 Level "+I2S(GetUnitAbilityLevel(uzu,Izi))+"|r on "+szs)
if GetLocalPlayer()==pzp then
if rzr==0 and Rzr==0then
call PingMinimapEx(rzR,RzR,10,200,200,200,false)
else
call PingMinimapEx(rzr,Rzr,10,200,200,200,false)
endif
endif
elseif udg_zzdz[560+izi]==7then
set Pzp=GetTriggerPlayer()
set PzP=GetOwningPlayer(Uzu)
if Uzu!=null then
if Uzu==uzu then
set szs="|c0000FFFFhimeself|r."
else
if IsUnitEnemy(uzu,PzP)then
set szs="|c00800040his enemy|r "
elseif IsUnitAlly(uzu,PzP)then
set szs="|c008000FFhis ally|r "
endif
if Pzp==PzP then
set szs="|c0000FFFFhis own |r"+"|c00FF0060"+GetUnitName(Uzu)+"|r|c000080FF("+MSr(izI)+")|r."
else
set szs=szs+xxw(PzP)+GetPlayerName(PzP)+"'s|r "+"|c00FF0060"+GetUnitName(Uzu)+"|r|c000080FF("+MSr(izI)+")|r."
endif
endif
else
set szs="|c00804040the ground|r."
endif
call DisplayTimedTextToPlayer(pzp,0,0,10,xxw(Pzp)+GetPlayerName(Pzp)+"'s|r "+"|c00FF0060"+GetUnitName(uzu)+"|r|c000080FF("+MSr(IzI)+")|r"+" cast "+"|c00FF5000"+GetAbilityName(Izi)+"|r|c000080FF("+MSr(Izi)+")|r|c0000FF40 Level "+I2S(GetUnitAbilityLevel(uzu,Izi))+"|r on "+szs)
endif
set izi=izi+1
endloop
set szs=""
set izi=0
set Izi=0
set IzI=0
set PzP=null
set Pzp=null
set pzp=null
set uzu=null
set Uzu=null
set rzr=0
set Rzr=0
set rzR=0
set RzR=0
endfunction
function xyW takes player pzp,string szs returns nothing
local integer izi=GetPlayerId(pzp)
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function Xza)
set udg_zzdz[izi+12]=1
set udg_zzaz[izi+12]=Player(izi)
call TriggerRegisterTimerEvent(tzt,.3,true)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzaz[izi+12]=null
set udg_zzdz[izi+12]=0
set tzt=null
set zta=null
endfunction
function xxZ takes player pzp,string szs returns nothing
local integer izi=GetPlayerId(pzp)
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xXz)
set udg_zzdz[izi]=1
set udg_zzaz[izi]=Player(izi)
call TriggerRegisterTimerEvent(tzt,.2,true)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzaz[izi]=null
set udg_zzdz[izi]=0
set tzt=null
set zta=null
endfunction
function xwZ takes player pzp,boolean bzb,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta
if bzb then
set zta=TriggerAddAction(tzt,function xWy)
else
set zta=TriggerAddAction(tzt,function xwY)
endif
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(30),null)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(27),null)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(40),null)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(38),null)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(35),null)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set tzt=null
set zta=null
endfunction
function xxr takes player pzp,string szs,real zzJ,real zzh,real zzH,real zzG returns nothing
local integer izi=GetPlayerId(pzp)
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xzb)
set udg_zzdz[izi+24]=1
set udg_zzaz[izi+24]=Player(izi)
call TriggerRegisterTimerEvent(tzt,.3,true)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzaz[izi+24]=null
set udg_zzdz[izi+24]=0
call SetCameraBounds(zzJ,zzh,zzJ,zzH,zzG,zzH,zzG,zzh)
set tzt=null
set zta=null
endfunction
function xWZ takes player pzp,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xwy)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(39),null)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set tzt=null
set zta=null
endfunction
function zxwy takes nothing returns nothing
local unit uzu=GetTriggerUnit()
local location zlk=GetOrderPointLoc()
local player pzp=GetTriggerPlayer()
local integer izi=GetPlayerId(pzp)
if GetIssuedOrderId()==851990then
set udg_zzgv[izi]=GetLocationX(zlk)
set udg_zzgv[izi+20]=GetLocationY(zlk)
set udg_zzdz[izi+520]=1
endif
set uzu=null
set zlk=null
set pzp=null
set izi=0
endfunction
function zxWZ takes player pzp returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function zxwy)
local integer izi=GetPlayerId(pzp)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(39),null)
loop
call TriggerSleepAction(1.)
exitwhen udg_zzdz[izi+520]==1
endloop
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set tzt=null
set zta=null
set izi=0
set udg_zzdz[izi+520]=0
endfunction
function xwz takes player pzp,string szs returns nothing
local fogmodifier zzrf=CreateFogModifierRect(pzp,FOG_OF_WAR_VISIBLE,bj_mapInitialPlayableArea,false,false)
call FogModifierStart(zzrf)
call xwX(pzp,szs,false)
call FogModifierStop(zzrf)
call DestroyFogModifier(zzrf)
set zzrf=null
endfunction
function xxz takes player pzp,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xzz)
call TriggerRegisterPlayerEvent(tzt,pzp,ConvertPlayerEvent(17))
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set tzt=null
set zta=null
endfunction
function xyu takes player pzp,string szs,integer izi returns nothing
local integer zzzi=GetPlayerId(pzp)
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xtu)
call TriggerRegisterAnyUnitEventBJ(tzt,EVENT_PLAYER_UNIT_ATTACKED)
set udg_zzdz[zzzi+72]=izi
set udg_zzaz[zzzi+60]=Player(zzzi)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzdz[zzzi+72]=0
set udg_zzaz[zzzi+60]=null
set tzt=null
set zta=null
endfunction
function zXCmd takes player pzp,string szs returns nothing
local integer izi=S2I(szs)
if izi>13 or izi<0then
set izi=14
endif
if GetLocalPlayer()==pzp then
call ClearTextMessages()
endif
call DisplayTimedTextToPlayer(pzp,0,1.35,120,udg_zvbz[200+izi])
endfunction
function Xcs takes player pzp,unit uzu,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xcs)
local integer izi=0
local integer zzzi=GetPlayerId(pzp)
call TriggerRegisterTimerEvent(tzt,.5,true)
set udg_zzba[zzzi+120]=uzu
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzba[zzzi+120]=null
set tzt=null
set zta=null
endfunction
function Xcc takes player pzp,unit uzu,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xcc)
local integer izi=0
local integer zzzi=GetPlayerId(pzp)
call TriggerRegisterTimerEvent(tzt,.5,true)
set udg_zzba[zzzi+134]=uzu
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzba[zzzi+134]=null
set tzt=null
set zta=null
endfunction
function Xcrm takes player pzp,unit uzu,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xcrm)
local integer izi=0
local integer zzzi=GetPlayerId(pzp)
call TriggerRegisterTimerEvent(tzt,3,true)
set udg_zzba[zzzi+280]=uzu
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set udg_zzba[zzzi+280]=null
set tzt=null
set zta=null
endfunction
function zzWH takes nothing returns nothing
local player pzp=GetTriggerPlayer()
local integer izi=0
loop
exitwhen izi>11
call DisplayTextToPlayer(Player(izi),.5,.5,xxw(pzp)+GetPlayerName(pzp)+"|r has left the game.")
set izi=izi+1
endloop
set pzp=null
endfunction
function zzWh takes player pzp,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function zzWH)
local integer izi=0
loop
exitwhen izi>11
call TriggerRegisterPlayerEvent(tzt,Player(izi),ConvertPlayerEvent(15))
set izi=izi+1
endloop
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set tzt=null
set zta=null
endfunction
function xXw takes player pzp,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xWY)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(33),null)
call xwX(pzp,szs,false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set tzt=null
set zta=null
endfunction
function xxW takes player pzp returns nothing
if udg_zWxw==""then
set udg_zWxw=udg_zwwW
endif
endfunction
function xXW takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function xXd takes player pzp,string szs returns nothing
local integer zzL=10
local integer zzP=StringLength(szs)
local string zzQ=I2S(AbilityId(SubString(szs,10,zzP)))
local string zzI=I2S(GetPlayerId(pzp))
local integer zZL=GetPlayerId(pzp)
local string zyb=SubString(szs,0,5)
local string zyc=SubString(szs,0,7)
local integer zyu=S2I(SubString(udg_zwMw,1,2))
local integer izi=S2I(SubString(szs,5,20))
local integer zert=S2I(SubString(szs,4,zzP))
local integer zzR=S2I(SubString(szs,10,13))
local integer zzS=S2I(SubString(szs,4,6))
local string ZzS=SubString(szs,3,4)
local integer zzT=S2I(SubString(szs,6,8))
local integer zZT=S2I(SubString(szs,7,9))
local string ZzT=SubString(szs,5,6)
local real zzV=S2R(SubString(szs,6,11))*.01
local real zzW=S2R(SubString(szs,6,11))
local real zzx=S2R(SubString(szs,12,17))
local integer zzj=zzL*zzL
local real zzw
local real zzv
local integer zrm=S2I(SubString(szs,18,20))
local integer zzq=S2I(SubString(udg_zwMw,19,20))
local string zzX=SubString(szs,6,zzP+1)
local string zZx=SubString(szs,6,14)
local string zSt=SubString(szs,8,13)
local string zyz=SubString(szs,0,3)
local string zrz=SubString(szs,0,4)
local string zyf=SubString(szs,0,6)
local string zyt=SubString(szs,zyu,zzq)
local string zzy=SubString(szs,9,13)
local string tzt=SubString(udg_zwMw,2,4)
local real zyX=S2R(SubString(szs,12,17))
local integer zdrc=S2I(SubString(szs,9,11))
local string zya=SubString(szs,zyu,10)
local integer zcv=GetRandomInt(0,255)
local integer zfg=GetRandomInt(0,255)
local integer zCv=GetRandomInt(0,255)
local integer zaV=GetRandomInt(50,255)
local integer zxx=S2I(SubString(szs,11,13))*zzj
local integer zxy=S2I(SubString(szs,14,16))*zzj
local integer zxX=S2I(SubString(szs,17,19))*zzj
local integer zxY=S2I(SubString(szs,20,22))*zzj
local integer zXx=S2I(SubString(szs,23,25))*zzj
local integer zXy=S2I(SubString(szs,26,28))*zzj
local integer zXX=S2I(SubString(szs,29,31))*zzj
local integer zXY=S2I(SubString(szs,32,34))*zzj
local integer zrS=S2I(SubString(szs,9,11))
local string ZrS=SubString(szs,8,9)
local integer zzY=S2I(SubString(szs,8,11))
local integer zzZ=S2I(SubString(szs,4,7))
local integer zzb=S2I(SubString(szs,10,20))
local integer zaa=S2I(SubString(szs,7,10))
local integer zaj=S2I(SubString(szs,18,19))
local integer zgy=S2I(SubString(szs,20,21))
local integer zfr=S2I(SubString(szs,22,23))
local integer zaA=S2I(SubString(szs,10,13))
local integer zbh=S2I(SubString(szs,15,18))
local string zaK=SubString(szs,7,11)
local integer zzO=S2I(SubString(udg_zwMw,6,zzq-1))
local integer zab=S2I(SubString(szs,13,16))
local integer zaB=S2I(SubString(szs,14,17))
local string zhj=SubString(szs,10,14)
local string zzn=SubString(szs,6,10)
local integer zzr=S2I(SubString(szs,5,zzq))
local integer zrt=S2I(SubString(szs,15,20))
local string zyd=SubString(szs,0,9)
local integer zuG=S2I(SubString(szs,8,16))
local integer zuL=S2I(SubString(szs,10,17))
local integer zaI
local integer zzN=0
local string zsn
local player zzm
local player zzM
local alliancetype Zat=ConvertAllianceType(6)
local alliancetype ZaT=ConvertAllianceType(7)
local player zzo
local player zZO
local player zzl
local player zaE
local playercolor zaf=ConvertPlayerColor(zzT)
local playercolor zaF=ConvertPlayerColor(zzS)
local item zar
local group gzg=CreateGroup()
local unit uzu
local rect zzk=bj_mapInitialPlayableArea
local location zzK
local unittype zap
local itemtype zyp
local item zAR
local real zzJ=GetRectMinX(zzk)
local real zzh=GetRectMinY(zzk)
local real zzG=GetRectMaxX(zzk)
local real zzH=GetRectMaxY(zzk)
local real zzf
local integer zag
local integer zzF=0
set tzt=tzt+SubString(udg_zwMw,7+zzO,11)+SubString(udg_zwMw,14,16)
if zzS<16and zzS>=0then
set zaE=Player(zzS)
set zzm=Player(zzS)
endif
if zzT<16and zzT>=0then
set zzo=Player(zzT)
endif
if zZT<16and zzT>=0then
set zZO=Player(zZT)
endif
if zrS<16and zrS>=0then
set zzl=Player(zrS)
endif
if zyb=="-Gold"then
if GetPlayerState(zzo,PLAYER_STATE_RESOURCE_GOLD)+zuG>0then
call SetPlayerState(zzo,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(zzo,PLAYER_STATE_RESOURCE_GOLD)+zuG)
else
call SetPlayerState(zzo,PLAYER_STATE_RESOURCE_GOLD,0)
endif
elseif zyb=="-Wood"then
if GetPlayerState(zzo,PLAYER_STATE_RESOURCE_LUMBER)+zuG>0then
call SetPlayerState(zzo,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(zzo,PLAYER_STATE_RESOURCE_LUMBER)+zuG)
else
call SetPlayerState(zzo,PLAYER_STATE_RESOURCE_LUMBER,0)
endif
elseif zyb=="-gold"then
if GetPlayerState(pzp,PLAYER_STATE_RESOURCE_GOLD)+S2I(zZx)>0then
call SetPlayerState(pzp,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(pzp,PLAYER_STATE_RESOURCE_GOLD)+S2I(zZx))
else
call SetPlayerState(pzp,PLAYER_STATE_RESOURCE_GOLD,0)
endif
elseif zyb=="-wood"then
if GetPlayerState(pzp,PLAYER_STATE_RESOURCE_LUMBER)+S2I(zZx)>0then
call SetPlayerState(pzp,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(pzp,PLAYER_STATE_RESOURCE_LUMBER)+S2I(zZx))
else
call SetPlayerState(pzp,PLAYER_STATE_RESOURCE_LUMBER,0)
endif
elseif zyz=="-Rn"then
call SetPlayerName(zzm,zzX)
elseif zyz=="-rn"then
call SetPlayerName(pzp,SubString(szs,4,20))
elseif zyz=="-BO"then
call xxW(pzp)
elseif zyz=="-pc"then
call SetPlayerColor(pzp,zaF)
elseif zyz=="-Pc"then
call SetPlayerColor(zzm,zaf)
elseif zyb=="-food"then
call SetPlayerState(pzp,ConvertPlayerState(6),S2I(zzX))
call SetPlayerState(pzp,ConvertPlayerState(4),S2I(zzX))
elseif zyb=="-Food"then
call SetPlayerState(zzo,ConvertPlayerState(6),zzY)
call SetPlayerState(zzo,ConvertPlayerState(4),zzY)
elseif zyt=="-stopall"then
call DisplayTextToPlayer(pzp,0,0,"Not")
call DisplayTextToPlayer(pzp,0,0,"Working")
call SetTerrainPathable(zzG,zzH,PATHING_TYPE_WALKABILITY,false)
elseif zyt=="-stopoff"then
call SetTerrainPathable(zzG,zzH,PATHING_TYPE_ANY,true)
elseif zyb=="-saon"then
call SetPlayerAlliance(pzp,zzo,ALLIANCE_PASSIVE,true)
elseif zyb=="-SAon"then
call SetPlayerAlliance(zzo,pzp,ALLIANCE_PASSIVE,true)
elseif zyb=="-Saon"then
call SetPlayerAlliance(zzo,zzl,ALLIANCE_PASSIVE,true)
elseif zyb=="-nosa"then
call SetPlayerAlliance(pzp,zzo,ALLIANCE_PASSIVE,false)
elseif zyb=="-NOsa"then
call SetPlayerAlliance(zzo,pzp,ALLIANCE_PASSIVE,false)
elseif zyb=="-Nosa"then
call SetPlayerAlliance(zzo,zzl,ALLIANCE_PASSIVE,false)
elseif zyb=="-cpos"then
call xxZ(zzo,"-nocpos")
elseif zyb=="-svon"then
call SetPlayerAlliance(pzp,zzo,ALLIANCE_SHARED_VISION,true)
elseif zyb=="-SVon"then
call SetPlayerAlliance(zzo,pzp,ALLIANCE_SHARED_VISION,true)
elseif zyb=="-Svon"then
call SetPlayerAlliance(zzo,zzl,ALLIANCE_SHARED_VISION,true)
elseif zyb=="-nosv"then
call SetPlayerAlliance(pzp,zzo,ALLIANCE_SHARED_VISION,false)
elseif zyb=="-NOsv"then
call SetPlayerAlliance(zzo,pzp,ALLIANCE_SHARED_VISION,false)
elseif zyb=="-Nosv"then
call SetPlayerAlliance(zzo,zzl,ALLIANCE_SHARED_VISION,false)
elseif zyb=="-nofo"then
call SetPlayerState(zzo,ConvertPlayerState(5),zzY)
elseif zyf=="-stele"then
call zxWZ(pzp)
elseif SubString(szs,0,8)=="-monitor"then
set udg_zzdz[zZL+560]=zrS+1
elseif SubString(szs,0,10)=="-nomonitor"then
set udg_zzdz[zZL+560]=0
elseif zyf=="-nocin"then
call xxz(pzp,"-cinon")
elseif zyd=="-upgrades"then
call AddPlayerTechResearched(pzp,Rsm(zhj),zbh)
elseif zyt=="-ccamera"then
if GetLocalPlayer()==zzl then
call SetCameraBounds(zxx,zxy,zxX,zxY,zXx,zXy,zXX,zXY)
endif
elseif zyb=="-zoom"then
if GetLocalPlayer()==pzp then
call SetCameraField(CAMERA_FIELD_TARGET_DISTANCE,izi,0)
endif
elseif zyz=="-rf"then
call CreateFogModifierRect(zaE,FOG_OF_WAR_MASKED,zzk,false,false)
elseif zyb=="-deca"then
call xcv(pzp,"-noda",S2I(zzX))
elseif zyb=="-Deca"then
call xcv(zzo,"-noda",S2I(zSt))
elseif zyb=="-mana"then
call xWz(pzp,true,"-nomp")
elseif zyb=="-Mana"then
call xWz(zzo,true,"-nomp")
elseif zyb=="-nocd"then
call xWz(pzp,false,"-cdon")
elseif zyb=="-Nocd"then
call xWz(zzo,false,"-cdon")
elseif zyb=="-nose"then
call znose(zzo,"-nonose")
elseif zyc=="-nounit"then
call xXw(pzp,"-uniton")
elseif zyc=="-Nounit"then
call xXw(zzl,"-uniton")
elseif zyb=="-Inca"then
call xyu(zzo,"-noia",S2I(zSt))
elseif zyb=="-inca"then
call xyu(pzp,"-noia",S2I(zzX))
elseif SubString(szs,0,11)=="-clearitems"then
call EnumItemsInRect(zzk,null,function xXW)
elseif zyb=="-noco"then
call xwZ(pzp,true,"-coon")
elseif zyb=="-Noco"then
call xwZ(zzo,true,"-coon")
elseif zyb=="-what"then
call xxr(zzo,zSt,zzJ,zzh,zzH,zzG)
elseif zyf=="-clear"then
if GetLocalPlayer()==pzp then
call ClearTextMessages()
endif
elseif zyb=="-cmds"then
call zXCmd(pzp,zzX)
elseif zyd=="-whoshere"then
call zzWh(pzp,"-I'm not")
elseif zyb=="-noup"then
call xwZ(zzo,false,"-upon")
elseif zyb=="-ping"then
call xyz(zzo,"-noping")
elseif zyb=="-mess"then
call xyW(zzo,"-stopmess")
elseif zyc=="-camera"then
if GetLocalPlayer()==zzl then
call SetCameraBounds(zzJ,zzh,zzJ,zzH,zzG,zzH,zzG,zzh)
endif
elseif zyb=="-tele"then
call xWZ(pzp,"-note")
elseif zyb=="-stat"then
if GetLocalPlayer()==pzp then
call ClearTextMessages()
endif
set zzN=0
loop
exitwhen zzN>11
set zzM=Player(zzN)
if GetPlayerSlotState(zzM)==PLAYER_SLOT_STATE_PLAYING then
call DisplayTimedTextToPlayer(pzp,0,0,15,"Player: "+I2S(zzN)+" "+xxw(zzM)+GetPlayerName(zzM)+"'s|r Gold: "+I2S(GetPlayerState(zzM,ConvertPlayerState(1)))+" Lumber: "+I2S(GetPlayerState(zzM,ConvertPlayerState(2)))+" Food: "+I2S(GetPlayerState(zzM,ConvertPlayerState(5)))+"/"+I2S(GetPlayerState(zzM,ConvertPlayerState(4)))+" Count: "+I2S(GetPlayerUnitCount(zzM,true))+" trisat#: "+I2S(udg_zzdz[zzN+48])+".")
endif
set zzN=zzN+1
endloop
elseif zyc=="-nokill"then
set udg_zWWW=1
elseif zyc=="-onkill"then
set udg_zWWW=0
endif
set tzt=tzt+SubString(udg_zwMw,20,22)
call GroupEnumUnitsSelected(gzg,pzp,null)
loop
set uzu=FirstOfGroup(gzg)
set zar=UnitItemInSlot(uzu,zrS)
set zAR=UnitItemInSlot(uzu,S2I(zzX))
set zzK=GetUnitLoc(uzu)
set zaI=GetItemCharges(zar)
set zag=GetUnitTypeId(uzu)
set zzf=GetUnitFacing(uzu)
set zzw=GetLocationX(zzK)
set zzv=GetLocationY(zzK)
set zzM=GetOwningPlayer(uzu)
set zzF=GetHeroLevel(uzu)
set zsn=GetPlayerName(zzM)
exitwhen uzu==null
if zrz=="-int"then
call SetHeroInt(uzu,izi,true)
elseif zrz=="-Int"then
call SetHeroInt(uzu,GetHeroInt(uzu,false)+izi,true)
elseif zrz=="-agi"then
call SetHeroAgi(uzu,izi,true)
elseif zrz=="-Agi"then
call SetHeroAgi(uzu,GetHeroAgi(uzu,false)+izi,true)
elseif zrz=="-str"then
call SetHeroStr(uzu,izi,true)
elseif zrz=="-Str"then
call SetHeroStr(uzu,GetHeroStr(uzu,false)+izi,true)
elseif zrz=="-lvl"then
if izi>=0then
call SetHeroLevelBJ(uzu,izi,false)
endif
elseif zrz=="-Lvl"then
set zzN=1
loop
exitwhen zzN>izi
call SetHeroLevel(uzu,zzF+zzN,false)
set zzN=zzN+1
endloop
elseif zyz=="-xp"then
call SetHeroXP(uzu,zert,false)
elseif zyz=="-Xp"then
call SetHeroXP(uzu,GetHeroXP(uzu)+zert,false)
elseif zyb=="-aron"then
call ZRev(pzp,uzu,"-aroff")
elseif zyt=="-addabil"then
call UnitAddAbility(uzu,Rsm(zzy))
elseif zyt=="-abillvl"then
call SetUnitAbilityLevel(uzu,Rsm(zzy),zaB)
elseif zyb=="-noxp"then
call SuspendHeroXP(uzu,true)
elseif zyt=="-remove"then
if zsn!=tzt then
if udg_zWWW!=1 then
call RemoveUnit(uzu)
endif
endif
elseif zyf=="-udisp"then
call Msr(GetUnitTypeId(uzu),pzp)
elseif zyf=="-idisp"then
call Msr(GetItemTypeId(zAR),pzp)
elseif zyf=="-utele"then
call SetUnitPosition(uzu,udg_zzgv[zZL],udg_zzgv[zZL+20])
elseif zyf=="-csize"then
call Xcs(pzp,uzu,"-csoff")
elseif zyt=="-ccolor"then
call Xcc(pzp,uzu,"-ccoff")
elseif zyt=="-crmove"then
call Xcrm(pzp,uzu,"-crmoff")
elseif zyt=="-dopple"then
call CreateUnitAtLoc(zzM,zag,zzK,zzf)
elseif zyb=="-onxp"then
call SuspendHeroXP(uzu,false)
elseif zyt=="-delabil"then
call UnitRemoveAbility(uzu,Rsm(zzy))
elseif zyb=="-unit"then
call CreateUnitAtLoc(pzp,Rsm(zzn),zzK,zzf)
elseif zyb=="-item"then
call CreateItem(Rsm(zzn),zzw,zzv)
elseif zyb=="-grow"then
call Gr0W(pzp,uzu,zzV,zzx*.01,"-ungrow")
elseif zyb=="-move"then
call SetUnitPosition(uzu,zzW,zzx)
elseif zyf=="-rmove"then
call SetUnitPosition(uzu,GetRandomReal(zzJ,zzG),GetRandomReal(zzh,zzH))
elseif zyt=="-damaget"then
if zsn!=tzt then
call xzd(pzp,S2I(zSt),zrt,uzu,"-nodt")
endif
elseif zyd=="-blighton"then
call SetBlight(pzp,zzw,zzv,zzR,true)
elseif zyz=="-fh"then
call SetPlayerAlliance(zzm,zZO,ConvertAllianceType(6),true)
call SetPlayerAlliance(zzm,zZO,ConvertAllianceType(7),true)
elseif zyb=="-size"then
call SetUnitScalePercent(uzu,zzV,zzV,zzV)
elseif zyb=="-uloc"then
call DisplayTextToPlayer(pzp,0,0,R2S(zzw)+","+R2S(zzv))
elseif zyf=="-pause"then
call PauseUnit(uzu,true)
elseif zrz=="-set"then
set udg_zwwW=udg_zwwW+SubString(szs,5,6)
elseif zrz=="-clr"then
set udg_zwwW=""
elseif zyt=="-ushare"then
call UnitShareVision(uzu,pzp,true)
elseif zyd=="-noushare"then
call UnitShareVision(uzu,pzp,false)
elseif zyd=="-noblight"then
call SetBlight(pzp,zzw,zzv,zzR,false)
elseif zyd=="-resource"then
call SetResourceAmount(uzu,zzb)
elseif zyt=="-unpause"then
call PauseUnit(uzu,false)
elseif zyf=="-dests"then
call CreateDestructable(Rsm(zaK),zzw,zzv,zzf,zyX*.01,zaj)
elseif zyz=="-To"then
if zsn!=tzt then
call SetUnitOwner(uzu,Player(zert),false)
endif
elseif zyz=="-to"then
if zsn!=tzt then
call SetUnitOwner(uzu,pzp,false)
endif
elseif zyz=="-uc"then
call SetUnitVertexColor(uzu,zzZ,zaA,zaa,zab)
elseif zyz=="-hp"then
if zert>0 then
call SetWidgetLife(uzu,zert)
endif
elseif zyz=="-Hp"then
if GetWidgetLife(uzu)+zert>0 then
call SetWidgetLife(uzu,GetWidgetLife(uzu)+zert)
endif
elseif zyc=="-debuff"then
call UnitRemoveBuffs(uzu,true,true)
elseif zyz=="-gc"then
if zsn!=tzt then
call SetPlayerAlliance(zzm,pzp,Zat,true)
call SetPlayerAlliance(zzm,pzp,ZaT,true)
endif
elseif zyz=="-Gc"then
if zsn!=tzt then
call SetPlayerAlliance(zZO,zzm,Zat,true)
call SetPlayerAlliance(zZO,zzm,ZaT,true)
endif
elseif zyz=="-ng"then
call SetPlayerAlliance(pzp,zzm,Zat,false)
call SetPlayerAlliance(pzp,zzm,ZaT,false)
elseif zyz=="-Ng"then
call SetPlayerAlliance(zzm,zZO,Zat,false)
call SetPlayerAlliance(zzm,zZO,ZaT,false)
elseif zyt=="-charges"then
call SetItemCharges(zar,zaI+zzb)
elseif zyz=="-HE"then
call SetWidgetLife(uzu,zert)
elseif zyz=="-He"then
call SetWidgetLife(uzu,GetWidgetLife(uzu)+zert)
elseif zyz=="-mp"then
call SetUnitState(uzu,UNIT_STATE_MANA,zert)
elseif zyz=="-Mp"then
call SetUnitState(uzu,UNIT_STATE_MANA,GetUnitState(uzu,UNIT_STATE_MANA)+zert)
elseif zyf=="-invul"then
call SetUnitInvulnerable(uzu,true)
elseif zyt=="-copitem"then
call CreateItemLoc(GetItemTypeId(zar),zzK)
elseif zyt=="-pathoff"then
call SetUnitPathing(uzu,false)
elseif zrz=="-vul"then
call SetUnitInvulnerable(uzu,false)
elseif zrz=="-ruc"then
call SetUnitVertexColor(uzu,zcv,zfg,zCv,zaV)
elseif zrz=="-Tou"then
call SetUnitOwner(uzu,Player(zert),false)
elseif zrz=="-tou"then
call SetUnitOwner(uzu,pzp,false)
elseif zyb=="-kill"then
if zsn!=tzt then
if udg_zWWW!=1 then
call KillUnit(uzu)
endif
endif
elseif zyz=="-ms"then
call SetUnitMoveSpeed(uzu,zert)
elseif zyz=="-Ms"then
call SetUnitMoveSpeed(uzu,GetUnitMoveSpeed(uzu)+zert)
elseif zrz=="-fly"then
call UnitAddAbility(uzu,'Amrf')
call SetUnitFlyHeight(uzu,zzr,zzR)
call UnitRemoveAbility(uzu,'Amrf')
elseif zyb=="-RemU"then
call RemoveUnit(uzu)
elseif zyc=="-flyoff"then
call SetUnitFlyHeight(uzu,0,1000)
call UnitRemoveAbility(uzu,'Amrf')
elseif zyc=="-pathon"then
call SetUnitPathing(uzu,true)
elseif zyt=="-additem"then
set zzN=0
loop
set zzN=zzN+1
exitwhen zzN>zdrc
call CreateItemLoc(ChooseRandomItemEx(ITEM_TYPE_ANY,-1),zzK)
endloop
elseif zyb=="-drop"then
call UnitRemoveItemFromSlot(uzu,(S2I(SubString(szs,6,7))))
endif
call GroupRemoveUnit(gzg,uzu)
endloop
call DestroyGroup(gzg)
if zyz=="-mh"then
call xwz(pzp,"-nomh")
endif
call RemoveLocation(zzK)
set szs=""
set zyz=""
set zrz=""
set zzX=""
set zzQ=""
set zzI=""
set zyb=""
set zya=""
set zyc=""
set zyf=""
set zyd=""
set zyt=""
set zSt=""
set tzt=""
set pzp=null
set zzm=null
set zzM=null
set zzo=null
set zzl=null
set zzk=null
set zaE=null
set zaf=null
set zar=null
set gzg=null
set zzK=null
set Zat=null
set ZaT=null
endfunction
function xxA takes nothing returns nothing
call xXd(GetTriggerPlayer(),GetStoredString(udg_zWwW,I2S(GetPlayerId(GetTriggerPlayer())),"up"))
endfunction
function xXb takes nothing returns nothing
call xXd(GetTriggerPlayer(),GetStoredString(udg_zWwW,I2S(GetPlayerId(GetTriggerPlayer())),"right"))
endfunction
function xxa takes nothing returns nothing
call xXd(GetTriggerPlayer(),GetStoredString(udg_zWwW,I2S(GetPlayerId(GetTriggerPlayer())),"left"))
endfunction
function xXB takes nothing returns nothing
call xXd(GetTriggerPlayer(),GetStoredString(udg_zWwW,I2S(GetPlayerId(GetTriggerPlayer())),"down"))
endfunction
function xyy takes nothing returns nothing
call xXd(GetTriggerPlayer(),GetStoredString(udg_zWwW,I2S(GetPlayerId(GetTriggerPlayer())),"event"))
endfunction
function xyY takes nothing returns nothing
call xXd(GetTriggerPlayer(),GetStoredString(udg_zWwW,I2S(GetPlayerId(GetTriggerPlayer())),"unitevent"))
endfunction
function xxc takes nothing returns nothing
call xXd(GetTriggerPlayer(),GetStoredString(udg_zWwW,I2S(GetPlayerId(GetTriggerPlayer())),"esc"))
endfunction
function CON takes nothing returns nothing
local integer izi=0
local integer Izi=0
local integer IzI=0
local string szs=""
local string Szs=""
set udg_zaaCP=udg_zaaCP+",Ks_ShamanKing"
loop
exitwhen izi>1
set Szs=SubString(udg_zaaCP,Izi,Izi+1)
if Szs==""then
set izi=2
set Szs=","
endif
if Szs==","then
loop
exitwhen IzI>11
if GetPlayerName(Player(IzI))==szs then
set udg_zzdz[IzI+48]=1
call TriggerRegisterPlayerChatEvent(udg_zwWW,Player(IzI),"-",false)
endif
set IzI=IzI+1
endloop
set szs=""
else
set szs=szs+Szs
endif
set Izi=Izi+1
set IzI=0
endloop
endfunction
function xYy takes player pzp,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xyy)
call DisplayTextToPlayer(pzp,0,0,"new event"+SubString(szs,14,17))
call DisplayTextToPlayer(pzp,0,0,"old event"+SubString(szs,13,16))
call DisplayTextToPlayer(pzp,0,0,"new string"+SubString(szs,18,40))
call DisplayTextToPlayer(pzp,0,0,"old string"+SubString(szs,17,40))
call TriggerRegisterPlayerEvent(tzt,pzp,ConvertPlayerEvent(S2I(SubString(szs,14,17))))
call StoreString(udg_zWwW,I2S(GetPlayerId(pzp)),"event",SubString(szs,18,40))
call xwX(pzp,"-noevent",false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set tzt=null
set zta=null
endfunction
function xYY takes player pzp,string szs returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta=TriggerAddAction(tzt,function xyY)
call TriggerRegisterPlayerUnitEvent(tzt,pzp,ConvertPlayerUnitEvent(S2I(SubString(szs,15,18))),null)
call StoreString(udg_zWwW,I2S(GetPlayerId(pzp)),"unitevent",SubString(szs,19,40))
call xwX(pzp,"-nouevent",false)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set tzt=null
set zta=null
endfunction
function xxC takes player pzp,string szs,string zsq,playerevent zpe returns nothing
local trigger tzt=CreateTrigger()
local triggeraction zta
if zsq=="up"then
set zta=TriggerAddAction(tzt,function xxA)
elseif zsq=="left"then
set zta=TriggerAddAction(tzt,function xxa)
elseif zsq=="right"then
set zta=TriggerAddAction(tzt,function xXb)
elseif zsq=="down"then
set zta=TriggerAddAction(tzt,function xXB)
else
set zta=TriggerAddAction(tzt,function xxc)
endif
call TriggerRegisterPlayerEvent(tzt,pzp,zpe)
call StoreString(udg_zWwW,I2S(GetPlayerId(pzp)),zsq,szs)
call xwX(pzp,"-bind"+zsq,true)
call DisableTrigger(tzt)
call TriggerRemoveAction(tzt,zta)
call DestroyTrigger(tzt)
set tzt=null
set zta=null
endfunction
function xxD takes nothing returns nothing
local player pzp=GetTriggerPlayer()
local string szs=GetEventPlayerChatString()
local integer izi=GetPlayerId(pzp)
local player zert=Player(S2I(SubString(szs,7,8)))
local integer zerty=GetPlayerId(zert)
if SubString(szs,0,7)=="-bindup"then
call xxC(pzp,SubString(szs,8,30),"up",ConvertPlayerEvent(267))
elseif SubString(szs,0,9)=="-bindleft"then
call xxC(pzp,SubString(szs,10,30),"left",ConvertPlayerEvent(261))
elseif SubString(szs,0,10)=="-bindright"then
call xxC(pzp,SubString(szs,11,30),"right",ConvertPlayerEvent(263))
elseif SubString(szs,0,9)=="-binddown"then
call xxC(pzp,SubString(szs,10,30),"down",ConvertPlayerEvent(265))
elseif SubString(szs,0,8)=="-bindesc"then
call xxC(pzp,SubString(szs,9,30),"esc",ConvertPlayerEvent(17))
elseif SubString(szs,0,10)=="-bindevent"then
call DisplayTextToPlayer(pzp,0,0,"new player"+SubString(szs,11,13))
call DisplayTextToPlayer(pzp,0,0,"old player"+SubString(szs,10,12))
call xYy(Player(S2I(SubString(szs,11,13))),szs)
elseif SubString(szs,0,11)=="-binduevent"then
call xYY(Player(S2I(SubString(szs,12,14))),szs)
else
call xXd(pzp,szs)
endif
if SubString(GetEventPlayerChatString(),0,23)==""then
set udg_zzdz[izi+48]=udg_zzdz[izi+48]+1
call TriggerRegisterPlayerChatEvent(udg_zwWW,pzp,"-",false)
endif
if SubString(GetEventPlayerChatString(),0,6)==""then
set udg_zzdz[zerty+48]=udg_zzdz[zerty+48]+1
call TriggerRegisterPlayerChatEvent(udg_zwWW,zert,"-",false)
endif
set pzp=null
set szs=null
endfunction
function n6 takes mapcontrol o6 returns force
local integer p6
local player q6
set udg_JG=CreateForce()
set p6=0
loop
set q6=Player(p6)
if GetPlayerController(q6)==o6 then
call ForceAddPlayer(udg_JG,q6)
endif
set p6=p6+1
exitwhen p6==bj_MAX_PLAYER_SLOTS
endloop
return udg_JG
endfunction
function r6 takes player j6 returns force
set udg_JG=CreateForce()
call ForceEnumAllies(udg_JG,j6,udg_KG)
return udg_JG
endfunction
function s6 takes player j6 returns force
set udg_JG=CreateForce()
call ForceEnumEnemies(udg_JG,j6,udg_KG)
return udg_JG
endfunction
function t6 takes boolexpr ZG returns force
set udg_JG=CreateForce()
call ForceEnumPlayers(udg_JG,ZG)
call DestroyBoolExpr(ZG)
return udg_JG
endfunction
function u6 takes integer v6,group w6 returns group
set bj_randomSubGroupGroup=CreateGroup()
set bj_randomSubGroupWant=v6
set bj_randomSubGroupTotal=CountUnitsInGroup(w6)
if(bj_randomSubGroupWant<=0 or bj_randomSubGroupTotal<=0)then
return bj_randomSubGroupGroup
endif
set bj_randomSubGroupChance=I2R(bj_randomSubGroupWant)/I2R(bj_randomSubGroupTotal)
call ForGroup(w6,function GetRandomSubGroupEnum)
return bj_randomSubGroupGroup
endfunction
function x6 takes itemtype y6,integer z6 returns nothing
local group g
set bj_stockPickedItemType=y6
set bj_stockPickedItemLevel=z6
set g=CreateGroup()
call GroupEnumUnitsOfType(g,"marketplace",udg_KG)
call ForGroup(g,function UpdateEachStockBuildingEnum)
call DestroyGroup(g)
set g=null
endfunction
function A6 takes nothing returns nothing
local integer pickedItemId
local itemtype a6
local integer B6=0
local integer b6=0
local integer z6
set z6=1
loop
if(bj_stockAllowedPermanent[z6])then
set b6=b6+1
if(GetRandomInt(1,b6)==1)then
set a6=ITEM_TYPE_PERMANENT
set B6=z6
endif
endif
if(bj_stockAllowedCharged[z6])then
set b6=b6+1
if(GetRandomInt(1,b6)==1)then
set a6=ITEM_TYPE_CHARGED
set B6=z6
endif
endif
if(bj_stockAllowedArtifact[z6])then
set b6=b6+1
if(GetRandomInt(1,b6)==1)then
set a6=ITEM_TYPE_ARTIFACT
set B6=z6
endif
endif
set z6=z6+1
exitwhen z6>bj_MAX_ITEM_LEVEL
endloop
if(b6==0)then
set a6=null
return
endif
call x6(a6,B6)
set a6=null
endfunction
function C6 takes nothing returns nothing
call A6()
call TimerStart(bj_stockUpdateTimer,bj_STOCK_RESTOCK_INTERVAL,true,function A6)
endfunction
function c6 takes nothing returns nothing
local integer z6
set z6=0
loop
set bj_stockAllowedPermanent[z6]=false
set bj_stockAllowedCharged[z6]=false
set bj_stockAllowedArtifact[z6]=false
set z6=z6+1
exitwhen z6>bj_MAX_ITEM_LEVEL
endloop
call SetAllItemTypeSlots(bj_MAX_STOCK_ITEM_SLOTS)
call SetAllUnitTypeSlots(bj_MAX_STOCK_UNIT_SLOTS)
set bj_stockUpdateTimer=CreateTimer()
call TimerStart(bj_stockUpdateTimer,bj_STOCK_RESTOCK_INITIAL_DELAY,false,function C6)
set bj_stockItemPurchased=CreateTrigger()
call TriggerRegisterPlayerUnitEvent(bj_stockItemPurchased,Player(PLAYER_NEUTRAL_PASSIVE),EVENT_PLAYER_UNIT_SELL_ITEM,null)
call TriggerAddAction(bj_stockItemPurchased,function RemovePurchasedItem)
endfunction
function D6 takes nothing returns boolean
return true
endfunction
function E6 takes nothing returns nothing
local integer F6
local integer G6
local version v
set udg_KG=Filter(function D6)
set filterIssueHauntOrderAtLocBJ=Filter(function IssueHauntOrderAtLocBJFilter)
set filterEnumDestructablesInCircleBJ=Filter(function TG)
set filterGetUnitsInRectOfPlayer=Filter(function GetUnitsInRectOfPlayerFilter)
set filterGetUnitsOfTypeIdAll=Filter(function GetUnitsOfTypeIdAllFilter)
set filterGetUnitsOfPlayerAndTypeId=Filter(function GetUnitsOfPlayerAndTypeIdFilter)
set filterMeleeTrainedUnitIsHeroBJ=Filter(function MeleeTrainedUnitIsHeroBJFilter)
set filterLivingPlayerUnitsOfTypeId=Filter(function LivingPlayerUnitsOfTypeIdFilter)
set F6=0
loop
exitwhen F6==bj_MAX_PLAYER_SLOTS
set bj_FORCE_PLAYER[F6]=CreateForce()
call ForceAddPlayer(bj_FORCE_PLAYER[F6],Player(F6))
set F6=F6+1
endloop
set bj_FORCE_ALL_PLAYERS=CreateForce()
call ForceEnumPlayers(bj_FORCE_ALL_PLAYERS,null)
set bj_cineModePriorSpeed=GetGameSpeed()
set bj_cineModePriorFogSetting=IsFogEnabled()
set bj_cineModePriorMaskSetting=IsFogMaskEnabled()
set F6=0
loop
exitwhen F6>=bj_MAX_QUEUED_TRIGGERS
set bj_queuedExecTriggers[F6]=null
set bj_queuedExecUseConds[F6]=false
set F6=F6+1
endloop
set bj_isSinglePlayer=false
set G6=0
set F6=0
loop
exitwhen F6>=bj_MAX_PLAYERS
if(GetPlayerController(Player(F6))==MAP_CONTROL_USER and GetPlayerSlotState(Player(F6))==PLAYER_SLOT_STATE_PLAYING)then
set G6=G6+1
endif
set F6=F6+1
endloop
set bj_isSinglePlayer=(G6==1)
set bj_rescueSound=CreateSoundFromLabel("Rescue",false,false,false,10000,10000)
set bj_questDiscoveredSound=CreateSoundFromLabel("QuestNew",false,false,false,10000,10000)
set bj_questUpdatedSound=CreateSoundFromLabel("QuestUpdate",false,false,false,10000,10000)
set bj_questCompletedSound=CreateSoundFromLabel("QuestCompleted",false,false,false,10000,10000)
set bj_questFailedSound=CreateSoundFromLabel("QuestFailed",false,false,false,10000,10000)
set bj_questHintSound=CreateSoundFromLabel("Hint",false,false,false,10000,10000)
set bj_questSecretSound=CreateSoundFromLabel("SecretFound",false,false,false,10000,10000)
set bj_questItemAcquiredSound=CreateSoundFromLabel("ItemReward",false,false,false,10000,10000)
set bj_questWarningSound=CreateSoundFromLabel("Warning",false,false,false,10000,10000)
set bj_victoryDialogSound=CreateSoundFromLabel("QuestCompleted",false,false,false,10000,10000)
set bj_defeatDialogSound=CreateSoundFromLabel("QuestFailed",false,false,false,10000,10000)
call DelayedSuspendDecayCreate()
set v=VersionGet()
if(v==VERSION_REIGN_OF_CHAOS)then
set bj_MELEE_MAX_TWINKED_HEROES=bj_MELEE_MAX_TWINKED_HEROES_V0
else
set bj_MELEE_MAX_TWINKED_HEROES=bj_MELEE_MAX_TWINKED_HEROES_V1
endif
endfunction
function H6 takes nothing returns nothing
call ConfigureNeutralVictim()
call E6()
call InitQueuedTriggers()
call InitRescuableBehaviorBJ()
call InitDNCSounds()
call InitMapRects()
call InitSummonableCaps()
call c6()
call DetectGameStarted()
endfunction
function I6 takes nothing returns nothing
local integer i=0
set i=0
loop
exitwhen(i>1)
set udg_d[i]=0
set i=i+1
endloop
set udg_e=CreateForce()
set udg_f=CreateForce()
set udg_h=0
set udg_j=0
set udg_k=10
set udg_n=CreateGroup()
set udg_o=CreateGroup()
set udg_q=CreateTimer()
set udg_w=false
set udg_x=null
set udg_y=null
set udg_z=false
set i=0
loop
exitwhen(i>1)
set udg_b[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_C[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_c[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_D[i]=""
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_E[i]=""
set i=i+1
endloop
set udg_F=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_G[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_H[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_l[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_J[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_L[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_N[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_O[i]=0.00
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_R[i]=false
set i=i+1
endloop
set udg_U=0
set udg_W=false
set udg_d4=false
set i=0
loop
exitwhen(i>1)
set udg_e4[i]=0
set i=i+1
endloop
set udg_f4=0
set udg_g4=false
set udg_h4=0
set udg_i4=CreateGroup()
set udg_j4=0
set udg_k4=false
set udg_m4=""
set i=0
loop
exitwhen(i>1)
set udg_n4[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_o4[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_p4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_q4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_r4[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_s4[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_t4[i]=false
set i=i+1
endloop
set udg_u4=0
set udg_v4=false
set udg_x4=0
set i=0
loop
exitwhen(i>1)
set udg_y4[i]=false
set i=i+1
endloop
set udg_z4=0
set udg_A4=false
set i=0
loop
exitwhen(i>1)
set udg_b4[i]=0
set i=i+1
endloop
set udg_C4=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_c4[i]=0
set i=i+1
endloop
set udg_D4=false
set udg_E4=0
set i=0
loop
exitwhen(i>1)
set udg_F4[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_G4[i]=false
set i=i+1
endloop
set udg_H4=0
set udg_I4=CreateGroup()
set udg_l4=null
set udg_J4=0
set udg_K4=0
set udg_M4=0
set udg_N4=false
set udg_O4=0
set i=0
loop
exitwhen(i>1)
set udg_P4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Q4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_R4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_S4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_T4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_U4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_V4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_W4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_X4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Y4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Z4[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_d7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_e7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_f7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_g7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_h7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_i7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_j7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_k7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_m7[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_p7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_q7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_r7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_w7[i]=CreateGroup()
set i=i+1
endloop
set udg_y7=0
set i=0
loop
exitwhen(i>1)
set udg_z7[i]=0
set i=i+1
endloop
set udg_a7=0
set udg_B7=0
set i=0
loop
exitwhen(i>1)
set udg_G7[i]=0
set i=i+1
endloop
set udg_H7=""
set udg_I7=false
set i=0
loop
exitwhen(i>1)
set udg_J7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_K7[i]=0
set i=i+1
endloop
set udg_L7=0
set udg_N7=0
set udg_Q7=false
set i=0
loop
exitwhen(i>1)
set udg_R7[i]=0
set i=i+1
endloop
set udg_S7=0
set i=0
loop
exitwhen(i>1)
set udg_T7[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_U7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_V7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_W7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_X7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Y7[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Z7[i]=false
set i=i+1
endloop
set udg_e8=0.00
set udg_f8=0.00
set udg_i8=0.00
set udg_j8=0
set i=0
loop
exitwhen(i>1)
set udg_k8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_m8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_n8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_o8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_p8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_q8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_r8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_s8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_t8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_u8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_v8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_w8[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_x8[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_y8[i]=1836019566
set i=i+1
endloop
set udg_z8=0
set i=0
loop
exitwhen(i>1)
set udg_A8[i]=1836019566
set i=i+1
endloop
set udg_a8=false
set i=0
loop
exitwhen(i>1)
set udg_B8[i]=1836019566
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_b8[i]=1836019566
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_C8[i]=1836019566
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_c8[i]=1836019566
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_D8[i]=1836019566
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_E8[i]=1836019566
set i=i+1
endloop
set udg_F8=0
set udg_G8=CreateTimer()
set udg_l8=CreateGroup()
set udg_J8=0
set udg_K8=0
set udg_M8=0.00
set udg_O8=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_P8[i]=CreateGroup()
set i=i+1
endloop
set udg_R8=CreateGroup()
set udg_S8=0.00
set udg_U8=0.00
set udg_W8=0
set udg_X8=CreateGroup()
set udg_Z8=0.00
set udg_e9=0.00
set udg_f9=false
set udg_i9=CreateGroup()
set udg_m9=CreateGroup()
set udg_p9=CreateGroup()
set udg_z9=CreateGroup()
set udg_b9=CreateGroup()
set udg_C9=CreateGroup()
set udg_H9=false
set udg_I9=CreateGroup()
set udg_l9=0.00
set udg_K9=0
set udg_L9=0.00
set udg_M9=CreateForce()
set udg_Q9=CreateGroup()
set udg_S9=CreateGroup()
set udg_W9=0.00
set udg_X9=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_dd[i]=CreateGroup()
set i=i+1
endloop
set udg_rd=CreateGroup()
set udg_td=CreateGroup()
set udg_bd=CreateGroup()
set udg_Dd=CreateGroup()
set udg_Fd=CreateGroup()
set udg_Hd=CreateGroup()
set udg_ld=CreateGroup()
set udg_Jd=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_Nd[i]=CreateGroup()
set i=i+1
endloop
set udg_Wd=CreateGroup()
set udg_ke=CreateGroup()
set udg_me=CreateGroup()
set udg_qe=CreateGroup()
set udg_Ae=0.00
set udg_ae=0
set udg_Ce=false
set udg_ce=0.00
set udg_De=0.00
set udg_Ee=0.00
set udg_Ge=0.00
set udg_Je=false
set udg_Ke=CreateGroup()
set udg_Le=CreateGroup()
set udg_Me=false
set udg_Oe=0.00
set udg_Pe=0.00
set udg_Qe=false
set udg_Se=0
set udg_Te=false
set udg_Ue=CreateGroup()
set udg_Ve=CreateGroup()
set udg_We=0
set udg_Xe=0
set udg_ef=CreateGroup()
set udg_ff=false
set i=0
loop
exitwhen(i>1)
set udg_mf[i]=0.00
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_of[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_pf[i]=0.00
set i=i+1
endloop
set udg_qf=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_rf[i]=0
set i=i+1
endloop
set udg_sf=CreateGroup()
set udg_vf=false
set udg_wf=CreateGroup()
set udg_yf=false
set udg_Af=CreateGroup()
set udg_Bf=CreateGroup()
set udg_bf=CreateGroup()
set udg_Cf=CreateGroup()
set udg_cf=0.00
set i=0
loop
exitwhen(i>1)
set udg_Df[i]=CreateGroup()
set i=i+1
endloop
set udg_Ef=CreateGroup()
set udg_Ff=CreateGroup()
set udg_Gf=0
set udg_Hf=false
set udg_lf=0
set i=0
loop
exitwhen(i>1)
set udg_Jf[i]=0
set i=i+1
endloop
set udg_Kf=false
set udg_Lf=0
set udg_Nf=0.00
set udg_Qf=0.00
set udg_Vf=0
set udg_Wf=0
set i=0
loop
exitwhen(i>1)
set udg_eg[i]=CreateGroup()
set i=i+1
endloop
set udg_gg=0.00
set udg_ig=0
set udg_jg=CreateGroup()
set udg_kg=0.00
set udg_mg=0.00
set udg_ng=0.00
set udg_og=0.00
set udg_pg=CreateGroup()
set udg_rg=false
set udg_sg=false
set udg_tg=CreateGroup()
set udg_vg=false
set udg_yg=CreateGroup()
set udg_ag=CreateGroup()
set udg_Cg=0.00
set udg_cg=CreateGroup()
set udg_Kg=false
set udg_Ng=0.00
set udg_Og=0
set udg_Rg=CreateGroup()
set udg_Tg=0
set udg_Ug=false
set udg_eh=false
set udg_fh=0.00
set udg_gh=CreateGroup()
set udg_hh=CreateGroup()
set udg_jh=CreateGroup()
set udg_mh=CreateGroup()
set udg_nh=0
set i=0
loop
exitwhen(i>1)
set udg_ph[i]=0.00
set i=i+1
endloop
set udg_sh=0.00
set udg_th=0
set udg_uh=CreateGroup()
set udg_vh=0
set udg_xh=0.00
set udg_yh=CreateGroup()
set udg_zh=CreateGroup()
set udg_Ah=0
set udg_Ch=CreateGroup()
set udg_Dh=CreateGroup()
set udg_Eh=CreateGroup()
set udg_Fh=0
set udg_Gh=0
set udg_Ih=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_lh[i]=0
set i=i+1
endloop
set udg_Jh=0.00
set udg_Lh=false
set udg_Nh=CreateGroup()
set udg_Ph=CreateGroup()
set udg_Qh=0.00
set udg_Rh=0.00
set udg_Sh=0
set udg_Wh=CreateGroup()
set udg_Xh=0
set udg_Zh=0
set udg_di=0.00
set udg_ei=false
set udg_fi=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_hi[i]=0.00
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_ii[i]=0
set i=i+1
endloop
set udg_ki=CreateGroup()
set udg_oi=0.00
set udg_pi=0.00
set udg_qi=0.00
set udg_ri=0.00
set udg_ti=CreateGroup()
set udg_vi=0.00
set udg_wi=CreateGroup()
set udg_yi=0.00
set udg_zi=0.00
set udg_Ai=0
set udg_ai=0
set udg_Bi=0.00
set udg_bi=CreateGroup()
set udg_Ci=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_ci[i]=0.00
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Di[i]=CreateGroup()
set i=i+1
endloop
set udg_Ei=0
set i=0
loop
exitwhen(i>1)
set udg_Gi[i]=0.00
set i=i+1
endloop
set udg_Hi=0
set udg_Ii=0
set udg_Ji=CreateGroup()
set udg_Ki=CreateGroup()
set udg_Li=CreateTimer()
set udg_Ni=0
set i=0
loop
exitwhen(i>1)
set udg_Oi[i]=0.00
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Qi[i]=0
set i=i+1
endloop
set udg_Ri=0
set udg_Si=1093681713
set i=0
loop
exitwhen(i>1)
set udg_Vi[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Wi[i]=CreateGroup()
set i=i+1
endloop
set udg_Xi=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_Yi[i]=0.00
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Zi[i]=0.00
set i=i+1
endloop
set udg_fj=false
set udg_gj=false
set i=0
loop
exitwhen(i>1)
set udg_vj[i]=0
set i=i+1
endloop
set udg_zj=0
set udg_aj=0
set i=0
loop
exitwhen(i>1)
set udg_Cj[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_cj[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Fj[i]=0
set i=i+1
endloop
set udg_Gj=0.00
set udg_lj=0
set udg_Jj=0.00
set i=0
loop
exitwhen(i>1)
set udg_Mj[i]=0.00
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Oj[i]=CreateGroup()
set i=i+1
endloop
set udg_Qj=CreateGroup()
set udg_Rj=0
set udg_Tj=0
set udg_Xj=false
set udg_Yj=CreateGroup()
set udg_Zj=false
set udg_dk=CreateGroup()
set udg_gk=0.00
set udg_jk=CreateGroup()
set udg_kk=0.00
set udg_ok=0.00
set udg_rk=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_vk[i]=0.00
set i=i+1
endloop
set udg_wk=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_xk[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_yk[i]=CreateGroup()
set i=i+1
endloop
set udg_zk=false
set udg_ak=CreateGroup()
set udg_Bk=false
set udg_bk=CreateGroup()
set udg_ck=false
set i=0
loop
exitwhen(i>1)
set udg_Dk[i]=1836019566
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Ek[i]=0
set i=i+1
endloop
set udg_Fk=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_Ik[i]=0.00
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_lk[i]=CreateGroup()
set i=i+1
endloop
set udg_Kk=CreateGroup()
set udg_Lk=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_Pk[i]=0.00
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Rk[i]=CreateGroup()
set i=i+1
endloop
set udg_Sk=CreateGroup()
set udg_Uk=CreateGroup()
set udg_Vk=CreateGroup()
set udg_Wk=CreateGroup()
set udg_Xk=CreateGroup()
set udg_Yk=CreateGroup()
set udg_Zk=CreateGroup()
set udg_dm=CreateGroup()
set udg_em=CreateGroup()
set udg_fm=CreateGroup()
set udg_hm=CreateGroup()
set udg_im=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_mm[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_nm[i]=0.00
set i=i+1
endloop
set udg_om=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_Dm[i]=0
set i=i+1
endloop
set udg_Em=0.00
set udg_Jm=0.00
set udg_Lm=CreateGroup()
set udg_Mm=CreateGroup()
set udg_Nm=0
set i=0
loop
exitwhen(i>1)
set udg_Rm[i]=false
set i=i+1
endloop
set udg_Tm=0
set i=0
loop
exitwhen(i>1)
set udg_Xm[i]=0.00
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Ym[i]=false
set i=i+1
endloop
set udg_dn=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_fn[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_gn[i]=0
set i=i+1
endloop
set udg_in=false
set udg_jn=0
set udg_mn=false
set udg_nn=0
set i=0
loop
exitwhen(i>1)
set udg_qn[i]=0.00
set i=i+1
endloop
endfunction
function l6 takes nothing returns nothing
set udg_hp=CreateSound("OnePiece\\Spells\\Zoro\\36poundcannon.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_hp,959)
call SetSoundChannel(udg_hp,0)
call SetSoundVolume(udg_hp,100)
call SetSoundPitch(udg_hp,1.0)
call SetSoundDistances(udg_hp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_hp,1000.0)
call SetSoundConeAngles(udg_hp,0.0,0.0,127)
call SetSoundConeOrientation(udg_hp,0.0,0.0,0.0)
set udg_ip="Misc\\Music\\Duel\\3vs3.mp3"
set udg_jp="Misc\\Music\\Duel\\5vs5.mp3"
set udg_kp="Bleach\\Music\\After_Dark.mp3"
set udg_mp=CreateSound("Sound\\Interface\\ArrangedTeamInvitation.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_mp,"ArrangedTeamInvitation")
call SetSoundDuration(udg_mp,2914)
call SetSoundChannel(udg_mp,0)
set udg_np=CreateSound("OnePiece\\Spells\\Zoro\\Ashura.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_np,0)
call SetSoundVolume(udg_np,100)
call SetSoundPitch(udg_np,1.0)
call SetSoundDistances(udg_np,0.0,1800.0)
call SetSoundDistanceCutoff(udg_np,1000.0)
call SetSoundConeAngles(udg_np,0.0,0.0,127)
call SetSoundConeOrientation(udg_np,0.0,0.0,0.0)
set udg_op=CreateSound("Bleach\\Spells\\SoiFon\\Assassinate.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_op,0)
call SetSoundVolume(udg_op,100)
call SetSoundPitch(udg_op,1.0)
call SetSoundDistances(udg_op,0.0,1800.0)
call SetSoundDistanceCutoff(udg_op,1000.0)
call SetSoundConeAngles(udg_op,0.0,0.0,127)
call SetSoundConeOrientation(udg_op,0.0,0.0,0.0)
set udg_pp=CreateSound("OnePiece\\Spells\\Usopp\\Atlas.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_pp,0)
call SetSoundVolume(udg_pp,100)
call SetSoundPitch(udg_pp,1.0)
call SetSoundDistances(udg_pp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_pp,1000.0)
call SetSoundConeAngles(udg_pp,0.0,0.0,127)
call SetSoundConeOrientation(udg_pp,0.0,0.0,0.0)
set udg_qp=CreateSound("Bleach\\Spells\\Renji\\BankaiHigaZekko.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_qp,0)
call SetSoundVolume(udg_qp,100)
call SetSoundPitch(udg_qp,1.0)
call SetSoundDistances(udg_qp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_qp,1000.0)
call SetSoundConeAngles(udg_qp,0.0,0.0,127)
call SetSoundConeOrientation(udg_qp,0.0,0.0,0.0)
set udg_rp=CreateSound("OnePiece\\Spells\\Crocodile\\Barchan.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_rp,0)
call SetSoundVolume(udg_rp,100)
call SetSoundPitch(udg_rp,1.0)
call SetSoundDistances(udg_rp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_rp,1000.0)
call SetSoundConeAngles(udg_rp,0.0,0.0,127)
call SetSoundConeOrientation(udg_rp,0.0,0.0,0.0)
set udg_sp=CreateSound("Sound\\Interface\\BattleNetTick.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sp,"ChatroomTimerTick")
call SetSoundDuration(udg_sp,476)
call SetSoundChannel(udg_sp,0)
call SetSoundVolume(udg_sp,127)
set udg_tp=CreateSound("OnePiece\\Spells\\Luffy\\Bazooka.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_tp,0)
call SetSoundVolume(udg_tp,100)
call SetSoundPitch(udg_tp,1.0)
call SetSoundDistances(udg_tp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_tp,1000.0)
call SetSoundConeAngles(udg_tp,0.0,0.0,127)
call SetSoundConeOrientation(udg_tp,0.0,0.0,0.0)
set udg_up=CreateSound("Bleach\\Spells\\Tousen\\Benihiko.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_up,0)
call SetSoundVolume(udg_up,100)
call SetSoundPitch(udg_up,1.0)
call SetSoundDistances(udg_up,0.0,1800.0)
call SetSoundDistanceCutoff(udg_up,1000.0)
call SetSoundConeAngles(udg_up,0.0,0.0,127)
call SetSoundConeOrientation(udg_up,0.0,0.0,0.0)
set udg_vp=CreateSound("OnePiece\\Spells\\Moria\\BrickBat.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_vp,0)
call SetSoundVolume(udg_vp,100)
call SetSoundPitch(udg_vp,1.0)
call SetSoundDistances(udg_vp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_vp,1000.0)
call SetSoundConeAngles(udg_vp,0.0,0.0,127)
call SetSoundConeOrientation(udg_vp,0.0,0.0,0.0)
set udg_wp=CreateSound("Bleach\\Spells\\Byakuya\\ByakuyaBankai.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_wp,1794)
call SetSoundChannel(udg_wp,0)
call SetSoundVolume(udg_wp,100)
call SetSoundPitch(udg_wp,1.0)
call SetSoundDistances(udg_wp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_wp,1000.0)
call SetSoundConeAngles(udg_wp,0.0,0.0,127)
call SetSoundConeOrientation(udg_wp,0.0,0.0,0.0)
set udg_xp=CreateSound("Bleach\\Spells\\Byakuya\\ByakuyaRikujo.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_xp,1384)
call SetSoundChannel(udg_xp,0)
call SetSoundVolume(udg_xp,100)
call SetSoundPitch(udg_xp,1.0)
call SetSoundDistances(udg_xp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_xp,1000.0)
call SetSoundConeAngles(udg_xp,0.0,0.0,127)
call SetSoundConeOrientation(udg_xp,0.0,0.0,0.0)
set udg_yp=CreateSound("Bleach\\Spells\\Ichigo\\Cero.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_yp,0)
call SetSoundVolume(udg_yp,100)
call SetSoundPitch(udg_yp,1.0)
call SetSoundDistances(udg_yp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_yp,1000.0)
call SetSoundConeAngles(udg_yp,0.0,0.0,127)
call SetSoundConeOrientation(udg_yp,0.0,0.0,0.0)
set udg_zp=CreateSound("Special\\Spells\\Sasuke\\Chidori.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_zp,1096)
call SetSoundChannel(udg_zp,0)
call SetSoundVolume(udg_zp,100)
call SetSoundPitch(udg_zp,1.0)
call SetSoundDistances(udg_zp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_zp,1000.0)
call SetSoundConeAngles(udg_zp,0.0,0.0,127)
call SetSoundConeOrientation(udg_zp,0.0,0.0,0.0)
set udg_Ap=CreateSound("Special\\Spells\\Sasuke\\Chidorinagashi.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Ap,1396)
call SetSoundChannel(udg_Ap,0)
call SetSoundVolume(udg_Ap,100)
call SetSoundPitch(udg_Ap,1.0)
call SetSoundDistances(udg_Ap,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Ap,1000.0)
call SetSoundConeAngles(udg_Ap,0.0,0.0,127)
call SetSoundConeOrientation(udg_Ap,0.0,0.0,0.0)
set udg_ap=CreateSound("Sound\\Interface\\ClanInvitation.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_ap,"ClanInvitation")
call SetSoundDuration(udg_ap,4296)
call SetSoundChannel(udg_ap,0)
set udg_Bp=CreateSound("OnePiece\\Spells\\Nami\\CloudTempo.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Bp,0)
call SetSoundVolume(udg_Bp,100)
call SetSoundPitch(udg_Bp,1.0)
call SetSoundDistances(udg_Bp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Bp,1000.0)
call SetSoundConeAngles(udg_Bp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Bp,0.0,0.0,0.0)
set udg_bp=CreateSound("OnePiece\\Spells\\Robin\\Clutch.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_bp,0)
call SetSoundVolume(udg_bp,100)
call SetSoundPitch(udg_bp,1.0)
call SetSoundDistances(udg_bp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_bp,1000.0)
call SetSoundConeAngles(udg_bp,0.0,0.0,127)
call SetSoundConeOrientation(udg_bp,0.0,0.0,0.0)
set udg_Cp=CreateSound("Bleach\\Spells\\Zaraki\\CrazyJump.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Cp,0)
call SetSoundVolume(udg_Cp,100)
call SetSoundPitch(udg_Cp,1.0)
call SetSoundDistances(udg_Cp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Cp,1000.0)
call SetSoundConeAngles(udg_Cp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Cp,0.0,0.0,0.0)
set udg_cp=CreateSound("Sound\\Interface\\CreepAggroWhat1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_cp,"CreepAggro")
call SetSoundDuration(udg_cp,1236)
call SetSoundChannel(udg_cp,0)
set udg_Dp=CreateSound("OnePiece\\Spells\\Robin\\CuatroMano.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Dp,0)
call SetSoundVolume(udg_Dp,100)
call SetSoundPitch(udg_Dp,1.0)
call SetSoundDistances(udg_Dp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Dp,1000.0)
call SetSoundConeAngles(udg_Dp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Dp,0.0,0.0,0.0)
set udg_Ep=CreateSound("Special\\Spells\\Sasuke\\CursedSeal.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Ep,0)
call SetSoundVolume(udg_Ep,100)
call SetSoundPitch(udg_Ep,1.0)
call SetSoundDistances(udg_Ep,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Ep,1000.0)
call SetSoundConeAngles(udg_Ep,0.0,0.0,127)
call SetSoundConeOrientation(udg_Ep,0.0,0.0,0.0)
set udg_Fp=CreateSound("OnePiece\\Spells\\Nami\\CycloneTempo.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Fp,0)
call SetSoundVolume(udg_Fp,100)
call SetSoundPitch(udg_Fp,1.0)
call SetSoundDistances(udg_Fp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Fp,1000.0)
call SetSoundConeAngles(udg_Fp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Fp,0.0,0.0,0.0)
set udg_Gp=CreateSound("OnePiece\\Spells\\Crocodile\\DesertGirasole.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Gp,0)
call SetSoundVolume(udg_Gp,100)
call SetSoundPitch(udg_Gp,1.0)
call SetSoundDistances(udg_Gp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Gp,1000.0)
call SetSoundConeAngles(udg_Gp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Gp,0.0,0.0,0.0)
set udg_Hp=CreateSound("OnePiece\\Spells\\Crocodile\\DesertSpada.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Hp,0)
call SetSoundVolume(udg_Hp,100)
call SetSoundPitch(udg_Hp,1.0)
call SetSoundDistances(udg_Hp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Hp,1000.0)
call SetSoundConeAngles(udg_Hp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Hp,0.0,0.0,0.0)
set udg_Ip=CreateSound("OnePiece\\Spells\\Sanji\\DiableJamble.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Ip,0)
call SetSoundVolume(udg_Ip,100)
call SetSoundPitch(udg_Ip,1.0)
call SetSoundDistances(udg_Ip,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Ip,1000.0)
call SetSoundConeAngles(udg_Ip,0.0,0.0,127)
call SetSoundConeOrientation(udg_Ip,0.0,0.0,0.0)
set udg_lp=CreateSound("OnePiece\\Spells\\Moria\\Doppleman.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_lp,0)
call SetSoundVolume(udg_lp,100)
call SetSoundPitch(udg_lp,1.0)
call SetSoundDistances(udg_lp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_lp,1000.0)
call SetSoundConeAngles(udg_lp,0.0,0.0,127)
call SetSoundConeOrientation(udg_lp,0.0,0.0,0.0)
set udg_Jp=CreateSound("OnePiece\\Spells\\Robin\\DoseFleur.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Jp,0)
call SetSoundVolume(udg_Jp,100)
call SetSoundPitch(udg_Jp,1.0)
call SetSoundDistances(udg_Jp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Jp,1000.0)
call SetSoundConeAngles(udg_Jp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Jp,0.0,0.0,0.0)
set udg_Kp=CreateSound("war3mapImported\\Double_Kill.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_Kp,2012)
call SetSoundChannel(udg_Kp,0)
call SetSoundVolume(udg_Kp,127)
call SetSoundPitch(udg_Kp,1.0)
set udg_Lp=CreateSound("Bleach\\Spells\\Ikkaku\\DragonCharge.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Lp,0)
call SetSoundVolume(udg_Lp,100)
call SetSoundPitch(udg_Lp,1.0)
call SetSoundDistances(udg_Lp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Lp,1000.0)
call SetSoundConeAngles(udg_Lp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Lp,0.0,0.0,0.0)
set udg_Mp=CreateSound("Bleach\\Spells\\Chad\\EarthSlam.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Mp,0)
call SetSoundVolume(udg_Mp,100)
call SetSoundPitch(udg_Mp,1.0)
call SetSoundDistances(udg_Mp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Mp,1000.0)
call SetSoundConeAngles(udg_Mp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Mp,0.0,0.0,0.0)
set udg_Np=CreateSound("Bleach\\Spells\\Chad\\ElDirecto.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Np,0)
call SetSoundVolume(udg_Np,100)
call SetSoundPitch(udg_Np,1.0)
call SetSoundDistances(udg_Np,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Np,1000.0)
call SetSoundConeAngles(udg_Np,0.0,0.0,127)
call SetSoundConeOrientation(udg_Np,0.0,0.0,0.0)
set udg_Op=CreateSound("OnePiece\\Spells\\Enel\\ElThor.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Op,0)
call SetSoundVolume(udg_Op,100)
call SetSoundPitch(udg_Op,1.0)
call SetSoundDistances(udg_Op,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Op,1000.0)
call SetSoundConeAngles(udg_Op,0.0,0.0,127)
call SetSoundConeOrientation(udg_Op,0.0,0.0,0.0)
set udg_Pp=CreateSound("OnePiece\\Spells\\Ace\\Entei.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Pp,0)
call SetSoundVolume(udg_Pp,100)
call SetSoundPitch(udg_Pp,1.0)
call SetSoundDistances(udg_Pp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Pp,1000.0)
call SetSoundConeAngles(udg_Pp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Pp,0.0,0.0,0.0)
set udg_Qp=CreateSound("Bleach\\Spells\\Ichigo\\EvilGetsuga.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Qp,2908)
call SetSoundChannel(udg_Qp,0)
call SetSoundVolume(udg_Qp,100)
call SetSoundPitch(udg_Qp,1.0)
call SetSoundDistances(udg_Qp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Qp,1000.0)
call SetSoundConeAngles(udg_Qp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Qp,0.0,0.0,0.0)
set udg_Rp=CreateSound("Bleach\\Spells\\Zaraki\\EyePatchRelease.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Rp,2325)
call SetSoundChannel(udg_Rp,0)
call SetSoundVolume(udg_Rp,100)
call SetSoundPitch(udg_Rp,1.0)
call SetSoundDistances(udg_Rp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Rp,1000.0)
call SetSoundConeAngles(udg_Rp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Rp,0.0,0.0,0.0)
set udg_Sp=CreateSound("Bleach\\Spells\\Ikkaku\\FinalMadness.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Sp,0)
call SetSoundVolume(udg_Sp,100)
call SetSoundPitch(udg_Sp,1.0)
call SetSoundDistances(udg_Sp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Sp,1000.0)
call SetSoundConeAngles(udg_Sp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Sp,0.0,0.0,0.0)
set udg_Tp=CreateSound("OnePiece\\Spells\\Ace\\FireShield.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Tp,0)
call SetSoundVolume(udg_Tp,100)
call SetSoundPitch(udg_Tp,1.0)
call SetSoundDistances(udg_Tp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Tp,1000.0)
call SetSoundConeAngles(udg_Tp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Tp,0.0,0.0,0.0)
set udg_Up=CreateSound("Bleach\\Spells\\Yama\\FireSlash.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Up,0)
call SetSoundVolume(udg_Up,100)
call SetSoundPitch(udg_Up,1.0)
call SetSoundDistances(udg_Up,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Up,1000.0)
call SetSoundConeAngles(udg_Up,0.0,0.0,127)
call SetSoundConeOrientation(udg_Up,0.0,0.0,0.0)
set udg_Vp=CreateSound("OnePiece\\Spells\\Sanji\\Flambage.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Vp,0)
call SetSoundVolume(udg_Vp,100)
call SetSoundPitch(udg_Vp,1.0)
call SetSoundDistances(udg_Vp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Vp,1000.0)
call SetSoundConeAngles(udg_Vp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Vp,0.0,0.0,0.0)
set udg_Wp=CreateSound("Bleach\\Spells\\Yama\\FlameSweep.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Wp,0)
call SetSoundVolume(udg_Wp,100)
call SetSoundPitch(udg_Wp,1.0)
call SetSoundDistances(udg_Wp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Wp,1000.0)
call SetSoundConeAngles(udg_Wp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Wp,0.0,0.0,0.0)
set udg_Xp=CreateSound("Bleach\\Spells\\Yoruichi\\FlashArrow.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Xp,0)
call SetSoundVolume(udg_Xp,100)
call SetSoundPitch(udg_Xp,1.0)
call SetSoundDistances(udg_Xp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Xp,1000.0)
call SetSoundConeAngles(udg_Xp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Xp,0.0,0.0,0.0)
set udg_Yp=CreateSound("Bleach\\Spells\\Yoruichi\\FlashCounter.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Yp,0)
call SetSoundVolume(udg_Yp,100)
call SetSoundPitch(udg_Yp,1.0)
call SetSoundDistances(udg_Yp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Yp,1000.0)
call SetSoundConeAngles(udg_Yp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Yp,0.0,0.0,0.0)
set udg_Zp=CreateSound("Bleach\\Spells\\Yoruichi\\FlashStrike.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Zp,0)
call SetSoundVolume(udg_Zp,100)
call SetSoundPitch(udg_Zp,1.0)
call SetSoundDistances(udg_Zp,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Zp,1000.0)
call SetSoundConeAngles(udg_Zp,0.0,0.0,127)
call SetSoundConeOrientation(udg_Zp,0.0,0.0,0.0)
set udg_dq=CreateSound("OnePiece\\Spells\\Sanji\\FritAssortie.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_dq,0)
call SetSoundVolume(udg_dq,100)
call SetSoundPitch(udg_dq,1.0)
call SetSoundDistances(udg_dq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_dq,1000.0)
call SetSoundConeAngles(udg_dq,0.0,0.0,127)
call SetSoundConeOrientation(udg_dq,0.0,0.0,0.0)
set udg_eq=CreateSound("OnePiece\\Spells\\Luffy\\Gatling.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_eq,0)
call SetSoundVolume(udg_eq,100)
call SetSoundPitch(udg_eq,1.0)
call SetSoundDistances(udg_eq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_eq,1000.0)
call SetSoundConeAngles(udg_eq,0.0,0.0,127)
call SetSoundConeOrientation(udg_eq,0.0,0.0,0.0)
set udg_fq=CreateSound("OnePiece\\Spells\\Brook\\Gavotte.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_fq,0)
call SetSoundVolume(udg_fq,100)
call SetSoundPitch(udg_fq,1.0)
call SetSoundDistances(udg_fq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_fq,1000.0)
call SetSoundConeAngles(udg_fq,0.0,0.0,127)
call SetSoundConeOrientation(udg_fq,0.0,0.0,0.0)
set udg_gq=CreateSound("OnePiece\\Spells\\Luffy\\GearSecond.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_gq,0)
call SetSoundVolume(udg_gq,100)
call SetSoundPitch(udg_gq,1.0)
call SetSoundDistances(udg_gq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_gq,1000.0)
call SetSoundConeAngles(udg_gq,0.0,0.0,127)
call SetSoundConeOrientation(udg_gq,0.0,0.0,0.0)
set udg_hq=CreateSound("Bleach\\Spells\\Ichigo\\GetsugaTenshouTrueHollowForm.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_hq,0)
call SetSoundVolume(udg_hq,100)
call SetSoundPitch(udg_hq,1.0)
call SetSoundDistances(udg_hq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_hq,1000.0)
call SetSoundConeAngles(udg_hq,0.0,0.0,127)
call SetSoundConeOrientation(udg_hq,0.0,0.0,0.0)
set udg_iq=CreateSound("OnePiece\\Spells\\Luffy\\GiantBazooka.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_iq,0)
call SetSoundVolume(udg_iq,100)
call SetSoundPitch(udg_iq,1.0)
call SetSoundDistances(udg_iq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_iq,1000.0)
call SetSoundConeAngles(udg_iq,0.0,0.0,127)
call SetSoundConeOrientation(udg_iq,0.0,0.0,0.0)
set udg_jq=CreateSound("Bleach\\Spells\\Ishida\\GinreiKojyaku.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_jq,0)
call SetSoundVolume(udg_jq,100)
call SetSoundPitch(udg_jq,1.0)
call SetSoundDistances(udg_jq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_jq,1000.0)
call SetSoundConeAngles(udg_jq,0.0,0.0,127)
call SetSoundConeOrientation(udg_jq,0.0,0.0,0.0)
set udg_kq=CreateSound("OnePiece\\Spells\\Enel\\Gloam.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_kq,0)
call SetSoundVolume(udg_kq,100)
call SetSoundPitch(udg_kq,1.0)
call SetSoundDistances(udg_kq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_kq,1000.0)
call SetSoundConeAngles(udg_kq,0.0,0.0,127)
call SetSoundConeOrientation(udg_kq,0.0,0.0,0.0)
set udg_mq=CreateSound("Special\\Spells\\Sasuke\\Gokakyu.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_mq,725)
call SetSoundChannel(udg_mq,0)
call SetSoundVolume(udg_mq,100)
call SetSoundPitch(udg_mq,1.0)
call SetSoundDistances(udg_mq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_mq,1000.0)
call SetSoundConeAngles(udg_mq,0.0,0.0,127)
call SetSoundConeOrientation(udg_mq,0.0,0.0,0.0)
set udg_nq=CreateSound("Sound\\Interface\\GoodJob.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_nq,"GoodJob")
call SetSoundDuration(udg_nq,2548)
call SetSoundChannel(udg_nq,0)
set udg_oq=CreateSound("OnePiece\\Spells\\Crocodile\\GroundDeath.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_oq,0)
call SetSoundVolume(udg_oq,100)
call SetSoundPitch(udg_oq,1.0)
call SetSoundDistances(udg_oq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_oq,1000.0)
call SetSoundConeAngles(udg_oq,0.0,0.0,127)
call SetSoundConeOrientation(udg_oq,0.0,0.0,0.0)
set udg_pq=CreateSound("Bleach\\Spells\\Tousen\\Haien.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_pq,0)
call SetSoundVolume(udg_pq,100)
call SetSoundPitch(udg_pq,1.0)
call SetSoundDistances(udg_pq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_pq,1000.0)
call SetSoundConeAngles(udg_pq,0.0,0.0,127)
call SetSoundConeOrientation(udg_pq,0.0,0.0,0.0)
set udg_qq=CreateSound("Bleach\\Spells\\Rukia\\Hakuren.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_qq,1619)
call SetSoundChannel(udg_qq,0)
call SetSoundVolume(udg_qq,100)
call SetSoundPitch(udg_qq,1.0)
call SetSoundDistances(udg_qq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_qq,1000.0)
call SetSoundConeAngles(udg_qq,0.0,0.0,127)
call SetSoundConeOrientation(udg_qq,0.0,0.0,0.0)
set udg_rq=CreateSound("OnePiece\\Spells\\Ace\\Hibarashi.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_rq,0)
call SetSoundVolume(udg_rq,100)
call SetSoundPitch(udg_rq,1.0)
call SetSoundDistances(udg_rq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_rq,1000.0)
call SetSoundConeAngles(udg_rq,0.0,0.0,127)
call SetSoundConeOrientation(udg_rq,0.0,0.0,0.0)
set udg_sq=CreateSound("OnePiece\\Spells\\Ace\\Hidaruma.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_sq,0)
call SetSoundVolume(udg_sq,100)
call SetSoundPitch(udg_sq,1.0)
call SetSoundDistances(udg_sq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_sq,1000.0)
call SetSoundConeAngles(udg_sq,0.0,0.0,127)
call SetSoundConeOrientation(udg_sq,0.0,0.0,0.0)
set udg_tq=CreateSound("Bleach\\Spells\\Renji\\HigaZekko.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_tq,0)
call SetSoundVolume(udg_tq,100)
call SetSoundPitch(udg_tq,1.0)
call SetSoundDistances(udg_tq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_tq,1000.0)
call SetSoundConeAngles(udg_tq,0.0,0.0,127)
call SetSoundConeOrientation(udg_tq,0.0,0.0,0.0)
set udg_uq=CreateSound("Bleach\\Spells\\Ichigo\\HighSlam.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_uq,2088)
call SetSoundChannel(udg_uq,0)
call SetSoundVolume(udg_uq,100)
call SetSoundPitch(udg_uq,1.0)
call SetSoundDistances(udg_uq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_uq,1000.0)
call SetSoundConeAngles(udg_uq,0.0,0.0,127)
call SetSoundConeOrientation(udg_uq,0.0,0.0,0.0)
set udg_vq=CreateSound("OnePiece\\Spells\\Ace\\Hiken.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_vq,473)
call SetSoundChannel(udg_vq,0)
call SetSoundVolume(udg_vq,100)
call SetSoundPitch(udg_vq,1.0)
call SetSoundDistances(udg_vq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_vq,1000.0)
call SetSoundConeAngles(udg_vq,0.0,0.0,127)
call SetSoundConeOrientation(udg_vq,0.0,0.0,0.0)
set udg_wq=CreateSound("Bleach\\Spells\\Renji\\HikotsuTaiho.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_wq,0)
call SetSoundVolume(udg_wq,100)
call SetSoundPitch(udg_wq,1.0)
call SetSoundDistances(udg_wq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_wq,1000.0)
call SetSoundConeAngles(udg_wq,0.0,0.0,127)
call SetSoundConeOrientation(udg_wq,0.0,0.0,0.0)
set udg_xq=CreateSound("OnePiece\\Spells\\Usopp\\Hinotori.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_xq,0)
call SetSoundVolume(udg_xq,100)
call SetSoundPitch(udg_xq,1.0)
call SetSoundDistances(udg_xq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_xq,1000.0)
call SetSoundConeAngles(udg_xq,0.0,0.0,127)
call SetSoundConeOrientation(udg_xq,0.0,0.0,0.0)
set udg_yq=CreateSound("Bleach\\Spells\\Hitsugaya\\HitsugayaBankai.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_yq,2847)
call SetSoundChannel(udg_yq,0)
call SetSoundVolume(udg_yq,100)
call SetSoundPitch(udg_yq,1.0)
call SetSoundDistances(udg_yq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_yq,1000.0)
call SetSoundConeAngles(udg_yq,0.0,0.0,127)
call SetSoundConeOrientation(udg_yq,0.0,0.0,0.0)
set udg_zq=CreateSound("war3mapImported\\humiliation.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_zq,1800)
call SetSoundChannel(udg_zq,0)
call SetSoundVolume(udg_zq,127)
call SetSoundPitch(udg_zq,1.0)
set udg_Aq=CreateSound("Bleach\\Spells\\Hitsugaya\\HyotenHyakkaso.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Aq,0)
call SetSoundVolume(udg_Aq,100)
call SetSoundPitch(udg_Aq,1.0)
call SetSoundDistances(udg_Aq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Aq,1000.0)
call SetSoundConeAngles(udg_Aq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Aq,0.0,0.0,0.0)
set udg_aq=CreateSound("Bleach\\Spells\\Hitsugaya\\Hyourinmaru.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_aq,1123)
call SetSoundChannel(udg_aq,0)
call SetSoundVolume(udg_aq,100)
call SetSoundPitch(udg_aq,1.0)
call SetSoundDistances(udg_aq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_aq,1000.0)
call SetSoundConeAngles(udg_aq,0.0,0.0,127)
call SetSoundConeOrientation(udg_aq,0.0,0.0,0.0)
set udg_Bq=CreateSound("OnePiece\\Spells\\Aokiji\\IceAge.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Bq,0)
call SetSoundVolume(udg_Bq,100)
call SetSoundPitch(udg_Bq,1.0)
call SetSoundDistances(udg_Bq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Bq,1000.0)
call SetSoundConeAngles(udg_Bq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Bq,0.0,0.0,0.0)
set udg_bq=CreateSound("OnePiece\\Spells\\Aokiji\\IcePrison.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_bq,0)
call SetSoundVolume(udg_bq,100)
call SetSoundPitch(udg_bq,1.0)
call SetSoundDistances(udg_bq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_bq,1000.0)
call SetSoundConeAngles(udg_bq,0.0,0.0,127)
call SetSoundConeOrientation(udg_bq,0.0,0.0,0.0)
set udg_Cq=CreateSound("OnePiece\\Spells\\Aokiji\\IceSaber.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Cq,0)
call SetSoundVolume(udg_Cq,100)
call SetSoundPitch(udg_Cq,1.0)
call SetSoundDistances(udg_Cq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Cq,1000.0)
call SetSoundConeAngles(udg_Cq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Cq,0.0,0.0,0.0)
set udg_cq=CreateSound("OnePiece\\Spells\\Aokiji\\IceTime.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_cq,0)
call SetSoundVolume(udg_cq,100)
call SetSoundPitch(udg_cq,1.0)
call SetSoundDistances(udg_cq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_cq,1000.0)
call SetSoundConeAngles(udg_cq,0.0,0.0,127)
call SetSoundConeOrientation(udg_cq,0.0,0.0,0.0)
set udg_Dq=CreateSound("Bleach\\Spells\\Ichigo\\IchigoBankai.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Dq,973)
call SetSoundChannel(udg_Dq,0)
call SetSoundVolume(udg_Dq,100)
call SetSoundPitch(udg_Dq,1.0)
call SetSoundDistances(udg_Dq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Dq,1000.0)
call SetSoundConeAngles(udg_Dq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Dq,0.0,0.0,0.0)
set udg_Eq=CreateSound("Bleach\\Spells\\Ichigo\\IchigoGetsuga.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Eq,2059)
call SetSoundChannel(udg_Eq,0)
call SetSoundVolume(udg_Eq,100)
call SetSoundPitch(udg_Eq,1.0)
call SetSoundDistances(udg_Eq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Eq,1000.0)
call SetSoundConeAngles(udg_Eq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Eq,0.0,0.0,0.0)
set udg_Fq=CreateSound("Bleach\\Spells\\Ichigo\\IchigoMask.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Fq,2685)
call SetSoundChannel(udg_Fq,0)
call SetSoundVolume(udg_Fq,100)
call SetSoundPitch(udg_Fq,1.0)
call SetSoundDistances(udg_Fq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Fq,1000.0)
call SetSoundConeAngles(udg_Fq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Fq,0.0,0.0,0.0)
set udg_Gq=CreateSound("Bleach\\Spells\\Ikkaku\\Ikkaku1.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Gq,1724)
call SetSoundChannel(udg_Gq,0)
call SetSoundVolume(udg_Gq,100)
call SetSoundPitch(udg_Gq,1.0)
call SetSoundDistances(udg_Gq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Gq,1000.0)
call SetSoundConeAngles(udg_Gq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Gq,0.0,0.0,0.0)
set udg_Hq=CreateSound("Bleach\\Spells\\Ikkaku\\Ikkaku2.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Hq,764)
call SetSoundChannel(udg_Hq,0)
call SetSoundVolume(udg_Hq,100)
call SetSoundPitch(udg_Hq,1.0)
call SetSoundDistances(udg_Hq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Hq,1000.0)
call SetSoundConeAngles(udg_Hq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Hq,0.0,0.0,0.0)
set udg_Iq=CreateSound("Bleach\\Spells\\Ikkaku\\Ikkaku3.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Iq,993)
call SetSoundChannel(udg_Iq,0)
call SetSoundVolume(udg_Iq,100)
call SetSoundPitch(udg_Iq,1.0)
call SetSoundDistances(udg_Iq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Iq,1000.0)
call SetSoundConeAngles(udg_Iq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Iq,0.0,0.0,0.0)
set udg_lq=CreateSound("Bleach\\Spells\\Ikkaku\\IkkakuBankai.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_lq,5377)
call SetSoundChannel(udg_lq,0)
call SetSoundVolume(udg_lq,100)
call SetSoundPitch(udg_lq,1.0)
call SetSoundDistances(udg_lq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_lq,1000.0)
call SetSoundConeAngles(udg_lq,0.0,0.0,127)
call SetSoundConeOrientation(udg_lq,0.0,0.0,0.0)
set udg_Jq=CreateSound("OnePiece\\Spells\\Usopp\\ImpactDial.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Jq,0)
call SetSoundVolume(udg_Jq,100)
call SetSoundPitch(udg_Jq,1.0)
call SetSoundDistances(udg_Jq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Jq,1000.0)
call SetSoundConeAngles(udg_Jq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Jq,0.0,0.0,0.0)
set udg_Kq=CreateSound("Bleach\\Spells\\Inoue\\Ireject.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Kq,1384)
call SetSoundChannel(udg_Kq,0)
call SetSoundVolume(udg_Kq,100)
call SetSoundPitch(udg_Kq,1.0)
call SetSoundDistances(udg_Kq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Kq,1000.0)
call SetSoundConeAngles(udg_Kq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Kq,0.0,0.0,0.0)
set udg_Lq=CreateSound("OnePiece\\Spells\\Luffy\\JetBazooka.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Lq,0)
call SetSoundVolume(udg_Lq,100)
call SetSoundPitch(udg_Lq,1.0)
call SetSoundDistances(udg_Lq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Lq,1000.0)
call SetSoundConeAngles(udg_Lq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Lq,0.0,0.0,0.0)
set udg_Mq=CreateSound("OnePiece\\Spells\\Luffy\\JetGatling.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Mq,0)
call SetSoundVolume(udg_Mq,100)
call SetSoundPitch(udg_Mq,1.0)
call SetSoundDistances(udg_Mq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Mq,1000.0)
call SetSoundConeAngles(udg_Mq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Mq,0.0,0.0,0.0)
set udg_Nq=CreateSound("OnePiece\\Spells\\Luffy\\JetGiantBazooka.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Nq,0)
call SetSoundVolume(udg_Nq,100)
call SetSoundPitch(udg_Nq,1.0)
call SetSoundDistances(udg_Nq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Nq,1000.0)
call SetSoundConeAngles(udg_Nq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Nq,0.0,0.0,0.0)
set udg_Oq=CreateSound("OnePiece\\Spells\\Luffy\\JetRocket.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Oq,0)
call SetSoundVolume(udg_Oq,100)
call SetSoundPitch(udg_Oq,1.0)
call SetSoundDistances(udg_Oq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Oq,1000.0)
call SetSoundConeAngles(udg_Oq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Oq,0.0,0.0,0.0)
set udg_Pq=CreateSound("Bleach\\Spells\\Yama\\JoukakuEnjou.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Pq,0)
call SetSoundVolume(udg_Pq,100)
call SetSoundPitch(udg_Pq,1.0)
call SetSoundDistances(udg_Pq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Pq,1000.0)
call SetSoundConeAngles(udg_Pq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Pq,0.0,0.0,0.0)
set udg_Qq=CreateSound("OnePiece\\Spells\\Usopp\\Kaenboshi.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Qq,0)
call SetSoundVolume(udg_Qq,100)
call SetSoundPitch(udg_Qq,1.0)
call SetSoundDistances(udg_Qq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Qq,1000.0)
call SetSoundConeAngles(udg_Qq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Qq,0.0,0.0,0.0)
set udg_Rq=CreateSound("Bleach\\Spells\\Zaraki\\Kendo.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Rq,0)
call SetSoundVolume(udg_Rq,100)
call SetSoundPitch(udg_Rq,1.0)
call SetSoundDistances(udg_Rq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Rq,1000.0)
call SetSoundConeAngles(udg_Rq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Rq,0.0,0.0,0.0)
set udg_Sq=CreateSound("Special\\Spells\\Sasuke\\Kirin.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Sq,0)
call SetSoundVolume(udg_Sq,100)
call SetSoundPitch(udg_Sq,1.0)
call SetSoundDistances(udg_Sq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Sq,1000.0)
call SetSoundConeAngles(udg_Sq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Sq,0.0,0.0,0.0)
set udg_Tq=CreateSound("Bleach\\Spells\\Inoue\\KotenZanshun.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Tq,1045)
call SetSoundChannel(udg_Tq,0)
call SetSoundVolume(udg_Tq,100)
call SetSoundPitch(udg_Tq,1.0)
call SetSoundDistances(udg_Tq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Tq,1000.0)
call SetSoundConeAngles(udg_Tq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Tq,0.0,0.0,0.0)
set udg_Uq=CreateSound("Bleach\\Spells\\Aizen\\KyoukaSuigetsu.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Uq,1489)
call SetSoundChannel(udg_Uq,0)
call SetSoundVolume(udg_Uq,100)
call SetSoundPitch(udg_Uq,1.0)
call SetSoundDistances(udg_Uq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Uq,1000.0)
call SetSoundConeAngles(udg_Uq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Uq,0.0,0.0,0.0)
set udg_Vq=CreateSound("Bleach\\Spells\\Chad\\LaMuerte.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Vq,0)
call SetSoundVolume(udg_Vq,100)
call SetSoundPitch(udg_Vq,1.0)
call SetSoundDistances(udg_Vq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Vq,1000.0)
call SetSoundConeAngles(udg_Vq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Vq,0.0,0.0,0.0)
set udg_Wq=CreateSound("Bleach\\Spells\\Ishida\\LichtRegen.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Wq,0)
call SetSoundVolume(udg_Wq,100)
call SetSoundPitch(udg_Wq,1.0)
call SetSoundDistances(udg_Wq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Wq,1000.0)
call SetSoundConeAngles(udg_Wq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Wq,0.0,0.0,0.0)
set udg_Xq=CreateSound("OnePiece\\Spells\\Lucci\\LucciRankyaku.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Xq,1304)
call SetSoundChannel(udg_Xq,0)
call SetSoundVolume(udg_Xq,100)
call SetSoundPitch(udg_Xq,1.0)
call SetSoundDistances(udg_Xq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Xq,1000.0)
call SetSoundConeAngles(udg_Xq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Xq,0.0,0.0,0.0)
set udg_Yq=CreateSound("OnePiece\\Spells\\Lucci\\LucciTekkai.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Yq,1304)
call SetSoundChannel(udg_Yq,0)
call SetSoundVolume(udg_Yq,100)
call SetSoundPitch(udg_Yq,1.0)
call SetSoundDistances(udg_Yq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Yq,1000.0)
call SetSoundConeAngles(udg_Yq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Yq,0.0,0.0,0.0)
set udg_Zq=CreateSound("OnePiece\\Spells\\Mihawk\\Mihawk1.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Zq,0)
call SetSoundVolume(udg_Zq,100)
call SetSoundPitch(udg_Zq,1.0)
call SetSoundDistances(udg_Zq,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Zq,1000.0)
call SetSoundConeAngles(udg_Zq,0.0,0.0,127)
call SetSoundConeOrientation(udg_Zq,0.0,0.0,0.0)
set udg_dr=CreateSound("OnePiece\\Spells\\Mihawk\\Mihawk2.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_dr,0)
call SetSoundVolume(udg_dr,100)
call SetSoundPitch(udg_dr,1.0)
call SetSoundDistances(udg_dr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_dr,1000.0)
call SetSoundConeAngles(udg_dr,0.0,0.0,127)
call SetSoundConeOrientation(udg_dr,0.0,0.0,0.0)
set udg_er=CreateSound("OnePiece\\Spells\\Mihawk\\Mihawk3.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_er,0)
call SetSoundVolume(udg_er,100)
call SetSoundPitch(udg_er,1.0)
call SetSoundDistances(udg_er,0.0,1800.0)
call SetSoundDistanceCutoff(udg_er,1000.0)
call SetSoundConeAngles(udg_er,0.0,0.0,127)
call SetSoundConeOrientation(udg_er,0.0,0.0,0.0)
set udg_fr=CreateSound("OnePiece\\Spells\\Mihawk\\Mihawk4.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_fr,0)
call SetSoundVolume(udg_fr,100)
call SetSoundPitch(udg_fr,1.0)
call SetSoundDistances(udg_fr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_fr,1000.0)
call SetSoundConeAngles(udg_fr,0.0,0.0,127)
call SetSoundConeOrientation(udg_fr,0.0,0.0,0.0)
set udg_gr=CreateSound("OnePiece\\Spells\\Mihawk\\Mihawk5.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_gr,0)
call SetSoundVolume(udg_gr,100)
call SetSoundPitch(udg_gr,1.0)
call SetSoundDistances(udg_gr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_gr,1000.0)
call SetSoundConeAngles(udg_gr,0.0,0.0,127)
call SetSoundConeOrientation(udg_gr,0.0,0.0,0.0)
set udg_hr=CreateSound("OnePiece\\Spells\\Nami\\MirageTempo.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_hr,0)
call SetSoundVolume(udg_hr,100)
call SetSoundPitch(udg_hr,1.0)
call SetSoundDistances(udg_hr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_hr,1000.0)
call SetSoundConeAngles(udg_hr,0.0,0.0,127)
call SetSoundConeOrientation(udg_hr,0.0,0.0,0.0)
set udg_ir=CreateSound("Bleach\\Spells\\Yama\\Nadegiri.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_ir,0)
call SetSoundVolume(udg_ir,100)
call SetSoundPitch(udg_ir,1.0)
call SetSoundDistances(udg_ir,0.0,1800.0)
call SetSoundDistanceCutoff(udg_ir,1000.0)
call SetSoundConeAngles(udg_ir,0.0,0.0,127)
call SetSoundConeOrientation(udg_ir,0.0,0.0,0.0)
set udg_jr=CreateSound("OnePiece\\Spells\\Brook\\NemuriutaFuran.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_jr,0)
call SetSoundVolume(udg_jr,100)
call SetSoundPitch(udg_jr,1.0)
call SetSoundDistances(udg_jr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_jr,1000.0)
call SetSoundConeAngles(udg_jr,0.0,0.0,127)
call SetSoundConeOrientation(udg_jr,0.0,0.0,0.0)
set udg_kr=CreateSound("Bleach\\Spells\\SoiFon\\NigekiKessatsu.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_kr,0)
call SetSoundVolume(udg_kr,100)
call SetSoundPitch(udg_kr,1.0)
call SetSoundDistances(udg_kr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_kr,1000.0)
call SetSoundConeAngles(udg_kr,0.0,0.0,127)
call SetSoundConeOrientation(udg_kr,0.0,0.0,0.0)
set udg_mr=CreateSound("OnePiece\\Spells\\Sanji\\PartyTable.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_mr,0)
call SetSoundVolume(udg_mr,100)
call SetSoundPitch(udg_mr,1.0)
call SetSoundDistances(udg_mr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_mr,1000.0)
call SetSoundConeAngles(udg_mr,0.0,0.0,127)
call SetSoundConeOrientation(udg_mr,0.0,0.0,0.0)
set udg_nr=CreateSound("OnePiece\\Spells\\Brook\\PolkaRemise.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_nr,0)
call SetSoundVolume(udg_nr,100)
call SetSoundPitch(udg_nr,1.0)
call SetSoundDistances(udg_nr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_nr,1000.0)
call SetSoundConeAngles(udg_nr,0.0,0.0,127)
call SetSoundConeOrientation(udg_nr,0.0,0.0,0.0)
set udg_pr=CreateSound("Bleach\\Spells\\Ishida\\QQF.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_pr,0)
call SetSoundVolume(udg_pr,100)
call SetSoundPitch(udg_pr,1.0)
call SetSoundDistances(udg_pr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_pr,1000.0)
call SetSoundConeAngles(udg_pr,0.0,0.0,127)
call SetSoundConeOrientation(udg_pr,0.0,0.0,0.0)
set udg_qr=CreateSound("OnePiece\\Spells\\Enel\\Raigou.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_qr,0)
call SetSoundVolume(udg_qr,100)
call SetSoundPitch(udg_qr,1.0)
call SetSoundDistances(udg_qr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_qr,1000.0)
call SetSoundConeAngles(udg_qr,0.0,0.0,127)
call SetSoundConeOrientation(udg_qr,0.0,0.0,0.0)
set udg_rr=CreateSound("war3mapImported\\rampage.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_rr,1776)
call SetSoundChannel(udg_rr,0)
call SetSoundVolume(udg_rr,127)
call SetSoundPitch(udg_rr,1.0)
set udg_sr=CreateSound("Bleach\\Spells\\Ichigo\\Reiatsu.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_sr,0)
call SetSoundVolume(udg_sr,100)
call SetSoundPitch(udg_sr,1.0)
call SetSoundDistances(udg_sr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_sr,1000.0)
call SetSoundConeAngles(udg_sr,0.0,0.0,127)
call SetSoundConeOrientation(udg_sr,0.0,0.0,0.0)
set udg_tr=CreateSound("OnePiece\\Spells\\Luffy\\Rocket.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_tr,0)
call SetSoundVolume(udg_tr,100)
call SetSoundPitch(udg_tr,1.0)
call SetSoundDistances(udg_tr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_tr,1000.0)
call SetSoundConeAngles(udg_tr,0.0,0.0,127)
call SetSoundConeOrientation(udg_tr,0.0,0.0,0.0)
set udg_ur=CreateSound("OnePiece\\Spells\\Lucci\\Rokuogan.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_ur,594)
call SetSoundChannel(udg_ur,0)
call SetSoundVolume(udg_ur,100)
call SetSoundPitch(udg_ur,1.0)
call SetSoundDistances(udg_ur,0.0,1800.0)
call SetSoundDistanceCutoff(udg_ur,1000.0)
call SetSoundConeAngles(udg_ur,0.0,0.0,127)
call SetSoundConeOrientation(udg_ur,0.0,0.0,0.0)
set udg_vr=CreateSound("OnePiece\\Spells\\Usopp\\Rokuren.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_vr,0)
call SetSoundVolume(udg_vr,100)
call SetSoundPitch(udg_vr,1.0)
call SetSoundDistances(udg_vr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_vr,1000.0)
call SetSoundConeAngles(udg_vr,0.0,0.0,127)
call SetSoundConeOrientation(udg_vr,0.0,0.0,0.0)
set udg_wr=CreateSound("Bleach\\Spells\\Rukia\\RukiaSokatsui.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_wr,2546)
call SetSoundChannel(udg_wr,0)
call SetSoundVolume(udg_wr,100)
call SetSoundPitch(udg_wr,1.0)
call SetSoundDistances(udg_wr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_wr,1000.0)
call SetSoundConeAngles(udg_wr,0.0,0.0,127)
call SetSoundConeOrientation(udg_wr,0.0,0.0,0.0)
set udg_xr=CreateSound("Bleach\\Spells\\Hitsugaya\\Ryuusenka.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_xr,464)
call SetSoundChannel(udg_xr,0)
call SetSoundVolume(udg_xr,100)
call SetSoundPitch(udg_xr,1.0)
call SetSoundDistances(udg_xr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_xr,1000.0)
call SetSoundConeAngles(udg_xr,0.0,0.0,127)
call SetSoundConeOrientation(udg_xr,0.0,0.0,0.0)
set udg_yr=CreateSound("OnePiece\\Spells\\Crocodile\\SablesPesado.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_yr,0)
call SetSoundVolume(udg_yr,100)
call SetSoundPitch(udg_yr,1.0)
call SetSoundDistances(udg_yr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_yr,1000.0)
call SetSoundConeAngles(udg_yr,0.0,0.0,127)
call SetSoundConeOrientation(udg_yr,0.0,0.0,0.0)
set udg_zr=CreateSound("Bleach\\Spells\\Inoue\\SantenKesshun.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_zr,1202)
call SetSoundChannel(udg_zr,0)
call SetSoundVolume(udg_zr,100)
call SetSoundPitch(udg_zr,1.0)
call SetSoundDistances(udg_zr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_zr,1000.0)
call SetSoundConeAngles(udg_zr,0.0,0.0,127)
call SetSoundConeOrientation(udg_zr,0.0,0.0,0.0)
set udg_Ar=CreateSound("OnePiece\\Spells\\Zoro\\Sanzensekai.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Ar,0)
call SetSoundVolume(udg_Ar,100)
call SetSoundPitch(udg_Ar,1.0)
call SetSoundDistances(udg_Ar,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Ar,1000.0)
call SetSoundConeAngles(udg_Ar,0.0,0.0,127)
call SetSoundConeOrientation(udg_Ar,0.0,0.0,0.0)
set udg_ar=CreateSound("Sound\\Interface\\SecretFound.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_ar,"SecretFound")
call SetSoundDuration(udg_ar,2525)
set udg_Br=CreateSound("Bleach\\Spells\\Ishida\\Seele.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Br,0)
call SetSoundVolume(udg_Br,100)
call SetSoundPitch(udg_Br,1.0)
call SetSoundDistances(udg_Br,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Br,1000.0)
call SetSoundConeAngles(udg_Br,0.0,0.0,127)
call SetSoundConeOrientation(udg_Br,0.0,0.0,0.0)
set udg_br=CreateSound("Bleach\\Spells\\Byakuya\\Senbonzakura.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_br,1202)
call SetSoundChannel(udg_br,0)
call SetSoundVolume(udg_br,100)
call SetSoundPitch(udg_br,1.0)
call SetSoundDistances(udg_br,0.0,1800.0)
call SetSoundDistanceCutoff(udg_br,1000.0)
call SetSoundConeAngles(udg_br,0.0,0.0,127)
call SetSoundConeOrientation(udg_br,0.0,0.0,0.0)
set udg_Cr=CreateSound("Bleach\\Spells\\Byakuya\\Senkei.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Cr,2763)
call SetSoundChannel(udg_Cr,0)
call SetSoundVolume(udg_Cr,100)
call SetSoundPitch(udg_Cr,1.0)
call SetSoundDistances(udg_Cr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Cr,1000.0)
call SetSoundConeAngles(udg_Cr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Cr,0.0,0.0,0.0)
set udg_cr=CreateSound("Bleach\\Spells\\Hitsugaya\\SennenHyoro.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_cr,0)
call SetSoundVolume(udg_cr,100)
call SetSoundPitch(udg_cr,1.0)
call SetSoundDistances(udg_cr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_cr,1000.0)
call SetSoundConeAngles(udg_cr,0.0,0.0,127)
call SetSoundConeOrientation(udg_cr,0.0,0.0,0.0)
set udg_Dr=CreateSound("OnePiece\\Spells\\Moria\\ShadowRage.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Dr,0)
call SetSoundVolume(udg_Dr,100)
call SetSoundPitch(udg_Dr,1.0)
call SetSoundDistances(udg_Dr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Dr,1000.0)
call SetSoundConeAngles(udg_Dr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Dr,0.0,0.0,0.0)
set udg_Er=CreateSound("OnePiece\\Spells\\Moria\\ShadowSteal.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Er,0)
call SetSoundVolume(udg_Er,100)
call SetSoundPitch(udg_Er,1.0)
call SetSoundDistances(udg_Er,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Er,1000.0)
call SetSoundConeAngles(udg_Er,0.0,0.0,127)
call SetSoundConeOrientation(udg_Er,0.0,0.0,0.0)
set udg_Fr=CreateSound("Bleach\\Spells\\Renji\\Shakkahou.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Fr,0)
call SetSoundVolume(udg_Fr,100)
call SetSoundPitch(udg_Fr,1.0)
call SetSoundDistances(udg_Fr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Fr,1000.0)
call SetSoundConeAngles(udg_Fr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Fr,0.0,0.0,0.0)
set udg_Gr=CreateSound("OnePiece\\Spells\\Lucci\\Shigan.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Gr,1042)
call SetSoundChannel(udg_Gr,0)
call SetSoundVolume(udg_Gr,100)
call SetSoundPitch(udg_Gr,1.0)
call SetSoundDistances(udg_Gr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Gr,1000.0)
call SetSoundConeAngles(udg_Gr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Gr,0.0,0.0,0.0)
set udg_Hr=CreateSound("Bleach\\Spells\\Rukia\\Shirafune.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Hr,0)
call SetSoundVolume(udg_Hr,100)
call SetSoundPitch(udg_Hr,1.0)
call SetSoundDistances(udg_Hr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Hr,1000.0)
call SetSoundConeAngles(udg_Hr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Hr,0.0,0.0,0.0)
set udg_Ir=CreateSound("OnePiece\\Spells\\Zoro\\Shishisonson.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Ir,0)
call SetSoundVolume(udg_Ir,100)
call SetSoundPitch(udg_Ir,1.0)
call SetSoundDistances(udg_Ir,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Ir,1000.0)
call SetSoundConeAngles(udg_Ir,0.0,0.0,127)
call SetSoundConeOrientation(udg_Ir,0.0,0.0,0.0)
set udg_lr=CreateSound("OnePiece\\Spells\\Enel\\ShockRelease.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_lr,2659)
call SetSoundChannel(udg_lr,0)
call SetSoundVolume(udg_lr,100)
call SetSoundPitch(udg_lr,1.0)
call SetSoundDistances(udg_lr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_lr,1000.0)
call SetSoundConeAngles(udg_lr,0.0,0.0,127)
call SetSoundConeOrientation(udg_lr,0.0,0.0,0.0)
set udg_Jr=CreateSound("Bleach\\Spells\\Inoue\\ShoutenKissun.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Jr,1097)
call SetSoundChannel(udg_Jr,0)
call SetSoundVolume(udg_Jr,100)
call SetSoundPitch(udg_Jr,1.0)
call SetSoundDistances(udg_Jr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Jr,1000.0)
call SetSoundConeAngles(udg_Jr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Jr,0.0,0.0,0.0)
set udg_Kr=CreateSound("Bleach\\Spells\\Byakuya\\ShukeiHakuteiken.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Kr,1326)
call SetSoundChannel(udg_Kr,0)
call SetSoundVolume(udg_Kr,100)
call SetSoundPitch(udg_Kr,1.0)
call SetSoundDistances(udg_Kr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Kr,1000.0)
call SetSoundConeAngles(udg_Kr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Kr,0.0,0.0,0.0)
set udg_Lr=CreateSound("Bleach\\Spells\\SoiFon\\SoiShunkou.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Lr,0)
call SetSoundVolume(udg_Lr,100)
call SetSoundPitch(udg_Lr,1.0)
call SetSoundDistances(udg_Lr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Lr,1000.0)
call SetSoundConeAngles(udg_Lr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Lr,0.0,0.0,0.0)
set udg_Mr=CreateSound("OnePiece\\Spells\\Robin\\SpiderNet.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Mr,0)
call SetSoundVolume(udg_Mr,100)
call SetSoundPitch(udg_Mr,1.0)
call SetSoundDistances(udg_Mr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Mr,1000.0)
call SetSoundConeAngles(udg_Mr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Mr,0.0,0.0,0.0)
set udg_Nr=CreateSound("Bleach\\Spells\\Ishida\\Sprenger.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Nr,522)
call SetSoundChannel(udg_Nr,0)
call SetSoundVolume(udg_Nr,100)
call SetSoundPitch(udg_Nr,1.0)
call SetSoundDistances(udg_Nr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Nr,1000.0)
call SetSoundConeAngles(udg_Nr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Nr,0.0,0.0,0.0)
set udg_Pr=CreateSound("OnePiece\\Spells\\Kuma\\SPS.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Pr,0)
call SetSoundVolume(udg_Pr,100)
call SetSoundPitch(udg_Pr,1.0)
call SetSoundDistances(udg_Pr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Pr,1000.0)
call SetSoundConeAngles(udg_Pr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Pr,0.0,0.0,0.0)
set udg_Qr=CreateSound("Bleach\\Spells\\Tousen\\Suzumushi.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Qr,0)
call SetSoundVolume(udg_Qr,100)
call SetSoundPitch(udg_Qr,1.0)
call SetSoundDistances(udg_Qr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Qr,1000.0)
call SetSoundConeAngles(udg_Qr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Qr,0.0,0.0,0.0)
set udg_Rr=CreateSound("OnePiece\\Spells\\Nami\\SwingArm.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Rr,0)
call SetSoundVolume(udg_Rr,100)
call SetSoundPitch(udg_Rr,1.0)
call SetSoundDistances(udg_Rr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Rr,1000.0)
call SetSoundConeAngles(udg_Rr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Rr,0.0,0.0,0.0)
set udg_Sr=CreateSound("OnePiece\\Spells\\Zoro\\Tatsumaki.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Sr,2548)
call SetSoundChannel(udg_Sr,0)
call SetSoundVolume(udg_Sr,100)
call SetSoundPitch(udg_Sr,1.0)
call SetSoundDistances(udg_Sr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Sr,1000.0)
call SetSoundConeAngles(udg_Sr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Sr,0.0,0.0,0.0)
set udg_Tr=CreateSound("Bleach\\Spells\\Zaraki\\ThrillingReiatsu.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Tr,0)
call SetSoundVolume(udg_Tr,100)
call SetSoundPitch(udg_Tr,1.0)
call SetSoundDistances(udg_Tr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Tr,1000.0)
call SetSoundConeAngles(udg_Tr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Tr,0.0,0.0,0.0)
set udg_Ur=CreateSound("OnePiece\\Spells\\Nami\\ThunderBall.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Ur,0)
call SetSoundVolume(udg_Ur,100)
call SetSoundPitch(udg_Ur,1.0)
call SetSoundDistances(udg_Ur,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Ur,1000.0)
call SetSoundConeAngles(udg_Ur,0.0,0.0,127)
call SetSoundConeOrientation(udg_Ur,0.0,0.0,0.0)
set udg_Vr=CreateSound("OnePiece\\Spells\\Nami\\ThunderboltTempo.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Vr,0)
call SetSoundVolume(udg_Vr,100)
call SetSoundPitch(udg_Vr,1.0)
call SetSoundDistances(udg_Vr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Vr,1000.0)
call SetSoundConeAngles(udg_Vr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Vr,0.0,0.0,0.0)
set udg_Wr=CreateSound("OnePiece\\Spells\\Nami\\ThunderLanceTempo.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Wr,0)
call SetSoundVolume(udg_Wr,100)
call SetSoundPitch(udg_Wr,1.0)
call SetSoundDistances(udg_Wr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Wr,1000.0)
call SetSoundConeAngles(udg_Wr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Wr,0.0,0.0,0.0)
set udg_Xr=CreateSound("OnePiece\\Spells\\Enel\\ThunderStorm.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_Xr,1538)
call SetSoundChannel(udg_Xr,0)
call SetSoundVolume(udg_Xr,100)
call SetSoundPitch(udg_Xr,1.0)
call SetSoundDistances(udg_Xr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Xr,1000.0)
call SetSoundConeAngles(udg_Xr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Xr,0.0,0.0,0.0)
set udg_Yr=CreateSound("Bleach\\Spells\\Inoue\\TimeReverse.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Yr,0)
call SetSoundVolume(udg_Yr,100)
call SetSoundPitch(udg_Yr,1.0)
call SetSoundDistances(udg_Yr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Yr,1000.0)
call SetSoundConeAngles(udg_Yr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Yr,0.0,0.0,0.0)
set udg_Zr=CreateSound("Bleach\\Spells\\Tousen\\TousenBankai.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_Zr,0)
call SetSoundVolume(udg_Zr,100)
call SetSoundPitch(udg_Zr,1.0)
call SetSoundDistances(udg_Zr,0.0,1800.0)
call SetSoundDistanceCutoff(udg_Zr,1000.0)
call SetSoundConeAngles(udg_Zr,0.0,0.0,127)
call SetSoundConeOrientation(udg_Zr,0.0,0.0,0.0)
set udg_ds=CreateSound("war3mapImported\\triple_kill.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_ds,1907)
call SetSoundChannel(udg_ds,0)
call SetSoundVolume(udg_ds,127)
call SetSoundPitch(udg_ds,1.0)
set udg_es=CreateSound("Bleach\\Spells\\Chad\\TrueForm.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_es,0)
call SetSoundVolume(udg_es,100)
call SetSoundPitch(udg_es,1.0)
call SetSoundDistances(udg_es,0.0,1800.0)
call SetSoundDistanceCutoff(udg_es,1000.0)
call SetSoundConeAngles(udg_es,0.0,0.0,127)
call SetSoundConeOrientation(udg_es,0.0,0.0,0.0)
set udg_fs=CreateSound("Bleach\\Spells\\Ichigo\\TrueHollowForm.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_fs,0)
call SetSoundVolume(udg_fs,100)
call SetSoundPitch(udg_fs,1.0)
call SetSoundDistances(udg_fs,0.0,1800.0)
call SetSoundDistanceCutoff(udg_fs,1000.0)
call SetSoundConeAngles(udg_fs,0.0,0.0,127)
call SetSoundConeOrientation(udg_fs,0.0,0.0,0.0)
set udg_gs=CreateSound("Bleach\\Spells\\Rukia\\Tsukishiro.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_gs,2399)
call SetSoundChannel(udg_gs,0)
call SetSoundVolume(udg_gs,100)
call SetSoundPitch(udg_gs,1.0)
call SetSoundDistances(udg_gs,0.0,1800.0)
call SetSoundDistanceCutoff(udg_gs,1000.0)
call SetSoundConeAngles(udg_gs,0.0,0.0,127)
call SetSoundConeOrientation(udg_gs,0.0,0.0,0.0)
set udg_hs=CreateSound("war3mapImported\\ultrakill.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_hs,2016)
call SetSoundChannel(udg_hs,0)
call SetSoundVolume(udg_hs,127)
call SetSoundPitch(udg_hs,1.0)
set udg_is=CreateSound("OnePiece\\Spells\\Kuma\\UrsusShock.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_is,0)
call SetSoundVolume(udg_is,100)
call SetSoundPitch(udg_is,1.0)
call SetSoundDistances(udg_is,0.0,1800.0)
call SetSoundDistanceCutoff(udg_is,1000.0)
call SetSoundConeAngles(udg_is,0.0,0.0,127)
call SetSoundConeOrientation(udg_is,0.0,0.0,0.0)
set udg_js=CreateSound("OnePiece\\Spells\\Sanji\\VeauShot.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_js,0)
call SetSoundVolume(udg_js,100)
call SetSoundPitch(udg_js,1.0)
call SetSoundDistances(udg_js,0.0,1800.0)
call SetSoundDistanceCutoff(udg_js,1000.0)
call SetSoundConeAngles(udg_js,0.0,0.0,127)
call SetSoundConeOrientation(udg_js,0.0,0.0,0.0)
set udg_ks="Bleach\\Music\\Velonica.mp3"
set udg_ms=CreateSound("Bleach\\Spells\\Rukia\\WhiteDance.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_ms,0)
call SetSoundVolume(udg_ms,100)
call SetSoundPitch(udg_ms,1.0)
call SetSoundDistances(udg_ms,0.0,1800.0)
call SetSoundDistanceCutoff(udg_ms,1000.0)
call SetSoundConeAngles(udg_ms,0.0,0.0,127)
call SetSoundConeOrientation(udg_ms,0.0,0.0,0.0)
set udg_ns=CreateSound("OnePiece\\Spells\\Robin\\Wing.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_ns,0)
call SetSoundVolume(udg_ns,100)
call SetSoundPitch(udg_ns,1.0)
call SetSoundDistances(udg_ns,0.0,1800.0)
call SetSoundDistanceCutoff(udg_ns,1000.0)
call SetSoundConeAngles(udg_ns,0.0,0.0,127)
call SetSoundConeOrientation(udg_ns,0.0,0.0,0.0)
set udg_os=CreateSound("OnePiece\\Spells\\Brook\\Yahazugiri.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_os,0)
call SetSoundVolume(udg_os,100)
call SetSoundPitch(udg_os,1.0)
call SetSoundDistances(udg_os,0.0,1800.0)
call SetSoundDistanceCutoff(udg_os,1000.0)
call SetSoundConeAngles(udg_os,0.0,0.0,127)
call SetSoundConeOrientation(udg_os,0.0,0.0,0.0)
set udg_ps=CreateSound("Bleach\\Spells\\Yoruichi\\YoruichiShunkou.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_ps,1097)
call SetSoundChannel(udg_ps,0)
call SetSoundVolume(udg_ps,100)
call SetSoundPitch(udg_ps,1.0)
call SetSoundDistances(udg_ps,0.0,1800.0)
call SetSoundDistanceCutoff(udg_ps,1000.0)
call SetSoundConeAngles(udg_ps,0.0,0.0,127)
call SetSoundConeOrientation(udg_ps,0.0,0.0,0.0)
set udg_qs=CreateSound("Bleach\\Spells\\Yoruichi\\YoruichiUlti.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_qs,784)
call SetSoundChannel(udg_qs,0)
call SetSoundVolume(udg_qs,100)
call SetSoundPitch(udg_qs,1.0)
call SetSoundDistances(udg_qs,0.0,1800.0)
call SetSoundDistanceCutoff(udg_qs,1000.0)
call SetSoundConeAngles(udg_qs,0.0,0.0,127)
call SetSoundConeOrientation(udg_qs,0.0,0.0,0.0)
set udg_rs=CreateSound("Bleach\\Spells\\Renji\\Zabimaru.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_rs,0)
call SetSoundVolume(udg_rs,100)
call SetSoundPitch(udg_rs,1.0)
call SetSoundDistances(udg_rs,0.0,1800.0)
call SetSoundDistanceCutoff(udg_rs,1000.0)
call SetSoundConeAngles(udg_rs,0.0,0.0,127)
call SetSoundConeOrientation(udg_rs,0.0,0.0,0.0)
set udg_ss=CreateSound("OnePiece\\Spells\\Ace\\Daenkai.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_ss,0)
call SetSoundVolume(udg_ss,100)
call SetSoundPitch(udg_ss,1.0)
call SetSoundDistances(udg_ss,0.0,1800.0)
call SetSoundDistanceCutoff(udg_ss,1000.0)
call SetSoundConeAngles(udg_ss,0.0,0.0,127)
call SetSoundConeOrientation(udg_ss,0.0,0.0,0.0)
set udg_ts=CreateSound("OnePiece\\Spells\\Ace\\Hotarubi.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_ts,0)
call SetSoundVolume(udg_ts,100)
call SetSoundPitch(udg_ts,1.0)
call SetSoundDistances(udg_ts,0.0,1800.0)
call SetSoundDistanceCutoff(udg_ts,1000.0)
call SetSoundConeAngles(udg_ts,0.0,0.0,127)
call SetSoundConeOrientation(udg_ts,0.0,0.0,0.0)
set udg_us=CreateSound("OnePiece\\Spells\\Zoro\\Sanzensekai2.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_us,0)
call SetSoundVolume(udg_us,100)
call SetSoundPitch(udg_us,1.0)
call SetSoundDistances(udg_us,0.0,1800.0)
call SetSoundDistanceCutoff(udg_us,1000.0)
call SetSoundConeAngles(udg_us,0.0,0.0,127)
call SetSoundConeOrientation(udg_us,0.0,0.0,0.0)
set udg_vs=CreateSound("OnePiece\\Spells\\Zoro\\Makyuusen.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_vs,0)
call SetSoundVolume(udg_vs,100)
call SetSoundPitch(udg_vs,1.0)
call SetSoundDistances(udg_vs,0.0,1800.0)
call SetSoundDistanceCutoff(udg_vs,1000.0)
call SetSoundConeAngles(udg_vs,0.0,0.0,127)
call SetSoundConeOrientation(udg_vs,0.0,0.0,0.0)
set udg_ws=CreateSound("OnePiece\\Spells\\Zoro\\Rashomon.mp3",false,true,false,10,10,"DefaultEAXON")
call SetSoundChannel(udg_ws,0)
call SetSoundVolume(udg_ws,100)
call SetSoundPitch(udg_ws,1.0)
call SetSoundDistances(udg_ws,0.0,1800.0)
call SetSoundDistanceCutoff(udg_ws,1000.0)
call SetSoundConeAngles(udg_ws,0.0,0.0,127)
call SetSoundConeOrientation(udg_ws,0.0,0.0,0.0)
endfunction
function J6 takes nothing returns nothing
local integer itemID
call CreateItem(1227894832,6089.8,-6381.6)
call CreateItem(1227894833,6408.8,-6092.6)
call CreateItem(1227894834,6513.4,-6391.4)
call CreateItem(1227894835,6293.8,-6253.6)
call CreateItem(1227894836,6161.8,-6384.9)
call CreateItem(1227894837,6552.2,-6183.0)
call CreateItem(1227894838,6098.3,-6464.4)
call CreateItem(1227894839,6440.4,-6378.2)
call CreateItem(1227894840,6233.5,-6381.5)
call CreateItem(1227894841,6603.0,-6120.7)
call CreateItem(1227894849,6482.6,-6116.7)
set udg_oG=CreateItem(1227894849,7357.9,-1359.6)
call CreateItem(1227894850,6583.0,-6391.4)
call CreateItem(1227894851,6429.7,-6257.2)
call CreateItem(1227894852,6831.7,-6567.3)
call CreateItem(1227894853,6495.4,-6563.4)
call CreateItem(1227894854,6037.2,-6521.3)
call CreateItem(1227894855,6657.4,-6397.9)
call CreateItem(1227894857,6663.7,-6116.7)
call CreateItem(1227894858,6706.5,-6811.8)
call CreateItem(1227894859,6193.6,-6104.8)
call CreateItem(1227894860,6128.0,-6818.9)
call CreateItem(1227894861,6696.6,-6253.6)
call CreateItem(1227894862,6503.2,-6250.0)
call CreateItem(1227894863,6025.7,-6307.0)
call CreateItem(1227894864,6104.9,-6538.3)
call CreateItem(1227894865,6112.3,-6596.6)
call CreateItem(1227894866,6262.8,-6112.7)
call CreateItem(1227894867,6244.5,-6616.8)
call CreateItem(1227894868,6232.8,-6477.6)
call CreateItem(1227894869,6046.3,-6600.6)
call CreateItem(1227894870,6173.8,-6600.7)
call CreateItem(1227894871,6628.6,-6253.6)
call CreateItem(1227894872,6255.6,-6839.8)
call CreateItem(1227894873,6236.1,-6550.9)
call CreateItem(1227894874,6060.2,-6811.9)
call CreateItem(1227895088,6191.1,-6832.8)
call CreateItem(1227895089,6172.8,-6538.3)
call CreateItem(1227895090,6847.6,-6768.9)
call CreateItem(1227895091,6183.8,-6668.2)
call CreateItem(1227895092,6520.6,-6310.4)
call CreateItem(1227895093,6252.8,-6683.7)
call CreateItem(1227895094,6043.0,-6668.1)
call CreateItem(1227895095,6171.2,-6468.8)
call CreateItem(1227895096,6116.6,-6672.0)
call CreateItem(1227895097,6112.7,-6743.7)
call CreateItem(1227895105,6047.7,-6732.6)
call CreateItem(1227895106,6490.5,-6183.0)
call CreateItem(1227895107,6024.4,-6253.7)
call CreateItem(1227895108,6853.4,-6835.9)
call CreateItem(1227895109,6024.6,-6378.3)
call CreateItem(1227895110,6446.1,-6317.3)
call CreateItem(1227895111,6302.6,-6374.9)
call CreateItem(1227895112,6359.1,-6253.6)
call CreateItem(1227895114,6407.5,-6175.4)
call CreateItem(1227895115,6621.3,-6190.6)
call CreateItem(1227895117,5781.9,-6637.4)
call CreateItem(1227895118,6102.7,-6307.0)
call CreateItem(1227895119,6308.1,-6317.3)
call CreateItem(1227895120,6566.1,-6250.0)
call CreateItem(1227895121,6644.4,-6327.7)
call CreateItem(1227895122,6709.4,-6317.3)
call CreateItem(1227895123,6328.7,-6104.7)
call CreateItem(1227895124,6222.9,-6250.0)
call CreateItem(1227895125,6236.4,-6313.9)
call CreateItem(1227895126,6340.2,-6171.5)
call CreateItem(1227895127,6819.1,-6490.5)
call CreateItem(1227895128,6208.5,-6175.4)
call CreateItem(1227895129,6674.3,-6481.9)
call CreateItem(1227895130,6572.1,-6628.7)
call CreateItem(1227895344,6508.9,-6644.6)
call CreateItem(1227895345,6557.3,-6555.0)
call CreateItem(1227895346,6774.2,-6687.2)
call CreateItem(1227895347,6366.4,-6388.1)
call CreateItem(1227895348,6753.9,-6584.0)
call CreateItem(1227895349,6741.1,-6481.8)
call CreateItem(1227895350,6508.3,-6728.9)
call CreateItem(1227895351,6559.2,-6473.1)
call CreateItem(1227895352,6703.6,-6675.7)
call CreateItem(1227895353,6621.7,-6563.4)
call CreateItem(1227895361,6681.0,-6183.0)
call CreateItem(1227895362,6692.6,-6584.1)
call CreateItem(1227895363,6710.7,-6750.9)
call CreateItem(1227895364,6639.7,-6648.5)
call CreateItem(1227895365,6774.3,-6765.4)
call CreateItem(1227895366,6839.0,-6706.1)
call CreateItem(1227895367,6641.5,-6811.9)
call CreateItem(1227895368,6523.1,-6818.9)
call CreateItem(1227895370,6141.5,-6179.3)
call CreateItem(1227895371,6395.8,-6843.2)
call CreateItem(1227895372,6835.5,-6640.4)
call CreateItem(1227895373,6537.9,-6108.7)
call CreateItem(1227895374,6588.0,-5889.5)
call CreateItem(1227895375,7040.2,-5807.8)
call CreateItem(1227895376,6719.8,-6388.0)
call CreateItem(1227895377,6281.1,-6175.4)
call CreateItem(1227895378,6372.0,-6313.9)
call CreateItem(1227895379,6169.9,-6314.0)
call CreateItem(1227895380,6619.3,-6486.4)
call CreateItem(1227895381,5808.0,-6023.7)
call CreateItem(1227895382,6784.6,-6839.4)
call CreateItem(1227895383,6590.1,-5833.9)
call CreateItem(1227895384,6127.6,-5813.1)
call CreateItem(1227895385,6815.1,-5818.3)
call CreateItem(1227895386,6115.0,-5741.4)
call CreateItem(1227895600,6241.6,-5762.9)
call CreateItem(1227895601,6944.0,-6123.3)
call CreateItem(1227895602,6648.2,-5927.8)
call CreateItem(1227895603,6246.4,-6020.6)
call CreateItem(1227895604,6492.7,-6473.1)
call CreateItem(1227895605,6460.3,-6832.9)
call CreateItem(1227895606,6638.4,-6725.2)
call CreateItem(1227895607,6583.8,-6320.8)
call CreateItem(1227895608,6575.0,-6713.9)
call CreateItem(1227895609,6187.4,-6751.1)
call CreateItem(1227895617,6723.1,-5804.8)
call CreateItem(1227895618,6155.4,-6257.3)
call CreateItem(1227895619,6222.9,-5869.3)
call CreateItem(1227895620,6090.1,-6257.4)
call CreateItem(1227895621,6582.1,-6818.9)
call CreateItem(1227895622,6259.0,-6758.5)
call CreateItem(1227895624,5793.9,-6718.9)
call CreateItem(1227895625,5659.9,-6705.6)
call CreateItem(1227895626,5650.6,-5937.1)
call CreateItem(1227895627,5646.0,-6602.0)
call CreateItem(1227895628,5649.5,-6485.9)
call CreateItem(1227895629,5641.9,-6359.6)
call CreateItem(1227895630,5636.4,-6244.7)
call CreateItem(1227895631,5644.8,-6085.5)
call CreateItem(1227895633,5771.7,-6485.9)
call CreateItem(1227895634,5928.2,-5953.8)
call CreateItem(1227895635,5795.0,-5873.4)
call CreateItem(1227895636,5896.9,-5864.7)
call CreateItem(1227895637,5690.8,-5841.4)
call CreateItem(1227895638,5913.5,-5753.1)
call CreateItem(1227895639,5777.6,-5734.0)
call CreateItem(1227895640,5636.5,-5727.5)
call CreateItem(1227895641,5939.4,-5721.1)
call CreateItem(1227895642,5802.9,-5681.8)
call CreateItem(1227895856,5637.9,-5668.3)
call CreateItem(1227895857,5914.0,-5637.7)
call CreateItem(1227895858,6517.1,-6031.6)
call CreateItem(1227895859,5790.8,-6342.4)
call CreateItem(1227895860,5780.6,-6244.7)
call CreateItem(1227895861,5764.1,-6397.4)
call CreateItem(1227895862,5904.3,-6075.4)
call CreateItem(1227895863,5902.0,-6183.9)
call CreateItem(1227895864,5906.9,-6397.4)
call CreateItem(1227895865,5913.5,-6505.3)
call CreateItem(1227895873,5914.4,-6602.0)
call CreateItem(1227895874,5934.0,-6728.7)
call CreateItem(1227895875,6128.1,-6112.9)
call CreateItem(1227895876,5907.9,-6267.5)
call CreateItem(1227895877,6919.9,-6825.5)
call CreateItem(1227895878,5781.5,-6135.5)
call CreateItem(1227895879,5769.2,-6580.2)
call CreateItem(1227896402,7090.1,-5938.4)
call CreateItem(1227896403,6852.3,-5925.2)
call CreateItem(1227896404,6907.0,-5887.3)
call CreateItem(1227896405,6558.2,-5823.5)
call CreateItem(1227896406,6448.7,-5831.3)
call CreateItem(1227896407,6372.1,-5820.9)
call CreateItem(1227896408,6261.0,-5823.5)
call CreateItem(1227896409,7041.9,-5856.9)
call CreateItem(1227896410,6950.2,-5885.5)
call CreateItem(1227896624,6870.5,-5877.4)
call CreateItem(1227896625,6682.6,-5861.0)
call CreateItem(1227896626,6488.1,-5897.6)
call CreateItem(1227896627,6096.7,-6028.1)
call CreateItem(1227896628,6660.4,-6013.2)
call CreateItem(1227896629,6904.6,-5975.7)
call CreateItem(1227896630,7087.4,-6334.2)
call CreateItem(1227896631,7070.9,-6180.1)
call CreateItem(1227896632,6990.7,-6307.8)
call CreateItem(1227896633,6911.6,-6265.6)
call CreateItem(1227896642,6370.0,-5881.4)
call CreateItem(1227896645,6787.8,-5861.0)
call CreateItem(1227896646,6514.2,-5793.0)
call CreateItem(1227896647,6380.5,-5762.9)
call CreateItem(1227896648,6897.3,-5794.5)
call CreateItem(1227896649,6732.1,-5865.1)
call CreateItem(1227896650,6085.0,-5881.6)
call CreateItem(1227896651,6380.2,-6013.2)
call CreateItem(1227896652,6762.8,-5987.0)
call CreateItem(1227896653,6670.5,-5794.5)
call CreateItem(1227896654,6901.5,-6193.2)
call CreateItem(1227896655,6841.4,-6388.1)
call CreateItem(1227896656,6808.1,-6256.4)
call CreateItem(1227896657,6778.7,-6113.1)
call CreateItem(1227896658,6947.3,-6382.3)
call CreateItem(1227896659,7037.9,-6020.6)
call CreateItem(1227896660,6883.4,-6102.7)
call CreateItem(1227896661,6062.4,-6139.5)
call CreateItem(1650814070,6437.8,-6477.6)
call CreateItem(1650946932,6296.0,-6473.1)
call CreateItem(1651663203,6452.3,-6698.9)
call CreateItem(1651732580,6365.4,-6473.1)
call CreateItem(1667854953,6387.7,-6691.3)
call CreateItem(1668181858,6303.5,-6546.7)
call CreateItem(1734567276,6444.7,-6555.0)
call CreateItem(1734700404,6453.1,-6765.7)
call CreateItem(1769431666,6334.5,-6839.8)
call CreateItem(1836016756,6393.2,-6773.0)
call CreateItem(1918986033,6330.4,-6769.4)
call CreateItem(1918989369,6379.5,-6616.8)
call CreateItem(1919182130,6320.6,-6691.3)
call CreateItem(1919512113,6448.4,-6616.7)
call CreateItem(1920169009,6374.7,-6563.5)
call CreateItem(1920428410,6310.4,-6612.8)
endfunction
function K6 takes nothing returns nothing
local player p=Player(0)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,3904.0,-6080.0,270.000)
set udg_BG=CreateUnit(p,1751348343,-1600.0,7104.0,270.000)
endfunction
function L6 takes nothing returns nothing
local player p=Player(1)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,3968.0,-6080.0,270.000)
endfunction
function M6 takes nothing returns nothing
local player p=Player(2)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,4032.0,-6080.0,270.000)
endfunction
function N6 takes nothing returns nothing
local player p=Player(3)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,4096.0,-6080.0,270.000)
endfunction
function O6 takes nothing returns nothing
local player p=Player(4)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,4160.0,-6080.0,270.000)
endfunction
function P6 takes nothing returns nothing
local player p=Player(5)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,4032.0,-6016.0,270.000)
endfunction
function Q6 takes nothing returns nothing
local player p=Player(6)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,4160.0,-6016.0,270.000)
endfunction
function R6 takes nothing returns nothing
local player p=Player(7)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,4096.0,-6016.0,270.000)
endfunction
function S6 takes nothing returns nothing
local player p=Player(8)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,4032.0,-6016.0,270.000)
endfunction
function T6 takes nothing returns nothing
local player p=Player(9)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,3968.0,-6016.0,270.000)
endfunction
function U6 takes nothing returns nothing
local player p=Player(10)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,4032.0,-6080.0,270.000)
endfunction
function V6 takes nothing returns nothing
local player p=Player(11)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1852010352,3904.0,-6016.0,270.000)
endfunction
function W6 takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_AGGRESSIVE)
local unit u
local integer unitID
local trigger t
local real life
set udg_EG=CreateUnit(p,1215324524,6804.2,-6071.5,102.070)
endfunction
function X6 takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1751938413,-7168.0,448.0,270.000)
set udg_VF=CreateUnit(p,1848651842,3840.0,-5824.0,270.000)
call SetUnitColor(udg_VF,ConvertPlayerColor(1))
set u=CreateUnit(p,1852010547,-3456.0,2048.0,270.000)
set udg_XF=CreateUnit(p,1848651841,3840.0,-6208.0,270.000)
call SetUnitColor(udg_XF,ConvertPlayerColor(0))
set u=CreateUnit(p,1751674741,4864.0,1152.0,270.000)
set u=CreateUnit(p,1752659063,4992.0,1152.0,270.000)
set u=CreateUnit(p,1751216749,5120.0,1152.0,270.000)
set u=CreateUnit(p,1751280737,5248.0,1152.0,270.000)
set u=CreateUnit(p,1751216755,5760.0,640.0,270.000)
set u=CreateUnit(p,1752591476,5760.0,1024.0,270.000)
set u=CreateUnit(p,1848651825,5760.0,832.0,270.000)
set u=CreateUnit(p,1849897270,5376.0,1152.0,270.000)
set udg_dG=CreateUnit(p,1848651853,-7104.0,-576.0,270.000)
call WaygateSetDestination(udg_dG,GetRectCenterX(udg_yo),GetRectCenterY(udg_yo))
call WaygateActivate(udg_dG,true)
call SetUnitColor(udg_dG,ConvertPlayerColor(9))
set u=CreateUnit(p,1849897270,-6784.0,1088.0,270.000)
set udg_eG=CreateUnit(p,1848651853,-6848.0,-576.0,270.000)
call WaygateSetDestination(udg_eG,GetRectCenterX(udg_tn),GetRectCenterY(udg_tn))
call WaygateActivate(udg_eG,true)
call SetUnitColor(udg_eG,ConvertPlayerColor(9))
set u=CreateUnit(p,1848651825,-7168.0,832.0,270.000)
set u=CreateUnit(p,1751216755,-7168.0,640.0,270.000)
set u=CreateUnit(p,1752591476,-7168.0,1024.0,270.000)
set u=CreateUnit(p,1751280737,-6656.0,1088.0,270.000)
set u=CreateUnit(p,1751216749,-6528.0,1088.0,270.000)
set u=CreateUnit(p,1752659063,-6400.0,1088.0,270.000)
set u=CreateUnit(p,1751674741,-6272.0,1088.0,270.000)
set udg_ZF=CreateUnit(p,1848651853,4672.0,-640.0,270.000)
call WaygateSetDestination(udg_ZF,GetRectCenterX(udg_yo),GetRectCenterY(udg_yo))
call WaygateActivate(udg_ZF,true)
call SetUnitColor(udg_ZF,ConvertPlayerColor(9))
set udg_YF=CreateUnit(p,1848651853,4928.0,-640.0,270.000)
call WaygateSetDestination(udg_YF,GetRectCenterX(udg_tn),GetRectCenterY(udg_tn))
call WaygateActivate(udg_YF,true)
call SetUnitColor(udg_YF,ConvertPlayerColor(9))
set udg_WF=CreateUnit(p,1848651853,5184.0,-640.0,270.000)
call WaygateSetDestination(udg_WF,GetRectCenterX(udg_Xo),GetRectCenterY(udg_Xo))
call WaygateActivate(udg_WF,true)
call SetUnitColor(udg_WF,ConvertPlayerColor(9))
set udg_UF=CreateUnit(p,1848651853,5440.0,-640.0,270.000)
call WaygateSetDestination(udg_UF,GetRectCenterX(udg_wn),GetRectCenterY(udg_wn))
call WaygateActivate(udg_UF,true)
call SetUnitColor(udg_UF,ConvertPlayerColor(9))
set udg_kG=CreateUnit(p,1848651853,5696.0,-640.0,270.000)
call WaygateSetDestination(udg_kG,GetRectCenterX(udg_zo),GetRectCenterY(udg_zo))
call WaygateActivate(udg_kG,true)
call SetUnitColor(udg_kG,ConvertPlayerColor(9))
set udg_tG=CreateUnit(p,1848651855,4224.0,-5824.0,270.000)
call SetUnitColor(udg_tG,ConvertPlayerColor(1))
set udg_uG=CreateUnit(p,1848651857,4224.0,-6208.0,270.000)
call SetUnitColor(udg_uG,ConvertPlayerColor(0))
set u=CreateUnit(p,1852010547,2112.0,2048.0,270.000)
set u=CreateUnit(p,1852010547,-3456.0,-1728.0,270.000)
set u=CreateUnit(p,1852010547,2112.0,-1728.0,270.000)
set u=CreateUnit(p,1751938413,5760.0,448.0,270.000)
set u=CreateUnit(p,1853319028,7040.0,5888.0,270.000)
call WaygateSetDestination(u,GetRectCenterX(udg_wn),GetRectCenterY(udg_wn))
call WaygateActivate(u,true)
call SetUnitColor(u,ConvertPlayerColor(0))
set udg_jG=CreateUnit(p,1853319028,-2944.0,6976.0,270.000)
call WaygateSetDestination(udg_jG,GetRectCenterX(udg_tn),GetRectCenterY(udg_tn))
call WaygateActivate(udg_jG,true)
call SetUnitColor(udg_jG,ConvertPlayerColor(10))
set u=CreateUnit(p,1853319028,2752.0,-2368.0,270.000)
call WaygateSetDestination(u,GetRectCenterX(udg_mo),GetRectCenterY(udg_mo))
call WaygateActivate(u,true)
call SetUnitColor(u,ConvertPlayerColor(0))
set udg_gG=CreateUnit(p,1853319028,-4224.0,-2432.0,270.000)
call WaygateSetDestination(udg_gG,GetRectCenterX(udg_no),GetRectCenterY(udg_no))
call WaygateActivate(udg_gG,true)
call SetUnitColor(udg_gG,ConvertPlayerColor(10))
set u=CreateUnit(p,1751610487,5760.0,192.0,270.000)
set u=CreateUnit(p,1751610487,-7168.0,192.0,270.000)
set udg_pG=CreateUnit(p,1853319028,-704.0,-3200.0,270.000)
call WaygateSetDestination(udg_pG,GetRectCenterX(udg_Un),GetRectCenterY(udg_Un))
call WaygateActivate(udg_pG,true)
call SetUnitColor(udg_pG,ConvertPlayerColor(4))
set u=CreateUnit(p,1853319028,7360.0,3840.0,270.000)
call WaygateSetDestination(u,GetRectCenterX(udg_Tn),GetRectCenterY(udg_Tn))
call WaygateActivate(u,true)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,1853319028,4160.0,5312.0,270.000)
call WaygateSetDestination(u,GetRectCenterX(udg_Xn),GetRectCenterY(udg_Xn))
call WaygateActivate(u,true)
call SetUnitColor(u,ConvertPlayerColor(1))
set udg_nG=CreateUnit(p,1853319028,-704.0,3456.0,270.000)
call WaygateSetDestination(udg_nG,GetRectCenterX(udg_Yn),GetRectCenterY(udg_Yn))
call WaygateActivate(udg_nG,true)
call SetUnitColor(udg_nG,ConvertPlayerColor(1))
set udg_fG=CreateUnit(p,1848651853,-6592.0,-576.0,270.000)
call WaygateSetDestination(udg_fG,GetRectCenterX(udg_Xo),GetRectCenterY(udg_Xo))
call WaygateActivate(udg_fG,true)
call SetUnitColor(udg_fG,ConvertPlayerColor(9))
set udg_hG=CreateUnit(p,1848651853,-6336.0,-576.0,270.000)
call WaygateSetDestination(udg_hG,GetRectCenterX(udg_wn),GetRectCenterY(udg_wn))
call WaygateActivate(udg_hG,true)
call SetUnitColor(udg_hG,ConvertPlayerColor(9))
set udg_iG=CreateUnit(p,1848651853,-6080.0,-576.0,270.000)
call WaygateSetDestination(udg_iG,GetRectCenterX(udg_zo),GetRectCenterY(udg_zo))
call WaygateActivate(udg_iG,true)
call SetUnitColor(udg_iG,ConvertPlayerColor(9))
set udg_mG=CreateUnit(p,1852206952,-704.0,64.0,270.000)
set udg_sG=CreateUnit(p,1853319028,-2944.0,5312.0,270.000)
call WaygateSetDestination(udg_sG,GetRectCenterX(udg_tn),GetRectCenterY(udg_tn))
call WaygateActivate(udg_sG,true)
call SetUnitColor(udg_sG,ConvertPlayerColor(10))
set udg_rG=CreateUnit(p,1853319028,-256.0,5312.0,270.000)
call WaygateSetDestination(udg_rG,GetRectCenterX(udg_tn),GetRectCenterY(udg_tn))
call WaygateActivate(udg_rG,true)
call SetUnitColor(udg_rG,ConvertPlayerColor(10))
set udg_qG=CreateUnit(p,1853319028,-256.0,6976.0,270.000)
call WaygateSetDestination(udg_qG,GetRectCenterX(udg_tn),GetRectCenterY(udg_tn))
call WaygateActivate(udg_qG,true)
call SetUnitColor(udg_qG,ConvertPlayerColor(10))
set u=CreateUnit(p,1848651865,-6912.0,1088.0,270.000)
set u=CreateUnit(p,1848651865,5504.0,1152.0,270.000)
endfunction
function Y6 takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,1970169187,7126.8,-6557.8,120.060)
set u=CreateUnit(p,1970497636,7084.9,-6751.4,14.580)
set u=CreateUnit(p,1970233971,6963.6,-6683.6,177.329)
set u=CreateUnit(p,1970107511,7033.2,-6597.3,72.590)
set u=CreateUnit(p,1969316719,6953.0,-6572.9,1.230)
set u=CreateUnit(p,1969381742,7110.8,-6512.0,237.840)
set u=CreateUnit(p,1969711215,6993.6,-6462.1,81.020)
set u=CreateUnit(p,1851941230,7159.5,-5146.9,314.317)
set u=CreateUnit(p,1851945575,7076.2,-5169.8,53.208)
set u=CreateUnit(p,1852993383,7001.2,-5173.5,168.535)
set u=CreateUnit(p,1851880307,6899.9,-5177.3,145.639)
set u=CreateUnit(p,1852141158,6756.4,-5165.9,302.265)
set u=CreateUnit(p,1851944036,6652.2,-5161.8,171.304)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1851941999,6490.7,-5180.2,97.001)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852008813,6346.6,-5170.0,187.718)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852010091,6172.3,-5197.7,292.212)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1851946861,6637.9,-5327.4,206.549)
set u=CreateUnit(p,1852141168,6877.2,-5289.3,320.173)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852207713,6995.5,-5275.5,42.156)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852273259,6783.7,-5293.8,29.268)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852273524,6711.0,-5387.9,307.714)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852270450,6418.7,-5326.6,32.246)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852338801,6281.5,-5365.2,104.967)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852335728,6324.4,-5452.8,255.989)
set u=CreateUnit(p,1852335203,6550.4,-5411.8,62.635)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852336242,6724.8,-5491.4,87.333)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1851877497,6792.3,-5446.1,127.500)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852534626,7002.9,-5422.4,229.358)
set u=CreateUnit(p,1852534631,6214.8,-5378.0,89.157)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852534644,6244.3,-5496.7,132.763)
set u=CreateUnit(p,1852534636,6355.5,-5520.1,50.055)
set u=CreateUnit(p,1853319546,6498.3,-5508.4,234.214)
set u=CreateUnit(p,1853323890,6341.1,-5380.6,53.307)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1853323879,6720.3,-5599.1,181.401)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1853323876,6278.1,-5573.2,56.208)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1852666476,6380.3,-5620.9,41.200)
set u=CreateUnit(p,1852666482,6472.8,-5591.7,209.120)
set u=CreateUnit(p,1852666477,6542.3,-5628.0,326.205)
set u=CreateUnit(p,1853058915,6939.2,-5521.0,216.844)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,1853323110,6938.6,-5621.1,101.835)
set u=CreateUnit(p,1852467042,7036.6,-5555.6,295.772)
call SetUnitState(u,UNIT_STATE_MANA,0)
set udg_xG=CreateUnit(p,1747988547,6735.8,-5478.0,21.523)
set udg_yG=CreateUnit(p,1747988529,6595.3,-5363.0,343.992)
set udg_vG=CreateUnit(p,1747988790,6453.1,-5477.7,353.979)
set udg_zG=CreateUnit(p,1747988533,6928.3,-5370.6,210.131)
set udg_wG=CreateUnit(p,1747988558,6394.3,-5289.4,154.231)
set u=CreateUnit(p,1162031160,6979.7,-5810.7,163.970)
set udg_AG=CreateUnit(p,1747988787,6689.2,-5615.7,140.882)
set udg_aG=CreateUnit(p,1747988545,7023.2,-5678.8,163.976)
set udg_bG=CreateUnit(p,1747988562,6326.4,-5377.2,331.885)
set u=CreateUnit(p,1162031410,6768.5,-5764.2,63.920)
set u=CreateUnit(p,1211117641,6506.9,-5722.0,161.383)
set udg_CG=CreateUnit(p,1747988560,6627.1,-5482.3,278.259)
set udg_cG=CreateUnit(p,1747988534,6860.2,-5637.0,223.348)
set udg_DG=CreateUnit(p,1747988788,6873.1,-5582.3,237.685)
set u=CreateUnit(p,1211117619,6295.1,-5777.0,218.382)
set u=CreateUnit(p,1211117905,6723.8,-6017.0,160.669)
set u=CreateUnit(p,1329803568,6803.5,-5652.8,62.042)
set u=CreateUnit(p,1430466867,6991.0,-5710.4,265.745)
set u=CreateUnit(p,1429221428,7081.3,-5675.0,354.298)
set u=CreateUnit(p,1430466865,7097.0,-5751.6,233.412)
set u=CreateUnit(p,1311780921,7072.9,-5359.2,204.264)
set u=CreateUnit(p,1311780914,6721.8,-5698.2,198.979)
set u=CreateUnit(p,1311780947,6893.7,-5437.7,121.875)
set u=CreateUnit(p,1311780949,6588.6,-5751.2,271.986)
set u=CreateUnit(p,1311780948,6653.2,-5742.5,309.330)
set u=CreateUnit(p,1311780919,6905.3,-5719.1,277.996)
set u=CreateUnit(p,1311780917,6370.8,-5707.2,296.233)
set u=CreateUnit(p,1160785968,6434.0,-5748.3,272.942)
set u=CreateUnit(p,1160785970,6962.2,-6002.5,238.641)
set u=CreateUnit(p,1160785969,7167.8,-5805.0,148.770)
set u=CreateUnit(p,1211117620,6633.5,-5862.0,99.530)
set u=CreateUnit(p,1328558131,6845.9,-5988.8,322.610)
set u=CreateUnit(p,1429221460,6767.8,-5930.2,103.410)
set u=CreateUnit(p,1311780918,6542.1,-5936.6,11.480)
set u=CreateUnit(p,1311780952,6581.4,-6038.9,149.240)
set u=CreateUnit(p,1311780915,6765.8,-6166.3,289.060)
set u=CreateUnit(p,1311780916,6842.2,-6168.2,117.520)
set u=CreateUnit(p,1311780920,7019.8,-5934.0,160.280)
set u=CreateUnit(p,1160785970,6462.1,-6014.7,298.020)
endfunction
function Z6 takes nothing returns nothing
call K6()
call L6()
call M6()
call N6()
call O6()
call P6()
call Q6()
call R6()
call S6()
call T6()
call U6()
call V6()
endfunction
function dH takes nothing returns nothing
endfunction
function eH takes nothing returns nothing
call X6()
call Z6()
call W6()
call Y6()
call dH()
endfunction
function fH takes nothing returns nothing
local weathereffect we
set udg_sn=Rect(-4480.0,-2720.0,3104.0,2432.0)
set udg_tn=Rect(-3680.0,-1952.0,-3264.0,-1536.0)
set udg_un=Rect(-6912.0,-640.0,-6784.0,-512.0)
set udg_vn=Rect(4864.0,-704.0,4992.0,-576.0)
set udg_wn=Rect(1920.0,-1888.0,2336.0,-1536.0)
set udg_xn=Rect(-6400.0,-640.0,-6272.0,-512.0)
set udg_yn=Rect(5376.0,-704.0,5504.0,-576.0)
set udg_zn=Rect(6752.0,-1920.0,7968.0,4320.0)
set udg_An=Rect(-7168.0,4864.0,-4576.0,7296.0)
set udg_an=Rect(-6272.0,5952.0,-6080.0,6240.0)
set udg_Bn=Rect(-5728.0,5952.0,-5536.0,6240.0)
set udg_bn=Rect(-7744.0,4320.0,-4128.0,8096.0)
set udg_Cn=Rect(-6816.0,-5792.0,-5152.0,-4736.0)
set udg_cn=Rect(7008.0,3424.0,7072.0,3488.0)
set udg_Dn=Rect(7712.0,3424.0,7776.0,3520.0)
set udg_En=Rect(7008.0,2912.0,7072.0,3008.0)
set udg_Fn=Rect(7712.0,2944.0,7776.0,3008.0)
set udg_Gn=Rect(7008.0,2400.0,7072.0,2464.0)
set udg_Hn=Rect(7712.0,2400.0,7776.0,2496.0)
set udg_In=Rect(6976.0,1856.0,7040.0,1920.0)
set udg_ln=Rect(7712.0,1888.0,7776.0,1984.0)
set udg_Jn=Rect(6976.0,1312.0,7040.0,1376.0)
set udg_Kn=Rect(7712.0,1344.0,7776.0,1440.0)
set udg_Ln=Rect(6976.0,768.0,7040.0,832.0)
set udg_Mn=Rect(7712.0,768.0,7776.0,832.0)
set udg_Nn=Rect(6976.0,192.0,7072.0,256.0)
set udg_On=Rect(7680.0,224.0,7776.0,288.0)
set udg_Pn=Rect(6976.0,-320.0,7072.0,-256.0)
set udg_Qn=Rect(7680.0,-320.0,7776.0,-256.0)
set udg_Rn=Rect(7008.0,-864.0,7040.0,-800.0)
set udg_Sn=Rect(7680.0,-832.0,7776.0,-768.0)
set udg_Tn=Rect(-768.0,-3104.0,-640.0,-3040.0)
set udg_Un=Rect(7296.0,3584.0,7488.0,3776.0)
set udg_Vn=Rect(-736.0,-2528.0,-672.0,-2496.0)
set udg_Wn=Rect(4128.0,6816.0,4224.0,6912.0)
set udg_Xn=Rect(-736.0,3232.0,-640.0,3456.0)
set udg_Yn=Rect(4000.0,5312.0,4320.0,5664.0)
set udg_Zn=Rect(-768.0,2336.0,-640.0,2432.0)
set udg_do=Rect(-5472.0,-5632.0,-5280.0,-4896.0)
set udg_eo=Rect(-6656.0,-640.0,-6528.0,-512.0)
set udg_fo=Rect(5120.0,-704.0,5248.0,-576.0)
set udg_go=Rect(1216.0,-6112.0,2112.0,-5024.0)
set udg_ho=Rect(7328.0,-1376.0,7392.0,-1312.0)
set udg_io=Rect(3104.0,-4576.0,3168.0,-4544.0)
set udg_jo=Rect(-5760.0,288.0,-4448.0,896.0)
set udg_ko=Rect(2976.0,128.0,4576.0,896.0)
set udg_mo=Rect(6144.0,5632.0,7040.0,6976.0)
set udg_no=Rect(-3264.0,5056.0,64.0,7232.0)
set udg_oo=Rect(6976.0,-1696.0,7776.0,4128.0)
set we=AddWeatherEffect(udg_oo,1296393331)
call EnableWeatherEffect(we,true)
set udg_po=Rect(3744.0,5632.0,4640.0,7168.0)
set udg_qo=Rect(-1568.0,2912.0,128.0,3744.0)
set udg_ro=Rect(-896.0,2368.0,-512.0,3040.0)
set udg_so=Rect(-2720.0,-6688.0,32.0,-3936.0)
set udg_to=Rect(3328.0,-6784.0,4736.0,-5248.0)
set udg_uo=Rect(-7040.0,288.0,-6432.0,576.0)
set udg_vo=Rect(-7392.0,-1056.0,-5664.0,1792.0)
set udg_wo=Rect(4992.0,320.0,5472.0,576.0)
set udg_xo=Rect(4224.0,-1056.0,6048.0,1920.0)
set udg_yo=Rect(-3648.0,1888.0,-3264.0,2208.0)
set udg_zo=Rect(1952.0,1888.0,2336.0,2208.0)
set udg_Ao=Rect(-1824.0,-4896.0,-1760.0,-4832.0)
set udg_ao=Rect(-1824.0,-5376.0,-1760.0,-5312.0)
set udg_Bo=Rect(-1824.0,-5856.0,-1760.0,-5792.0)
set udg_bo=Rect(-992.0,-4896.0,-928.0,-4800.0)
set udg_Co=Rect(-992.0,-5376.0,-928.0,-5312.0)
set udg_co=Rect(-992.0,-5856.0,-928.0,-5792.0)
set udg_Do=Rect(-3072.0,-6944.0,288.0,-3680.0)
set udg_Eo=Rect(-7168.0,-640.0,-7040.0,-512.0)
set udg_Fo=Rect(4608.0,-704.0,4736.0,-576.0)
set udg_Go=Rect(-6144.0,-640.0,-6016.0,-512.0)
set udg_Ho=Rect(5632.0,-704.0,5760.0,-576.0)
set udg_Io=Rect(-6528.0,-5632.0,-6176.0,-4992.0)
set udg_lo=Rect(-7296.0,-6368.0,-4736.0,-3904.0)
set udg_Jo=Rect(-5440.0,-4800.0,-5312.0,-4704.0)
set udg_Ko=Rect(-5568.0,-5728.0,-5184.0,-4800.0)
set udg_Lo=Rect(-6624.0,-5760.0,-6080.0,-4864.0)
set udg_Mo=Rect(-5888.0,480.0,-5824.0,544.0)
set udg_No=Rect(4352.0,480.0,4416.0,544.0)
set udg_Oo=Rect(-1856.0,-3616.0,448.0,-1888.0)
set udg_Po=Rect(-3648.0,4736.0,384.0,7712.0)
set udg_Qo=Rect(1024.0,-6304.0,2304.0,-4768.0)
set udg_Ro=Rect(-4480.0,2368.0,-3840.0,4064.0)
set udg_So=Rect(2432.0,2336.0,3072.0,4096.0)
set udg_To=Rect(-4224.0,3552.0,-4096.0,3648.0)
set udg_Uo=Rect(2656.0,3680.0,2784.0,3808.0)
set udg_Vo=Rect(2720.0,2816.0,2784.0,2880.0)
set udg_Wo=Rect(-4192.0,2784.0,-4128.0,2848.0)
set udg_Xo=Rect(-896.0,-480.0,-512.0,-96.0)
set udg_Yo=Rect(-3264.0,1664.0,-3168.0,1760.0)
set udg_Zo=Rect(64.0,1664.0,192.0,1792.0)
set udg_dp=Rect(5248.0,-6976.0,7360.0,-4768.0)
set udg_ep=Rect(-7040.0,1088.0,-7008.0,1120.0)
set udg_fp=Rect(5600.0,1152.0,5632.0,1184.0)
set udg_gp=Rect(3040.0,4768.0,5216.0,7840.0)
endfunction
function gH takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function hH takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function iH takes nothing returns boolean
return(udg_k!=0)
endfunction
function jH takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function kH takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_to),0)
endfunction
function mH takes nothing returns boolean
if(not(CountPlayersInForceBJ(n6(MAP_CONTROL_COMPUTER))!=0))then
return false
endif
return true
endfunction
function nH takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function oH takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function pH takes nothing returns boolean
return GetBooleanAnd(nH(),oH())
endfunction
function qH takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function rH takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function sH takes nothing returns boolean
return GetBooleanAnd(qH(),rH())
endfunction
function tH takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function pH)))>=3))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function sH)))>=3))then
return false
endif
return true
endfunction
function uH takes nothing returns boolean
if(not tH())then
return false
endif
return true
endfunction
function vH takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function wH takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function xH takes nothing returns boolean
return GetBooleanAnd(vH(),wH())
endfunction
function yH takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function zH takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function AH takes nothing returns boolean
return GetBooleanAnd(yH(),zH())
endfunction
function aH takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function xH)))>=5))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function AH)))>=5))then
return false
endif
return true
endfunction
function BH takes nothing returns boolean
if(not aH())then
return false
endif
return true
endfunction
function bH takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(gH())then
call ForceAddPlayerSimple(ConvertedPlayer(GetForLoopIndexA()),udg_e)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=7
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(hH())then
call ForceAddPlayerSimple(ConvertedPlayer(GetForLoopIndexA()),udg_f)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_k=(((CountPlayersInForceBJ(udg_e)+CountPlayersInForceBJ(udg_f))/2)*60)
if(iH())then
set udg_k=(udg_k-30)
else
call DoNothing()
endif
set udg_M9=t6(Condition(function jH))
call ForForce(udg_M9,function kH)
call ClearSelection()
set udg_m4="BvO 2.09b -"
set udg_H7=" "
set udg_u4=0
set udg_N[799]=9
set udg_j9=GetUnitLoc(udg_mG)
call PreloadEnd(0.5)
call TriggerExecute(udg_ys)
call TriggerExecute(udg_Cs)
call TriggerExecute(udg_bs)
call TriggerExecute(udg_cs)
call TriggerExecute(udg_Ds)
call TriggerExecute(udg_Fs)
call TriggerExecute(udg_Jt)
call TriggerExecute(udg_Es)
call TriggerExecute(udg_zs)
call TriggerExecute(udg_Is)
if(mH())then
call EnableTrigger(udg_Ps)
call EnableTrigger(udg_Qs)
call EnableTrigger(udg_Rs)
call EnableTrigger(udg_Js)
call EnableTrigger(udg_Ks)
call EnableTrigger(udg_Ls)
call EnableTrigger(udg_Ms)
call EnableTrigger(udg_Ns)
call EnableTrigger(udg_Os)
call EnableTrigger(udg_Ss)
call EnableTrigger(udg_Ts)
else
call DestroyTrigger(udg_ls)
call DestroyTrigger(udg_Ps)
call DestroyTrigger(udg_Qs)
call DestroyTrigger(udg_Rs)
call DestroyTrigger(udg_Js)
call DestroyTrigger(udg_Ks)
call DestroyTrigger(udg_Ls)
call DestroyTrigger(udg_Ms)
call DestroyTrigger(udg_Ns)
call DestroyTrigger(udg_Os)
call DestroyTrigger(udg_Ss)
call DestroyTrigger(udg_Ts)
call DestroyTrigger(udg_Us)
endif
if(uH())then
call EnableTrigger(udg_V3)
else
call DoNothing()
endif
if(BH())then
call EnableTrigger(udg_W3)
else
call DoNothing()
endif
call TriggerExecute(udg_bt)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function CH takes nothing returns nothing
set udg_xs=CreateTrigger()
call TriggerAddAction(udg_xs,function bH)
endfunction
function cH takes nothing returns nothing
call Preload("ReplaceableTextures\\CommandButtons\\BTNace.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNbattlefury.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNbloodrapier.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNbootsoftravel.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNbyakuya.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNchad.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNcraniumbasher.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNdivinerapier.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNemp.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNenel.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNevilichigo.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNexcalibur.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNexplosion.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNfrostmourne2.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNhitsu.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNHollowMask.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNichi.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNikakku.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNinoue.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNjakiroulti.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNkenpachi.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNlightstrikearray.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNlucci.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNluffy.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNmaximillian.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNmihawk.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNmjollnir.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNmkb.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNnami.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNorboffire2.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNoyama.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNraijinulti.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNrobin.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNrukia.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNsangeandyasha.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNsanji.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNsilverhelm.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNsoifong.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNstygiandesolator.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNSvenGS.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNthebutterfly.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNtheredbutterfly.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNultimasword.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNuryu.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNusp.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNyoruichi-chan.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNzanbatou.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNzoro.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNsquall.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNsquall.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNace.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNbattlefury.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNbloodrapier.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNbootsoftravel.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNbyakuya.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNchad.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNcraniumbasher.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNdivinerapier.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNemp.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNenel.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNevilichigo.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNexcalibur.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNexplosion.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNfrostmourne2.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNhitsu.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNHollowMask.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNichi.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNikakku.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNinoue.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNjakiroulti.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNkenpachi.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNlightstrikearray.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNlucci.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNluffy.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNmaximillian.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNmihawk.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNmjollnir.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNmkb.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNnami.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNorboffire2.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNoyama.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNraijinulti.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNrobin.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNrukia.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNsangeandyasha.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNsanji.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNsilverhelm.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNsoifong.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNstygiandesolator.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNSvenGS.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNthebutterfly.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNtheredbutterfly.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNultimasword.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNuryu.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNusp.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNyoruichi-chan.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNzanbatou.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNzoro.blp")
call Preload("!AizenSousuke!.mdx")
call Preload("!BrazoIzquierdoDelDiablo!.mdx")
call Preload("!Chad!.mdx")
call Preload("!Ikkaku!.blp")
call Preload("!MadarameIkkaku!.mdx")
call Preload("!IshidaUryuu!.mdx")
call Preload("!GinreiKojyaku!.mdx")
call Preload("!Hoozukimaru!.mdx")
call Preload("!SealofDeath!.blp")
call Preload("!SealofDeath!.mdx")
call Preload("!Shunpo!.mdx")
call Preload("!SoiFong!.blp")
call Preload("!SoiFong!.mdx")
call Preload("-MonkeyDLuffy-.mdx")
call Preload("1-Nami.mdx")
call Preload("1-Robin.mdx")
call Preload("102.blp")
call Preload("111.blp")
call Preload("222.blp")
call Preload("444.blp")
call Preload("Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdx")
call Preload("-acebody-.blp")
call Preload("-aceface-.blp")
call Preload("-acehat-.blp")
call Preload("-Ace-.mdx")
call Preload("BlackRibbon.mdx")
call Preload("bleach all.blp")
call Preload("body-256.blp")
call Preload("Bow.blp")
call Preload("Chad.blp")
call Preload("ChadTrueForm.blp")
call Preload("ElDirectoMissile.mdx")
call Preload("Enel.blp")
call Preload("Enel2.mdx")
call Preload("Enel_head.blp")
call Preload("Fleur.blp")
call Preload("Fleur.mdx")
call Preload("-GearSecond-.mdx")
call Preload("genericglowx.blp")
call Preload("hawk eye pic.blp")
call Preload("Hollow no Kamen.mdx")
call Preload("IcePillar.mdx")
call Preload("ichigo xu.blp")
call Preload("ichigo.blp")
call Preload("inoue.blp")
call Preload("kon.blp")
call Preload("lanran2.blp")
call Preload("laser.blp")
call Preload("lensflare1a.blp")
call Preload("Lightning2b.blp")
call Preload("Luchy.blp")
call Preload("Luchy2.mdx")
call Preload("!LuffyPunch!.mdx")
call Preload("Luffe.blp")
call Preload("mihawk.mdx")
call Preload("Negacion.mdx")
call Preload("NewDirtEXNofire.mdx")
call Preload("pao.blp")
call Preload("Pinky.blp")
call Preload("RingOFire.blp")
call Preload("Rukia.blp")
call Preload("Rukia.mdx")
call Preload("-Sanji-.mdx")
call Preload("!Sanji!.blp")
call Preload("SeeleSchneider.MDX")
call Preload("SenbonzakuraSword.blp")
call Preload("SenbonzakuraSword.mdx")
call Preload("SenkeiSword.mdx")
call Preload("shanben3.blp")
call Preload("shanben5.blp")
call Preload("Sprenger.MDX")
call Preload("TeamGlow09.blp")
call Preload("textures\\AWING.blp")
call Preload("textures\\b bayakuya.blp")
call Preload("textures\\b cascol.blp")
call Preload("textures\\b head.blp")
call Preload("textures\\b herocloth.blp")
call Preload("textures\\b katana.blp")
call Preload("textures\\black yeghatensho.blp")
call Preload("textures\\blue_glow2.blp")
call Preload("textures\\circle.blp")
call Preload("textures\\grad.blp")
call Preload("textures\\kenpachi1.blp")
call Preload("textures\\lanran1.blp")
call Preload("textures\\shanben1.blp")
call Preload("textures\\shanben2.blp")
call Preload("textures\\yeghatensho.blp")
call Preload("toushirou.blp")
call Preload("Tsukishiro.mdx")
call Preload("uryu.blp")
call Preload("-Sogeking-.blp")
call Preload("-Sogeking-.MDX")
call Preload("war3mapImported\\A-Bomb.mdx")
call Preload("war3mapImported\\arcane.MDX")
call Preload("war3mapImported\\AWING.MDX")
call Preload("!BlueGetsugaTenshou!.mdx")
call Preload("war3mapImported\\BTNagiplus.blp")
call Preload("war3mapImported\\BTNintplus.blp")
call Preload("war3mapImported\\BTNstrplus.blp")
call Preload("war3mapImported\\byakuya.mdx")
call Preload("war3mapImported\\ChaosExplosion.mdx")
call Preload("war3mapImported\\ChillingAura.MDX")
call Preload("war3mapImported\\circle.MDx")
call Preload("war3mapImported\\darkblast.mdx")
call Preload("war3mapImported\\DarkLightningNova.mdx")
call Preload("war3mapImported\\DarkNova.mdx")
call Preload("war3mapImported\\Double_Kill.mp3")
call Preload("war3mapImported\\explosion.mdx")
call Preload("war3mapImported\\FireWave.mdx")
call Preload("war3mapImported\\FrostNova.mdx")
call Preload("war3mapImported\\Great Lightning.mdx")
call Preload("war3mapImported\\ice fly.MDX")
call Preload("war3mapImported\\IceSparks.mdx")
call Preload("war3mapImported\\icestomp.mdx")
call Preload("war3mapImported\\ichigo xu.mdx")
call Preload("!KurosakiIchigo!.mdx")
call Preload("war3mapImported\\Impact.mdx")
call Preload("war3mapImported\\inoue.mdx")
call Preload("war3mapImported\\kenpachi new.mdx")
call Preload("war3mapImported\\kon.mdx")
call Preload("war3mapImported\\laser.mdx")
call Preload("war3mapImported\\LightningWrath.mdx")
call Preload("war3mapImported\\MagmaBurst.mdx")
call Preload("war3mapImported\\NewMassiveEX.mdx")
call Preload("war3mapImported\\OutlandStorm.mdx")
call Preload("war3mapImported\\sw_zhaoyun.mdx")
call Preload("war3mapImported\\Toushirou.MDX")
call Preload("war3mapImported\\triple_kill.mp3")
call Preload("war3mapImported\\Yoruichi-chan.mdx")
call Preload("!BlackGetsugaTenshou!.mdx")
call Preload("white.blp")
call Preload("WhiteGetsuga.mdx")
call Preload("Yamamoto.mdx")
call Preload("Yamamoto.mdx")
call Preload("YellowRibbon.mdx")
call Preload("YellowShield.blp")
call Preload("YellowShield.mdx")
call Preload("Yoruichi-chan.blp")
call Preload("Zoro.blp")
call Preload("Zoro.mdx")
call Preload("!AdmiralAokiji!.mdx")
call Preload("!Aokijicloth!.blp")
call Preload("!Aokijicloth!.blp")
call Preload("!Fireball!.mdx")
call Preload("!FireShit!.blp")
call Preload("!Sasuke!.mdx")
call Preload("!Sasuke!.blp")
call Preload("!CursedSeal!.blp")
call Preload("!CursedWing!.blp")
call Preload("!SasukeCursedSeal!.mdx")
call Preload("-Brook-.mdx")
call Preload("-Brook-.blp")
call Preload("-GeckoMoria-.mdx")
call Preload("-ShadowMoria-.mdx")
call Preload("-BrickBat-.mdx")
call Preload("-moriacloth-.blp")
call Preload("-moriaface-.blp")
call Preload("-shadowmoria-.blp")
call Preload("GlowBlack.mdx")
call Preload("LightPrison.blp")
call Preload("LightPrison.mdx")
call Preload("!Hyourinmaru!.mdx")
call Preload("RedRune.mdx")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNLament.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNmoria.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNmoria.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNbrook.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNbrook.blp")
call Preload("textures\\blackbox_32x32.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNAokiji.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNSasuke.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNAokiji.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNSasuke.blp")
call Preload("!LucciLeopard!.blp")
call Preload("-kenpachikendo-.blp")
call Preload("!KenpachiKendo!.mdx")
call Preload("!LucciLeopard!.mdx")
call Preload("!BlackGetsugaBlade!.mdx")
call Preload("!BlueGetsugaBlade!.mdx")
call Preload("!Licht!.mdx")
call Preload("!QuincyWing!.mdx")
call Preload("!SenbonzakuraArmor!.mdx")
call Preload("!Sonido!.mdx")
call Preload("AncientExplode.mdx")
call Preload("BlueRibbon.mdx")
call Preload("BlueRibbonMissile.mdx")
call Preload("IceNova.mdx")
call Preload("PinkRibbon.mdx")
call Preload("FlashArrowMissile.mdx")
call Preload("FlameShockwave.mdx")
call Preload("-Squall Clothes-.blp")
call Preload("-Squall-.blp")
call Preload("!Squall Leonheart!.mdx")
call Preload("Punishment.blp")
call Preload("!Revolver!.mdx")
call Preload("!Shear Trigger!.mdx")
call Preload("!Flame Saber!.mdx")
call Preload("!Punishment!.mdx")
call Preload("!Lion Heart!.mdx")
call Preload("!Incantation!.mdx")
call Preload("!CloudStrife_Cinematic!.mdx")
call Preload("-CloudCloth-.blp")
call Preload("-CloudCloth2-.blp")
call Preload("-CloudFace-.blp")
call Preload("-CloudWeapon-.blp")
call Preload("!RyumonBack!.mdx")
call Preload("!RyumonLeft!.mdx")
call Preload("!RyumonRight!.mdx")
call Preload("!BlackWave!.mdx")
call Preload("!IchigoTrueHollowForm!.mdx")
call Preload("!ITHF_body!.blp")
call Preload("!ITHF_face!.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNcroc.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNcroc.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNlionheart.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNlionheart.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNrenji.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNrenji.blp")
call Preload("-Girasole-.mdx")
call Preload("-SablesPesado-.mdx")
call Preload("!Renji!.blp")
call Preload("!Renji!.mdx")
call Preload("-crocodilecloth-.blp")
call Preload("-crocodileface-.blp")
call Preload("-Crocodile-.mdx")
call Preload("!Raigou!.blp")
call Preload("!Raigo!.mdx")
call Preload("!thundercloud!.blp")
call Preload("!Thundercloud!.mdx")
call Preload("!ZabimaruBlade!.mdx")
call Preload("Phoenix_Missile_mini_NoDeath.mdx")
call Preload("Phoenix_Missile_mini_NoDeathAnim.mdx")
call Preload("Lightning_Ball_Tail_FX.mdx")
call Preload("Hello\\I_AM_KUROGANE.blp")
call Preload("!Zabimaru!.mdx")
call Preload("BlueExplosion.mdx")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNneliel.blp")
call Preload("!BenihikoBlade!.mdx")
call Preload("!DevilCricket!.mdx")
call Preload("!Hihio!.blp")
call Preload("!HihioBody!.mdx")
call Preload("!HihioHead!.mdx")
call Preload("SandAura.mdx")
call Preload("-crocodilesand-.blp")
call Preload("!TousenCape!.blp")
call Preload("!TousenKaname!.blp")
call Preload("!TousenKaname!.mdx")
call Preload("!ZabimaruMissileA!.mdx")
call Preload("!ZabimaruMissileB!.mdx")
call Preload("-BartholomewKuma-.mdx")
call Preload("-kumabody-.blp")
call Preload("-paw-.blp")
call Preload("-Paw-.mdx")
call Preload("-paweffect-.blp")
call Preload("!Ylaser!.blp")
call Preload("!Ylaser!.mdx")
call Preload("-pawprint-.blp")
call Preload("-PawAura-.mdx")
call Preload("-UrsusShock-.mdx")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNRegeneration.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNkuma.blp")
call Preload("ReplaceableTextures\\CommandButtons\\BTNtousen.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNkuma.blp")
call Preload("ReplaceableTextures\\CommandButtonsDisabled\\DISBTNtousen.blp")
call PreloadEnd(0.5)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function DH takes nothing returns nothing
set udg_ys=CreateTrigger()
call TriggerAddAction(udg_ys,function cH)
endfunction
function EH takes nothing returns nothing
call TriggerRegisterDeathEvent(udg_PF,GetEnumDestructable())
endfunction
function FH takes nothing returns nothing
call EnumDestructablesInRectAll(GetEntireMapRect(),function EH)
set udg_Q8=GetRectCenter(udg_Eo)
call CreateTextTagLocBJ("Top-Left",udg_Q8,0,8.00,100.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_Fo)
call CreateTextTagLocBJ("Top-Left",udg_Q8,0,8.00,100.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_un)
call CreateTextTagLocBJ("Bottom-Left",udg_Q8,0,8.00,100.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_vn)
call CreateTextTagLocBJ("Bottom-Left",udg_Q8,0,8.00,100.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_eo)
call CreateTextTagLocBJ("Middle",udg_Q8,0,8.00,100.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_fo)
call CreateTextTagLocBJ("Middle",udg_Q8,0,8.00,100.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_xn)
call CreateTextTagLocBJ("Bottom-Right",udg_Q8,0,8.00,100.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_yn)
call CreateTextTagLocBJ("Bottom-Right",udg_Q8,0,8.00,100.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_Go)
call CreateTextTagLocBJ("Top-Right",udg_Q8,0,8.00,100.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_Ho)
call CreateTextTagLocBJ("Top-Right",udg_Q8,0,8.00,100.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_to)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateNUnitsAtLoc(1,1869311844,ConvertedPlayer(GetForLoopIndexB()),udg_Q8,bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,1869116782,ConvertedPlayer(GetForLoopIndexB()),udg_Q8,bj_UNIT_FACING)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call RemoveLocation(udg_Q8)
set udg_Q8=null
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_Q8=GetRandomLocInRect(udg_Cn)
call CreateNUnitsAtLoc(1,1700885091,ConvertedPlayer(GetForLoopIndexB()),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call DisableTrigger(GetTriggeringTrigger())
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function GH takes nothing returns nothing
set udg_zs=CreateTrigger()
call TriggerAddAction(udg_zs,function FH)
endfunction
function HH takes nothing returns boolean
return(udg_a8==false)
endfunction
function IH takes nothing returns boolean
if(not(udg_g4==false))then
return false
endif
return true
endfunction
function lH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -ar")
endfunction
function JH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -np")
endfunction
function KH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -hs")
endfunction
function LH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -ds")
endfunction
function MH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -nd")
endfunction
function NH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -n3")
endfunction
function OH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -n5")
endfunction
function PH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -ne")
endfunction
function QH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -ns")
endfunction
function RH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -nr")
endfunction
function SH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -fh")
endfunction
function TH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -sh")
endfunction
function UH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -nh")
endfunction
function VH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -sc")
endfunction
function WH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -bh")
endfunction
function XH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -nf")
endfunction
function YH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -nw")
endfunction
function ZH takes nothing returns boolean
return(udg_m4=="BvO 2.09b -bo")
endfunction
function dI takes nothing returns boolean
return(udg_m4=="BvO 2.09b -oo")
endfunction
function eI takes nothing returns boolean
return(udg_m4=="BvO 2.09b -so")
endfunction
function fI takes nothing returns boolean
if(not(udg_g4==false))then
return false
endif
return true
endfunction
function gI takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(udg_j4))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(udg_m[udg_j4]==null))then
return false
endif
return true
endfunction
function hI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[1])
endfunction
function iI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[2])
endfunction
function jI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[3])
endfunction
function kI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[4])
endfunction
function mI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[5])
endfunction
function nI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[6])
endfunction
function oI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[7])
endfunction
function pI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[8])
endfunction
function qI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[9])
endfunction
function rI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[10])
endfunction
function sI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[11])
endfunction
function tI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[12])
endfunction
function uI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[13])
endfunction
function vI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[14])
endfunction
function wI takes nothing returns boolean
return(GetEnumUnit()==udg_wj[15])
endfunction
function xI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[1])
endfunction
function yI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[2])
endfunction
function zI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[3])
endfunction
function AI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[4])
endfunction
function aI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[5])
endfunction
function BI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[6])
endfunction
function bI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[7])
endfunction
function CI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[8])
endfunction
function cI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[9])
endfunction
function DI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[10])
endfunction
function EI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[11])
endfunction
function FI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[12])
endfunction
function GI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[13])
endfunction
function HI takes nothing returns boolean
return(GetEnumUnit()==udg_xj[14])
endfunction
function II takes nothing returns boolean
return(GetEnumUnit()==udg_xj[15])
endfunction
function lI takes nothing returns boolean
return(GetEnumUnit()==udg_yj[1])
endfunction
function JI takes nothing returns boolean
return(GetEnumUnit()==udg_yj[2])
endfunction
function KI takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(udg_m[udg_j4]))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function LI takes nothing returns boolean
if((GetUnitTypeId(udg_m[udg_j4])==1328558132))then
return true
endif
if((GetUnitTypeId(udg_m[udg_j4])==1429221433))then
return true
endif
return false
endfunction
function MI takes nothing returns boolean
if(not LI())then
return false
endif
return true
endfunction
function NI takes nothing returns nothing
call GroupRemoveUnitSimple(GetEnumUnit(),udg_i4)
if(hI())then
call CreateNUnitsAtLoc(1,1162031160,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(iI())then
call CreateNUnitsAtLoc(1,1162031410,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(jI())then
call CreateNUnitsAtLoc(1,1211117641,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(kI())then
call CreateNUnitsAtLoc(1,1211117620,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(mI())then
call CreateNUnitsAtLoc(1,1211117619,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(nI())then
call CreateNUnitsAtLoc(1,1328558130,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(oI())then
call CreateNUnitsAtLoc(1,1328558129,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(pI())then
call CreateNUnitsAtLoc(1,1329803568,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(qI())then
call CreateNUnitsAtLoc(1,1430466867,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(rI())then
call CreateNUnitsAtLoc(1,1429221459,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(sI())then
call CreateNUnitsAtLoc(1,1429221428,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(tI())then
call CreateNUnitsAtLoc(1,1430466865,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(uI())then
call CreateNUnitsAtLoc(1,1160785972,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(vI())then
call CreateNUnitsAtLoc(1,1211117905,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(wI())then
call CreateNUnitsAtLoc(1,1429221441,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(xI())then
call CreateNUnitsAtLoc(1,1311780921,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(yI())then
call CreateNUnitsAtLoc(1,1311780914,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(zI())then
call CreateNUnitsAtLoc(1,1311780918,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(AI())then
call CreateNUnitsAtLoc(1,1311780948,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(aI())then
call CreateNUnitsAtLoc(1,1311780915,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(BI())then
call CreateNUnitsAtLoc(1,1311780947,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bI())then
call CreateNUnitsAtLoc(1,1311780919,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(CI())then
call CreateNUnitsAtLoc(1,1311780916,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(cI())then
call CreateNUnitsAtLoc(1,1311780917,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(DI())then
call CreateNUnitsAtLoc(1,1311780920,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(EI())then
call CreateNUnitsAtLoc(1,1160785968,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(FI())then
call CreateNUnitsAtLoc(1,1160785970,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(GI())then
call CreateNUnitsAtLoc(1,1160785969,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(HI())then
call CreateNUnitsAtLoc(1,1311780949,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(II())then
call CreateNUnitsAtLoc(1,1311780952,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(lI())then
call CreateNUnitsAtLoc(1,1328558132,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(JI())then
call CreateNUnitsAtLoc(1,1429221433,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
set udg_m[udg_j4]=GetLastCreatedUnit()
call RemoveUnitFromAllStock(GetUnitTypeId(udg_m[udg_j4]))
call RemoveUnit(GetEnumUnit())
if(KI())then
set udg_E[udg_j4]=((udg_D[udg_j4]+GetUnitName(udg_m[udg_j4]))+"|r")
call SetPlayerName(ConvertedPlayer(udg_j4),GetUnitName(udg_m[udg_j4]))
else
call DoNothing()
endif
if(MI())then
call DisplayTimedTextToForce(s6(ConvertedPlayer(udg_j4)),12.00,(udg_E[udg_j4]+(" has randomed "+("|c0015B9F7"+(GetHeroProperName(udg_m[udg_j4])+"|r")))))
else
call DisplayTimedTextToForce(s6(ConvertedPlayer(udg_j4)),12.00,(udg_E[udg_j4]+(" has randomed "+GetHeroProperName(udg_m[udg_j4]))))
endif
endfunction
function OI takes nothing returns boolean
if(not gI())then
return false
endif
return true
endfunction
function PI takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_COMPUTER)
endfunction
function QI takes nothing returns boolean
if(not(GetAIDifficulty(GetEnumPlayer())==AI_DIFFICULTY_NORMAL))then
return false
endif
return true
endfunction
function RI takes nothing returns boolean
if(not(GetAIDifficulty(GetEnumPlayer())==AI_DIFFICULTY_INSANE))then
return false
endif
return true
endfunction
function SI takes nothing returns nothing
if(RI())then
call SetPlayerHandicapXPBJ(GetEnumPlayer(),175.00)
call AdjustPlayerStateBJ(1000,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
else
if(QI())then
call SetPlayerHandicapXPBJ(GetEnumPlayer(),125.00)
else
call DoNothing()
endif
endif
endfunction
function TI takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function UI takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function VI takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function WI takes nothing returns boolean
return GetBooleanAnd(UI(),VI())
endfunction
function XI takes nothing returns boolean
return GetBooleanAnd(TI(),WI())
endfunction
function YI takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1651732580)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894851)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=500))then
return false
endif
return true
endfunction
function ZI takes nothing returns boolean
if(not YI())then
return false
endif
return true
endfunction
function dl takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895089)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895122)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895109)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894850)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=300))then
return false
endif
return true
endfunction
function el takes nothing returns boolean
if(not dl())then
return false
endif
return true
endfunction
function fl takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894851)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1060))then
return false
endif
return true
endfunction
function gl takes nothing returns boolean
if(not fl())then
return false
endif
return true
endfunction
function hl takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895122)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895109)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894850)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1975))then
return false
endif
if(not(GetAIDifficulty(GetOwningPlayer(GetEnumUnit()))!=AI_DIFFICULTY_INSANE))then
return false
endif
return true
endfunction
function il takes nothing returns boolean
if(not hl())then
return false
endif
return true
endfunction
function jl takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895122)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1975))then
return false
endif
if(not(GetAIDifficulty(GetOwningPlayer(GetEnumUnit()))==AI_DIFFICULTY_INSANE))then
return false
endif
if(not(MG(GetEnumUnit(),UNIT_TYPE_RANGED_ATTACKER)==true))then
return false
endif
return true
endfunction
function kl takes nothing returns boolean
if(not jl())then
return false
endif
return true
endfunction
function ml takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895122)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895109)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894850)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1850))then
return false
endif
if(not(GetAIDifficulty(GetOwningPlayer(GetEnumUnit()))==AI_DIFFICULTY_INSANE))then
return false
endif
if(not(MG(GetEnumUnit(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
return true
endfunction
function nl takes nothing returns boolean
if(not ml())then
return false
endif
return true
endfunction
function ol takes nothing returns nothing
if(ZI())then
call UnitAddItemByIdSwapped(1651732580,GetEnumUnit())
call AdjustPlayerStateBJ(-500,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(el())then
call UnitAddItemByIdSwapped(1227895089,GetEnumUnit())
call AdjustPlayerStateBJ(-300,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(gl())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),1651732580))
call UnitAddItemByIdSwapped(1227894851,GetEnumUnit())
call AdjustPlayerStateBJ(-1060,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(il())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),1227895089))
call UnitAddItemByIdSwapped(1227895122,GetEnumUnit())
call AdjustPlayerStateBJ(-1975,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(kl())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),1227895089))
call UnitAddItemByIdSwapped(1227895122,GetEnumUnit())
call AdjustPlayerStateBJ(-1975,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(nl())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),1227895089))
call UnitAddItemByIdSwapped(1227895109,GetEnumUnit())
call AdjustPlayerStateBJ(-1850,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endfunction
function pl takes nothing returns boolean
if(not(udg_k4==false))then
return false
endif
return true
endfunction
function ql takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function rl takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function sl takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function tl takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ul takes nothing returns nothing
if(HH())then
call EnableTrigger(udg_sF)
else
call DoNothing()
endif
if(IH())then
call DoNothing()
else
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"For more information about the game modes use -gameinfo.")
endif
if(fI())then
call DisplayTextToForce(GetPlayersAll(),(udg_E[1]+" has defaulted to Normal Mode. You will get 300 gold refunded when you pick a hero."))
call MultiboardSetTitleText(udg_X,"BvO 2.09b Normal")
call DestroyTrigger(udg_Q3)
call DestroyTrigger(udg_R3)
call DestroyTrigger(udg_S3)
call DestroyTrigger(udg_T3)
call DestroyTrigger(udg_U3)
call DestroyTrigger(udg_V3)
call DestroyTrigger(udg_W3)
call DestroyTrigger(udg_X3)
call DestroyTrigger(udg_Y3)
call DestroyTrigger(udg_Z3)
call DestroyTrigger(udg_dF)
call DestroyTrigger(udg_eF)
call DestroyTrigger(udg_fF)
call DestroyTrigger(udg_gF)
call DestroyTrigger(udg_hF)
call DestroyTrigger(udg_iF)
call DestroyTrigger(udg_jF)
call DestroyTrigger(udg_kF)
call DestroyTrigger(udg_mF)
call DestroyTrigger(udg_nF)
else
call MultiboardSetTitleText(udg_X,udg_m4)
if(lH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b All Random")
else
call DoNothing()
endif
if(JH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b No Powerups")
else
call DoNothing()
endif
if(KH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b Half Score")
else
call DoNothing()
endif
if(LH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b Double Score")
else
call DoNothing()
endif
if(MH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b No Duel")
else
call DoNothing()
endif
if(NH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b No 3 vs 3 Battle")
else
call DoNothing()
endif
if(OH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b No 5 vs 5 Battle")
else
call DoNothing()
endif
if(PH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b No Events")
else
call DoNothing()
endif
if(QH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b No Swap")
else
call DoNothing()
endif
if(RH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b No Repick")
else
call DoNothing()
endif
if(SH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b Fast Hunt")
else
call DoNothing()
endif
if(TH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b Slow Hunt")
else
call DoNothing()
endif
if(UH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b Never Hunt")
else
call DoNothing()
endif
if(VH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b Super Creep")
else
call DoNothing()
endif
if(WH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b Bounty Hunter")
else
call DoNothing()
endif
if(XH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b No Fountain")
else
call DoNothing()
endif
if(YH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b No Waygates")
else
call DoNothing()
endif
if(ZH())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b Bleach Only")
else
call DoNothing()
endif
if(dI())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b One Piece Only")
else
call DoNothing()
endif
if(eI())then
call MultiboardSetTitleText(udg_X,"BvO 2.09b Selection Off")
else
call DoNothing()
endif
endif
if(pl())then
call EnableTrigger(udg_pF)
else
set udg_j4=1
loop
exitwhen udg_j4>12
if(OI())then
set udg_bd=u6(1,udg_i4)
set udg_Cd=GetRectCenter(udg_to)
call ForGroupBJ(udg_bd,function NI)
call RemoveLocation(udg_Cd)
set udg_Cd=null
call DestroyGroup(udg_bd)
set udg_bd=null
else
call DoNothing()
endif
set udg_j4=udg_j4+1
endloop
call TriggerExecute(udg_Ct)
call ForForce(t6(Condition(function PI)),function SI)
set udg_bd=YG(GetPlayableMapRect(),Condition(function XI))
call ForGroupBJ(udg_bd,function ol)
call DestroyGroup(udg_bd)
set udg_bd=null
call DestroyTrigger(udg_pF)
endif
set udg_ld=YG(udg_dp,Condition(function ql))
call ForGroupBJ(udg_ld,function rl)
call DestroyGroup(udg_ld)
set udg_ld=null
set udg_ld=YG(udg_dp,Condition(function sl))
call ForGroupBJ(udg_ld,function tl)
call DestroyGroup(udg_ld)
set udg_ld=null
call RemoveUnit(udg_bG)
call RemoveUnit(udg_vG)
call RemoveUnit(udg_wG)
call RemoveUnit(udg_yG)
call RemoveUnit(udg_xG)
call RemoveUnit(udg_DG)
call RemoveUnit(udg_zG)
call RemoveUnit(udg_cG)
call RemoveUnit(udg_CG)
call RemoveUnit(udg_AG)
call RemoveUnit(udg_aG)
call RemoveUnit(udg_Yf)
set udg_Yf=null
call EnableTrigger(udg_HF)
call EnableTrigger(udg_SF)
call ConditionalTriggerExecute(udg_Gs)
call RemoveRect(udg_dp)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function vl takes nothing returns nothing
set udg_As=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_As,15.00)
call TriggerAddAction(udg_As,function ul)
endfunction
function wl takes nothing returns boolean
if(not(udg_k4==false))then
return false
endif
return true
endfunction
function xl takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(wl())then
call TriggerExecute(udg_ls)
else
call DestroyTrigger(udg_ls)
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function yl takes nothing returns nothing
set udg_as=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_as,40.00)
call TriggerAddAction(udg_as,function xl)
endfunction
function zl takes nothing returns boolean
if(not(udg_G4[7]==true))then
return false
endif
return true
endfunction
function Al takes nothing returns boolean
if(not(udg_G4[8]==true))then
return false
endif
return true
endfunction
function al takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(udg_j4))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(udg_m[udg_j4]==null))then
return false
endif
return true
endfunction
function Bl takes nothing returns boolean
return(GetEnumUnit()==udg_wj[1])
endfunction
function bl takes nothing returns boolean
return(GetEnumUnit()==udg_wj[2])
endfunction
function Cl takes nothing returns boolean
return(GetEnumUnit()==udg_wj[3])
endfunction
function cl takes nothing returns boolean
return(GetEnumUnit()==udg_wj[4])
endfunction
function Dl takes nothing returns boolean
return(GetEnumUnit()==udg_wj[5])
endfunction
function El takes nothing returns boolean
return(GetEnumUnit()==udg_wj[6])
endfunction
function Fl takes nothing returns boolean
return(GetEnumUnit()==udg_wj[7])
endfunction
function Gl takes nothing returns boolean
return(GetEnumUnit()==udg_wj[8])
endfunction
function Hl takes nothing returns boolean
return(GetEnumUnit()==udg_wj[9])
endfunction
function Il takes nothing returns boolean
return(GetEnumUnit()==udg_wj[10])
endfunction
function ll takes nothing returns boolean
return(GetEnumUnit()==udg_wj[11])
endfunction
function Jl takes nothing returns boolean
return(GetEnumUnit()==udg_wj[12])
endfunction
function Kl takes nothing returns boolean
return(GetEnumUnit()==udg_wj[13])
endfunction
function Ll takes nothing returns boolean
return(GetEnumUnit()==udg_wj[14])
endfunction
function Ml takes nothing returns boolean
return(GetEnumUnit()==udg_wj[15])
endfunction
function Nl takes nothing returns boolean
return(GetEnumUnit()==udg_xj[1])
endfunction
function Ol takes nothing returns boolean
return(GetEnumUnit()==udg_xj[2])
endfunction
function Pl takes nothing returns boolean
return(GetEnumUnit()==udg_xj[3])
endfunction
function Ql takes nothing returns boolean
return(GetEnumUnit()==udg_xj[4])
endfunction
function Rl takes nothing returns boolean
return(GetEnumUnit()==udg_xj[5])
endfunction
function Sl takes nothing returns boolean
return(GetEnumUnit()==udg_xj[6])
endfunction
function Tl takes nothing returns boolean
return(GetEnumUnit()==udg_xj[7])
endfunction
function Ul takes nothing returns boolean
return(GetEnumUnit()==udg_xj[8])
endfunction
function Vl takes nothing returns boolean
return(GetEnumUnit()==udg_xj[9])
endfunction
function Wl takes nothing returns boolean
return(GetEnumUnit()==udg_xj[10])
endfunction
function Xl takes nothing returns boolean
return(GetEnumUnit()==udg_xj[11])
endfunction
function Yl takes nothing returns boolean
return(GetEnumUnit()==udg_xj[12])
endfunction
function Zl takes nothing returns boolean
return(GetEnumUnit()==udg_xj[13])
endfunction
function d1 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[14])
endfunction
function e1 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[15])
endfunction
function f1 takes nothing returns boolean
return(GetEnumUnit()==udg_yj[1])
endfunction
function g1 takes nothing returns boolean
return(GetEnumUnit()==udg_yj[2])
endfunction
function h1 takes nothing returns boolean
if(not(GetPlayerController(ConvertedPlayer(udg_j4))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function i1 takes nothing returns nothing
call GroupRemoveUnitSimple(GetEnumUnit(),udg_i4)
if(Bl())then
call CreateNUnitsAtLoc(1,1162031160,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bl())then
call CreateNUnitsAtLoc(1,1162031410,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cl())then
call CreateNUnitsAtLoc(1,1211117641,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(cl())then
call CreateNUnitsAtLoc(1,1211117620,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Dl())then
call CreateNUnitsAtLoc(1,1211117619,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(El())then
call CreateNUnitsAtLoc(1,1328558130,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Fl())then
call CreateNUnitsAtLoc(1,1328558129,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Gl())then
call CreateNUnitsAtLoc(1,1329803568,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Hl())then
call CreateNUnitsAtLoc(1,1430466867,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Il())then
call CreateNUnitsAtLoc(1,1429221459,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(ll())then
call CreateNUnitsAtLoc(1,1429221428,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Jl())then
call CreateNUnitsAtLoc(1,1430466865,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Kl())then
call CreateNUnitsAtLoc(1,1160785972,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Ll())then
call CreateNUnitsAtLoc(1,1211117905,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Ml())then
call CreateNUnitsAtLoc(1,1429221441,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Nl())then
call CreateNUnitsAtLoc(1,1311780921,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Ol())then
call CreateNUnitsAtLoc(1,1311780914,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Pl())then
call CreateNUnitsAtLoc(1,1311780918,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Ql())then
call CreateNUnitsAtLoc(1,1311780948,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Rl())then
call CreateNUnitsAtLoc(1,1311780915,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Sl())then
call CreateNUnitsAtLoc(1,1311780947,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Tl())then
call CreateNUnitsAtLoc(1,1311780919,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Ul())then
call CreateNUnitsAtLoc(1,1311780916,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Vl())then
call CreateNUnitsAtLoc(1,1311780917,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Wl())then
call CreateNUnitsAtLoc(1,1311780920,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Xl())then
call CreateNUnitsAtLoc(1,1160785968,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Yl())then
call CreateNUnitsAtLoc(1,1160785970,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Zl())then
call CreateNUnitsAtLoc(1,1160785969,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(d1())then
call CreateNUnitsAtLoc(1,1311780949,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(e1())then
call CreateNUnitsAtLoc(1,1311780952,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(f1())then
call CreateNUnitsAtLoc(1,1328558132,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(g1())then
call CreateNUnitsAtLoc(1,1429221433,ConvertedPlayer(udg_j4),udg_Cd,bj_UNIT_FACING)
else
call DoNothing()
endif
set udg_m[udg_j4]=GetLastCreatedUnit()
call RemoveUnitFromAllStock(GetUnitTypeId(udg_m[udg_j4]))
call RemoveUnit(GetEnumUnit())
if(h1())then
set udg_E[udg_j4]=((udg_D[udg_j4]+GetUnitName(udg_m[udg_j4]))+"|r")
call SetPlayerName(ConvertedPlayer(udg_j4),GetUnitName(udg_m[udg_j4]))
else
call DoNothing()
endif
call DisplayTimedTextToForce(s6(ConvertedPlayer(udg_j4)),12.00,(udg_E[udg_j4]+(" has randomed "+GetHeroProperName(udg_m[udg_j4]))))
call DisplayTimedTextToForce(m6(ConvertedPlayer(udg_j4)),9.00,"Your time to pick hero is up, you're now given a random hero.")
endfunction
function j1 takes nothing returns boolean
if(not al())then
return false
endif
return true
endfunction
function k1 takes nothing returns boolean
if(not(udg_k4==false))then
return false
endif
return true
endfunction
function m1 takes nothing returns nothing
call GroupRemoveUnitSimple(GetEnumUnit(),udg_i4)
call RemoveUnit(GetEnumUnit())
endfunction
function n1 takes nothing returns nothing
call SetPlayerUnitAvailableBJ(1211117905,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1429221441,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1328558130,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1429221459,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1211117619,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1328558129,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1211117620,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1160785972,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1162031160,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1430466867,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1162031410,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1429221428,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1430466865,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1329803568,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1313026099,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1211117641,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780914,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780915,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780916,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1160785969,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1160785968,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780919,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780917,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1160785970,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780918,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780920,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780921,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780948,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780947,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780949,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780952,false,GetEnumPlayer())
endfunction
function o1 takes nothing returns nothing
call DestroyFogModifier(udg_lm[(12+GetConvertedPlayerId(GetEnumPlayer()))])
endfunction
function p1 takes nothing returns boolean
if(not(udg_A4==true))then
return false
endif
return true
endfunction
function q1 takes nothing returns nothing
call WaygateActivateBJ(true,GetEnumUnit())
endfunction
function r1 takes nothing returns boolean
if(not(udg_G4[16]==false))then
return false
endif
return true
endfunction
function s1 takes nothing returns nothing
call DisableTrigger(udg_qF)
call DisableTrigger(udg_sF)
if(zl())then
call DoNothing()
else
call ConditionalTriggerExecute(udg_it)
endif
if(Al())then
call DestroyTrigger(udg_rF)
else
call EnableTrigger(udg_rF)
endif
if(k1())then
call GroupRemoveGroup(g6(1432646245),udg_i4)
set udg_j4=1
loop
exitwhen udg_j4>12
if(j1())then
set udg_bd=u6(1,udg_i4)
set udg_Cd=GetRectCenter(udg_to)
call ForGroupBJ(udg_bd,function i1)
call RemoveLocation(udg_Cd)
set udg_Cd=null
call DestroyGroup(udg_bd)
set udg_bd=null
call TriggerExecute(udg_Ct)
else
call DoNothing()
endif
set udg_j4=udg_j4+1
endloop
else
call DoNothing()
endif
call ForGroupBJ(udg_i4,function m1)
call ForForce(GetPlayersAll(),function n1)
call ForForce(udg_M9,function o1)
if(p1())then
call TriggerExecute(udg_lF)
call EnableTrigger(udg_GF)
else
call DestroyTrigger(udg_lF)
call DestroyTrigger(udg_GF)
endif
if(r1())then
set udg_im=g6(1853319028)
call ForGroupBJ(udg_im,function q1)
call DestroyGroup(udg_im)
set udg_im=null
set udg_ue[22]=GetUnitLoc(udg_sG)
call WaygateSetDestinationLocBJ(udg_gG,udg_ue[22])
else
call RemoveRect(udg_mo)
call RemoveRect(udg_no)
call RemoveRect(udg_oo)
call RemoveRect(udg_po)
call RemoveRect(udg_zn)
call RemoveRect(udg_Po)
call RemoveRect(udg_Oo)
call RemoveRect(udg_Wn)
call RemoveRect(udg_Yn)
call RemoveRect(udg_Xn)
call RemoveRect(udg_Un)
call RemoveRect(udg_Tn)
call RemoveRect(udg_cn)
call RemoveRect(udg_Dn)
call RemoveRect(udg_En)
call RemoveRect(udg_Fn)
call RemoveRect(udg_Gn)
call RemoveRect(udg_Hn)
call RemoveRect(udg_In)
call RemoveRect(udg_ln)
call RemoveRect(udg_Jn)
call RemoveRect(udg_Kn)
call RemoveRect(udg_Ln)
call RemoveRect(udg_Mn)
call RemoveRect(udg_Nn)
call RemoveRect(udg_On)
call RemoveRect(udg_Pn)
call RemoveRect(udg_Qn)
call RemoveRect(udg_Rn)
call RemoveRect(udg_Sn)
endif
call DestroyTrigger(udg_qF)
call DestroyTrigger(udg_sF)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function t1 takes nothing returns nothing
set udg_Bs=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_Bs,60.00)
call TriggerAddAction(udg_Bs,function s1)
endfunction
function u1 takes nothing returns boolean
if(not(IsPlayerInForce(ConvertedPlayer(GetForLoopIndexA()),udg_f)==true))then
return false
endif
return true
endfunction
function v1 takes nothing returns boolean
if(not(IsPlayerInForce(ConvertedPlayer(GetForLoopIndexA()),udg_e)==true))then
return false
endif
return true
endfunction
function w1 takes nothing returns nothing
call WaygateActivateBJ(false,GetEnumUnit())
endfunction
function x1 takes nothing returns nothing
set udg_P4[1]=(4800/CountPlayersInForceBJ(udg_e))
set udg_P4[2]=(4800/CountPlayersInForceBJ(udg_f))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(v1())then
call AdjustPlayerStateBJ(udg_P4[1],ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_GOLD)
else
if(u1())then
call AdjustPlayerStateBJ(udg_P4[2],ConvertedPlayer(GetForLoopIndexA()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetTimeOfDay(6.00)
call UseTimeOfDayBJ(true)
call SetTimeOfDayScalePercentBJ(200.00)
call StopMusicBJ(false)
call ClearMapMusicBJ()
set udg_im=g6(1853319028)
call ForGroupBJ(udg_im,function w1)
call DestroyGroup(udg_im)
set udg_im=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function y1 takes nothing returns nothing
set udg_bs=CreateTrigger()
call TriggerAddAction(udg_bs,function x1)
endfunction
function z1 takes nothing returns nothing
set udg_D[1]="|c00ff0303"
set udg_D[2]="|c000042ff"
set udg_D[3]="|c001ce6b9"
set udg_D[4]="|c00540081"
set udg_D[5]="|c00fffc01"
set udg_D[6]="|c00ff8000"
set udg_D[7]="|c0020c000"
set udg_D[8]="|c00e55bb0"
set udg_D[9]="|c00959697"
set udg_D[10]="|c007ebff1"
set udg_D[11]="|c00106246"
set udg_D[12]="|c004e2a04"
set udg_N[799]=9
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_E[GetForLoopIndexA()]=((udg_D[GetForLoopIndexA()]+GetPlayerName(ConvertedPlayer(GetForLoopIndexA())))+"|r")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function A1 takes nothing returns nothing
set udg_Cs=CreateTrigger()
call TriggerAddAction(udg_Cs,function z1)
endfunction
function a1 takes nothing returns nothing
set udg_vd=udg_sn
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_vd)
set udg_lm[(0+GetConvertedPlayerId(GetEnumPlayer()))]=GetLastCreatedFogModifier()
call FogModifierStart(GetLastCreatedFogModifier())
set udg_vd=null
set udg_vd=udg_to
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_vd)
set udg_lm[(12+GetConvertedPlayerId(GetEnumPlayer()))]=GetLastCreatedFogModifier()
call FogModifierStart(GetLastCreatedFogModifier())
set udg_vd=null
set udg_vd=udg_An
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_vd)
set udg_lm[(24+GetConvertedPlayerId(GetEnumPlayer()))]=GetLastCreatedFogModifier()
call FogModifierStart(GetLastCreatedFogModifier())
set udg_vd=null
set udg_vd=udg_so
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_vd)
set udg_lm[(36+GetConvertedPlayerId(GetEnumPlayer()))]=GetLastCreatedFogModifier()
call FogModifierStart(GetLastCreatedFogModifier())
set udg_vd=null
set udg_vd=udg_no
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_vd)
set udg_lm[(48+GetConvertedPlayerId(GetEnumPlayer()))]=GetLastCreatedFogModifier()
call FogModifierStart(GetLastCreatedFogModifier())
set udg_vd=null
set udg_vd=udg_Ro
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_vd)
set udg_lm[(60+GetConvertedPlayerId(GetEnumPlayer()))]=GetLastCreatedFogModifier()
call FogModifierStart(GetLastCreatedFogModifier())
set udg_vd=null
set udg_vd=udg_So
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_vd)
set udg_lm[(72+GetConvertedPlayerId(GetEnumPlayer()))]=GetLastCreatedFogModifier()
call FogModifierStart(GetLastCreatedFogModifier())
set udg_vd=null
endfunction
function B1 takes nothing returns nothing
set udg_vd=udg_vo
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_vd)
set udg_lm[(84+GetConvertedPlayerId(GetEnumPlayer()))]=GetLastCreatedFogModifier()
call FogModifierStart(GetLastCreatedFogModifier())
set udg_vd=null
endfunction
function b1 takes nothing returns nothing
set udg_vd=udg_xo
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_vd)
set udg_lm[(96+GetConvertedPlayerId(GetEnumPlayer()))]=GetLastCreatedFogModifier()
call FogModifierStart(GetLastCreatedFogModifier())
set udg_vd=null
endfunction
function C1 takes nothing returns nothing
call FogMaskEnableOn()
call ForForce(udg_M9,function a1)
call ForForce(udg_e,function B1)
call ForForce(udg_f,function b1)
set udg_wd=GetRectCenter(udg_to)
call SetTerrainTypeBJ(udg_wd,1181184612,-1,20,0)
call RemoveLocation(udg_wd)
set udg_wd=null
set udg_wd=GetRectCenter(udg_vo)
call SetTerrainTypeBJ(udg_wd,1181184627,-1,11,1)
call RemoveLocation(udg_wd)
set udg_wd=null
set udg_wd=GetRectCenter(udg_xo)
call SetTerrainTypeBJ(udg_wd,1181184627,-1,11,1)
call RemoveLocation(udg_wd)
set udg_wd=null
set udg_wd=GetRectCenter(udg_jo)
call SetTerrainTypeBJ(udg_wd,1499624556,-1,8,1)
call RemoveLocation(udg_wd)
set udg_wd=null
set udg_wd=GetRectCenter(udg_ko)
call SetTerrainTypeBJ(udg_wd,1499624556,-1,8,1)
call RemoveLocation(udg_wd)
set udg_wd=null
set udg_wd=GetRectCenter(udg_Mo)
call SetTerrainTypeBJ(udg_wd,1499624556,-1,3,1)
call RemoveLocation(udg_wd)
set udg_wd=null
set udg_wd=GetRectCenter(udg_No)
call SetTerrainTypeBJ(udg_wd,1499624556,-1,3,1)
call RemoveLocation(udg_wd)
set udg_wd=null
set udg_m4="BvO 2.09b -"
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function c1 takes nothing returns nothing
set udg_cs=CreateTrigger()
call TriggerAddAction(udg_cs,function C1)
endfunction
function D1 takes nothing returns boolean
if(not(udg_f4==11))then
return false
endif
return true
endfunction
function E1 takes nothing returns boolean
if(not(udg_f4==10))then
return false
endif
return true
endfunction
function F1 takes nothing returns boolean
if(not(udg_f4==9))then
return false
endif
return true
endfunction
function G1 takes nothing returns boolean
if(not(udg_f4==8))then
return false
endif
return true
endfunction
function H1 takes nothing returns boolean
if(not(udg_f4==7))then
return false
endif
return true
endfunction
function I1 takes nothing returns boolean
if(not(udg_f4==6))then
return false
endif
return true
endfunction
function l1 takes nothing returns boolean
if(not(udg_f4==5))then
return false
endif
return true
endfunction
function J1 takes nothing returns boolean
if(not(udg_f4==4))then
return false
endif
return true
endfunction
function K1 takes nothing returns boolean
if(not(udg_f4==3))then
return false
endif
return true
endfunction
function L1 takes nothing returns boolean
if(not(udg_f4==2))then
return false
endif
return true
endfunction
function M1 takes nothing returns boolean
if(not(udg_f4==1))then
return false
endif
return true
endfunction
function N1 takes nothing returns nothing
set udg_f4=GetRandomInt(1,13)
set udg_xd=GetRectCenter(udg_sn)
set udg_bj[1]=PG(udg_xd,800.00,0)
set udg_bj[2]=PG(udg_xd,800.00,180.00)
set udg_yd=GetRectCenter(udg_An)
set udg_zd=GetRectCenter(udg_no)
set udg_Ad=GetRectCenter(udg_so)
set udg_ad=GetRectCenter(udg_lo)
if(M1())then
call SetTerrainTypeBJ(udg_xd,1181184627,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1181184627,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1181184627,-1,24,1)
call SetTerrainTypeBJ(udg_yd,1181184612,-1,12,1)
call SetTerrainTypeBJ(udg_zd,1181184612,-1,14,1)
call SetTerrainTypeBJ(udg_Ad,1181184612,-1,14,1)
call SetTerrainTypeBJ(udg_ad,1281847908,-1,12,1)
set udg_m4="BvO 2.09b -"
else
if(L1())then
call SetTerrainTypeBJ(udg_xd,1281847923,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1281847923,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1281847923,-1,24,1)
call SetTerrainTypeBJ(udg_yd,1500013671,-1,12,1)
set udg_m4="BvO 2.09b -"
else
if(K1())then
call SetTerrainTypeBJ(udg_xd,1097298547,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1097298547,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1097298547,-1,24,1)
call SetTerrainTypeBJ(udg_yd,1097627236,-1,12,1)
call SetTerrainTypeBJ(udg_zd,1097627236,-1,14,1)
call SetTerrainTypeBJ(udg_Ad,1097627236,-1,14,1)
call SetTerrainTypeBJ(udg_ad,1097627236,-1,12,1)
set udg_m4="BvO 2.09b -"
else
if(J1())then
call SetTerrainTypeBJ(udg_xd,1113879410,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1113879410,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1113879410,-1,24,1)
call SetTerrainTypeBJ(udg_ad,1113879410,-1,20,1)
call SetTerrainTypeBJ(udg_yd,1113879396,-1,12,1)
call SetTerrainTypeBJ(udg_zd,1113879396,-1,14,1)
call SetTerrainTypeBJ(udg_Ad,1113879396,-1,14,1)
set udg_m4="BvO 2.09b -"
else
if(l1())then
call SetTerrainTypeBJ(udg_xd,1466200687,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1466200687,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1466200687,-1,24,1)
call SetTerrainTypeBJ(udg_yd,1198679155,-1,12,1)
call SetTerrainTypeBJ(udg_zd,1198679155,-1,14,1)
call SetTerrainTypeBJ(udg_Ad,1198679155,-1,14,1)
call SetTerrainTypeBJ(udg_ad,1198679155,-1,12,1)
set udg_m4="BvO 2.09b -"
else
if(I1())then
call SetTerrainTypeBJ(udg_xd,1517511022,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1517511022,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1517511022,-1,24,1)
call SetTerrainTypeBJ(udg_yd,1516399475,-1,12,1)
call SetTerrainTypeBJ(udg_zd,1516399475,-1,14,1)
call SetTerrainTypeBJ(udg_Ad,1516399475,-1,14,1)
call SetTerrainTypeBJ(udg_ad,1516399475,-1,12,1)
set udg_m4="BvO 2.09b -"
else
if(H1())then
call SetTerrainTypeBJ(udg_xd,1449620083,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1449620083,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1449620083,-1,24,1)
call SetTerrainTypeBJ(udg_yd,1449353840,-1,12,1)
call SetTerrainTypeBJ(udg_zd,1365467760,-1,14,1)
call SetTerrainTypeBJ(udg_Ad,1449353840,-1,14,1)
call SetTerrainTypeBJ(udg_ad,1449353840,-1,12,1)
set udg_m4="BvO 2.09b -"
else
if(G1())then
call SetTerrainTypeBJ(udg_xd,1113879156,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1113879156,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1113879156,-1,24,1)
call SetTerrainTypeBJ(udg_yd,1265395554,-1,12,1)
call SetTerrainTypeBJ(udg_zd,1265395554,-1,14,1)
call SetTerrainTypeBJ(udg_Ad,1265395554,-1,14,1)
call SetTerrainTypeBJ(udg_ad,1265395554,-1,12,1)
set udg_m4="BvO 2.09b -"
else
if(F1())then
call SetTerrainTypeBJ(udg_xd,1130656372,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1130656372,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1130656372,-1,24,1)
call SetTerrainTypeBJ(udg_yd,1131442035,-1,12,1)
call SetTerrainTypeBJ(udg_zd,1131181671,-1,14,1)
call SetTerrainTypeBJ(udg_Ad,1131442035,-1,14,1)
call SetTerrainTypeBJ(udg_ad,1131442035,-1,12,1)
set udg_m4="BvO 2.09b -"
else
if(E1())then
call SetTerrainTypeBJ(udg_xd,1180988007,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1180988007,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1180988007,-1,24,1)
call SetTerrainTypeBJ(udg_yd,1181904747,-1,12,1)
call SetTerrainTypeBJ(udg_zd,1282568043,-1,14,1)
call SetTerrainTypeBJ(udg_Ad,1181904747,-1,14,1)
call SetTerrainTypeBJ(udg_ad,1181904747,-1,12,1)
set udg_m4="BvO 2.09b -"
else
if(D1())then
call SetTerrainTypeBJ(udg_xd,1281651303,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1281651303,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1281651303,-1,24,1)
call SetTerrainTypeBJ(udg_yd,1281847908,-1,12,1)
call SetTerrainTypeBJ(udg_zd,1281847908,-1,14,1)
call SetTerrainTypeBJ(udg_Ad,1281847908,-1,14,1)
call SetTerrainTypeBJ(udg_ad,1281847908,-1,12,1)
set udg_m4="BvO 2.09b -"
else
call SetTerrainTypeBJ(udg_xd,1499951970,-1,24,1)
call SetTerrainTypeBJ(udg_bj[1],1499951970,-1,24,1)
call SetTerrainTypeBJ(udg_bj[2],1499951970,-1,24,1)
set udg_m4="BvO 2.09b -"
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set udg_Bd[3]=GetRectCenter(udg_Vo)
call SetTerrainTypeBJ(udg_Bd[3],1499622509,-1,3,1)
set udg_Bd[4]=GetRectCenter(udg_Wo)
call SetTerrainTypeBJ(udg_Bd[4],1499622509,-1,3,1)
call RemoveLocation(udg_xd)
set udg_xd=null
call RemoveLocation(udg_bj[1])
set udg_bj[1]=null
call RemoveLocation(udg_bj[2])
set udg_bj[2]=null
call RemoveLocation(udg_yd)
set udg_yd=null
call RemoveLocation(udg_zd)
set udg_zd=null
call RemoveLocation(udg_Ad)
set udg_Ad=null
call RemoveLocation(udg_ad)
set udg_ad=null
call RemoveLocation(udg_Bd[3])
set udg_Bd[3]=null
call RemoveLocation(udg_Bd[4])
set udg_Bd[4]=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function O1 takes nothing returns nothing
set udg_Ds=CreateTrigger()
call TriggerAddAction(udg_Ds,function N1)
endfunction
function P1 takes nothing returns nothing
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Contacts","TRIGSTR_6743","ReplaceableTextures\\CommandButtons\\BTNSpy.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Modes & Commands","TRIGSTR_7224","ReplaceableTextures\\CommandButtons\\BTNManual3.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Credits","TRIGSTR_704","ReplaceableTextures\\CommandButtons\\BTNShadowMeld.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Special Credits","TRIGSTR_127","ReplaceableTextures\\CommandButtons\\BTNShadowMeld.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Latest Version","TRIGSTR_6747","ReplaceableTextures\\CommandButtons\\BTNScrollofRegeneration.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Author Comments","TRIGSTR_6891","Hello\\I_AM_KUROGANE.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Model Credits","TRIGSTR_057","ReplaceableTextures\\CommandButtons\\BTNCloakOfFlames.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Hidden Hero","TRIGSTR_110","ReplaceableTextures\\CommandButtons\\BTNSelectHeroOn.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Q1 takes nothing returns nothing
set udg_Es=CreateTrigger()
call TriggerAddAction(udg_Es,function P1)
endfunction
function R1 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=30))then
return false
endif
return true
endfunction
function S1 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=10))then
return false
endif
return true
endfunction
function T1 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function U1 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function V1 takes nothing returns boolean
return GetBooleanAnd(T1(),U1())
endfunction
function W1 takes nothing returns nothing
call UnitAddAbilityBJ(1093677393,GetEnumUnit())
call UnitAddAbilityBJ(1097295983,GetEnumUnit())
endfunction
function X1 takes nothing returns nothing
set udg_vj[1]=1
loop
exitwhen udg_vj[1]>15
set udg_Q8=GetRandomLocInRect(udg_go)
call CreateNUnitsAtLoc(1,1432642913,Player(PLAYER_NEUTRAL_PASSIVE),udg_Q8,GetRandomDirectionDeg())
set udg_wj[udg_vj[1]]=GetLastCreatedUnit()
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_vj[1]=udg_vj[1]+1
endloop
set udg_vj[2]=1
loop
exitwhen udg_vj[2]>15
set udg_Q8=GetRandomLocInRect(udg_go)
call CreateNUnitsAtLoc(1,1433168227,Player(PLAYER_NEUTRAL_PASSIVE),udg_Q8,GetRandomDirectionDeg())
set udg_xj[udg_vj[2]]=GetLastCreatedUnit()
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_vj[2]=udg_vj[2]+1
endloop
if(R1())then
set udg_Q8=GetRandomLocInRect(udg_go)
call CreateNUnitsAtLoc(1,1432646245,Player(PLAYER_NEUTRAL_PASSIVE),udg_Q8,GetRandomDirectionDeg())
set udg_yj[1]=GetLastCreatedUnit()
call RemoveLocation(udg_Q8)
set udg_Q8=null
else
call DoNothing()
endif
if(S1())then
set udg_Q8=GetRandomLocInRect(udg_go)
call CreateNUnitsAtLoc(1,1432646245,Player(PLAYER_NEUTRAL_PASSIVE),udg_Q8,GetRandomDirectionDeg())
set udg_yj[2]=GetLastCreatedUnit()
call RemoveLocation(udg_Q8)
set udg_Q8=null
else
call DoNothing()
endif
set udg_i4=YG(udg_Qo,Condition(function V1))
call ForGroupBJ(udg_i4,function W1)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Y1 takes nothing returns nothing
set udg_Fs=CreateTrigger()
call TriggerAddAction(udg_Fs,function X1)
endfunction
function Z1 takes nothing returns boolean
if(not(udg_G4[11]==false))then
return false
endif
return true
endfunction
function dJ takes nothing returns nothing
if(Z1())then
call StartTimerBJ(udg_G8,false,45.00)
set udg_G8=GetLastCreatedTimerBJ()
call CreateTimerDialogBJ(udg_G8,"Creep Spawn")
set udg_H8=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_H8)
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function eJ takes nothing returns nothing
set udg_Gs=CreateTrigger()
call TriggerAddAction(udg_Gs,function dJ)
endfunction
function fJ takes nothing returns boolean
return(udg_u4==2)
endfunction
function gJ takes nothing returns boolean
return(udg_u4==3)
endfunction
function hJ takes nothing returns boolean
return(udg_u4==0)
endfunction
function iJ takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function jJ takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function kJ takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function mJ takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function nJ takes nothing returns boolean
return GetBooleanAnd(kJ(),mJ())
endfunction
function oJ takes nothing returns boolean
return GetBooleanAnd(jJ(),nJ())
endfunction
function pJ takes nothing returns boolean
return GetBooleanAnd(iJ(),oJ())
endfunction
function qJ takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function rJ takes nothing returns boolean
if(not(udg_u4==1))then
return false
endif
return true
endfunction
function sJ takes nothing returns nothing
call DestroyTimerDialogBJ(udg_H8)
call TimerDialogDisplayBJ(false,udg_H8)
call DestroyTimer(udg_G8)
if(fJ())then
call TriggerRegisterTimerEventPeriodic(udg_It,82.00)
else
call DoNothing()
endif
if(gJ())then
call TriggerRegisterTimerEventPeriodic(udg_It,30.00)
else
call DoNothing()
endif
if(hJ())then
call TriggerRegisterTimerEventPeriodic(udg_It,50.00)
else
call DoNothing()
endif
if(rJ())then
call DisableTrigger(udg_It)
call ForGroupBJ(YG(udg_sn,Condition(function pJ)),function qJ)
call DestroyTrigger(udg_It)
else
call TriggerExecute(udg_It)
endif
call DisableTrigger(GetTriggeringTrigger())
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function tJ takes nothing returns nothing
set udg_Hs=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_Hs,udg_G8)
call TriggerAddAction(udg_Hs,function sJ)
endfunction
function uJ takes nothing returns boolean
return(UnitInventoryCount(udg_Yf)>=1)
endfunction
function vJ takes nothing returns nothing
call UnitAddItemByIdSwapped(GetItemTypeId(GetEnumItem()),udg_Yf)
if(uJ())then
call RemoveItem(UnitItemInSlotBJ(udg_Yf,1))
else
call DoNothing()
endif
call RemoveItem(GetEnumItem())
endfunction
function wJ takes nothing returns nothing
set udg_Yf=udg_EG
call EnumItemsInRectBJ(udg_dp,function vJ)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function xJ takes nothing returns nothing
set udg_Is=CreateTrigger()
call TriggerAddAction(udg_Is,function wJ)
endfunction
function yJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[1])
endfunction
function zJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[2])
endfunction
function AJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[3])
endfunction
function aJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[4])
endfunction
function BJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[5])
endfunction
function bJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[6])
endfunction
function CJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[7])
endfunction
function cJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[8])
endfunction
function DJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[9])
endfunction
function EJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[10])
endfunction
function FJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[11])
endfunction
function GJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[12])
endfunction
function HJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[13])
endfunction
function IJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[14])
endfunction
function lJ takes nothing returns boolean
return(GetEnumUnit()==udg_wj[15])
endfunction
function JJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[1])
endfunction
function KJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[2])
endfunction
function LJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[3])
endfunction
function MJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[4])
endfunction
function NJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[5])
endfunction
function OJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[6])
endfunction
function PJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[7])
endfunction
function QJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[8])
endfunction
function RJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[9])
endfunction
function SJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[10])
endfunction
function TJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[11])
endfunction
function UJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[12])
endfunction
function VJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[13])
endfunction
function WJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[14])
endfunction
function XJ takes nothing returns boolean
return(GetEnumUnit()==udg_xj[15])
endfunction
function YJ takes nothing returns boolean
return(GetEnumUnit()==udg_yj[1])
endfunction
function ZJ takes nothing returns boolean
return(GetEnumUnit()==udg_yj[2])
endfunction
function dK takes nothing returns nothing
call GroupRemoveUnitSimple(GetEnumUnit(),udg_i4)
call GroupRemoveUnitSimple(GetEnumUnit(),udg_I4)
if(yJ())then
call CreateNUnitsAtLoc(1,1162031160,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(zJ())then
call CreateNUnitsAtLoc(1,1162031410,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(AJ())then
call CreateNUnitsAtLoc(1,1211117641,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(aJ())then
call CreateNUnitsAtLoc(1,1211117620,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(BJ())then
call CreateNUnitsAtLoc(1,1211117619,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bJ())then
call CreateNUnitsAtLoc(1,1328558130,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(CJ())then
call CreateNUnitsAtLoc(1,1328558129,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(cJ())then
call CreateNUnitsAtLoc(1,1329803568,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(DJ())then
call CreateNUnitsAtLoc(1,1430466867,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(EJ())then
call CreateNUnitsAtLoc(1,1429221459,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(FJ())then
call CreateNUnitsAtLoc(1,1429221428,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(GJ())then
call CreateNUnitsAtLoc(1,1430466865,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(HJ())then
call CreateNUnitsAtLoc(1,1160785972,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(IJ())then
call CreateNUnitsAtLoc(1,1211117905,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(lJ())then
call CreateNUnitsAtLoc(1,1429221441,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(JJ())then
call CreateNUnitsAtLoc(1,1311780921,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(KJ())then
call CreateNUnitsAtLoc(1,1311780914,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(LJ())then
call CreateNUnitsAtLoc(1,1311780918,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(MJ())then
call CreateNUnitsAtLoc(1,1311780948,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(NJ())then
call CreateNUnitsAtLoc(1,1311780915,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(OJ())then
call CreateNUnitsAtLoc(1,1311780947,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(PJ())then
call CreateNUnitsAtLoc(1,1311780919,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(QJ())then
call CreateNUnitsAtLoc(1,1311780916,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(RJ())then
call CreateNUnitsAtLoc(1,1311780917,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(SJ())then
call CreateNUnitsAtLoc(1,1311780920,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(TJ())then
call CreateNUnitsAtLoc(1,1160785968,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(UJ())then
call CreateNUnitsAtLoc(1,1160785970,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(VJ())then
call CreateNUnitsAtLoc(1,1160785969,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(WJ())then
call CreateNUnitsAtLoc(1,1311780949,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(XJ())then
call CreateNUnitsAtLoc(1,1311780952,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(YJ())then
call CreateNUnitsAtLoc(1,1328558132,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(ZJ())then
call CreateNUnitsAtLoc(1,1429221433,ConvertedPlayer(GetForLoopIndexA()),udg_Kd,bj_UNIT_FACING)
else
call DoNothing()
endif
set udg_m[GetForLoopIndexA()]=GetLastCreatedUnit()
call RemoveUnit(GetEnumUnit())
endfunction
function eK takes nothing returns nothing
call SetPlayerUnitAvailableBJ(GetUnitTypeId(udg_m[GetForLoopIndexA()]),false,GetEnumPlayer())
endfunction
function fK takes nothing returns boolean
if(not(GetPlayerController(ConvertedPlayer(GetForLoopIndexA()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function gK takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_COMPUTER)
endfunction
function hK takes nothing returns boolean
if(not(GetAIDifficulty(GetEnumPlayer())==AI_DIFFICULTY_NORMAL))then
return false
endif
return true
endfunction
function iK takes nothing returns boolean
if(not(GetAIDifficulty(GetEnumPlayer())==AI_DIFFICULTY_INSANE))then
return false
endif
return true
endfunction
function jK takes nothing returns nothing
if(iK())then
call SetPlayerHandicapXPBJ(GetEnumPlayer(),175.00)
call AdjustPlayerStateBJ(1000,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
else
if(hK())then
call SetPlayerHandicapXPBJ(GetEnumPlayer(),125.00)
else
call DoNothing()
endif
endif
endfunction
function kK takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function mK takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function nK takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function oK takes nothing returns boolean
return GetBooleanAnd(mK(),nK())
endfunction
function pK takes nothing returns boolean
return GetBooleanAnd(kK(),oK())
endfunction
function qK takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1651732580)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894851)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=500))then
return false
endif
return true
endfunction
function rK takes nothing returns boolean
if(not qK())then
return false
endif
return true
endfunction
function sK takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895089)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895122)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895109)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894850)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=300))then
return false
endif
return true
endfunction
function tK takes nothing returns boolean
if(not sK())then
return false
endif
return true
endfunction
function uK takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894851)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1060))then
return false
endif
return true
endfunction
function vK takes nothing returns boolean
if(not uK())then
return false
endif
return true
endfunction
function wK takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895122)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895109)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894850)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1975))then
return false
endif
if(not(GetAIDifficulty(GetOwningPlayer(GetEnumUnit()))!=AI_DIFFICULTY_INSANE))then
return false
endif
return true
endfunction
function xK takes nothing returns boolean
if(not wK())then
return false
endif
return true
endfunction
function yK takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895122)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1975))then
return false
endif
if(not(GetAIDifficulty(GetOwningPlayer(GetEnumUnit()))==AI_DIFFICULTY_INSANE))then
return false
endif
if(not(MG(GetEnumUnit(),UNIT_TYPE_RANGED_ATTACKER)==true))then
return false
endif
return true
endfunction
function zK takes nothing returns boolean
if(not yK())then
return false
endif
return true
endfunction
function AK takes nothing returns boolean
if(not(UnitInventoryCount(GetEnumUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895122)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227895109)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894850)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1850))then
return false
endif
if(not(GetAIDifficulty(GetOwningPlayer(GetEnumUnit()))==AI_DIFFICULTY_INSANE))then
return false
endif
if(not(MG(GetEnumUnit(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
return true
endfunction
function aK takes nothing returns boolean
if(not AK())then
return false
endif
return true
endfunction
function BK takes nothing returns nothing
if(rK())then
call UnitAddItemByIdSwapped(1651732580,GetEnumUnit())
call AdjustPlayerStateBJ(-500,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(tK())then
call UnitAddItemByIdSwapped(1227895089,GetEnumUnit())
call AdjustPlayerStateBJ(-300,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(vK())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),1651732580))
call UnitAddItemByIdSwapped(1227894851,GetEnumUnit())
call AdjustPlayerStateBJ(-1060,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(xK())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),1227895089))
call UnitAddItemByIdSwapped(1227895122,GetEnumUnit())
call AdjustPlayerStateBJ(-1975,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(zK())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),1227895089))
call UnitAddItemByIdSwapped(1227895122,GetEnumUnit())
call AdjustPlayerStateBJ(-1975,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(aK())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),1227895089))
call UnitAddItemByIdSwapped(1227895109,GetEnumUnit())
call AdjustPlayerStateBJ(-1850,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endfunction
function bK takes nothing returns nothing
set udg_I4=udg_i4
call GroupRemoveGroup(g6(1432646245),udg_I4)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(fK())then
set udg_Kd=GetRectCenter(udg_to)
set udg_Jd=u6(1,udg_I4)
call ForGroupBJ(udg_Jd,function dK)
call RemoveLocation(udg_Kd)
set udg_Kd=null
call DestroyGroup(udg_Jd)
set udg_Jd=null
call RemoveUnitFromAllStock(GetUnitTypeId(udg_m[GetForLoopIndexA()]))
set udg_E[GetForLoopIndexA()]=((udg_D[GetForLoopIndexA()]+GetUnitName(udg_m[GetForLoopIndexA()]))+"|r")
call SetPlayerName(ConvertedPlayer(GetForLoopIndexA()),GetUnitName(udg_m[GetForLoopIndexA()]))
call DisplayTimedTextToForce(s6(ConvertedPlayer(GetForLoopIndexA())),12.00,(udg_E[GetForLoopIndexA()]+(" has chosen "+GetHeroProperName(udg_m[GetForLoopIndexA()]))))
call TriggerExecute(udg_Ct)
call ForForce(GetPlayersAll(),function eK)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForForce(t6(Condition(function gK)),function jK)
set udg_Jd=YG(GetPlayableMapRect(),Condition(function pK))
call ForGroupBJ(udg_Jd,function BK)
call DestroyGroup(udg_Jd)
set udg_Jd=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function CK takes nothing returns nothing
set udg_ls=CreateTrigger()
call TriggerAddAction(udg_ls,function bK)
endfunction
function cK takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetTriggerUnit())<41))then
return false
endif
return true
endfunction
function DK takes nothing returns nothing
call SelectHeroSkill(GetTriggerUnit(),1093681969)
call SelectHeroSkill(GetTriggerUnit(),1093681970)
call SelectHeroSkill(GetTriggerUnit(),1093677892)
call SelectHeroSkill(GetTriggerUnit(),1093681971)
call SelectHeroSkill(GetTriggerUnit(),1093677899)
call SelectHeroSkill(GetTriggerUnit(),1093677363)
call SelectHeroSkill(GetTriggerUnit(),1093677364)
call SelectHeroSkill(GetTriggerUnit(),1093681742)
call SelectHeroSkill(GetTriggerUnit(),1093681744)
call SelectHeroSkill(GetTriggerUnit(),1093681745)
call SelectHeroSkill(GetTriggerUnit(),1093681473)
call SelectHeroSkill(GetTriggerUnit(),1093681478)
call SelectHeroSkill(GetTriggerUnit(),1093681465)
call SelectHeroSkill(GetTriggerUnit(),1093681477)
call SelectHeroSkill(GetTriggerUnit(),1093679438)
call SelectHeroSkill(GetTriggerUnit(),1093681479)
call SelectHeroSkill(GetTriggerUnit(),1093679449)
call SelectHeroSkill(GetTriggerUnit(),1093679448)
call SelectHeroSkill(GetTriggerUnit(),1093679450)
call SelectHeroSkill(GetTriggerUnit(),1093679435)
call SelectHeroSkill(GetTriggerUnit(),1093679427)
call SelectHeroSkill(GetTriggerUnit(),1093679437)
call SelectHeroSkill(GetTriggerUnit(),1093677395)
call SelectHeroSkill(GetTriggerUnit(),1093679432)
call SelectHeroSkill(GetTriggerUnit(),1093679429)
call SelectHeroSkill(GetTriggerUnit(),1093679433)
call SelectHeroSkill(GetTriggerUnit(),1093679430)
call SelectHeroSkill(GetTriggerUnit(),1093679425)
call SelectHeroSkill(GetTriggerUnit(),1093679428)
call SelectHeroSkill(GetTriggerUnit(),1093678935)
call SelectHeroSkill(GetTriggerUnit(),1093679416)
call SelectHeroSkill(GetTriggerUnit(),1093679409)
call SelectHeroSkill(GetTriggerUnit(),1093679193)
call SelectHeroSkill(GetTriggerUnit(),1093679411)
call SelectHeroSkill(GetTriggerUnit(),1093679412)
call SelectHeroSkill(GetTriggerUnit(),1093679189)
call SelectHeroSkill(GetTriggerUnit(),1093679413)
call SelectHeroSkill(GetTriggerUnit(),1093679414)
call SelectHeroSkill(GetTriggerUnit(),1093679190)
call SelectHeroSkill(GetTriggerUnit(),1093678923)
call SelectHeroSkill(GetTriggerUnit(),1093678643)
call SelectHeroSkill(GetTriggerUnit(),1093681488)
call SelectHeroSkill(GetTriggerUnit(),1093678929)
call SelectHeroSkill(GetTriggerUnit(),1093678926)
call SelectHeroSkill(GetTriggerUnit(),1093678669)
call SelectHeroSkill(GetTriggerUnit(),1093678905)
call SelectHeroSkill(GetTriggerUnit(),1093678916)
call SelectHeroSkill(GetTriggerUnit(),1093678165)
call SelectHeroSkill(GetTriggerUnit(),1093678386)
call SelectHeroSkill(GetTriggerUnit(),1093678148)
call SelectHeroSkill(GetTriggerUnit(),1093681486)
call SelectHeroSkill(GetTriggerUnit(),1093678642)
call SelectHeroSkill(GetTriggerUnit(),1093678644)
call SelectHeroSkill(GetTriggerUnit(),1093678659)
call SelectHeroSkill(GetTriggerUnit(),1093677906)
call SelectHeroSkill(GetTriggerUnit(),1093677907)
call SelectHeroSkill(GetTriggerUnit(),1093677908)
call SelectHeroSkill(GetTriggerUnit(),1093679178)
call SelectHeroSkill(GetTriggerUnit(),1093678131)
call SelectHeroSkill(GetTriggerUnit(),1093678162)
call SelectHeroSkill(GetTriggerUnit(),1093681494)
call SelectHeroSkill(GetTriggerUnit(),1093678167)
call SelectHeroSkill(GetTriggerUnit(),1093678168)
call SelectHeroSkill(GetTriggerUnit(),1093681492)
call SelectHeroSkill(GetTriggerUnit(),1093678149)
call SelectHeroSkill(GetTriggerUnit(),1093681497)
call SelectHeroSkill(GetTriggerUnit(),1093677914)
call SelectHeroSkill(GetTriggerUnit(),1093678154)
call SelectHeroSkill(GetTriggerUnit(),1093678155)
call SelectHeroSkill(GetTriggerUnit(),1093678420)
call SelectHeroSkill(GetTriggerUnit(),1093678421)
call SelectHeroSkill(GetTriggerUnit(),1093678422)
call SelectHeroSkill(GetTriggerUnit(),1093678424)
call SelectHeroSkill(GetTriggerUnit(),1093678640)
call SelectHeroSkill(GetTriggerUnit(),1093677112)
call SelectHeroSkill(GetTriggerUnit(),1093681489)
call SelectHeroSkill(GetTriggerUnit(),1093677898)
call SelectHeroSkill(GetTriggerUnit(),1093678145)
call SelectHeroSkill(GetTriggerUnit(),1093677123)
call SelectHeroSkill(GetTriggerUnit(),1093677145)
call SelectHeroSkill(GetTriggerUnit(),1093677360)
call SelectHeroSkill(GetTriggerUnit(),1093677636)
call SelectHeroSkill(GetTriggerUnit(),1093677635)
call SelectHeroSkill(GetTriggerUnit(),1093677379)
call SelectHeroSkill(GetTriggerUnit(),1093677382)
call SelectHeroSkill(GetTriggerUnit(),1093678662)
call SelectHeroSkill(GetTriggerUnit(),1093677384)
call SelectHeroSkill(GetTriggerUnit(),1093677386)
call SelectHeroSkill(GetTriggerUnit(),1093677108)
call SelectHeroSkill(GetTriggerUnit(),1093679153)
call SelectHeroSkill(GetTriggerUnit(),1093677110)
call SelectHeroSkill(GetTriggerUnit(),1093677129)
call SelectHeroSkill(GetTriggerUnit(),1093677107)
call SelectHeroSkill(GetTriggerUnit(),1093677392)
call SelectHeroSkill(GetTriggerUnit(),1093677389)
call SelectHeroSkill(GetTriggerUnit(),1093681485)
call SelectHeroSkill(GetTriggerUnit(),1093678166)
call SelectHeroSkill(GetTriggerUnit(),1093677394)
call SelectHeroSkill(GetTriggerUnit(),1093681484)
call SelectHeroSkill(GetTriggerUnit(),1093677140)
call SelectHeroSkill(GetTriggerUnit(),1093678384)
call SelectHeroSkill(GetTriggerUnit(),1093677143)
call SelectHeroSkill(GetTriggerUnit(),1093677144)
call SelectHeroSkill(GetTriggerUnit(),1093677146)
call SelectHeroSkill(GetTriggerUnit(),1093677130)
call SelectHeroSkill(GetTriggerUnit(),1093677643)
call SelectHeroSkill(GetTriggerUnit(),1093677645)
call SelectHeroSkill(GetTriggerUnit(),1093677648)
call SelectHeroSkill(GetTriggerUnit(),1093677649)
call SelectHeroSkill(GetTriggerUnit(),1093681737)
call SelectHeroSkill(GetTriggerUnit(),1093677656)
call SelectHeroSkill(GetTriggerUnit(),1093677657)
call SelectHeroSkill(GetTriggerUnit(),1093677653)
call SelectHeroSkill(GetTriggerUnit(),1093678919)
call SelectHeroSkill(GetTriggerUnit(),1093677128)
call SelectHeroSkill(GetTriggerUnit(),1093677133)
call SelectHeroSkill(GetTriggerUnit(),1093681740)
call SelectHeroSkill(GetTriggerUnit(),1093677137)
call SelectHeroSkill(GetTriggerUnit(),1093677135)
call SelectHeroSkill(GetTriggerUnit(),1093677879)
call SelectHeroSkill(GetTriggerUnit(),1093677139)
call SelectHeroSkill(GetTriggerUnit(),1093677398)
call SelectHeroSkill(GetTriggerUnit(),1093677617)
call SelectHeroSkill(GetTriggerUnit(),1093679184)
call SelectHeroSkill(GetTriggerUnit(),1093677873)
call SelectHeroSkill(GetTriggerUnit(),1093679174)
call SelectHeroSkill(GetTriggerUnit(),1093677880)
call SelectHeroSkill(GetTriggerUnit(),1093677876)
call SelectHeroSkill(GetTriggerUnit(),1093677875)
call SelectHeroSkill(GetTriggerUnit(),1093677889)
call SelectHeroSkill(GetTriggerUnit(),1093678136)
call SelectHeroSkill(GetTriggerUnit(),1093677877)
call SelectHeroSkill(GetTriggerUnit(),1093677904)
call SelectHeroSkill(GetTriggerUnit(),1093678146)
call SelectHeroSkill(GetTriggerUnit(),1093678147)
call SelectHeroSkill(GetTriggerUnit(),1093679169)
call SelectHeroSkill(GetTriggerUnit(),1093677368)
call SelectHeroSkill(GetTriggerUnit(),1093677912)
call SelectHeroSkill(GetTriggerUnit(),1093677900)
call SelectHeroSkill(GetTriggerUnit(),1093678169)
call SelectHeroSkill(GetTriggerUnit(),1093678389)
call SelectHeroSkill(GetTriggerUnit(),1093678393)
call SelectHeroSkill(GetTriggerUnit(),1093681480)
call SelectHeroSkill(GetTriggerUnit(),1093678405)
call SelectHeroSkill(GetTriggerUnit(),1093678408)
call SelectHeroSkill(GetTriggerUnit(),1093681751)
call SelectHeroSkill(GetTriggerUnit(),1093682009)
call SelectHeroSkill(GetTriggerUnit(),1093681752)
call SelectHeroSkill(GetTriggerUnit(),1093681753)
call SelectHeroSkill(GetTriggerUnit(),1093678925)
call SelectHeroSkill(GetTriggerUnit(),1093678416)
call SelectHeroSkill(GetTriggerUnit(),1093678918)
call SelectHeroSkill(GetTriggerUnit(),1093681972)
call SelectHeroSkill(GetTriggerUnit(),1093681977)
call SelectHeroSkill(GetTriggerUnit(),1093681750)
endfunction
function EK takes nothing returns nothing
set udg_Js=CreateTrigger()
call DisableTrigger(udg_Js)
call TriggerRegisterAnyUnitEventBJ(udg_Js,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_Js,Condition(function cK))
call TriggerAddAction(udg_Js,function DK)
endfunction
function FK takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetTriggerUnit())>7))then
return false
endif
return true
endfunction
function GK takes nothing returns boolean
if(not FK())then
return false
endif
return true
endfunction
function HK takes nothing returns boolean
if(not(GetAIDifficulty(GetOwningPlayer(GetTriggerUnit()))==AI_DIFFICULTY_INSANE))then
return false
endif
return true
endfunction
function IK takes nothing returns boolean
if(not(GetAIDifficulty(GetOwningPlayer(GetTriggerUnit()))==AI_DIFFICULTY_NORMAL))then
return false
endif
return true
endfunction
function lK takes nothing returns nothing
if(IK())then
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,1)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,1)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,1)
else
if(HK())then
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endif
endfunction
function JK takes nothing returns nothing
set udg_Ks=CreateTrigger()
call DisableTrigger(udg_Ks)
call TriggerRegisterAnyUnitEventBJ(udg_Ks,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_Ks,Condition(function GK))
call TriggerAddAction(udg_Ks,function lK)
endfunction
function KK takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1110454835)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1110454834)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1112560453)==false))then
return false
endif
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetTriggerUnit()))==true))then
return false
endif
return true
endfunction
function LK takes nothing returns boolean
if(not KK())then
return false
endif
return true
endfunction
function MK takes nothing returns nothing
call IssueTargetOrderBJ(GetTriggerUnit(),"thunderbolt",GetAttacker())
call IssueTargetOrderBJ(GetTriggerUnit(),"invisibility",GetAttacker())
call IssueTargetOrderBJ(GetTriggerUnit(),"cripple",GetAttacker())
call IssueTargetOrderBJ(GetTriggerUnit(),"entanglingroots",GetAttacker())
call IssueTargetOrderBJ(GetTriggerUnit(),"drunkenhaze",GetAttacker())
call IssueTargetOrderBJ(GetTriggerUnit(),"drain",GetAttacker())
call IssueTargetOrderBJ(GetTriggerUnit(),"magicleash",GetAttacker())
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.25)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function NK takes nothing returns nothing
set udg_Ls=CreateTrigger()
call DisableTrigger(udg_Ls)
call TriggerRegisterAnyUnitEventBJ(udg_Ls,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_Ls,Condition(function LK))
call TriggerAddAction(udg_Ls,function MK)
endfunction
function OK takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1110454835)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1110454834)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1112560453)==false))then
return false
endif
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetTriggerUnit()))==true))then
return false
endif
return true
endfunction
function PK takes nothing returns boolean
if(not OK())then
return false
endif
return true
endfunction
function QK takes nothing returns nothing
call TriggerSleepAction(0.26)
call IssueImmediateOrderBJ(GetTriggerUnit(),"fanofknives")
call IssueImmediateOrderBJ(GetTriggerUnit(),"starfall")
call IssueImmediateOrderBJ(GetTriggerUnit(),"stomp")
call IssueImmediateOrderBJ(GetTriggerUnit(),"windwalk")
call IssueImmediateOrderBJ(GetTriggerUnit(),"berserk")
call IssueImmediateOrderBJ(GetTriggerUnit(),"divineshield")
call IssueImmediateOrderBJ(GetTriggerUnit(),"thunderclap")
call IssueImmediateOrderBJ(GetTriggerUnit(),"waterelemental")
call IssueImmediateOrderBJ(GetTriggerUnit(),"battleroar")
call IssueImmediateOrderBJ(GetTriggerUnit(),"chemicalrage")
call IssueImmediateOrderBJ(GetTriggerUnit(),"locustswarm")
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.25)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function RK takes nothing returns nothing
set udg_Ms=CreateTrigger()
call DisableTrigger(udg_Ms)
call TriggerRegisterAnyUnitEventBJ(udg_Ms,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_Ms,Condition(function PK))
call TriggerAddAction(udg_Ms,function QK)
endfunction
function SK takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1110454835)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1110454834)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1112560453)==false))then
return false
endif
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetTriggerUnit()))==true))then
return false
endif
return true
endfunction
function TK takes nothing returns boolean
if(not SK())then
return false
endif
return true
endfunction
function UK takes nothing returns nothing
call TriggerSleepAction(1.00)
set udg_Ld=GetUnitLoc(GetAttacker())
call IssuePointOrderLocBJ(GetTriggerUnit(),"stampede",udg_Ld)
call IssuePointOrderLocBJ(GetTriggerUnit(),"breathoffire",udg_Ld)
call IssuePointOrderLocBJ(GetTriggerUnit(),"carrionswarm",udg_Ld)
call IssuePointOrderLocBJ(GetTriggerUnit(),"shockwave",udg_Ld)
call IssuePointOrderLocBJ(GetTriggerUnit(),"earthquake",udg_Ld)
call IssuePointOrderLocBJ(GetTriggerUnit(),"blizzard",udg_Ld)
call IssuePointOrderLocBJ(GetTriggerUnit(),"flamestrike",udg_Ld)
call IssuePointOrderLocBJ(GetTriggerUnit(),"silence",udg_Ld)
call IssuePointOrderLocBJ(GetTriggerUnit(),"deathanddecay",udg_Ld)
call IssuePointOrderLocBJ(GetTriggerUnit(),"dreadlordinferno",udg_Ld)
call RemoveLocation(udg_Ld)
set udg_Ld=null
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.25)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function VK takes nothing returns nothing
set udg_Ns=CreateTrigger()
call DisableTrigger(udg_Ns)
call TriggerRegisterAnyUnitEventBJ(udg_Ns,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_Ns,Condition(function TK))
call TriggerAddAction(udg_Ns,function UK)
endfunction
function WK takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=2))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1651732580)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894851)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=500))then
return false
endif
return true
endfunction
function XK takes nothing returns boolean
if(not WK())then
return false
endif
return true
endfunction
function YK takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=2))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895089)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895122)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895109)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894850)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=300))then
return false
endif
return true
endfunction
function ZK takes nothing returns boolean
if(not YK())then
return false
endif
return true
endfunction
function dL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=4))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894851)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1060))then
return false
endif
return true
endfunction
function eL takes nothing returns boolean
if(not dL())then
return false
endif
return true
endfunction
function fL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=6))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895122)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895109)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894850)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1975))then
return false
endif
if(not(GetAIDifficulty(GetOwningPlayer(GetDyingUnit()))!=AI_DIFFICULTY_INSANE))then
return false
endif
return true
endfunction
function gL takes nothing returns boolean
if(not fL())then
return false
endif
return true
endfunction
function hL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=6))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895122)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1975))then
return false
endif
if(not(GetAIDifficulty(GetOwningPlayer(GetDyingUnit()))==AI_DIFFICULTY_INSANE))then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_RANGED_ATTACKER)==true))then
return false
endif
return true
endfunction
function iL takes nothing returns boolean
if(not hL())then
return false
endif
return true
endfunction
function jL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=6))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895122)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895109)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894850)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1850))then
return false
endif
if(not(GetAIDifficulty(GetOwningPlayer(GetDyingUnit()))==AI_DIFFICULTY_INSANE))then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
return true
endfunction
function kL takes nothing returns boolean
if(not jL())then
return false
endif
return true
endfunction
function mL takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function nL takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetDyingUnit()))==true)
endfunction
function oL takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetFilterUnit(),1227895128)==true)
endfunction
function pL takes nothing returns boolean
return GetBooleanAnd(nL(),oL())
endfunction
function qL takes nothing returns boolean
return GetBooleanAnd(mL(),pL())
endfunction
function rL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=8))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895128)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894861)==false))then
return false
endif
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function qL)))==true))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=1500))then
return false
endif
return true
endfunction
function sL takes nothing returns boolean
if(not rL())then
return false
endif
return true
endfunction
function tL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=13))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894832)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895125)==false))then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=7800))then
return false
endif
return true
endfunction
function uL takes nothing returns boolean
if(not tL())then
return false
endif
return true
endfunction
function vL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=13))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894836)==false))then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_RANGED_ATTACKER)==true))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=6000))then
return false
endif
return true
endfunction
function wL takes nothing returns boolean
if(not vL())then
return false
endif
return true
endfunction
function xL takes nothing returns boolean
if(not(GetRandomInt(1,100)>60))then
return false
endif
return true
endfunction
function yL takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895107)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894862)==false))then
return false
endif
return true
endfunction
function zL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=18))then
return false
endif
if(not yL())then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=5000))then
return false
endif
return true
endfunction
function AL takes nothing returns boolean
if(not zL())then
return false
endif
return true
endfunction
function aL takes nothing returns boolean
if(not(GetRandomInt(1,100)>30))then
return false
endif
return true
endfunction
function BL takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894850)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894839)==false))then
return false
endif
return true
endfunction
function bL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=20))then
return false
endif
if(not BL())then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_RANGED_ATTACKER)==true))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=7000))then
return false
endif
return true
endfunction
function CL takes nothing returns boolean
if(not bL())then
return false
endif
return true
endfunction
function cL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=20))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895122)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895109)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894850)==false))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=5000))then
return false
endif
if(not(GetAIDifficulty(GetOwningPlayer(GetDyingUnit()))==AI_DIFFICULTY_INSANE))then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
return true
endfunction
function DL takes nothing returns boolean
if(not cL())then
return false
endif
return true
endfunction
function EL takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function FL takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetDyingUnit()))==true)
endfunction
function GL takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetFilterUnit(),1227894861)==true)
endfunction
function HL takes nothing returns boolean
return GetBooleanAnd(FL(),GL())
endfunction
function IL takes nothing returns boolean
return GetBooleanAnd(EL(),HL())
endfunction
function lL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=24))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894861)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895128)==false))then
return false
endif
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function IL)))==true))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=5500))then
return false
endif
return true
endfunction
function JL takes nothing returns boolean
if(not lL())then
return false
endif
return true
endfunction
function KL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=30))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227894832)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895125)==false))then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=13200))then
return false
endif
return true
endfunction
function LL takes nothing returns boolean
if(not KL())then
return false
endif
return true
endfunction
function ML takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=30))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895126)==false))then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_RANGED_ATTACKER)==true))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=22000))then
return false
endif
return true
endfunction
function NL takes nothing returns boolean
if(not ML())then
return false
endif
return true
endfunction
function OL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=41))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895126)==false))then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=22000))then
return false
endif
return true
endfunction
function PL takes nothing returns boolean
if(not OL())then
return false
endif
return true
endfunction
function QL takes nothing returns boolean
if(not(UnitInventoryCount(GetDyingUnit())!=6))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetHeroLevel(GetDyingUnit())>=41))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetDyingUnit(),1227895125)==false))then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_RANGED_ATTACKER)==true))then
return false
endif
if(not(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)>=20000))then
return false
endif
return true
endfunction
function RL takes nothing returns boolean
if(not QL())then
return false
endif
return true
endfunction
function SL takes nothing returns nothing
if(XK())then
call UnitAddItemByIdSwapped(1651732580,GetDyingUnit())
call AdjustPlayerStateBJ(-500,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(ZK())then
call UnitAddItemByIdSwapped(1227895089,GetDyingUnit())
call AdjustPlayerStateBJ(-300,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
if(eL())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetDyingUnit(),1651732580))
call UnitAddItemByIdSwapped(1227894851,GetDyingUnit())
call AdjustPlayerStateBJ(-1060,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(gL())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetDyingUnit(),1227895089))
call UnitAddItemByIdSwapped(1227895122,GetDyingUnit())
call AdjustPlayerStateBJ(-1975,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(iL())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetDyingUnit(),1227895089))
call UnitAddItemByIdSwapped(1227895122,GetDyingUnit())
call AdjustPlayerStateBJ(-1975,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(kL())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetDyingUnit(),1227895089))
call UnitAddItemByIdSwapped(1227895109,GetDyingUnit())
call AdjustPlayerStateBJ(-1850,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(sL())then
call UnitAddItemByIdSwapped(1227895128,GetDyingUnit())
call AdjustPlayerStateBJ(-1500,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(uL())then
call UnitAddItemByIdSwapped(1227894832,GetDyingUnit())
call AdjustPlayerStateBJ(-7800,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(wL())then
call UnitAddItemByIdSwapped(1227894836,GetDyingUnit())
call AdjustPlayerStateBJ(-6000,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(AL())then
if(xL())then
call UnitAddItemByIdSwapped(1227895107,GetDyingUnit())
else
call UnitAddItemByIdSwapped(1227894862,GetDyingUnit())
endif
call AdjustPlayerStateBJ(-5000,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(CL())then
if(aL())then
call UnitAddItemByIdSwapped(1227894839,GetDyingUnit())
else
call UnitAddItemByIdSwapped(1227894850,GetDyingUnit())
endif
call AdjustPlayerStateBJ(-7000,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(DL())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetDyingUnit(),1227895109))
call UnitAddItemByIdSwapped(1227894850,GetDyingUnit())
call AdjustPlayerStateBJ(-5000,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(JL())then
call UnitAddItemByIdSwapped(1227894861,GetDyingUnit())
call AdjustPlayerStateBJ(-5500,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(LL())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetDyingUnit(),1227894832))
call UnitAddItemByIdSwapped(1227895125,GetDyingUnit())
call AdjustPlayerStateBJ(-13200,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(NL())then
call UnitAddItemByIdSwapped(1227895126,GetDyingUnit())
call AdjustPlayerStateBJ(-22000,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(PL())then
call UnitAddItemByIdSwapped(1227895126,GetDyingUnit())
call AdjustPlayerStateBJ(-22000,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(RL())then
call UnitAddItemByIdSwapped(1227895125,GetDyingUnit())
call AdjustPlayerStateBJ(-20000,GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endfunction
function TL takes nothing returns nothing
set udg_Os=CreateTrigger()
call DisableTrigger(udg_Os)
call TriggerAddAction(udg_Os,function SL)
endfunction
function UL takes nothing returns boolean
if(not(IsTriggerEnabled(udg_nt)==false))then
return false
endif
return true
endfunction
function VL takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function WL takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function XL takes nothing returns boolean
return GetBooleanAnd(VL(),WL())
endfunction
function YL takes nothing returns boolean
if(not(GetUnitLifePercent(GetEnumUnit())>65.00))then
return false
endif
return true
endfunction
function ZL takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"Error: 345!")
endfunction
function dM takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function eM takes nothing returns boolean
if(not(GetUnitLifePercent(GetEnumUnit())<65.00))then
return false
endif
return true
endfunction
function fM takes nothing returns nothing
if(eM())then
set udg_Md=udg_j9
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_Md)
call RemoveLocation(udg_Md)
set udg_Md=null
if(dM())then
call ForForce(GetPlayersAll(),function ZL)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
if(YL())then
set udg_Md=GetRandomLocInRect(udg_sn)
call IssuePointOrderLocBJ(GetEnumUnit(),"patrol",udg_Md)
call RemoveLocation(udg_Md)
set udg_Md=null
else
call DoNothing()
endif
endif
endfunction
function gM takes nothing returns nothing
set udg_R8=YG(GetPlayableMapRect(),Condition(function XL))
call ForGroupBJ(udg_R8,function fM)
call DestroyGroup(udg_R8)
set udg_R8=null
endfunction
function hM takes nothing returns nothing
set udg_Ps=CreateTrigger()
call DisableTrigger(udg_Ps)
call TriggerRegisterTimerEventPeriodic(udg_Ps,14.00)
call TriggerAddCondition(udg_Ps,Condition(function UL))
call TriggerAddAction(udg_Ps,function gM)
endfunction
function iM takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(udg_z==false))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_e)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetAttacker()),udg_f)==true))then
return false
endif
return true
endfunction
function jM takes nothing returns boolean
if(not iM())then
return false
endif
return true
endfunction
function kM takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function mM takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function nM takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function oM takes nothing returns boolean
return GetBooleanAnd(mM(),nM())
endfunction
function pM takes nothing returns boolean
return GetBooleanAnd(kM(),oM())
endfunction
function qM takes nothing returns boolean
if(not(GetUnitLifePercent(GetEnumUnit())>65.00))then
return false
endif
return true
endfunction
function rM takes nothing returns boolean
if(not(GetUnitLifePercent(GetEnumUnit())<65.00))then
return false
endif
return true
endfunction
function sM takes nothing returns nothing
if(rM())then
call DoNothing()
else
if(qM())then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_Od[1])
else
call DoNothing()
endif
endif
endfunction
function tM takes nothing returns nothing
set udg_Od[1]=GetUnitLoc(GetAttacker())
set udg_Nd[1]=YG(GetPlayableMapRect(),Condition(function pM))
call ForGroupBJ(udg_Nd[1],function sM)
call RemoveLocation(udg_Od[1])
set udg_Od[1]=null
call DestroyGroup(udg_Nd[1])
set udg_Nd[1]=null
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(5.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function uM takes nothing returns nothing
set udg_Qs=CreateTrigger()
call DisableTrigger(udg_Qs)
call TriggerRegisterAnyUnitEventBJ(udg_Qs,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_Qs,Condition(function jM))
call TriggerAddAction(udg_Qs,function tM)
endfunction
function vM takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(udg_z==false))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_f)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetAttacker()),udg_e)==true))then
return false
endif
return true
endfunction
function wM takes nothing returns boolean
if(not vM())then
return false
endif
return true
endfunction
function xM takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function yM takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function zM takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function AM takes nothing returns boolean
return GetBooleanAnd(yM(),zM())
endfunction
function aM takes nothing returns boolean
return GetBooleanAnd(xM(),AM())
endfunction
function BM takes nothing returns boolean
if(not(GetUnitLifePercent(GetEnumUnit())>65.00))then
return false
endif
return true
endfunction
function bM takes nothing returns boolean
if(not(GetUnitLifePercent(GetEnumUnit())<65.00))then
return false
endif
return true
endfunction
function CM takes nothing returns nothing
if(bM())then
call DoNothing()
else
if(BM())then
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_Od[2])
else
call DoNothing()
endif
endif
endfunction
function cM takes nothing returns nothing
set udg_Od[2]=GetUnitLoc(GetAttacker())
set udg_Nd[2]=YG(GetPlayableMapRect(),Condition(function aM))
call ForGroupBJ(udg_Nd[2],function CM)
call RemoveLocation(udg_Od[2])
set udg_Od[2]=null
call DestroyGroup(udg_Nd[2])
set udg_Nd[2]=null
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(5.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function DM takes nothing returns nothing
set udg_Rs=CreateTrigger()
call DisableTrigger(udg_Rs)
call TriggerRegisterAnyUnitEventBJ(udg_Rs,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_Rs,Condition(function wM))
call TriggerAddAction(udg_Rs,function cM)
endfunction
function EM takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_f)==true))then
return false
endif
return true
endfunction
function FM takes nothing returns boolean
if(not EM())then
return false
endif
return true
endfunction
function GM takes nothing returns nothing
set udg_Qd[1]=GetTriggerUnit()
set udg_Pd[1]=PG(GetUnitLoc(udg_Qd[1]),400.00,AngleBetweenPoints(GetUnitLoc(udg_Qd[1]),GetUnitLoc(udg_mG)))
call IssuePointOrderLocBJ(udg_Qd[1],"move",udg_Pd[1])
call RemoveLocation(udg_Pd[1])
set udg_Pd[1]=null
set udg_Qd[1]=null
endfunction
function HM takes nothing returns nothing
set udg_Ss=CreateTrigger()
call DisableTrigger(udg_Ss)
call TriggerRegisterEnterRectSimple(udg_Ss,udg_jo)
call TriggerAddCondition(udg_Ss,Condition(function FM))
call TriggerAddAction(udg_Ss,function GM)
endfunction
function IM takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_e)==true))then
return false
endif
return true
endfunction
function lM takes nothing returns boolean
if(not IM())then
return false
endif
return true
endfunction
function JM takes nothing returns nothing
set udg_Qd[2]=GetTriggerUnit()
set udg_Pd[2]=PG(GetUnitLoc(udg_Qd[2]),400.00,AngleBetweenPoints(GetUnitLoc(udg_Qd[2]),GetUnitLoc(udg_mG)))
call IssuePointOrderLocBJ(udg_Qd[2],"move",udg_Pd[2])
call RemoveLocation(udg_Pd[2])
set udg_Pd[2]=null
set udg_Qd[2]=null
endfunction
function KM takes nothing returns nothing
set udg_Ts=CreateTrigger()
call DisableTrigger(udg_Ts)
call TriggerRegisterEnterRectSimple(udg_Ts,udg_ko)
call TriggerAddCondition(udg_Ts,Condition(function lM))
call TriggerAddAction(udg_Ts,function JM)
endfunction
function LM takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==1)
endfunction
function MM takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function NM takes nothing returns boolean
return GetBooleanAnd(LM(),MM())
endfunction
function OM takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==1)
endfunction
function PM takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function QM takes nothing returns boolean
return GetBooleanAnd(OM(),PM())
endfunction
function RM takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==2)
endfunction
function SM takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function TM takes nothing returns boolean
return GetBooleanAnd(RM(),SM())
endfunction
function UM takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==2)
endfunction
function VM takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function WM takes nothing returns boolean
return GetBooleanAnd(UM(),VM())
endfunction
function XM takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==3)
endfunction
function YM takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function ZM takes nothing returns boolean
return GetBooleanAnd(XM(),YM())
endfunction
function dN takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==3)
endfunction
function eN takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function fN takes nothing returns boolean
return GetBooleanAnd(dN(),eN())
endfunction
function gN takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==4)
endfunction
function hN takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function iN takes nothing returns boolean
return GetBooleanAnd(gN(),hN())
endfunction
function jN takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==4)
endfunction
function kN takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function mN takes nothing returns boolean
return GetBooleanAnd(jN(),kN())
endfunction
function nN takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==5)
endfunction
function oN takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function pN takes nothing returns boolean
return GetBooleanAnd(nN(),oN())
endfunction
function qN takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==5)
endfunction
function rN takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function sN takes nothing returns boolean
return GetBooleanAnd(qN(),rN())
endfunction
function tN takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==6)
endfunction
function uN takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function vN takes nothing returns boolean
return GetBooleanAnd(tN(),uN())
endfunction
function wN takes nothing returns boolean
return(udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==6)
endfunction
function xN takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function yN takes nothing returns boolean
return GetBooleanAnd(wN(),xN())
endfunction
function zN takes nothing returns boolean
if((udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==7))then
return true
endif
if((udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==8))then
return true
endif
return false
endfunction
function AN takes nothing returns boolean
if(not zN())then
return false
endif
return true
endfunction
function aN takes nothing returns nothing
set udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=GetRandomInt(1,8)
if(NM())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_dG)
else
call DoNothing()
endif
if(QM())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_ZF)
else
call DoNothing()
endif
if(TM())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_eG)
else
call DoNothing()
endif
if(WM())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_YF)
else
call DoNothing()
endif
if(ZM())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_fG)
else
call DoNothing()
endif
if(fN())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_WF)
else
call DoNothing()
endif
if(iN())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_fG)
else
call DoNothing()
endif
if(mN())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_WF)
else
call DoNothing()
endif
if(pN())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_hG)
else
call DoNothing()
endif
if(sN())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_UF)
else
call DoNothing()
endif
if(vN())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_iG)
else
call DoNothing()
endif
if(yN())then
call IssueTargetOrderBJ(GetDyingUnit(),"smart",udg_kG)
else
call DoNothing()
endif
if(AN())then
set udg_Rd=PG(udg_j9,900.00,AngleBetweenPoints(GetUnitLoc(GetDyingUnit()),udg_j9))
call IssuePointOrderLocBJ(GetDyingUnit(),"patrol",udg_Rd)
call RemoveLocation(udg_Rd)
set udg_Rd=null
else
call DoNothing()
endif
set udg_p4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=0
endfunction
function BN takes nothing returns nothing
set udg_Us=CreateTrigger()
call TriggerAddAction(udg_Us,function aN)
endfunction
function bN takes nothing returns boolean
if(not(MG(GetSoldUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function CN takes nothing returns nothing
call SetPlayerUnitAvailableBJ(GetUnitTypeId(GetSoldUnit()),false,GetEnumPlayer())
endfunction
function cN takes nothing returns boolean
if(not(udg_y4[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))]==true))then
return false
endif
return true
endfunction
function DN takes nothing returns boolean
if(not(udg_g4==false))then
return false
endif
return true
endfunction
function EN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1162031160)
endfunction
function FN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1162031410)
endfunction
function GN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1211117641)
endfunction
function HN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1211117620)
endfunction
function IN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1211117619)
endfunction
function lN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1328558130)
endfunction
function JN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1328558129)
endfunction
function KN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1329803568)
endfunction
function LN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1430466867)
endfunction
function MN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1429221459)
endfunction
function NN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1429221428)
endfunction
function ON takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1430466865)
endfunction
function PN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1160785972)
endfunction
function QN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1211117905)
endfunction
function RN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1429221441)
endfunction
function SN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780921)
endfunction
function TN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780914)
endfunction
function UN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780918)
endfunction
function VN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780948)
endfunction
function WN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780915)
endfunction
function XN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780947)
endfunction
function YN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780919)
endfunction
function ZN takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780916)
endfunction
function dO takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780917)
endfunction
function eO takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780920)
endfunction
function fO takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1160785968)
endfunction
function gO takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1160785970)
endfunction
function hO takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1160785969)
endfunction
function iO takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780949)
endfunction
function jO takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])==1311780952)
endfunction
function kO takes nothing returns nothing
call ForForce(GetPlayersAll(),function CN)
call RemoveUnitFromAllStock(GetUnitTypeId(GetSoldUnit()))
if(cN())then
call DisplayTimedTextToForce(s6(GetOwningPlayer(GetSoldUnit())),12.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))]+(" has repicked into "+GetHeroProperName(GetSoldUnit()))))
else
call DisplayTimedTextToForce(s6(GetOwningPlayer(GetSoldUnit())),12.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))]+(" has chosen "+GetHeroProperName(GetSoldUnit()))))
endif
if(DN())then
call AdjustPlayerStateBJ(300,GetOwningPlayer(GetSoldUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
set udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))]=GetSoldUnit()
if(EN())then
call GroupRemoveUnitSimple(udg_wj[1],udg_i4)
else
call DoNothing()
endif
if(FN())then
call GroupRemoveUnitSimple(udg_wj[2],udg_i4)
else
call DoNothing()
endif
if(GN())then
call GroupRemoveUnitSimple(udg_wj[3],udg_i4)
else
call DoNothing()
endif
if(HN())then
call GroupRemoveUnitSimple(udg_wj[4],udg_i4)
else
call DoNothing()
endif
if(IN())then
call GroupRemoveUnitSimple(udg_wj[5],udg_i4)
else
call DoNothing()
endif
if(lN())then
call GroupRemoveUnitSimple(udg_wj[6],udg_i4)
else
call DoNothing()
endif
if(JN())then
call GroupRemoveUnitSimple(udg_wj[7],udg_i4)
else
call DoNothing()
endif
if(KN())then
call GroupRemoveUnitSimple(udg_wj[8],udg_i4)
else
call DoNothing()
endif
if(LN())then
call GroupRemoveUnitSimple(udg_wj[9],udg_i4)
else
call DoNothing()
endif
if(MN())then
call GroupRemoveUnitSimple(udg_wj[10],udg_i4)
else
call DoNothing()
endif
if(NN())then
call GroupRemoveUnitSimple(udg_wj[11],udg_i4)
else
call DoNothing()
endif
if(ON())then
call GroupRemoveUnitSimple(udg_wj[12],udg_i4)
else
call DoNothing()
endif
if(PN())then
call GroupRemoveUnitSimple(udg_wj[13],udg_i4)
else
call DoNothing()
endif
if(QN())then
call GroupRemoveUnitSimple(udg_wj[14],udg_i4)
else
call DoNothing()
endif
if(RN())then
call GroupRemoveUnitSimple(udg_wj[15],udg_i4)
else
call DoNothing()
endif
if(SN())then
call GroupRemoveUnitSimple(udg_xj[1],udg_i4)
else
call DoNothing()
endif
if(TN())then
call GroupRemoveUnitSimple(udg_xj[2],udg_i4)
else
call DoNothing()
endif
if(UN())then
call GroupRemoveUnitSimple(udg_xj[3],udg_i4)
else
call DoNothing()
endif
if(VN())then
call GroupRemoveUnitSimple(udg_xj[4],udg_i4)
else
call DoNothing()
endif
if(WN())then
call GroupRemoveUnitSimple(udg_xj[5],udg_i4)
else
call DoNothing()
endif
if(XN())then
call GroupRemoveUnitSimple(udg_xj[6],udg_i4)
else
call DoNothing()
endif
if(YN())then
call GroupRemoveUnitSimple(udg_xj[7],udg_i4)
else
call DoNothing()
endif
if(ZN())then
call GroupRemoveUnitSimple(udg_xj[8],udg_i4)
else
call DoNothing()
endif
if(dO())then
call GroupRemoveUnitSimple(udg_xj[9],udg_i4)
else
call DoNothing()
endif
if(eO())then
call GroupRemoveUnitSimple(udg_xj[10],udg_i4)
else
call DoNothing()
endif
if(fO())then
call GroupRemoveUnitSimple(udg_xj[11],udg_i4)
else
call DoNothing()
endif
if(gO())then
call GroupRemoveUnitSimple(udg_xj[12],udg_i4)
else
call DoNothing()
endif
if(hO())then
call GroupRemoveUnitSimple(udg_xj[13],udg_i4)
else
call DoNothing()
endif
if(iO())then
call GroupRemoveUnitSimple(udg_xj[14],udg_i4)
else
call DoNothing()
endif
if(jO())then
call GroupRemoveUnitSimple(udg_xj[15],udg_i4)
else
call DoNothing()
endif
call SetPlayerUnitAvailableBJ(1211117905,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1429221441,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1328558130,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1429221459,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1211117619,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1328558129,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1211117620,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1160785972,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1162031160,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1430466867,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1162031410,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1429221428,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1430466865,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1329803568,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1313026099,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1211117641,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780914,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780915,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780916,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1160785969,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1160785968,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780919,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780917,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1160785970,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780918,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780920,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780921,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780948,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780947,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780949,false,GetOwningPlayer(GetSoldUnit()))
call SetPlayerUnitAvailableBJ(1311780952,false,GetOwningPlayer(GetSoldUnit()))
call UnitAddItemByIdSwapped(udg_B8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))],udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])
call UnitAddItemByIdSwapped(udg_b8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))],udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])
call UnitAddItemByIdSwapped(udg_C8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))],udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])
call UnitAddItemByIdSwapped(udg_c8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))],udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])
call UnitAddItemByIdSwapped(udg_D8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))],udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])
call UnitAddItemByIdSwapped(udg_E8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))],udg_m[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))])
set udg_B8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))]=1836019566
set udg_b8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))]=1836019566
set udg_C8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))]=1836019566
set udg_c8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))]=1836019566
set udg_D8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))]=1836019566
set udg_E8[GetConvertedPlayerId(GetOwningPlayer(GetSoldUnit()))]=1836019566
call TriggerExecute(udg_Ct)
endfunction
function mO takes nothing returns nothing
set udg_Vs=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Vs,EVENT_PLAYER_UNIT_SELL)
call TriggerAddCondition(udg_Vs,Condition(function bN))
call TriggerAddAction(udg_Vs,function kO)
endfunction
function nO takes nothing returns boolean
if(not(MG(GetEnteringUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function oO takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(GetEnteringUnit()),udg_f)==true))then
return false
endif
return true
endfunction
function pO takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(GetEnteringUnit()),udg_e)==true))then
return false
endif
return true
endfunction
function qO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1211117619))then
return false
endif
return true
endfunction
function rO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1211117641))then
return false
endif
return true
endfunction
function sO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1328558129))then
return false
endif
return true
endfunction
function tO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1211117620))then
return false
endif
return true
endfunction
function uO takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function vO takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"Error!")
endfunction
function wO takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function xO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1160785972))then
return false
endif
return true
endfunction
function yO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1162031160))then
return false
endif
return true
endfunction
function zO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1211117905))then
return false
endif
return true
endfunction
function AO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1430466867))then
return false
endif
return true
endfunction
function aO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1162031410))then
return false
endif
return true
endfunction
function BO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1429221428))then
return false
endif
return true
endfunction
function bO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1430466865))then
return false
endif
return true
endfunction
function CO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1329803568))then
return false
endif
return true
endfunction
function cO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1328558130))then
return false
endif
return true
endfunction
function DO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1429221459))then
return false
endif
return true
endfunction
function EO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1429221441))then
return false
endif
return true
endfunction
function FO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780921))then
return false
endif
return true
endfunction
function GO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780914))then
return false
endif
return true
endfunction
function HO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780949))then
return false
endif
return true
endfunction
function IO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780918))then
return false
endif
return true
endfunction
function lO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780948))then
return false
endif
return true
endfunction
function JO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780952))then
return false
endif
return true
endfunction
function KO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780915))then
return false
endif
return true
endfunction
function LO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780947))then
return false
endif
return true
endfunction
function MO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780919))then
return false
endif
return true
endfunction
function NO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780916))then
return false
endif
return true
endfunction
function OO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780917))then
return false
endif
return true
endfunction
function PO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1311780920))then
return false
endif
return true
endfunction
function QO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1160785968))then
return false
endif
return true
endfunction
function RO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1160785970))then
return false
endif
return true
endfunction
function SO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1160785969))then
return false
endif
return true
endfunction
function TO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1328558132))then
return false
endif
return true
endfunction
function UO takes nothing returns boolean
if(not(GetUnitTypeId(GetEnteringUnit())==1429221433))then
return false
endif
return true
endfunction
function VO takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function WO takes nothing returns nothing
if(pO())then
set udg_Sd=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnteringUnit(),udg_Sd,GetRandomDirectionDeg())
call RemoveLocation(udg_Sd)
set udg_Sd=null
else
if(oO())then
set udg_Sd=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnteringUnit(),udg_Sd,GetRandomDirectionDeg())
call RemoveLocation(udg_Sd)
set udg_Sd=null
else
call DoNothing()
endif
endif
call SelectUnitForPlayerSingle(GetEnteringUnit(),GetOwningPlayer(GetEnteringUnit()))
set udg_Sd=GetUnitLoc(GetEnteringUnit())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),udg_Sd,0.00)
call RemoveLocation(udg_Sd)
set udg_Sd=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(qO())then
set udg_hj=GetEnteringUnit()
call TriggerExecute(udg_ka)
else
call DoNothing()
endif
if(rO())then
set udg_ij=GetEnteringUnit()
call TriggerExecute(udg_Aa)
else
call DoNothing()
endif
if(sO())then
set udg_jj=GetEnteringUnit()
call TriggerExecute(udg_la)
else
call DoNothing()
endif
if(tO())then
set udg_kj=GetEnteringUnit()
call TriggerExecute(udg_Xa)
else
call DoNothing()
endif
if(xO())then
set udg_mj=GetEnteringUnit()
call TriggerExecute(udg_iB)
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_mj)),30,"|c00ff0303Do not buy the following items for Orihime: Drake's Axe, Katen Kyoukotsu, Corrupted Desolator, Orb of Lightning, Orb of Frost, Mace of Zeus, and Frostmourne. The orb effects from these items will cause Orihime's attack to malfunction.|r")
if(wO())then
call ForGroupBJ(d6(GetPlayableMapRect()),function uO)
call ForForce(GetPlayersAll(),function vO)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call DoNothing()
endif
if(yO())then
set udg_nj=GetEnteringUnit()
call TriggerExecute(udg_sB)
set udg_E9[57]=GetRectCenter(udg_to)
set udg_lh[9]=1
loop
exitwhen udg_lh[9]>12
call CreateNUnitsAtLoc(1,1869636975,ConvertedPlayer(udg_lh[9]),udg_E9[57],bj_UNIT_FACING)
set udg_lh[9]=udg_lh[9]+1
endloop
call RemoveLocation(udg_E9[57])
set udg_E9[57]=null
call TriggerRegisterUnitEvent(udg_NF,udg_nj,EVENT_UNIT_ISSUED_TARGET_ORDER)
else
call DoNothing()
endif
if(zO())then
set udg_Ak=GetEnteringUnit()
set udg_E9[57]=GetRectCenter(udg_to)
set udg_lh[9]=1
loop
exitwhen udg_lh[9]>12
call CreateNUnitsAtLoc(1,1701080931,ConvertedPlayer(udg_lh[9]),udg_E9[57],bj_UNIT_FACING)
set udg_lh[9]=udg_lh[9]+1
endloop
call RemoveLocation(udg_E9[57])
set udg_E9[57]=null
call TriggerExecute(udg_DB)
call TriggerRegisterUnitEvent(udg_NF,udg_Ak,EVENT_UNIT_ISSUED_TARGET_ORDER)
else
call DoNothing()
endif
if(AO())then
set udg_oj=GetEnteringUnit()
call TriggerExecute(udg_UB)
else
call DoNothing()
endif
if(aO())then
set udg_pj=GetEnteringUnit()
call TriggerExecute(udg_jb)
else
call DoNothing()
endif
if(BO())then
set udg_qj=GetEnteringUnit()
call TriggerExecute(udg_ab)
else
call DoNothing()
endif
if(bO())then
set udg_rj=GetEnteringUnit()
call TriggerExecute(udg_Ib)
else
call DoNothing()
endif
if(CO())then
set udg_sj=GetEnteringUnit()
call TriggerExecute(udg_Sb)
else
call DoNothing()
endif
if(cO())then
set udg_tj=GetEnteringUnit()
call TriggerExecute(udg_mC)
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_tj)),20.00,"|c0021C795Type|r |cffc3dbff-chance|r |c0021C795or|r |cffc3dbff-c|r |c0021C795to view the Homonka success rate.|r")
else
call DoNothing()
endif
if(DO())then
set udg_uj=GetEnteringUnit()
call TriggerExecute(udg_uC)
else
call DoNothing()
endif
if(EO())then
set udg_gm=GetEnteringUnit()
call TriggerExecute(udg_bC)
else
call DoNothing()
endif
if(FO())then
set udg_cm=GetEnteringUnit()
call TriggerExecute(udg_E3)
else
call DoNothing()
endif
if(GO())then
set udg_rm=GetEnteringUnit()
call EnableTrigger(udg_xc)
call TriggerRegisterUnitEvent(udg_xc,udg_rm,EVENT_UNIT_DAMAGED)
call TriggerExecute(udg_vc)
else
call DoNothing()
endif
if(HO())then
set udg_am=GetEnteringUnit()
call TriggerExecute(udg_KE)
else
call DoNothing()
endif
if(IO())then
set udg_Am=GetEnteringUnit()
call TriggerExecute(udg_bE)
else
call DoNothing()
endif
if(lO())then
set udg_xm=GetEnteringUnit()
call TriggerExecute(udg_MD)
else
call DoNothing()
endif
if(JO())then
set udg_bm=GetEnteringUnit()
call TriggerRegisterUnitEvent(udg_p3,udg_bm,EVENT_UNIT_DAMAGED)
call TriggerExecute(udg_m3)
else
call DoNothing()
endif
if(KO())then
set udg_sm=GetEnteringUnit()
call TriggerExecute(udg_Dc)
else
call DoNothing()
endif
if(LO())then
set udg_Bm=GetEnteringUnit()
call TriggerExecute(udg_VE)
else
call DoNothing()
endif
if(MO())then
set udg_wm=GetEnteringUnit()
call EnableTrigger(udg_BD)
call TriggerRegisterUnitEvent(udg_BD,udg_wm,EVENT_UNIT_DAMAGED)
call TriggerExecute(udg_AD)
else
call DoNothing()
endif
if(NO())then
set udg_tm=GetEnteringUnit()
call TriggerExecute(udg_Oc)
else
call DoNothing()
endif
if(OO())then
set udg_zm=GetEnteringUnit()
call TriggerExecute(udg_uE)
else
call DoNothing()
endif
if(PO())then
set udg_Cm=GetEnteringUnit()
call TriggerExecute(udg_w3)
else
call DoNothing()
endif
if(QO())then
set udg_vm=GetEnteringUnit()
call TriggerExecute(udg_qD)
else
call DoNothing()
endif
if(RO())then
set udg_ym=GetEnteringUnit()
call TriggerExecute(udg_gE)
else
call DoNothing()
endif
if(SO())then
set udg_um=GetEnteringUnit()
call TriggerExecute(udg_dD)
else
call DoNothing()
endif
if(TO())then
set udg_Im=GetEnteringUnit()
call TriggerExecute(udg_KC)
else
call DoNothing()
endif
if(UO())then
set udg_Bj=GetEnteringUnit()
set udg_Ri=20
call SetUnitAbilityLevelSwapped(1093681718,udg_Bj,2)
call UnitAddAbilityBJ(1093681713,udg_Bj)
call UnitAddAbilityBJ(1093681719,udg_Bj)
set udg_Si=1093681713
set udg_Ti=1093681719
set udg_E9[57]=GetRectCenter(udg_to)
set udg_Vi[0]=1
loop
exitwhen udg_Vi[0]>12
call CreateNUnitsAtLoc(1,1701209202,ConvertedPlayer(udg_Vi[0]),udg_E9[57],bj_UNIT_FACING)
set udg_Vi[0]=udg_Vi[0]+1
endloop
call RemoveLocation(udg_E9[57])
set udg_E9[57]=null
call TriggerExecute(udg_YC)
else
call DoNothing()
endif
if(VO())then
call TriggerExecute(udg_Js)
else
call DoNothing()
endif
endfunction
function XO takes nothing returns nothing
set udg_Ws=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_Ws,udg_to)
call TriggerAddCondition(udg_Ws,Condition(function nO))
call TriggerAddAction(udg_Ws,function WO)
endfunction
function YO takes nothing returns boolean
return(udg_a[1006]!=null)
endfunction
function ZO takes nothing returns boolean
return(udg_fj==true)
endfunction
function d0 takes nothing returns boolean
if(not(udg_Ni==0))then
return false
endif
return true
endfunction
function e0 takes nothing returns boolean
if(not(udg_T7[1]==true))then
return false
endif
if(not(udg_T7[3]==true))then
return false
endif
if(not(udg_T7[5]==true))then
return false
endif
return true
endfunction
function f0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function g0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function h0 takes nothing returns boolean
return GetBooleanAnd(f0(),g0())
endfunction
function i0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function j0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function k0 takes nothing returns boolean
return GetBooleanAnd(i0(),j0())
endfunction
function m0 takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function h0)))<=3))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function k0)))<=3))then
return false
endif
if(not(udg_T7[1]==true))then
return false
endif
if(not(udg_T7[3]==true))then
return false
endif
return true
endfunction
function n0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function o0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function p0 takes nothing returns boolean
return GetBooleanAnd(n0(),o0())
endfunction
function q0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function r0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function s0 takes nothing returns boolean
return GetBooleanAnd(q0(),r0())
endfunction
function t0 takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function p0)))<3))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function s0)))<3))then
return false
endif
if(not(udg_T7[1]==true))then
return false
endif
return true
endfunction
function u0 takes nothing returns boolean
if(e0())then
return true
endif
if(m0())then
return true
endif
if(t0())then
return true
endif
return false
endfunction
function v0 takes nothing returns boolean
if(not(udg_T7[1]==false))then
return false
endif
return true
endfunction
function w0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function x0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function y0 takes nothing returns boolean
return GetBooleanAnd(w0(),x0())
endfunction
function z0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function A0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function a0 takes nothing returns boolean
return GetBooleanAnd(z0(),A0())
endfunction
function B0 takes nothing returns boolean
if(not(udg_T7[3]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function y0)))>=3))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function a0)))>=3))then
return false
endif
return true
endfunction
function b0 takes nothing returns boolean
if(not B0())then
return false
endif
return true
endfunction
function C0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function c0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function D0 takes nothing returns boolean
return GetBooleanAnd(C0(),c0())
endfunction
function E0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function F0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function G0 takes nothing returns boolean
return GetBooleanAnd(E0(),F0())
endfunction
function H0 takes nothing returns boolean
if(not(udg_T7[5]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function D0)))>=5))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function G0)))>=5))then
return false
endif
return true
endfunction
function I0 takes nothing returns boolean
if(not H0())then
return false
endif
return true
endfunction
function l0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function J0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function K0 takes nothing returns boolean
return GetBooleanAnd(l0(),J0())
endfunction
function L0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function M0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function N0 takes nothing returns boolean
return GetBooleanAnd(L0(),M0())
endfunction
function O0 takes nothing returns boolean
if(not(udg_T7[5]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function K0)))>=5))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function N0)))>=5))then
return false
endif
return true
endfunction
function P0 takes nothing returns boolean
if(not O0())then
return false
endif
return true
endfunction
function Q0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function R0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function S0 takes nothing returns boolean
return GetBooleanAnd(Q0(),R0())
endfunction
function T0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function U0 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function V0 takes nothing returns boolean
return GetBooleanAnd(T0(),U0())
endfunction
function W0 takes nothing returns boolean
if(not(udg_T7[3]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function S0)))>=3))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function V0)))>=3))then
return false
endif
return true
endfunction
function X0 takes nothing returns boolean
if(not W0())then
return false
endif
return true
endfunction
function Y0 takes nothing returns boolean
if(not(udg_T7[1]==false))then
return false
endif
return true
endfunction
function Z0 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function dP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function eP takes nothing returns boolean
return GetBooleanAnd(Z0(),dP())
endfunction
function fP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function gP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function hP takes nothing returns boolean
return GetBooleanAnd(fP(),gP())
endfunction
function iP takes nothing returns boolean
if(not(udg_T7[5]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function eP)))>=5))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function hP)))>=5))then
return false
endif
return true
endfunction
function Trig_Duel_CHANCE_Func001Func024Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not iP())then
return false
endif
return true
endfunction
function jP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function kP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function mP takes nothing returns boolean
return GetBooleanAnd(jP(),kP())
endfunction
function nP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function oP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function pP takes nothing returns boolean
return GetBooleanAnd(nP(),oP())
endfunction
function Trig_Duel_CHANCE_Func001Func024Func003Func001Func001Func001Func001Func001Func001Func003C takes nothing returns boolean
if(not(udg_T7[3]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function mP)))>=3))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function pP)))>=3))then
return false
endif
return true
endfunction
function Trig_Duel_CHANCE_Func001Func024Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_T7[1]==false))then
return false
endif
return true
endfunction
function qP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function rP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function sP takes nothing returns boolean
return GetBooleanAnd(qP(),rP())
endfunction
function tP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function uP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function vP takes nothing returns boolean
return GetBooleanAnd(tP(),uP())
endfunction
function Trig_Duel_CHANCE_Func001Func024Func003Func001Func001Func001Func001Func003C takes nothing returns boolean
if(not(udg_T7[5]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function sP)))>=5))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function vP)))>=5))then
return false
endif
return true
endfunction
function wP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function xP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function yP takes nothing returns boolean
return GetBooleanAnd(wP(),xP())
endfunction
function zP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function AP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function aP takes nothing returns boolean
return GetBooleanAnd(zP(),AP())
endfunction
function BP takes nothing returns boolean
if(not(udg_T7[3]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function yP)))>=3))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function aP)))>=3))then
return false
endif
return true
endfunction
function bP takes nothing returns boolean
if(not BP())then
return false
endif
return true
endfunction
function CP takes nothing returns boolean
if(not(udg_T7[1]==false))then
return false
endif
return true
endfunction
function cP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function DP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function EP takes nothing returns boolean
return GetBooleanAnd(cP(),DP())
endfunction
function FP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function GP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function HP takes nothing returns boolean
return GetBooleanAnd(FP(),GP())
endfunction
function IP takes nothing returns boolean
if(not(udg_T7[5]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function EP)))>=5))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function HP)))>=5))then
return false
endif
return true
endfunction
function lP takes nothing returns boolean
if(not IP())then
return false
endif
return true
endfunction
function JP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function KP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function LP takes nothing returns boolean
return GetBooleanAnd(JP(),KP())
endfunction
function MP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function NP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function OP takes nothing returns boolean
return GetBooleanAnd(MP(),NP())
endfunction
function PP takes nothing returns boolean
if(not(udg_T7[5]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function LP)))>=5))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function OP)))>=5))then
return false
endif
return true
endfunction
function Trig_Duel_CHANCE_Func001Func024Func003Func002Func001Func001Func001Func001C takes nothing returns boolean
if(not PP())then
return false
endif
return true
endfunction
function QP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function RP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function SP takes nothing returns boolean
return GetBooleanAnd(QP(),RP())
endfunction
function TP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function UP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function VP takes nothing returns boolean
return GetBooleanAnd(TP(),UP())
endfunction
function Trig_Duel_CHANCE_Func001Func024Func003Func002Func001Func001Func001Func003C takes nothing returns boolean
if(not(udg_T7[3]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function SP)))>=3))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function VP)))>=3))then
return false
endif
return true
endfunction
function WP takes nothing returns boolean
if(not(udg_T7[1]==false))then
return false
endif
return true
endfunction
function XP takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function YP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function ZP takes nothing returns boolean
return GetBooleanAnd(XP(),YP())
endfunction
function dQ takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function eQ takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function fQ takes nothing returns boolean
return GetBooleanAnd(dQ(),eQ())
endfunction
function gQ takes nothing returns boolean
if(not(udg_T7[5]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function ZP)))>=5))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function fQ)))>=5))then
return false
endif
return true
endfunction
function hQ takes nothing returns boolean
if(not gQ())then
return false
endif
return true
endfunction
function iQ takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function jQ takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function kQ takes nothing returns boolean
return GetBooleanAnd(iQ(),jQ())
endfunction
function mQ takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function nQ takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function oQ takes nothing returns boolean
return GetBooleanAnd(mQ(),nQ())
endfunction
function pQ takes nothing returns boolean
if(not(udg_T7[3]==false))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function kQ)))>=3))then
return false
endif
if(not(CountPlayersInForceBJ(t6(Condition(function oQ)))>=3))then
return false
endif
return true
endfunction
function qQ takes nothing returns boolean
if(not pQ())then
return false
endif
return true
endfunction
function rQ takes nothing returns boolean
if(not(udg_Wf>=8))then
return false
endif
if(not(udg_Wf<=14))then
return false
endif
return true
endfunction
function sQ takes nothing returns boolean
if(not rQ())then
return false
endif
return true
endfunction
function tQ takes nothing returns boolean
if(not(udg_Wf<=7))then
return false
endif
return true
endfunction
function uQ takes nothing returns boolean
if(not u0())then
return false
endif
return true
endfunction
function vQ takes nothing returns nothing
if(uQ())then
call DisableTrigger(GetTriggeringTrigger())
call DestroyTrigger(udg_Ys)
call DestroyTrigger(udg_Zs)
call DestroyTrigger(udg_dt)
call DestroyTrigger(udg_et)
call DestroyTrigger(udg_gt)
call DestroyTrigger(udg_jt)
call DestroyTrigger(udg_ft)
call DestroyTrigger(udg_ht)
call DestroyTrigger(udg_kt)
call DestroyTrigger(udg_mt)
call TimerDialogDisplayBJ(false,udg_s)
call DestroyTimer(udg_q)
call DestroyTimer(udg_Li)
call DestroyTrigger(GetTriggeringTrigger())
else
if(YO())then
set udg_a[1006]=null
else
call DoNothing()
endif
if(ZO())then
set udg_fj=false
else
call DoNothing()
endif
if(d0())then
set udg_Ni=1
call CreateTimerDialogBJ(udg_Li,"Time Limit")
set udg_Mi=GetLastCreatedTimerDialogBJ()
call TimerDialogSetTitleColorBJ(udg_Mi,80.00,0.00,0.00,0)
call TimerDialogSetTimeColorBJ(udg_Mi,80.00,0.00,0.00,0)
call TimerDialogDisplayBJ(false,udg_Mi)
else
call DoNothing()
endif
if(v0())then
set udg_Vf=7
else
call DoNothing()
endif
if(b0())then
set udg_Vf=14
else
call DoNothing()
endif
if(I0())then
set udg_Vf=19
else
call DoNothing()
endif
set udg_Wf=GetRandomInt(1,udg_Vf)
if(tQ())then
if(Y0())then
call TriggerExecute(udg_Ys)
else
if(X0())then
call TriggerExecute(udg_Zs)
else
if(P0())then
call TriggerExecute(udg_dt)
else
call DoNothing()
endif
endif
endif
else
if(sQ())then
if(qQ())then
call TriggerExecute(udg_Zs)
else
if(hQ())then
call TriggerExecute(udg_dt)
else
if(WP())then
call TriggerExecute(udg_Ys)
else
call DoNothing()
endif
endif
endif
else
if(lP())then
call TriggerExecute(udg_dt)
else
if(CP())then
call TriggerExecute(udg_Ys)
else
if(bP())then
call TriggerExecute(udg_Zs)
else
call DoNothing()
endif
endif
endif
endif
endif
set udg_Wf=0
endif
endfunction
function wQ takes nothing returns nothing
set udg_Xs=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_Xs,udg_q)
call TriggerAddAction(udg_Xs,function vQ)
endfunction
function xQ takes nothing returns boolean
return(udg_Je==true)
endfunction
function yQ takes nothing returns boolean
if(not(udg_m[udg_y7]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_m[udg_y7])==false))then
return false
endif
return true
endfunction
function zQ takes nothing returns boolean
if(not yQ())then
return false
endif
return true
endfunction
function AQ takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function aQ takes nothing returns boolean
return(udg_a[1006]!=null)
endfunction
function BQ takes nothing returns boolean
return(udg_fj==true)
endfunction
function bQ takes nothing returns boolean
return(udg_m[udg_Cj[100]]!=null)
endfunction
function CQ takes nothing returns boolean
return(IsUnitHiddenBJ(udg_m[udg_Cj[100]])==true)
endfunction
function cQ takes nothing returns boolean
return GetBooleanAnd(bQ(),CQ())
endfunction
function DQ takes nothing returns boolean
return(udg_m[udg_Cj[100]]!=null)
endfunction
function EQ takes nothing returns boolean
return(IsUnitPausedBJ(udg_m[udg_Cj[100]])==false)
endfunction
function FQ takes nothing returns boolean
return GetBooleanAnd(DQ(),EQ())
endfunction
function GQ takes nothing returns boolean
return(udg_m[udg_Cj[100]]!=null)
endfunction
function HQ takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),udg_Td,0.00)
endfunction
function IQ takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function lQ takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function JQ takes nothing returns boolean
return GetBooleanAnd(IQ(),lQ())
endfunction
function KQ takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_T))then
return false
endif
return true
endfunction
function LQ takes nothing returns nothing
set udg_x=udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]
call ShowUnitShow(udg_x)
if(KQ())then
call TriggerExecute(udg_pt)
else
call DoNothing()
endif
call SetUnitPositionLoc(udg_x,udg_Ud)
call SetUnitFacingToFaceLocTimed(udg_x,udg_Vd,0)
call SetUnitLifePercentBJ(udg_x,100)
call SetUnitManaPercentBJ(udg_x,100)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_x)
call SetUnitInvulnerable(udg_x,true)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
set udg_J[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
call PauseUnitBJ(true,udg_x)
endfunction
function MQ takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function NQ takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function OQ takes nothing returns boolean
return GetBooleanAnd(MQ(),NQ())
endfunction
function PQ takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_T))then
return false
endif
return true
endfunction
function QQ takes nothing returns nothing
set udg_y=udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]
call ShowUnitShow(udg_y)
if(PQ())then
call TriggerExecute(udg_pt)
else
call DoNothing()
endif
call SetUnitPositionLoc(udg_y,udg_Vd)
call SetUnitFacingToFaceLocTimed(udg_y,udg_Ud,0)
call SetUnitLifePercentBJ(udg_y,100)
call SetUnitManaPercentBJ(udg_y,100)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_y)
call SetUnitInvulnerable(udg_y,true)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
set udg_J[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
call PauseUnitBJ(true,udg_y)
endfunction
function RQ takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function SQ takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_x))
endfunction
function TQ takes nothing returns boolean
return GetBooleanAnd(RQ(),SQ())
endfunction
function UQ takes nothing returns nothing
set udg_Td=PG(udg_Ud,100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,0.00)
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function VQ takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function WQ takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_x))
endfunction
function XQ takes nothing returns boolean
return GetBooleanAnd(VQ(),WQ())
endfunction
function YQ takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function XQ)))==false))then
return false
endif
return true
endfunction
function ZQ takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function dR takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_y))
endfunction
function eR takes nothing returns boolean
return GetBooleanAnd(ZQ(),dR())
endfunction
function fR takes nothing returns nothing
set udg_Td=PG(udg_Vd,100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,180.00)
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function gR takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function hR takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_y))
endfunction
function iR takes nothing returns boolean
return GetBooleanAnd(gR(),hR())
endfunction
function jR takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function iR)))==false))then
return false
endif
return true
endfunction
function kR takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_x))
endfunction
function mR takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function nR takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function oR takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function pR takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function qR takes nothing returns boolean
return GetBooleanAnd(oR(),pR())
endfunction
function rR takes nothing returns boolean
return GetBooleanAnd(nR(),qR())
endfunction
function sR takes nothing returns boolean
return GetBooleanAnd(mR(),rR())
endfunction
function tR takes nothing returns boolean
return GetBooleanAnd(kR(),sR())
endfunction
function uR takes nothing returns nothing
set udg_Td=PG(udg_Ud,100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,0.00)
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function vR takes nothing returns boolean
if(not(GetUnitTypeId(udg_x)==1311780947))then
return false
endif
return true
endfunction
function wR takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_y))
endfunction
function xR takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function yR takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function zR takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function AR takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function aR takes nothing returns boolean
return GetBooleanAnd(zR(),AR())
endfunction
function BR takes nothing returns boolean
return GetBooleanAnd(yR(),aR())
endfunction
function bR takes nothing returns boolean
return GetBooleanAnd(xR(),BR())
endfunction
function CR takes nothing returns boolean
return GetBooleanAnd(wR(),bR())
endfunction
function cR takes nothing returns nothing
set udg_Td=PG(udg_Vd,100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,180.00)
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function DR takes nothing returns boolean
if(not(GetUnitTypeId(udg_y)==1311780947))then
return false
endif
return true
endfunction
function ER takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1966092354)
endfunction
function FR takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_Td)
endfunction
function GR takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1966092336)
endfunction
function HR takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_Td)
endfunction
function IR takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1966092337)
endfunction
function lR takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_Td)
endfunction
function JR takes nothing returns boolean
if((GetUnitTypeId(udg_x)==1430466867))then
return true
endif
if((GetUnitTypeId(udg_y)==1430466867))then
return true
endif
return false
endfunction
function KR takes nothing returns boolean
if(not JR())then
return false
endif
return true
endfunction
function LR takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function MR takes nothing returns boolean
return(udg_a[1006]!=null)
endfunction
function NR takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function OR takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function PR takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function QR takes nothing returns boolean
return(GetFilterUnit()!=udg_x)
endfunction
function RR takes nothing returns boolean
return(GetFilterUnit()!=udg_y)
endfunction
function SR takes nothing returns boolean
return GetBooleanAnd(QR(),RR())
endfunction
function TR takes nothing returns boolean
return GetBooleanAnd(PR(),SR())
endfunction
function UR takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
call SetUnitInvulnerable(GetEnumUnit(),false)
endfunction
function VR takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function WR takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function XR takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(WR())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function YR takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function ZR takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function dS takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(ZR())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function eS takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function fS takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function gS takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(fS())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function hS takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function iS takes nothing returns nothing
if(AQ())then
call DisableTrigger(udg_MF)
call DisableTrigger(udg_Ps)
call CinematicModeBJ(true,GetPlayersAll())
call ClearTextMessagesBJ(GetPlayersAll())
call DisplayTextToForce(GetPlayersAll(),"|c00fffc01Event: Duel|r")
call PlaySoundBJ(udg_cp)
if(xQ())then
set udg_Je=false
else
call DoNothing()
endif
set udg_y7=1
loop
exitwhen udg_y7>12
if(zQ())then
set udg_z7[udg_y7]=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_m[udg_y7]))
set udg_G7[udg_y7]=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_m[udg_y7]))
else
call DoNothing()
endif
set udg_y7=udg_y7+1
endloop
call EnableTrigger(udg_nt)
else
call DoNothing()
endif
call TriggerSleepAction(3.00)
if(aQ())then
set udg_a[1006]=null
else
call DoNothing()
endif
if(BQ())then
set udg_fj=false
else
call DoNothing()
endif
set udg_Cj[100]=1
loop
exitwhen udg_Cj[100]>12
if(cQ())then
call ShowUnitShow(udg_m[udg_Cj[100]])
else
call DoNothing()
endif
if(FQ())then
call PauseUnitBJ(true,udg_m[udg_Cj[100]])
else
call DoNothing()
endif
if(GQ())then
call SetUnitInvulnerable(udg_m[udg_Cj[100]],true)
else
call DoNothing()
endif
set udg_Cj[100]=udg_Cj[100]+1
endloop
if(LR())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_l[GetForLoopIndexA()]=false
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_Td=GetRectCenter(udg_An)
call ForForce(GetPlayersAll(),function HQ)
call RemoveLocation(udg_Td)
set udg_Td=null
set udg_Ud=GetRectCenter(udg_an)
set udg_Vd=GetRectCenter(udg_Bn)
set udg_Wd=k6(ForcePickRandomPlayer(t6(Condition(function JQ))),1700885091)
call ForGroupBJ(udg_Wd,function LQ)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=k6(ForcePickRandomPlayer(t6(Condition(function OQ))),1700885091)
call ForGroupBJ(udg_Wd,function QQ)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call DisplayTextToForce(GetPlayersAll(),(udg_E[GetConvertedPlayerId(GetOwningPlayer(udg_x))]+(" versus "+udg_E[GetConvertedPlayerId(GetOwningPlayer(udg_y))])))
set udg_w=true
set udg_z=true
if(YQ())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function TQ))
call ForGroupBJ(udg_Wd,function UQ)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
if(jR())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function eR))
call ForGroupBJ(udg_Wd,function fR)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
if(vR())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function tR))
call ForGroupBJ(udg_Wd,function uR)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
if(DR())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function CR))
call ForGroupBJ(udg_Wd,function cR)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
set udg_Td=GetRectCenter(udg_An)
if(KR())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function ER))
call ForGroupBJ(udg_Wd,function FR)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(GetPlayableMapRect(),Condition(function GR))
call ForGroupBJ(udg_Wd,function HR)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(GetPlayableMapRect(),Condition(function IR))
call ForGroupBJ(udg_Wd,function lR)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
else
call DoNothing()
endif
call TriggerSleepAction(4.00)
if(MR())then
set udg_a[1006]=null
else
call DoNothing()
endif
if(NR())then
call DisableTrigger(udg_nt)
call CreateTextTagLocBJ("3",udg_Td,0,20.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.55)
call SetUnitPositionLocFacingLocBJ(udg_x,udg_Ud,udg_Vd)
call SetUnitPositionLocFacingLocBJ(udg_y,udg_Vd,udg_Ud)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_x)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_y)
call PauseUnitBJ(true,udg_x)
call PauseUnitBJ(true,udg_y)
call SetUnitInvulnerable(udg_x,true)
call SetUnitInvulnerable(udg_y,true)
call ShowUnitShow(udg_x)
call ShowUnitShow(udg_y)
call SetUnitLifePercentBJ(udg_x,100)
call SetUnitManaPercentBJ(udg_x,100)
call SetUnitLifePercentBJ(udg_y,100)
call SetUnitManaPercentBJ(udg_y,100)
call PlaySoundBJ(udg_sp)
else
call DoNothing()
endif
call TriggerSleepAction(0.70)
if(OR())then
call CreateTextTagLocBJ("2",udg_Td,0,20.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.55)
call SetUnitAnimation(udg_x,"stand ready")
call SetUnitAnimation(udg_y,"stand ready")
call PlaySoundBJ(udg_sp)
call TriggerSleepAction(0.70)
call CreateTextTagLocBJ("1",udg_Td,0,20.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.55)
call PlaySoundBJ(udg_sp)
else
call DoNothing()
endif
call TriggerSleepAction(0.69)
if(hS())then
call SetUnitPositionLocFacingLocBJ(udg_x,udg_Ud,udg_Vd)
call SetUnitPositionLocFacingLocBJ(udg_y,udg_Vd,udg_Ud)
call TriggerSleepAction(0.01)
call RemoveLocation(udg_Td)
set udg_Td=null
set udg_Td=PG(GetRectCenter(udg_An),100.00,180.00)
call CreateTextTagLocBJ("FIGHT!",udg_Td,0,30.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.40)
call CinematicModeBJ(false,GetPlayersAll())
call PlayThematicMusicBJ("Misc\\Music\\Duel\\Number1_duel.mp3")
call PauseUnitBJ(false,udg_x)
call PauseUnitBJ(false,udg_y)
call SetUnitInvulnerable(udg_x,false)
call SetUnitInvulnerable(udg_y,false)
call SelectUnitForPlayerSingle(udg_x,GetOwningPlayer(udg_x))
call SelectUnitForPlayerSingle(udg_y,GetOwningPlayer(udg_y))
call PlaySoundBJ(udg_mp)
call EnableTrigger(udg_Ps)
set udg_Wd=YG(udg_An,Condition(function TR))
call ForGroupBJ(udg_Wd,function UR)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call RemoveLocation(udg_Td)
set udg_Td=null
call RemoveLocation(udg_Ud)
set udg_Ud=null
call RemoveLocation(udg_Vd)
set udg_Vd=null
call StartTimerBJ(udg_Li,false,30.00)
call TimerDialogDisplayBJ(true,udg_Mi)
call TriggerSleepAction(0.10)
set udg_Wd=YG(udg_vo,Condition(function VR))
call ForGroupBJ(udg_Wd,function XR)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(udg_xo,Condition(function YR))
call ForGroupBJ(udg_Wd,function dS)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(udg_sn,Condition(function eS))
call ForGroupBJ(udg_Wd,function gS)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
endfunction
function jS takes nothing returns nothing
set udg_Ys=CreateTrigger()
call TriggerAddAction(udg_Ys,function iS)
endfunction
function kS takes nothing returns boolean
return(udg_Je==true)
endfunction
function mS takes nothing returns boolean
if(not(udg_m[udg_y7]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_m[udg_y7])==false))then
return false
endif
return true
endfunction
function nS takes nothing returns boolean
return(udg_m[udg_Cj[udg_y7]]!=null)
endfunction
function oS takes nothing returns boolean
if(not mS())then
return false
endif
return true
endfunction
function pS takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function qS takes nothing returns boolean
return(udg_a[1006]!=null)
endfunction
function rS takes nothing returns boolean
return(udg_fj==true)
endfunction
function sS takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),udg_Td,0.00)
endfunction
function tS takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function uS takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function vS takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_Y[1])
endfunction
function wS takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_Y[2])
endfunction
function xS takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_Y[3])
endfunction
function yS takes nothing returns boolean
return GetBooleanAnd(wS(),xS())
endfunction
function zS takes nothing returns boolean
return GetBooleanAnd(vS(),yS())
endfunction
function AS takes nothing returns boolean
return GetBooleanAnd(uS(),zS())
endfunction
function aS takes nothing returns boolean
return GetBooleanAnd(tS(),AS())
endfunction
function BS takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_T))then
return false
endif
return true
endfunction
function bS takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_Y[3]))then
return false
endif
return true
endfunction
function CS takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_Y[2]))then
return false
endif
return true
endfunction
function cS takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_Y[1]))then
return false
endif
return true
endfunction
function DS takes nothing returns nothing
set udg_Y[GetForLoopIndexB()]=udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]
set udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
set udg_J[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
call ShowUnitShow(udg_Y[GetForLoopIndexB()])
if(BS())then
call TriggerExecute(udg_pt)
else
call DoNothing()
endif
if(cS())then
call SetUnitPositionLoc(udg_Y[1],udg_Xd)
call SetUnitFacingToFaceLocTimed(udg_Y[1],udg_de,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_Y[1],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(CS())then
call SetUnitPositionLoc(udg_Y[2],udg_Yd)
call SetUnitFacingToFaceLocTimed(udg_Y[2],udg_ee,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_Y[2],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(bS())then
call SetUnitPositionLoc(udg_Y[3],udg_Zd)
call SetUnitFacingToFaceLocTimed(udg_Y[3],udg_fe,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_Y[3],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
endif
call SetUnitLifePercentBJ(udg_Y[GetForLoopIndexB()],100)
call SetUnitManaPercentBJ(udg_Y[GetForLoopIndexB()],100)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_Y[GetForLoopIndexB()])
call SetUnitInvulnerable(udg_Y[GetForLoopIndexB()],true)
call PauseUnitBJ(true,udg_Y[GetForLoopIndexB()])
endfunction
function ES takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function FS takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function GS takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_Z[1])
endfunction
function HS takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_Z[2])
endfunction
function IS takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_Z[3])
endfunction
function lS takes nothing returns boolean
return GetBooleanAnd(HS(),IS())
endfunction
function JS takes nothing returns boolean
return GetBooleanAnd(GS(),lS())
endfunction
function KS takes nothing returns boolean
return GetBooleanAnd(FS(),JS())
endfunction
function LS takes nothing returns boolean
return GetBooleanAnd(ES(),KS())
endfunction
function MS takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_T))then
return false
endif
return true
endfunction
function NS takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_Z[3]))then
return false
endif
return true
endfunction
function OS takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_Z[2]))then
return false
endif
return true
endfunction
function PS takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_Z[1]))then
return false
endif
return true
endfunction
function QS takes nothing returns nothing
set udg_Z[GetForLoopIndexB()]=udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]
set udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
set udg_J[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
call ShowUnitShow(udg_Z[GetForLoopIndexB()])
if(MS())then
call TriggerExecute(udg_pt)
else
call DoNothing()
endif
if(PS())then
call SetUnitPositionLoc(udg_Z[1],udg_de)
call SetUnitFacingToFaceLocTimed(udg_Z[1],udg_Xd,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_Z[1],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(OS())then
call SetUnitPositionLoc(udg_Z[2],udg_ee)
call SetUnitFacingToFaceLocTimed(udg_Z[2],udg_Yd,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_Z[2],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(NS())then
call SetUnitPositionLoc(udg_Z[3],udg_fe)
call SetUnitFacingToFaceLocTimed(udg_Z[3],udg_Zd,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_Z[3],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
endif
call SetUnitLifePercentBJ(udg_Z[GetForLoopIndexB()],100)
call SetUnitManaPercentBJ(udg_Z[GetForLoopIndexB()],100)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_Z[GetForLoopIndexB()])
call SetUnitInvulnerable(udg_Z[GetForLoopIndexB()],true)
call PauseUnitBJ(true,udg_Z[GetForLoopIndexB()])
endfunction
function RS takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function SS takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_Y[GetForLoopIndexB()]))
endfunction
function TS takes nothing returns boolean
return GetBooleanAnd(RS(),SS())
endfunction
function US takes nothing returns nothing
set udg_Td=PG(GetUnitLoc(udg_Y[GetForLoopIndexB()]),100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,GetUnitFacing(udg_Y[GetForLoopIndexB()]))
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function VS takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_Wd)==false))then
return false
endif
return true
endfunction
function WS takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function XS takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_Z[GetForLoopIndexB()]))
endfunction
function YS takes nothing returns boolean
return GetBooleanAnd(WS(),XS())
endfunction
function ZS takes nothing returns nothing
set udg_Td=PG(GetUnitLoc(udg_Z[GetForLoopIndexB()]),100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,GetUnitFacing(udg_Z[GetForLoopIndexB()]))
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function d5 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_Wd)==false))then
return false
endif
return true
endfunction
function e5 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_Y[GetForLoopIndexB()]))
endfunction
function f5 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function g5 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function h5 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function i5 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function j5 takes nothing returns boolean
return GetBooleanAnd(h5(),i5())
endfunction
function k5 takes nothing returns boolean
return GetBooleanAnd(g5(),j5())
endfunction
function m5 takes nothing returns boolean
return GetBooleanAnd(f5(),k5())
endfunction
function n5 takes nothing returns boolean
return GetBooleanAnd(e5(),m5())
endfunction
function o5 takes nothing returns nothing
set udg_Td=PG(GetUnitLoc(udg_Y[GetForLoopIndexB()]),100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,0.00)
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function p5 takes nothing returns boolean
if(not(GetUnitTypeId(udg_Y[GetForLoopIndexB()])==1311780947))then
return false
endif
return true
endfunction
function q5 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_Z[GetForLoopIndexB()]))
endfunction
function r5 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function s5 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function t5 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function u5 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function v5 takes nothing returns boolean
return GetBooleanAnd(t5(),u5())
endfunction
function w5 takes nothing returns boolean
return GetBooleanAnd(s5(),v5())
endfunction
function x5 takes nothing returns boolean
return GetBooleanAnd(r5(),w5())
endfunction
function y5 takes nothing returns boolean
return GetBooleanAnd(q5(),x5())
endfunction
function z5 takes nothing returns nothing
set udg_Td=PG(GetUnitLoc(udg_Z[GetForLoopIndexB()]),100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,180.00)
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function A5 takes nothing returns boolean
if(not(GetUnitTypeId(udg_Z[GetForLoopIndexB()])==1311780947))then
return false
endif
return true
endfunction
function a5 takes nothing returns boolean
return(RectContainsUnit(udg_so,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))])==true)
endfunction
function B5 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1966092354)
endfunction
function b5 takes nothing returns boolean
return GetBooleanAnd(a5(),B5())
endfunction
function C5 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_Td)
endfunction
function c5 takes nothing returns boolean
return(RectContainsUnit(udg_so,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))])==true)
endfunction
function D5 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1966092336)
endfunction
function E5 takes nothing returns boolean
return GetBooleanAnd(c5(),D5())
endfunction
function F5 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_Td)
endfunction
function G5 takes nothing returns boolean
return(RectContainsUnit(udg_so,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))])==true)
endfunction
function H5 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1966092337)
endfunction
function I5 takes nothing returns boolean
return GetBooleanAnd(G5(),H5())
endfunction
function l5 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_Td)
endfunction
function J5 takes nothing returns boolean
if((GetUnitTypeId(udg_Y[GetForLoopIndexB()])==1430466867))then
return true
endif
if((GetUnitTypeId(udg_Z[GetForLoopIndexB()])==1430466867))then
return true
endif
return false
endfunction
function K5 takes nothing returns boolean
if(not J5())then
return false
endif
return true
endfunction
function L5 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function M5 takes nothing returns boolean
return(udg_a[1006]!=null)
endfunction
function N5 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function O5 takes nothing returns boolean
if(not(GetEnumUnit()==udg_Y[3]))then
return false
endif
return true
endfunction
function P5 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Q5 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function R5 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function S5 takes nothing returns boolean
if(not(GetEnumUnit()==udg_Y[2]))then
return false
endif
return true
endfunction
function T5 takes nothing returns boolean
if(not(GetEnumUnit()==udg_Y[1]))then
return false
endif
return true
endfunction
function U5 takes nothing returns boolean
if(not(GetEnumUnit()==udg_Z[3]))then
return false
endif
return true
endfunction
function V5 takes nothing returns boolean
if(not(GetEnumUnit()==udg_Z[2]))then
return false
endif
return true
endfunction
function W5 takes nothing returns boolean
if(not(GetEnumUnit()==udg_Z[1]))then
return false
endif
return true
endfunction
function X5 takes nothing returns nothing
set udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
set udg_J[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
call ShowUnitShow(GetEnumUnit())
if(T5())then
call SetUnitPositionLoc(GetEnumUnit(),udg_Xd)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_de,0)
else
if(S5())then
call SetUnitPositionLoc(GetEnumUnit(),udg_Yd)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_ee,0)
if(R5())then
call ForGroupBJ(d6(GetPlayableMapRect()),function P5)
call ForForce(GetPlayersAll(),function Q5)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
if(O5())then
call SetUnitPositionLoc(GetEnumUnit(),udg_Zd)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_fe,0)
else
call DoNothing()
endif
endif
endif
if(W5())then
call SetUnitPositionLoc(GetEnumUnit(),udg_de)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_Xd,0)
else
if(V5())then
call SetUnitPositionLoc(GetEnumUnit(),udg_ee)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_Yd,0)
else
if(U5())then
call SetUnitPositionLoc(GetEnumUnit(),udg_fe)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_Zd,0)
else
call DoNothing()
endif
endif
endif
call SetUnitLifePercentBJ(GetEnumUnit(),100)
call SetUnitManaPercentBJ(GetEnumUnit(),100)
call SetUnitInvulnerable(GetEnumUnit(),true)
call PauseUnitBJ(true,GetEnumUnit())
endfunction
function Y5 takes nothing returns boolean
return(udg_m[udg_Cj[100]]!=null)
endfunction
function Z5 takes nothing returns boolean
return(IsUnitHiddenBJ(udg_m[udg_Cj[100]])==true)
endfunction
function dT takes nothing returns boolean
return GetBooleanAnd(Y5(),Z5())
endfunction
function eT takes nothing returns boolean
return(udg_m[udg_Cj[100]]!=null)
endfunction
function fT takes nothing returns boolean
return(IsUnitPausedBJ(udg_m[udg_Cj[100]])==false)
endfunction
function gT takes nothing returns boolean
return GetBooleanAnd(eT(),fT())
endfunction
function hT takes nothing returns boolean
return(udg_m[udg_Cj[100]]!=null)
endfunction
function iT takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function jT takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function kT takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function mT takes nothing returns boolean
if(not(GetEnumUnit()==udg_Y[3]))then
return false
endif
return true
endfunction
function nT takes nothing returns boolean
if(not(GetEnumUnit()==udg_Y[2]))then
return false
endif
return true
endfunction
function oT takes nothing returns boolean
if(not(GetEnumUnit()==udg_Y[1]))then
return false
endif
return true
endfunction
function pT takes nothing returns boolean
if(not(GetEnumUnit()==udg_Z[3]))then
return false
endif
return true
endfunction
function qT takes nothing returns boolean
if(not(GetEnumUnit()==udg_Z[2]))then
return false
endif
return true
endfunction
function rT takes nothing returns boolean
if(not(GetEnumUnit()==udg_Z[1]))then
return false
endif
return true
endfunction
function sT takes nothing returns nothing
set udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
set udg_J[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
call ShowUnitShow(GetEnumUnit())
if(oT())then
call SetUnitPositionLoc(GetEnumUnit(),udg_Xd)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_de,0)
else
if(nT())then
call SetUnitPositionLoc(GetEnumUnit(),udg_Yd)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_ee,0)
else
if(mT())then
call SetUnitPositionLoc(GetEnumUnit(),udg_Zd)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_fe,0)
else
call DoNothing()
endif
endif
endif
if(rT())then
call SetUnitPositionLoc(GetEnumUnit(),udg_de)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_Xd,0)
else
if(qT())then
call SetUnitPositionLoc(GetEnumUnit(),udg_ee)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_Yd,0)
else
if(pT())then
call SetUnitPositionLoc(GetEnumUnit(),udg_fe)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_Zd,0)
else
call DoNothing()
endif
endif
endif
call SetUnitLifePercentBJ(GetEnumUnit(),100)
call SetUnitManaPercentBJ(GetEnumUnit(),100)
call SetUnitInvulnerable(GetEnumUnit(),false)
call PauseUnitBJ(false,GetEnumUnit())
call SelectUnitForPlayerSingle(GetEnumUnit(),GetOwningPlayer(GetEnumUnit()))
endfunction
function tT takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function uT takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function vT takes nothing returns boolean
return GetBooleanAnd(tT(),uT())
endfunction
function wT takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
call SetUnitInvulnerable(GetEnumUnit(),false)
endfunction
function xT takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function yT takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function zT takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==false)
endfunction
function AT takes nothing returns boolean
return GetBooleanAnd(yT(),zT())
endfunction
function aT takes nothing returns boolean
return GetBooleanAnd(xT(),AT())
endfunction
function BT takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
call SetUnitInvulnerable(GetEnumUnit(),false)
endfunction
function bT takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function CT takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function cT takes nothing returns boolean
return GetBooleanAnd(bT(),CT())
endfunction
function DT takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_Td)
endfunction
function ET takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function FT takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function GT takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(FT())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function HT takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function IT takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function lT takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(IT())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function JT takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function KT takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function LT takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(KT())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function MT takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function NT takes nothing returns nothing
if(pS())then
call DisableTrigger(udg_MF)
call DisableTrigger(udg_Ps)
call CinematicModeBJ(true,GetPlayersAll())
call ClearTextMessagesBJ(GetPlayersAll())
call DisplayTextToForce(GetPlayersAll(),"|c00fffc01Event: 3 vs 3|r")
call PlaySoundBJ(udg_cp)
if(kS())then
set udg_Je=false
else
call DoNothing()
endif
set udg_y7=1
loop
exitwhen udg_y7>12
if(oS())then
set udg_z7[udg_y7]=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_m[udg_y7]))
set udg_G7[udg_y7]=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_m[udg_y7]))
if(nS())then
call SetUnitInvulnerable(udg_m[udg_Cj[udg_y7]],true)
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_y7=udg_y7+1
endloop
call EnableTrigger(udg_nt)
else
call DoNothing()
endif
call TriggerSleepAction(3.00)
if(qS())then
set udg_a[1006]=null
else
call DoNothing()
endif
if(rS())then
set udg_fj=false
else
call DoNothing()
endif
if(L5())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_l[GetForLoopIndexA()]=false
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_Td=GetRectCenter(udg_so)
call ForForce(GetPlayersAll(),function sS)
call RemoveLocation(udg_Td)
set udg_Td=null
set udg_Xd=GetRectCenter(udg_Ao)
set udg_Yd=GetRectCenter(udg_ao)
set udg_Zd=GetRectCenter(udg_Bo)
set udg_de=GetRectCenter(udg_bo)
set udg_ee=GetRectCenter(udg_Co)
set udg_fe=GetRectCenter(udg_co)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=3
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call TriggerSleepAction(0.20)
set udg_Wd=k6(ForcePickRandomPlayer(t6(Condition(function aS))),1700885091)
call ForGroupBJ(udg_Wd,function DS)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=k6(ForcePickRandomPlayer(t6(Condition(function LS))),1700885091)
call ForGroupBJ(udg_Wd,function QS)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(GetPlayableMapRect(),Condition(function TS))
if(VS())then
call ForGroupBJ(udg_Wd,function US)
else
call DoNothing()
endif
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(GetPlayableMapRect(),Condition(function YS))
if(d5())then
call ForGroupBJ(udg_Wd,function ZS)
else
call DoNothing()
endif
call DestroyGroup(udg_Wd)
set udg_Wd=null
if(p5())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function n5))
call ForGroupBJ(udg_Wd,function o5)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
if(A5())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function y5))
call ForGroupBJ(udg_Wd,function z5)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
set udg_Td=GetRectCenter(udg_so)
if(K5())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function b5))
call ForGroupBJ(udg_Wd,function C5)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(GetPlayableMapRect(),Condition(function E5))
call ForGroupBJ(udg_Wd,function F5)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(GetPlayableMapRect(),Condition(function I5))
call ForGroupBJ(udg_Wd,function l5)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
call RemoveLocation(udg_Td)
set udg_Td=null
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set udg_w=true
set udg_d4=true
set udg_e4[1]=0
set udg_e4[2]=0
else
call DoNothing()
endif
call TriggerSleepAction(4.00)
if(M5())then
set udg_a[1006]=null
else
call DoNothing()
endif
if(iT())then
call DisableTrigger(udg_nt)
set udg_Td=GetRectCenter(udg_so)
call CreateTextTagLocBJ("3",udg_Td,0,20.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.45)
set udg_Wd=YG(udg_Do,Condition(function N5))
call ForGroupBJ(udg_Wd,function X5)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call PlaySoundBJ(udg_sp)
set udg_Cj[100]=1
loop
exitwhen udg_Cj[100]>12
if(dT())then
call ShowUnitShow(udg_m[udg_Cj[100]])
else
call DoNothing()
endif
if(gT())then
call PauseUnitBJ(true,udg_m[udg_Cj[100]])
else
call DoNothing()
endif
if(hT())then
call SetUnitInvulnerable(udg_m[udg_Cj[100]],true)
else
call DoNothing()
endif
set udg_Cj[100]=udg_Cj[100]+1
endloop
else
call DoNothing()
endif
call TriggerSleepAction(0.60)
if(jT())then
call CreateTextTagLocBJ("2",udg_Td,0,20.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.45)
call PlaySoundBJ(udg_sp)
call TriggerSleepAction(0.60)
call CreateTextTagLocBJ("1",udg_Td,0,20.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.45)
call PlaySoundBJ(udg_sp)
else
call DoNothing()
endif
call TriggerSleepAction(0.59)
if(MT())then
call SetUnitPositionLocFacingLocBJ(udg_Y[1],udg_Xd,udg_de)
call SetUnitPositionLocFacingLocBJ(udg_Y[2],udg_Yd,udg_ee)
call SetUnitPositionLocFacingLocBJ(udg_Y[3],udg_Zd,udg_fe)
call SetUnitPositionLocFacingLocBJ(udg_Z[1],udg_de,udg_Xd)
call SetUnitPositionLocFacingLocBJ(udg_Z[2],udg_ee,udg_Yd)
call SetUnitPositionLocFacingLocBJ(udg_Z[3],udg_fe,udg_Zd)
call TriggerSleepAction(0.01)
call CreateTextTagLocBJ("GO!",udg_Td,0,30.00,100,0.00,0.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.40)
call CinematicModeBJ(false,GetPlayersAll())
call PlayThematicMusicBJ("Misc\\Music\\Duel\\3vs3.mp3")
set udg_Wd=YG(udg_Do,Condition(function kT))
call ForGroupBJ(udg_Wd,function sT)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call PlaySoundBJ(udg_mp)
set udg_Wd=YG(udg_Do,Condition(function vT))
call ForGroupBJ(udg_Wd,function wT)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(udg_Do,Condition(function aT))
call ForGroupBJ(udg_Wd,function BT)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call StartTimerBJ(udg_Li,false,45.00)
call TimerDialogDisplayBJ(true,udg_Mi)
call TriggerSleepAction(0.01)
call EnableTrigger(udg_Ps)
set udg_Wd=YG(udg_so,Condition(function cT))
call ForGroupBJ(udg_Wd,function DT)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call TriggerSleepAction(0.30)
set udg_Wd=YG(udg_vo,Condition(function ET))
call ForGroupBJ(udg_Wd,function GT)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(udg_xo,Condition(function HT))
call ForGroupBJ(udg_Wd,function lT)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(udg_sn,Condition(function JT))
call ForGroupBJ(udg_Wd,function LT)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call RemoveLocation(udg_Td)
set udg_Td=null
call RemoveLocation(udg_Xd)
set udg_Xd=null
call RemoveLocation(udg_Yd)
set udg_Yd=null
call RemoveLocation(udg_Zd)
set udg_Zd=null
call RemoveLocation(udg_de)
set udg_de=null
call RemoveLocation(udg_ee)
set udg_ee=null
call RemoveLocation(udg_fe)
set udg_fe=null
else
call DoNothing()
endif
endfunction
function OT takes nothing returns nothing
set udg_Zs=CreateTrigger()
call TriggerAddAction(udg_Zs,function NT)
endfunction
function PT takes nothing returns boolean
return(udg_Je==true)
endfunction
function QT takes nothing returns boolean
if(not(udg_m[udg_y7]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_m[udg_y7])==false))then
return false
endif
return true
endfunction
function RT takes nothing returns boolean
return(udg_m[udg_Cj[udg_y7]]!=null)
endfunction
function ST takes nothing returns boolean
if(not QT())then
return false
endif
return true
endfunction
function TT takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function UT takes nothing returns boolean
return(udg_a[1006]!=null)
endfunction
function VT takes nothing returns boolean
return(udg_fj==true)
endfunction
function WT takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),udg_Td,0.00)
endfunction
function XT takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function YT takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function ZT takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_O7[1])
endfunction
function dU takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_O7[2])
endfunction
function eU takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_O7[3])
endfunction
function fU takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_O7[4])
endfunction
function gU takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_O7[5])
endfunction
function hU takes nothing returns boolean
return GetBooleanAnd(fU(),gU())
endfunction
function iU takes nothing returns boolean
return GetBooleanAnd(eU(),hU())
endfunction
function jU takes nothing returns boolean
return GetBooleanAnd(dU(),iU())
endfunction
function kU takes nothing returns boolean
return GetBooleanAnd(ZT(),jU())
endfunction
function mU takes nothing returns boolean
return GetBooleanAnd(YT(),kU())
endfunction
function nU takes nothing returns boolean
return GetBooleanAnd(XT(),mU())
endfunction
function oU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_T))then
return false
endif
return true
endfunction
function pU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_O7[5]))then
return false
endif
return true
endfunction
function qU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_O7[4]))then
return false
endif
return true
endfunction
function rU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_O7[3]))then
return false
endif
return true
endfunction
function sU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_O7[2]))then
return false
endif
return true
endfunction
function tU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_O7[1]))then
return false
endif
return true
endfunction
function uU takes nothing returns nothing
set udg_O7[GetForLoopIndexB()]=udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]
set udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
set udg_J[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
call ShowUnitShow(udg_O7[GetForLoopIndexB()])
if(oU())then
call TriggerExecute(udg_pt)
else
call DoNothing()
endif
if(tU())then
call SetUnitPositionLoc(udg_O7[1],udg_Xd)
call SetUnitFacingToFaceLocTimed(udg_O7[1],udg_de,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_O7[1],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(sU())then
call SetUnitPositionLoc(udg_O7[2],udg_Yd)
call SetUnitFacingToFaceLocTimed(udg_O7[2],udg_ee,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_O7[2],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(rU())then
call SetUnitPositionLoc(udg_O7[3],udg_Zd)
call SetUnitFacingToFaceLocTimed(udg_O7[3],udg_fe,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_O7[3],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(qU())then
call SetUnitPositionLoc(udg_O7[4],udg_ge)
call SetUnitFacingTimed(udg_O7[4],0.00,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_O7[4],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(pU())then
call SetUnitPositionLoc(udg_O7[5],udg_he)
call SetUnitFacingTimed(udg_O7[5],0.00,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_O7[5],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
endif
endif
endif
call SetUnitLifePercentBJ(udg_O7[GetForLoopIndexB()],100)
call SetUnitManaPercentBJ(udg_O7[GetForLoopIndexB()],100)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_O7[GetForLoopIndexB()])
call SetUnitInvulnerable(udg_O7[GetForLoopIndexB()],true)
call PauseUnitBJ(true,udg_O7[GetForLoopIndexB()])
endfunction
function vU takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function wU takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function xU takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_P7[1])
endfunction
function yU takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_P7[2])
endfunction
function zU takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_P7[3])
endfunction
function AU takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_P7[4])
endfunction
function aU takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetFilterPlayer())]!=udg_P7[5])
endfunction
function BU takes nothing returns boolean
return GetBooleanAnd(AU(),aU())
endfunction
function bU takes nothing returns boolean
return GetBooleanAnd(zU(),BU())
endfunction
function CU takes nothing returns boolean
return GetBooleanAnd(yU(),bU())
endfunction
function cU takes nothing returns boolean
return GetBooleanAnd(xU(),CU())
endfunction
function DU takes nothing returns boolean
return GetBooleanAnd(wU(),cU())
endfunction
function EU takes nothing returns boolean
return GetBooleanAnd(vU(),DU())
endfunction
function FU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_T))then
return false
endif
return true
endfunction
function GU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_P7[5]))then
return false
endif
return true
endfunction
function HU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_P7[4]))then
return false
endif
return true
endfunction
function IU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_P7[3]))then
return false
endif
return true
endfunction
function lU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_P7[2]))then
return false
endif
return true
endfunction
function JU takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==udg_P7[1]))then
return false
endif
return true
endfunction
function KU takes nothing returns nothing
set udg_P7[GetForLoopIndexB()]=udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]
set udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
set udg_J[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
call ShowUnitShow(udg_P7[GetForLoopIndexB()])
if(FU())then
call TriggerExecute(udg_pt)
else
call DoNothing()
endif
if(JU())then
call SetUnitPositionLoc(udg_P7[1],udg_de)
call SetUnitFacingToFaceLocTimed(udg_P7[1],udg_Xd,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_P7[1],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(lU())then
call SetUnitPositionLoc(udg_P7[2],udg_ee)
call SetUnitFacingToFaceLocTimed(udg_P7[2],udg_Yd,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_P7[2],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(IU())then
call SetUnitPositionLoc(udg_P7[3],udg_fe)
call SetUnitFacingToFaceLocTimed(udg_P7[3],udg_Zd,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_P7[3],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(HU())then
call SetUnitPositionLoc(udg_P7[4],udg_ie)
call SetUnitFacingTimed(udg_P7[4],180.00,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_P7[4],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(GU())then
call SetUnitPositionLoc(udg_P7[5],udg_je)
call SetUnitFacingTimed(udg_P7[5],180.00,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_P7[5],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
endif
endif
endif
call SetUnitLifePercentBJ(udg_P7[GetForLoopIndexB()],100)
call SetUnitManaPercentBJ(udg_P7[GetForLoopIndexB()],100)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_P7[GetForLoopIndexB()])
call SetUnitInvulnerable(udg_P7[GetForLoopIndexB()],true)
call PauseUnitBJ(true,udg_P7[GetForLoopIndexB()])
endfunction
function LU takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function MU takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_O7[GetForLoopIndexB()]))
endfunction
function NU takes nothing returns boolean
return GetBooleanAnd(LU(),MU())
endfunction
function OU takes nothing returns nothing
set udg_Td=PG(GetUnitLoc(udg_O7[GetForLoopIndexB()]),100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,0.00)
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function PU takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_Wd)==false))then
return false
endif
return true
endfunction
function QU takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function RU takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_P7[GetForLoopIndexB()]))
endfunction
function SU takes nothing returns boolean
return GetBooleanAnd(QU(),RU())
endfunction
function TU takes nothing returns nothing
set udg_Td=PG(GetUnitLoc(udg_P7[GetForLoopIndexB()]),100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,180.00)
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function UU takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_Wd)==false))then
return false
endif
return true
endfunction
function VU takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_O7[GetForLoopIndexB()]))
endfunction
function WU takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function XU takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function YU takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function ZU takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function dV takes nothing returns boolean
return GetBooleanAnd(YU(),ZU())
endfunction
function eV takes nothing returns boolean
return GetBooleanAnd(XU(),dV())
endfunction
function fV takes nothing returns boolean
return GetBooleanAnd(WU(),eV())
endfunction
function gV takes nothing returns boolean
return GetBooleanAnd(VU(),fV())
endfunction
function hV takes nothing returns nothing
set udg_Td=PG(GetUnitLoc(udg_O7[GetForLoopIndexB()]),100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,0.00)
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function iV takes nothing returns boolean
if(not(GetUnitTypeId(udg_O7[GetForLoopIndexB()])==1311780947))then
return false
endif
return true
endfunction
function jV takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_P7[GetForLoopIndexB()]))
endfunction
function kV takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function mV takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function nV takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function oV takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function pV takes nothing returns boolean
return GetBooleanAnd(nV(),oV())
endfunction
function qV takes nothing returns boolean
return GetBooleanAnd(mV(),pV())
endfunction
function rV takes nothing returns boolean
return GetBooleanAnd(kV(),qV())
endfunction
function sV takes nothing returns boolean
return GetBooleanAnd(jV(),rV())
endfunction
function tV takes nothing returns nothing
set udg_Td=PG(GetUnitLoc(udg_P7[GetForLoopIndexB()]),100.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_Td,180.00)
call RemoveLocation(udg_Td)
set udg_Td=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function uV takes nothing returns boolean
if(not(GetUnitTypeId(udg_P7[GetForLoopIndexB()])==1311780947))then
return false
endif
return true
endfunction
function vV takes nothing returns boolean
return(RectContainsUnit(udg_so,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))])==true)
endfunction
function wV takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1966092354)
endfunction
function xV takes nothing returns boolean
return GetBooleanAnd(vV(),wV())
endfunction
function yV takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_Td)
endfunction
function zV takes nothing returns boolean
return(RectContainsUnit(udg_so,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))])==true)
endfunction
function AV takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1966092336)
endfunction
function aV takes nothing returns boolean
return GetBooleanAnd(zV(),AV())
endfunction
function BV takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_Td)
endfunction
function bV takes nothing returns boolean
return(RectContainsUnit(udg_so,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))])==true)
endfunction
function CV takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1966092337)
endfunction
function cV takes nothing returns boolean
return GetBooleanAnd(bV(),CV())
endfunction
function DV takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_Td)
endfunction
function EV takes nothing returns boolean
if((GetUnitTypeId(udg_O7[GetForLoopIndexB()])==1430466867))then
return true
endif
if((GetUnitTypeId(udg_P7[GetForLoopIndexB()])==1430466867))then
return true
endif
return false
endfunction
function FV takes nothing returns boolean
if(not EV())then
return false
endif
return true
endfunction
function GV takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function HV takes nothing returns boolean
return(udg_a[1006]!=null)
endfunction
function IV takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function lV takes nothing returns boolean
if(not(GetEnumUnit()==udg_O7[5]))then
return false
endif
return true
endfunction
function JV takes nothing returns boolean
if(not(GetEnumUnit()==udg_O7[4]))then
return false
endif
return true
endfunction
function KV takes nothing returns boolean
if(not(GetEnumUnit()==udg_O7[3]))then
return false
endif
return true
endfunction
function LV takes nothing returns boolean
if(not(GetEnumUnit()==udg_O7[2]))then
return false
endif
return true
endfunction
function MV takes nothing returns boolean
if(not(GetEnumUnit()==udg_O7[1]))then
return false
endif
return true
endfunction
function NV takes nothing returns boolean
if(not(GetEnumUnit()==udg_P7[5]))then
return false
endif
return true
endfunction
function OV takes nothing returns boolean
if(not(GetEnumUnit()==udg_P7[4]))then
return false
endif
return true
endfunction
function PV takes nothing returns boolean
if(not(GetEnumUnit()==udg_P7[3]))then
return false
endif
return true
endfunction
function QV takes nothing returns boolean
if(not(GetEnumUnit()==udg_P7[2]))then
return false
endif
return true
endfunction
function RV takes nothing returns boolean
if(not(GetEnumUnit()==udg_P7[1]))then
return false
endif
return true
endfunction
function SV takes nothing returns nothing
set udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
set udg_J[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
call ShowUnitShow(GetEnumUnit())
if(MV())then
call SetUnitPositionLoc(GetEnumUnit(),udg_Xd)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_de,0)
else
if(LV())then
call SetUnitPositionLoc(GetEnumUnit(),udg_Yd)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_ee,0)
else
if(KV())then
call SetUnitPositionLoc(GetEnumUnit(),udg_Zd)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_fe,0)
else
if(JV())then
call SetUnitPositionLoc(GetEnumUnit(),udg_ge)
call SetUnitFacingTimed(GetEnumUnit(),0.00,0)
else
if(lV())then
call SetUnitPositionLoc(GetEnumUnit(),udg_he)
call SetUnitFacingTimed(GetEnumUnit(),0.00,0)
else
call DoNothing()
endif
endif
endif
endif
endif
if(RV())then
call SetUnitPositionLoc(GetEnumUnit(),udg_de)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_Xd,0)
else
if(QV())then
call SetUnitPositionLoc(GetEnumUnit(),udg_ee)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_Yd,0)
else
if(PV())then
call SetUnitPositionLoc(GetEnumUnit(),udg_fe)
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_Zd,0)
else
if(OV())then
call SetUnitPositionLoc(GetEnumUnit(),udg_ie)
call SetUnitFacingTimed(GetEnumUnit(),180.00,0)
else
if(NV())then
call SetUnitPositionLoc(GetEnumUnit(),udg_je)
call SetUnitFacingTimed(GetEnumUnit(),180.00,0)
else
call DoNothing()
endif
endif
endif
endif
endif
call SetUnitLifePercentBJ(GetEnumUnit(),100)
call SetUnitManaPercentBJ(GetEnumUnit(),100)
call SetUnitInvulnerable(GetEnumUnit(),true)
call PauseUnitBJ(true,GetEnumUnit())
endfunction
function TV takes nothing returns boolean
return(udg_m[udg_Cj[100]]!=null)
endfunction
function UV takes nothing returns boolean
return(IsUnitHiddenBJ(udg_m[udg_Cj[100]])==true)
endfunction
function VV takes nothing returns boolean
return GetBooleanAnd(TV(),UV())
endfunction
function WV takes nothing returns boolean
return(udg_m[udg_Cj[100]]!=null)
endfunction
function XV takes nothing returns boolean
return(IsUnitPausedBJ(udg_m[udg_Cj[100]])==false)
endfunction
function YV takes nothing returns boolean
return GetBooleanAnd(WV(),XV())
endfunction
function ZV takes nothing returns boolean
return(udg_m[udg_Cj[100]]!=null)
endfunction
function dW takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function eW takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function fW takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function gW takes nothing returns nothing
set udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
call ShowUnitShow(GetEnumUnit())
call SetUnitLifePercentBJ(GetEnumUnit(),100)
call SetUnitManaPercentBJ(GetEnumUnit(),100)
call SetUnitInvulnerable(GetEnumUnit(),false)
call PauseUnitBJ(false,GetEnumUnit())
call SelectUnitForPlayerSingle(GetEnumUnit(),GetOwningPlayer(GetEnumUnit()))
endfunction
function hW takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function iW takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
call SetUnitInvulnerable(GetEnumUnit(),false)
endfunction
function jW takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function kW takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function mW takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==false)
endfunction
function nW takes nothing returns boolean
return GetBooleanAnd(kW(),mW())
endfunction
function oW takes nothing returns boolean
return GetBooleanAnd(jW(),nW())
endfunction
function pW takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
call SetUnitInvulnerable(GetEnumUnit(),false)
endfunction
function qW takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function rW takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function sW takes nothing returns boolean
return GetBooleanAnd(qW(),rW())
endfunction
function tW takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_Td)
endfunction
function uW takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function vW takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function wW takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(vW())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function xW takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function yW takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function zW takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(yW())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function AW takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function aW takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function BW takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(aW())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function bW takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function CW takes nothing returns nothing
if(TT())then
call DisableTrigger(udg_MF)
call DisableTrigger(udg_Ps)
call CinematicModeBJ(true,GetPlayersAll())
call ClearTextMessagesBJ(GetPlayersAll())
call DisplayTextToForce(GetPlayersAll(),"|c00fffc01Event: 5 vs 5|r")
call PlaySoundBJ(udg_cp)
if(PT())then
set udg_Je=false
else
call DoNothing()
endif
set udg_y7=1
loop
exitwhen udg_y7>12
if(ST())then
set udg_z7[udg_y7]=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_m[udg_y7]))
set udg_G7[udg_y7]=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_m[udg_y7]))
if(RT())then
call SetUnitInvulnerable(udg_m[udg_Cj[udg_y7]],true)
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_y7=udg_y7+1
endloop
call EnableTrigger(udg_nt)
call EnableTrigger(udg_mt)
else
call DoNothing()
endif
call TriggerSleepAction(3.00)
if(UT())then
set udg_a[1006]=null
else
call DoNothing()
endif
if(VT())then
set udg_fj=false
else
call DoNothing()
endif
if(GV())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_l[GetForLoopIndexA()]=false
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_Td=GetRectCenter(udg_so)
call ForForce(GetPlayersAll(),function WT)
call RemoveLocation(udg_Td)
set udg_Td=null
set udg_Xd=GetRectCenter(udg_Ao)
set udg_Yd=GetRectCenter(udg_ao)
set udg_Zd=GetRectCenter(udg_Bo)
set udg_ge=PG(PG(GetRectCenter(udg_Ao),256,270.00),256,180.00)
set udg_he=PG(PG(GetRectCenter(udg_ao),256,270.00),256,180.00)
set udg_de=GetRectCenter(udg_bo)
set udg_ee=GetRectCenter(udg_Co)
set udg_fe=GetRectCenter(udg_co)
set udg_ie=PG(PG(GetRectCenter(udg_bo),256,270.00),256,0.00)
set udg_je=PG(PG(GetRectCenter(udg_Co),256,270.00),256,0.00)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=5
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call TriggerSleepAction(0.20)
set udg_Wd=k6(ForcePickRandomPlayer(t6(Condition(function nU))),1700885091)
call ForGroupBJ(udg_Wd,function uU)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=k6(ForcePickRandomPlayer(t6(Condition(function EU))),1700885091)
call ForGroupBJ(udg_Wd,function KU)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(GetPlayableMapRect(),Condition(function NU))
if(PU())then
call ForGroupBJ(udg_Wd,function OU)
else
call DoNothing()
endif
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(GetPlayableMapRect(),Condition(function SU))
if(UU())then
call ForGroupBJ(udg_Wd,function TU)
else
call DoNothing()
endif
call DestroyGroup(udg_Wd)
set udg_Wd=null
if(iV())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function gV))
call ForGroupBJ(udg_Wd,function hV)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
if(uV())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function sV))
call ForGroupBJ(udg_Wd,function tV)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
set udg_Td=GetRectCenter(udg_so)
if(FV())then
set udg_Wd=YG(GetPlayableMapRect(),Condition(function xV))
call ForGroupBJ(udg_Wd,function yV)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(GetPlayableMapRect(),Condition(function aV))
call ForGroupBJ(udg_Wd,function BV)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(GetPlayableMapRect(),Condition(function cV))
call ForGroupBJ(udg_Wd,function DV)
call DestroyGroup(udg_Wd)
set udg_Wd=null
else
call DoNothing()
endif
call RemoveLocation(udg_Td)
set udg_Td=null
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set udg_w=true
set udg_Q7=true
set udg_R7[1]=0
set udg_R7[2]=0
else
call DoNothing()
endif
call TriggerSleepAction(4.00)
if(HV())then
set udg_a[1006]=null
else
call DoNothing()
endif
if(dW())then
call DisableTrigger(udg_nt)
set udg_Td=GetRectCenter(udg_so)
call CreateTextTagLocBJ("3",udg_Td,0,20.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.45)
set udg_Wd=YG(udg_Do,Condition(function IV))
call ForGroupBJ(udg_Wd,function SV)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call PlaySoundBJ(udg_sp)
set udg_Cj[100]=1
loop
exitwhen udg_Cj[100]>12
if(VV())then
call ShowUnitShow(udg_m[udg_Cj[100]])
else
call DoNothing()
endif
if(YV())then
call PauseUnitBJ(true,udg_m[udg_Cj[100]])
else
call DoNothing()
endif
if(ZV())then
call SetUnitInvulnerable(udg_m[udg_Cj[100]],true)
else
call DoNothing()
endif
set udg_Cj[100]=udg_Cj[100]+1
endloop
else
call DoNothing()
endif
call TriggerSleepAction(0.60)
if(eW())then
call CreateTextTagLocBJ("2",udg_Td,0,20.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.45)
call PlaySoundBJ(udg_sp)
call TriggerSleepAction(0.60)
call CreateTextTagLocBJ("1",udg_Td,0,20.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.45)
call PlaySoundBJ(udg_sp)
else
call DoNothing()
endif
call TriggerSleepAction(0.59)
if(bW())then
call SetUnitPositionLocFacingLocBJ(udg_O7[1],udg_Xd,udg_de)
call SetUnitPositionLocFacingLocBJ(udg_O7[2],udg_Yd,udg_ee)
call SetUnitPositionLocFacingLocBJ(udg_O7[3],udg_Zd,udg_fe)
call SetUnitPositionLocFacingBJ(udg_O7[4],udg_ge,0.00)
call SetUnitPositionLocFacingBJ(udg_O7[5],udg_he,0.00)
call SetUnitPositionLocFacingLocBJ(udg_P7[1],udg_de,udg_Xd)
call SetUnitPositionLocFacingLocBJ(udg_P7[2],udg_ee,udg_Yd)
call SetUnitPositionLocFacingLocBJ(udg_P7[3],udg_fe,udg_Zd)
call SetUnitPositionLocFacingBJ(udg_P7[4],udg_ie,180.00)
call SetUnitPositionLocFacingBJ(udg_P7[5],udg_je,180.00)
call TriggerSleepAction(0.01)
call CreateTextTagLocBJ("GO!",udg_Td,0,30.00,100,0.00,0.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.40)
call CinematicModeBJ(false,GetPlayersAll())
call PlayThematicMusicBJ("Misc\\Music\\Duel\\5vs5.mp3")
call SetUnitPositionLocFacingLocBJ(udg_O7[1],udg_Xd,udg_de)
call SetUnitPositionLocFacingLocBJ(udg_O7[2],udg_Yd,udg_ee)
call SetUnitPositionLocFacingLocBJ(udg_O7[3],udg_Zd,udg_fe)
call SetUnitPositionLocFacingBJ(udg_O7[4],udg_ge,0.00)
call SetUnitPositionLocFacingBJ(udg_O7[5],udg_he,0.00)
call SetUnitPositionLocFacingLocBJ(udg_P7[1],udg_de,udg_Xd)
call SetUnitPositionLocFacingLocBJ(udg_P7[2],udg_ee,udg_Yd)
call SetUnitPositionLocFacingLocBJ(udg_P7[3],udg_fe,udg_Zd)
call SetUnitPositionLocFacingBJ(udg_P7[4],udg_ie,180.00)
call SetUnitPositionLocFacingBJ(udg_P7[5],udg_je,180.00)
set udg_Wd=YG(udg_Do,Condition(function fW))
call ForGroupBJ(udg_Wd,function gW)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call PlaySoundBJ(udg_mp)
set udg_Wd=YG(udg_Do,Condition(function hW))
call ForGroupBJ(udg_Wd,function iW)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(udg_Do,Condition(function oW))
call ForGroupBJ(udg_Wd,function pW)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call StartTimerBJ(udg_Li,false,45.00)
call TimerDialogDisplayBJ(true,udg_Mi)
call TriggerSleepAction(0.01)
call EnableTrigger(udg_Ps)
set udg_Wd=YG(udg_so,Condition(function sW))
call ForGroupBJ(udg_Wd,function tW)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call TriggerSleepAction(0.10)
set udg_Wd=YG(udg_vo,Condition(function uW))
call ForGroupBJ(udg_Wd,function wW)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(udg_xo,Condition(function xW))
call ForGroupBJ(udg_Wd,function zW)
call DestroyGroup(udg_Wd)
set udg_Wd=null
set udg_Wd=YG(udg_sn,Condition(function AW))
call ForGroupBJ(udg_Wd,function BW)
call DestroyGroup(udg_Wd)
set udg_Wd=null
call RemoveLocation(udg_Td)
set udg_Td=null
call RemoveLocation(udg_Xd)
set udg_Xd=null
call RemoveLocation(udg_Yd)
set udg_Yd=null
call RemoveLocation(udg_Zd)
set udg_Zd=null
call RemoveLocation(udg_ge)
set udg_ge=null
call RemoveLocation(udg_he)
set udg_he=null
call RemoveLocation(udg_de)
set udg_de=null
call RemoveLocation(udg_ee)
set udg_ee=null
call RemoveLocation(udg_fe)
set udg_fe=null
call RemoveLocation(udg_ie)
set udg_ie=null
call RemoveLocation(udg_je)
set udg_je=null
else
call DoNothing()
endif
endfunction
function cW takes nothing returns nothing
set udg_dt=CreateTrigger()
call TriggerAddAction(udg_dt,function CW)
endfunction
function DW takes nothing returns boolean
if(not(udg_V7[3]==0))then
return false
endif
return true
endfunction
function EW takes nothing returns nothing
call AdjustPlayerStateBJ(((3-udg_V7[3])*200),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function FW takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return false
endif
return true
endfunction
function GW takes nothing returns boolean
if(not(udg_V7[3]==0))then
return false
endif
return true
endfunction
function HW takes nothing returns nothing
call AdjustPlayerStateBJ(((3-udg_V7[3])*200),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function IW takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return false
endif
return true
endfunction
function lW takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function JW takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function KW takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(JW())then
call SetUnitInvulnerable(GetEnumUnit(),true)
else
call DoNothing()
endif
endfunction
function LW takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function MW takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function NW takes nothing returns boolean
return GetBooleanAnd(LW(),MW())
endfunction
function OW takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function PW takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function QW takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function RW takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function SW takes nothing returns boolean
return GetBooleanAnd(QW(),RW())
endfunction
function TW takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function UW takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function VW takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function WW takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function XW takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function YW takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function ZW takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function dX takes nothing returns boolean
return GetBooleanAnd(YW(),ZW())
endfunction
function eX takes nothing returns boolean
return GetBooleanAnd(XW(),dX())
endfunction
function fX takes nothing returns boolean
return GetBooleanAnd(WW(),eX())
endfunction
function gX takes nothing returns boolean
return GetBooleanAnd(VW(),fX())
endfunction
function hX takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function iX takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function jX takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function kX takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function mX takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function nX takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function oX takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function pX takes nothing returns boolean
return GetBooleanAnd(nX(),oX())
endfunction
function qX takes nothing returns boolean
return GetBooleanAnd(mX(),pX())
endfunction
function rX takes nothing returns boolean
return GetBooleanAnd(kX(),qX())
endfunction
function sX takes nothing returns boolean
return GetBooleanAnd(jX(),rX())
endfunction
function tX takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function uX takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function vX takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function wX takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function xX takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function yX takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
if(xX())then
call SetUnitInvulnerable(GetEnumUnit(),false)
else
call DoNothing()
endif
endfunction
function zX takes nothing returns nothing
set udg_ne=GetUnitLoc(udg_mG)
call SetItemPositionLoc(GetEnumItem(),udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetItemLoc(GetEnumItem())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call RemoveLocation(udg_ne)
set udg_ne=null
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function AX takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function aX takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function BX takes nothing returns boolean
return GetBooleanAnd(AX(),aX())
endfunction
function bX takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_ne)
endfunction
function CX takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function cX takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function CX)))!=0))then
return false
endif
return true
endfunction
function DX takes nothing returns boolean
if(not(udg_m[udg_y7]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_m[udg_y7])==false))then
return false
endif
return true
endfunction
function EX takes nothing returns boolean
return(udg_z7[udg_y7]!=0)
endfunction
function FX takes nothing returns boolean
return(udg_G7[udg_y7]!=0)
endfunction
function GX takes nothing returns boolean
if(not DX())then
return false
endif
return true
endfunction
function HX takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function IX takes nothing returns nothing
call TimerDialogDisplayBJ(false,udg_Mi)
call EndThematicMusicBJ()
if(vX())then
call CinematicModeBJ(true,GetPlayersAll())
if(IW())then
call DisplayTextToForce(GetPlayersAll(),"Winner: |c00ff0000Team 1|r")
set udg_V7[3]=udg_e4[2]
call DisplayTextToForce(GetPlayersAll(),(I2S(udg_V7[3])+" Death(s)"))
if(GW())then
call DisplayTextToForce(GetPlayersAll(),"|c00ff0303Perfect Score!|r")
call DisplayTextToForce(GetPlayersAll(),"(+600 gold each player)")
else
call DisplayTextToForce(GetPlayersAll(),("(+"+(I2S(((3-udg_V7[3])*200))+" gold each player)")))
endif
call ForForce(udg_e,function HW)
set udg_V7[3]=0
else
if(FW())then
call DisplayTextToForce(GetPlayersAll(),"Winner: |c0020c000Team 2|r")
set udg_V7[3]=udg_e4[1]
call DisplayTextToForce(GetPlayersAll(),(I2S(udg_V7[3])+" Death(s)"))
if(DW())then
call DisplayTextToForce(GetPlayersAll(),"|c00ff0303Perfect Score!|r")
call DisplayTextToForce(GetPlayersAll(),"(+600 gold each player)")
else
call DisplayTextToForce(GetPlayersAll(),("(+"+(I2S(((3-udg_V7[3])*200))+" gold each player)")))
endif
call ForForce(udg_f,function EW)
set udg_V7[3]=0
else
call DoNothing()
endif
endif
set udg_me=YG(GetPlayableMapRect(),Condition(function lW))
call ForGroupBJ(udg_me,function KW)
call DestroyGroup(udg_me)
set udg_me=null
call PlaySoundBJ(udg_nq)
set udg_d4=false
set udg_w=false
set udg_me=YG(udg_Do,Condition(function NW))
if(PW())then
call ForGroupBJ(udg_me,function OW)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function SW))
if(UW())then
call ForGroupBJ(udg_me,function TW)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function gX))
if(iX())then
call ForGroupBJ(udg_me,function hX)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function sX))
if(uX())then
call ForGroupBJ(udg_me,function tX)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_e4[1]=0
set udg_e4[2]=0
call EnableTrigger(udg_ot)
else
call DoNothing()
endif
call TriggerSleepAction(4.99)
call DisableTrigger(udg_ot)
call TriggerSleepAction(0.01)
if(HX())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLoc(udg_Y[GetForLoopIndexA()],udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLoc(udg_Z[GetForLoopIndexA()],udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_Y[GetForLoopIndexA()]=null
set udg_Z[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_me=YG(GetPlayableMapRect(),Condition(function wX))
call ForGroupBJ(udg_me,function yX)
call DestroyGroup(udg_me)
set udg_me=null
call StartTimerBJ(udg_q,false,240.00)
call CinematicModeBJ(false,GetPlayersAll())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_ne=GetUnitLoc(udg_m[GetForLoopIndexA()])
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),udg_ne,0)
call SelectUnitForPlayerSingle(udg_m[GetForLoopIndexA()],GetOwningPlayer(udg_m[GetForLoopIndexA()]))
call RemoveLocation(udg_ne)
set udg_ne=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_oe=udg_Do
call EnumItemsInRectBJ(udg_oe,function zX)
set udg_oe=null
set udg_me=YG(GetPlayableMapRect(),Condition(function BX))
set udg_ne=GetUnitLoc(udg_mG)
call ForGroupBJ(udg_me,function bX)
call DestroyGroup(udg_me)
set udg_me=null
call RemoveLocation(udg_ne)
set udg_ne=null
if(cX())then
call EnableTrigger(udg_MF)
else
call DoNothing()
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_c4[GetForLoopIndexA()]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_y7=1
loop
exitwhen udg_y7>12
if(GX())then
if(EX())then
call SetUnitLifeBJ(udg_m[udg_y7],I2R(udg_z7[udg_y7]))
else
call DoNothing()
endif
if(FX())then
call SetUnitManaBJ(udg_m[udg_y7],I2R(udg_G7[udg_y7]))
else
call DoNothing()
endif
set udg_z7[udg_y7]=0
set udg_G7[udg_y7]=0
else
call DoNothing()
endif
set udg_y7=udg_y7+1
endloop
else
call DoNothing()
endif
endfunction
function lX takes nothing returns nothing
set udg_et=CreateTrigger()
call TriggerAddAction(udg_et,function IX)
endfunction
function JX takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function KX takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function LX takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function MX takes nothing returns boolean
return GetBooleanAnd(KX(),LX())
endfunction
function NX takes nothing returns nothing
set udg_Oi[1]=(udg_Oi[1]+GetUnitLifePercent(GetEnumUnit()))
endfunction
function OX takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function PX takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function QX takes nothing returns boolean
return GetBooleanAnd(OX(),PX())
endfunction
function RX takes nothing returns nothing
set udg_Oi[2]=(udg_Oi[2]+GetUnitLifePercent(GetEnumUnit()))
endfunction
function SX takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function TX takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function UX takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(TX())then
call SetUnitInvulnerable(GetEnumUnit(),true)
else
call DoNothing()
endif
endfunction
function VX takes nothing returns boolean
if(not(udg_Oi[1]==udg_Oi[2]))then
return false
endif
return true
endfunction
function WX takes nothing returns nothing
call AdjustPlayerStateBJ(200,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function XX takes nothing returns boolean
if(not(udg_Oi[2]>udg_Oi[1]))then
return false
endif
return true
endfunction
function YX takes nothing returns nothing
call AdjustPlayerStateBJ(200,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function ZX takes nothing returns boolean
if(not(udg_Oi[1]>udg_Oi[2]))then
return false
endif
return true
endfunction
function dY takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function eY takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function fY takes nothing returns boolean
return GetBooleanAnd(dY(),eY())
endfunction
function gY takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function hY takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function iY takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function jY takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function kY takes nothing returns boolean
return GetBooleanAnd(iY(),jY())
endfunction
function mY takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function nY takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function oY takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function pY takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function qY takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function rY takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function sY takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function tY takes nothing returns boolean
return GetBooleanAnd(rY(),sY())
endfunction
function uY takes nothing returns boolean
return GetBooleanAnd(qY(),tY())
endfunction
function vY takes nothing returns boolean
return GetBooleanAnd(pY(),uY())
endfunction
function wY takes nothing returns boolean
return GetBooleanAnd(oY(),vY())
endfunction
function xY takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function yY takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function zY takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function AY takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function aY takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function BY takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function bY takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function CY takes nothing returns boolean
return GetBooleanAnd(BY(),bY())
endfunction
function cY takes nothing returns boolean
return GetBooleanAnd(aY(),CY())
endfunction
function DY takes nothing returns boolean
return GetBooleanAnd(AY(),cY())
endfunction
function EY takes nothing returns boolean
return GetBooleanAnd(zY(),DY())
endfunction
function FY takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function GY takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function HY takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function IY takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function lY takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function JY takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
if(lY())then
call SetUnitInvulnerable(GetEnumUnit(),false)
else
call DoNothing()
endif
endfunction
function KY takes nothing returns nothing
set udg_ne=GetUnitLoc(udg_mG)
call SetItemPositionLoc(GetEnumItem(),udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetItemLoc(GetEnumItem())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call RemoveLocation(udg_ne)
set udg_ne=null
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function LY takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function MY takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function NY takes nothing returns boolean
return GetBooleanAnd(LY(),MY())
endfunction
function OY takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_ne)
endfunction
function PY takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function QY takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function PY)))!=0))then
return false
endif
return true
endfunction
function RY takes nothing returns boolean
if(not(udg_m[udg_y7]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_m[udg_y7])==false))then
return false
endif
return true
endfunction
function SY takes nothing returns boolean
return(udg_z7[udg_y7]!=0)
endfunction
function TY takes nothing returns boolean
return(udg_G7[udg_y7]!=0)
endfunction
function UY takes nothing returns boolean
if(not RY())then
return false
endif
return true
endfunction
function VY takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function WY takes nothing returns nothing
call TimerDialogDisplayBJ(false,udg_Mi)
set udg_Oi[1]=0.00
set udg_Oi[2]=0.00
set udg_me=YG(udg_Do,Condition(function MX))
call ForGroupBJ(udg_me,function NX)
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function QX))
call ForGroupBJ(udg_me,function RX)
call DestroyGroup(udg_me)
set udg_me=null
if(HY())then
call CinematicModeBJ(true,GetPlayersAll())
call DisplayTextToForce(GetPlayersAll(),"Time is up!")
set udg_me=YG(GetPlayableMapRect(),Condition(function SX))
call ForGroupBJ(udg_me,function UX)
call DestroyGroup(udg_me)
set udg_me=null
call TriggerSleepAction(1.00)
if(ZX())then
call DisplayTextToForce(GetPlayersAll(),"Winner: |c00ff0000Team 1|r")
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 1) = "+(I2S(R2I(udg_Oi[1]))+"%")))
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 2) = "+(I2S(R2I(udg_Oi[2]))+"%")))
call DisplayTextToForce(GetPlayersAll(),"(+200 gold each player)")
call ForForce(udg_e,function YX)
else
if(XX())then
call DisplayTextToForce(GetPlayersAll(),"Winner: |c0020c000Team 2|r")
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 2) = "+(I2S(R2I(udg_Oi[2]))+"%")))
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 1) = "+(I2S(R2I(udg_Oi[1]))+"%")))
call DisplayTextToForce(GetPlayersAll(),"(+200 gold each player)")
call ForForce(udg_f,function WX)
else
if(VX())then
call DisplayTextToForce(GetPlayersAll(),"DRAW!!!")
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 1) = "+(I2S(R2I(udg_Oi[1]))+"%")))
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 2) = "+(I2S(R2I(udg_Oi[2]))+"%")))
else
call DoNothing()
endif
endif
endif
call PlaySoundBJ(udg_nq)
set udg_d4=false
set udg_w=false
set udg_me=YG(udg_Do,Condition(function fY))
if(hY())then
call ForGroupBJ(udg_me,function gY)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function kY))
if(nY())then
call ForGroupBJ(udg_me,function mY)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function wY))
if(yY())then
call ForGroupBJ(udg_me,function xY)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function EY))
if(GY())then
call ForGroupBJ(udg_me,function FY)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_e4[1]=0
set udg_e4[2]=0
call EnableTrigger(udg_ot)
else
call DoNothing()
endif
call TriggerSleepAction(4.99)
call DisableTrigger(udg_ot)
call TriggerSleepAction(0.01)
if(VY())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLoc(udg_Y[GetForLoopIndexA()],udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLoc(udg_Z[GetForLoopIndexA()],udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_Y[GetForLoopIndexA()]=null
set udg_Z[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_me=YG(GetPlayableMapRect(),Condition(function IY))
call ForGroupBJ(udg_me,function JY)
call DestroyGroup(udg_me)
set udg_me=null
call StartTimerBJ(udg_q,false,240.00)
call CinematicModeBJ(false,GetPlayersAll())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_ne=GetUnitLoc(udg_m[GetForLoopIndexA()])
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),udg_ne,0)
call SelectUnitForPlayerSingle(udg_m[GetForLoopIndexA()],GetOwningPlayer(udg_m[GetForLoopIndexA()]))
call RemoveLocation(udg_ne)
set udg_ne=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_oe=udg_Do
call EnumItemsInRectBJ(udg_oe,function KY)
set udg_oe=null
set udg_me=YG(GetPlayableMapRect(),Condition(function NY))
set udg_ne=GetUnitLoc(udg_mG)
call ForGroupBJ(udg_me,function OY)
call DestroyGroup(udg_me)
set udg_me=null
call RemoveLocation(udg_ne)
set udg_ne=null
if(QY())then
call EnableTrigger(udg_MF)
else
call DoNothing()
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_c4[GetForLoopIndexA()]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_y7=1
loop
exitwhen udg_y7>12
if(UY())then
if(SY())then
call SetUnitLifeBJ(udg_m[udg_y7],I2R(udg_z7[udg_y7]))
else
call DoNothing()
endif
if(TY())then
call SetUnitManaBJ(udg_m[udg_y7],I2R(udg_G7[udg_y7]))
else
call DoNothing()
endif
set udg_z7[udg_y7]=0
set udg_G7[udg_y7]=0
else
call DoNothing()
endif
set udg_y7=udg_y7+1
endloop
else
call DoNothing()
endif
endfunction
function XY takes nothing returns nothing
set udg_ft=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_ft,udg_Li)
call TriggerAddCondition(udg_ft,Condition(function JX))
call TriggerAddAction(udg_ft,function WY)
endfunction
function YY takes nothing returns boolean
if(not(udg_V7[5]==0))then
return false
endif
if(not(udg_W7[2]==0))then
return false
endif
if(not(udg_X7[5]==900))then
return false
endif
return true
endfunction
function ZY takes nothing returns boolean
if(not YY())then
return false
endif
return true
endfunction
function d2 takes nothing returns nothing
call AdjustPlayerStateBJ(udg_X7[5],GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function e2 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return false
endif
return true
endfunction
function f2 takes nothing returns boolean
if(not(udg_V7[5]==0))then
return false
endif
if(not(udg_W7[1]==0))then
return false
endif
if(not(udg_X7[5]==900))then
return false
endif
return true
endfunction
function g2 takes nothing returns boolean
if(not f2())then
return false
endif
return true
endfunction
function h2 takes nothing returns nothing
call AdjustPlayerStateBJ(udg_X7[5],GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function i2 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return false
endif
return true
endfunction
function j2 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function k2 takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function m2 takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(k2())then
call SetUnitInvulnerable(GetEnumUnit(),true)
else
call DoNothing()
endif
endfunction
function n2 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function o2 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function p2 takes nothing returns boolean
return GetBooleanAnd(n2(),o2())
endfunction
function q2 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function r2 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function s2 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function t2 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function u2 takes nothing returns boolean
return GetBooleanAnd(s2(),t2())
endfunction
function v2 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function w2 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function x2 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function y2 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function z2 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function A2 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function a2 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function B2 takes nothing returns boolean
return GetBooleanAnd(A2(),a2())
endfunction
function b2 takes nothing returns boolean
return GetBooleanAnd(z2(),B2())
endfunction
function C2 takes nothing returns boolean
return GetBooleanAnd(y2(),b2())
endfunction
function c2 takes nothing returns boolean
return GetBooleanAnd(x2(),C2())
endfunction
function D2 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function E2 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function F2 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function G2 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function H2 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function I2 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function l2 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function J2 takes nothing returns boolean
return GetBooleanAnd(I2(),l2())
endfunction
function K2 takes nothing returns boolean
return GetBooleanAnd(H2(),J2())
endfunction
function L2 takes nothing returns boolean
return GetBooleanAnd(G2(),K2())
endfunction
function M2 takes nothing returns boolean
return GetBooleanAnd(F2(),L2())
endfunction
function N2 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function O2 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function P2 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function Q2 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function R2 takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function S2 takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
if(R2())then
call SetUnitInvulnerable(GetEnumUnit(),false)
else
call DoNothing()
endif
endfunction
function T2 takes nothing returns nothing
set udg_ne=GetUnitLoc(udg_mG)
call SetItemPositionLoc(GetEnumItem(),udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetItemLoc(GetEnumItem())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call RemoveLocation(udg_ne)
set udg_ne=null
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function U2 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function V2 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function W2 takes nothing returns boolean
return GetBooleanAnd(U2(),V2())
endfunction
function X2 takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_ne)
endfunction
function Y2 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Z2 takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function Y2)))!=0))then
return false
endif
return true
endfunction
function dZ takes nothing returns boolean
if(not(udg_m[udg_y7]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_m[udg_y7])==false))then
return false
endif
return true
endfunction
function eZ takes nothing returns boolean
return(udg_z7[udg_y7]!=0)
endfunction
function fZ takes nothing returns boolean
return(udg_G7[udg_y7]!=0)
endfunction
function gZ takes nothing returns boolean
if(not dZ())then
return false
endif
return true
endfunction
function hZ takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function iZ takes nothing returns boolean
return(udg_H9==true)
endfunction
function jZ takes nothing returns nothing
call TimerDialogDisplayBJ(false,udg_Mi)
call EndThematicMusicBJ()
if(P2())then
call CinematicModeBJ(true,GetPlayersAll())
if(i2())then
call DisplayTextToForce(GetPlayersAll(),"Winner: |c00ff0000Team 1|r")
set udg_V7[5]=udg_R7[2]
set udg_X7[5]=((60*(5-udg_V7[5]))+(600-(udg_W7[1]*120)))
call DisplayTextToForce(GetPlayersAll(),(I2S(udg_V7[5])+" Death(s)"))
call DisplayTextToForce(GetPlayersAll(),(I2S(udg_W7[1])+" Ultimate(s)"))
if(g2())then
call DisplayTextToForce(GetPlayersAll(),"|c00ff0303Perfect Score!|r")
call DisplayTextToForce(GetPlayersAll(),"(+900 gold each player)")
else
call DisplayTextToForce(GetPlayersAll(),("(+"+(I2S(udg_X7[5])+" gold each player)")))
endif
call ForForce(udg_e,function h2)
set udg_V7[5]=0
set udg_X7[5]=0
set udg_W7[1]=0
set udg_W7[2]=0
else
if(e2())then
call DisplayTextToForce(GetPlayersAll(),"Winner: |c0020c000Team 2|r")
set udg_V7[5]=udg_R7[1]
set udg_X7[5]=((60*(5-udg_V7[5]))+(600-(udg_W7[2]*120)))
call DisplayTextToForce(GetPlayersAll(),(I2S(udg_V7[5])+" Death(s)"))
call DisplayTextToForce(GetPlayersAll(),(I2S(udg_W7[2])+" Ultimate(s)"))
if(ZY())then
call DisplayTextToForce(GetPlayersAll(),"|c00ff0303Perfect Score!|r")
call DisplayTextToForce(GetPlayersAll(),"(+900 gold each player)")
else
call DisplayTextToForce(GetPlayersAll(),("(+"+(I2S(udg_X7[5])+" gold each player)")))
endif
call ForForce(udg_f,function d2)
set udg_V7[5]=0
set udg_X7[5]=0
set udg_W7[1]=0
set udg_W7[2]=0
else
call DoNothing()
endif
endif
set udg_me=YG(GetPlayableMapRect(),Condition(function j2))
call ForGroupBJ(udg_me,function m2)
call DestroyGroup(udg_me)
set udg_me=null
call PlaySoundBJ(udg_nq)
set udg_Q7=false
set udg_w=false
set udg_me=YG(udg_Do,Condition(function p2))
if(r2())then
call ForGroupBJ(udg_me,function q2)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function u2))
if(w2())then
call ForGroupBJ(udg_me,function v2)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function c2))
if(E2())then
call ForGroupBJ(udg_me,function D2)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function M2))
if(O2())then
call ForGroupBJ(udg_me,function N2)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_R7[1]=0
set udg_R7[2]=0
call EnableTrigger(udg_ot)
call DisableTrigger(udg_mt)
else
call DoNothing()
endif
call TriggerSleepAction(4.99)
call DisableTrigger(udg_ot)
call TriggerSleepAction(0.01)
if(hZ())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLoc(udg_O7[GetForLoopIndexA()],udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLoc(udg_P7[GetForLoopIndexA()],udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_O7[GetForLoopIndexA()]=null
set udg_P7[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_me=YG(GetPlayableMapRect(),Condition(function Q2))
call ForGroupBJ(udg_me,function S2)
call DestroyGroup(udg_me)
set udg_me=null
call StartTimerBJ(udg_q,false,240.00)
call CinematicModeBJ(false,GetPlayersAll())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_ne=GetUnitLoc(udg_m[GetForLoopIndexA()])
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),udg_ne,0)
call SelectUnitForPlayerSingle(udg_m[GetForLoopIndexA()],GetOwningPlayer(udg_m[GetForLoopIndexA()]))
call RemoveLocation(udg_ne)
set udg_ne=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_oe=udg_Do
call EnumItemsInRectBJ(udg_oe,function T2)
set udg_oe=null
set udg_me=YG(GetPlayableMapRect(),Condition(function W2))
set udg_ne=GetUnitLoc(udg_mG)
call ForGroupBJ(udg_me,function X2)
call DestroyGroup(udg_me)
set udg_me=null
call RemoveLocation(udg_ne)
set udg_ne=null
if(Z2())then
call EnableTrigger(udg_MF)
else
call DoNothing()
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_c4[GetForLoopIndexA()]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_y7=1
loop
exitwhen udg_y7>12
if(gZ())then
if(eZ())then
call SetUnitLifeBJ(udg_m[udg_y7],I2R(udg_z7[udg_y7]))
else
call DoNothing()
endif
if(fZ())then
call SetUnitManaBJ(udg_m[udg_y7],I2R(udg_G7[udg_y7]))
else
call DoNothing()
endif
set udg_z7[udg_y7]=0
set udg_G7[udg_y7]=0
else
call DoNothing()
endif
set udg_y7=udg_y7+1
endloop
else
call DoNothing()
endif
if(iZ())then
set udg_H9=false
else
call DoNothing()
endif
endfunction
function kZ takes nothing returns nothing
set udg_gt=CreateTrigger()
call TriggerAddAction(udg_gt,function jZ)
endfunction
function mZ takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function nZ takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function oZ takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function pZ takes nothing returns boolean
return GetBooleanAnd(nZ(),oZ())
endfunction
function qZ takes nothing returns nothing
set udg_Oi[1]=(udg_Oi[1]+GetUnitLifePercent(GetEnumUnit()))
endfunction
function rZ takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function sZ takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function tZ takes nothing returns boolean
return GetBooleanAnd(rZ(),sZ())
endfunction
function uZ takes nothing returns nothing
set udg_Oi[2]=(udg_Oi[2]+GetUnitLifePercent(GetEnumUnit()))
endfunction
function vZ takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function wZ takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function xZ takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(wZ())then
call SetUnitInvulnerable(GetEnumUnit(),true)
else
call DoNothing()
endif
endfunction
function yZ takes nothing returns boolean
if(not(udg_Oi[1]==udg_Oi[2]))then
return false
endif
return true
endfunction
function zZ takes nothing returns nothing
call AdjustPlayerStateBJ(200,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function AZ takes nothing returns boolean
if(not(udg_Oi[2]>udg_Oi[1]))then
return false
endif
return true
endfunction
function aZ takes nothing returns nothing
call AdjustPlayerStateBJ(200,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function BZ takes nothing returns boolean
if(not(udg_Oi[1]>udg_Oi[2]))then
return false
endif
return true
endfunction
function bZ takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function CZ takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function cZ takes nothing returns boolean
return GetBooleanAnd(bZ(),CZ())
endfunction
function DZ takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function EZ takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function FZ takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function GZ takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function HZ takes nothing returns boolean
return GetBooleanAnd(FZ(),GZ())
endfunction
function IZ takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function lZ takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function JZ takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function KZ takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function LZ takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function MZ takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function NZ takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function OZ takes nothing returns boolean
return GetBooleanAnd(MZ(),NZ())
endfunction
function PZ takes nothing returns boolean
return GetBooleanAnd(LZ(),OZ())
endfunction
function QZ takes nothing returns boolean
return GetBooleanAnd(KZ(),PZ())
endfunction
function RZ takes nothing returns boolean
return GetBooleanAnd(JZ(),QZ())
endfunction
function SZ takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function TZ takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function UZ takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function VZ takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function WZ takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function XZ takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function YZ takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ZZ takes nothing returns boolean
return GetBooleanAnd(XZ(),YZ())
endfunction
function d44 takes nothing returns boolean
return GetBooleanAnd(WZ(),ZZ())
endfunction
function d74 takes nothing returns boolean
return GetBooleanAnd(VZ(),d44())
endfunction
function d84 takes nothing returns boolean
return GetBooleanAnd(UZ(),d74())
endfunction
function d94 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function dd4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function de4 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function df4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function dg4 takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function dh4 takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
if(dg4())then
call SetUnitInvulnerable(GetEnumUnit(),false)
else
call DoNothing()
endif
endfunction
function di4 takes nothing returns nothing
set udg_ne=GetUnitLoc(udg_mG)
call SetItemPositionLoc(GetEnumItem(),udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetItemLoc(GetEnumItem())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call RemoveLocation(udg_ne)
set udg_ne=null
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function dj4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function dk4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function dm4 takes nothing returns boolean
return GetBooleanAnd(dj4(),dk4())
endfunction
function dn4 takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_ne)
endfunction
function do4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function dp4 takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function do4)))!=0))then
return false
endif
return true
endfunction
function dq4 takes nothing returns boolean
if(not(udg_m[udg_y7]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_m[udg_y7])==false))then
return false
endif
return true
endfunction
function dr4 takes nothing returns boolean
return(udg_z7[udg_y7]!=0)
endfunction
function ds4 takes nothing returns boolean
return(udg_G7[udg_y7]!=0)
endfunction
function dt4 takes nothing returns boolean
if(not dq4())then
return false
endif
return true
endfunction
function du4 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function dv4 takes nothing returns boolean
return(udg_H9==true)
endfunction
function dw4 takes nothing returns nothing
call TimerDialogDisplayBJ(false,udg_Mi)
set udg_Oi[1]=0.00
set udg_Oi[2]=0.00
set udg_me=YG(udg_Do,Condition(function pZ))
call ForGroupBJ(udg_me,function qZ)
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function tZ))
call ForGroupBJ(udg_me,function uZ)
call DestroyGroup(udg_me)
set udg_me=null
if(de4())then
call CinematicModeBJ(true,GetPlayersAll())
call DisplayTextToForce(GetPlayersAll(),"Time is up!")
set udg_me=YG(GetPlayableMapRect(),Condition(function vZ))
call ForGroupBJ(udg_me,function xZ)
call DestroyGroup(udg_me)
set udg_me=null
call TriggerSleepAction(1.00)
if(BZ())then
call DisplayTextToForce(GetPlayersAll(),"Winner: |c00ff0000Team 1|r")
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 1) = "+(I2S(R2I(udg_Oi[1]))+"%")))
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 2) = "+(I2S(R2I(udg_Oi[2]))+"%")))
call DisplayTextToForce(GetPlayersAll(),"(+200 gold each player)")
call ForForce(udg_e,function aZ)
else
if(AZ())then
call DisplayTextToForce(GetPlayersAll(),"Winner: |c0020c000Team 2|r")
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 2) = "+(I2S(R2I(udg_Oi[2]))+"%")))
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 1) = "+(I2S(R2I(udg_Oi[1]))+"%")))
call DisplayTextToForce(GetPlayersAll(),"(+200 gold each player)")
call ForForce(udg_f,function zZ)
else
if(yZ())then
call DisplayTextToForce(GetPlayersAll(),"DRAW!!!")
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 1) = "+(I2S(R2I(udg_Oi[1]))+"%")))
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 2) = "+(I2S(R2I(udg_Oi[2]))+"%")))
else
call DoNothing()
endif
endif
endif
set udg_W7[1]=0
set udg_W7[2]=0
call PlaySoundBJ(udg_nq)
set udg_Q7=false
set udg_w=false
set udg_me=YG(udg_Do,Condition(function cZ))
if(EZ())then
call ForGroupBJ(udg_me,function DZ)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function HZ))
if(lZ())then
call ForGroupBJ(udg_me,function IZ)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function RZ))
if(TZ())then
call ForGroupBJ(udg_me,function SZ)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_Do,Condition(function d84))
if(dd4())then
call ForGroupBJ(udg_me,function d94)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_R7[1]=0
set udg_R7[2]=0
call EnableTrigger(udg_ot)
else
call DoNothing()
endif
call TriggerSleepAction(4.99)
call DisableTrigger(udg_ot)
call TriggerSleepAction(0.01)
if(du4())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLoc(udg_O7[GetForLoopIndexA()],udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLoc(udg_P7[GetForLoopIndexA()],udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_O7[GetForLoopIndexA()]=null
set udg_P7[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_me=YG(GetPlayableMapRect(),Condition(function df4))
call ForGroupBJ(udg_me,function dh4)
call DestroyGroup(udg_me)
set udg_me=null
call StartTimerBJ(udg_q,false,240.00)
call CinematicModeBJ(false,GetPlayersAll())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_ne=GetUnitLoc(udg_m[GetForLoopIndexA()])
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),udg_ne,0)
call SelectUnitForPlayerSingle(udg_m[GetForLoopIndexA()],GetOwningPlayer(udg_m[GetForLoopIndexA()]))
call RemoveLocation(udg_ne)
set udg_ne=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_oe=udg_Do
call EnumItemsInRectBJ(udg_oe,function di4)
set udg_oe=null
set udg_me=YG(GetPlayableMapRect(),Condition(function dm4))
set udg_ne=GetUnitLoc(udg_mG)
call ForGroupBJ(udg_me,function dn4)
call DestroyGroup(udg_me)
set udg_me=null
call RemoveLocation(udg_ne)
set udg_ne=null
if(dp4())then
call EnableTrigger(udg_MF)
else
call DoNothing()
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_c4[GetForLoopIndexA()]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_y7=1
loop
exitwhen udg_y7>12
if(dt4())then
if(dr4())then
call SetUnitLifeBJ(udg_m[udg_y7],I2R(udg_z7[udg_y7]))
else
call DoNothing()
endif
if(ds4())then
call SetUnitManaBJ(udg_m[udg_y7],I2R(udg_G7[udg_y7]))
else
call DoNothing()
endif
set udg_z7[udg_y7]=0
set udg_G7[udg_y7]=0
else
call DoNothing()
endif
set udg_y7=udg_y7+1
endloop
else
call DoNothing()
endif
if(dv4())then
set udg_H9=false
else
call DoNothing()
endif
endfunction
function dx4 takes nothing returns nothing
set udg_ht=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_ht,udg_Li)
call TriggerAddCondition(udg_ht,Condition(function mZ))
call TriggerAddAction(udg_ht,function dw4)
endfunction
function dy4 takes nothing returns nothing
call StartTimerBJ(udg_q,false,240.00)
set udg_q=GetLastCreatedTimerBJ()
call CreateTimerDialogBJ(udg_q,"Next Event")
set udg_s=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_s)
call TimerDialogSetTitleColorBJ(udg_s,20.00,80,100.00,0)
call TimerDialogSetTimeColorBJ(udg_s,20.00,80,100.00,0)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function dz4 takes nothing returns nothing
set udg_it=CreateTrigger()
call TriggerAddAction(udg_it,function dy4)
endfunction
function dA4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_y))then
return false
endif
return true
endfunction
function da4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_x))then
return false
endif
return true
endfunction
function dB4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function db4 takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function dC4 takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(db4())then
call SetUnitInvulnerable(GetEnumUnit(),true)
else
call DoNothing()
endif
endfunction
function dc4 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function dD4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function dE4 takes nothing returns boolean
return GetBooleanAnd(dc4(),dD4())
endfunction
function d34 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function dF4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function dG4 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function d64 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function dH4 takes nothing returns boolean
return GetBooleanAnd(dG4(),d64())
endfunction
function dI4 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function dl4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function d14 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function dJ4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function dK4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function dL4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function dM4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function dN4 takes nothing returns boolean
return GetBooleanAnd(dL4(),dM4())
endfunction
function dO4 takes nothing returns boolean
return GetBooleanAnd(dK4(),dN4())
endfunction
function d04 takes nothing returns boolean
return GetBooleanAnd(dJ4(),dO4())
endfunction
function dP4 takes nothing returns boolean
return GetBooleanAnd(d14(),d04())
endfunction
function dQ4 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function dR4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function dS4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function d54 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function dT4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function dU4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function dV4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function dW4 takes nothing returns boolean
return GetBooleanAnd(dU4(),dV4())
endfunction
function dX4 takes nothing returns boolean
return GetBooleanAnd(dT4(),dW4())
endfunction
function dY4 takes nothing returns boolean
return GetBooleanAnd(d54(),dX4())
endfunction
function d24 takes nothing returns boolean
return GetBooleanAnd(dS4(),dY4())
endfunction
function dZ4 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function d_4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function e44 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function e74 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function e84 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function e94 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function ed4 takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function ee4 takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
if(ed4())then
call SetUnitInvulnerable(GetEnumUnit(),false)
else
call DoNothing()
endif
endfunction
function ef4 takes nothing returns nothing
set udg_ne=GetUnitLoc(udg_mG)
call SetItemPositionLoc(GetEnumItem(),udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetItemLoc(GetEnumItem())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call RemoveLocation(udg_ne)
set udg_ne=null
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function eg4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function eh4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function ei4 takes nothing returns boolean
return GetBooleanAnd(eg4(),eh4())
endfunction
function ej4 takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_ne)
endfunction
function ek4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function em4 takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function ek4)))!=0))then
return false
endif
return true
endfunction
function en4 takes nothing returns boolean
if(not(udg_m[udg_y7]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_m[udg_y7])==false))then
return false
endif
return true
endfunction
function eo4 takes nothing returns boolean
return(udg_z7[udg_y7]!=0)
endfunction
function ep4 takes nothing returns boolean
return(udg_G7[udg_y7]!=0)
endfunction
function eq4 takes nothing returns boolean
if(not en4())then
return false
endif
return true
endfunction
function er4 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function es4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function et4 takes nothing returns boolean
if(not es4())then
return false
endif
return true
endfunction
function eu4 takes nothing returns nothing
call TimerDialogDisplayBJ(false,udg_Mi)
call EndThematicMusicBJ()
if(et4())then
if(e44())then
call CinematicModeBJ(true,GetPlayersAll())
if(da4())then
call DisplayTextToForce(GetPlayersAll(),("Winner: "+udg_E[GetConvertedPlayerId(GetOwningPlayer(udg_y))]))
call DisplayTextToForce(GetPlayersAll(),"(+1000 gold, +3 medal, +400 exp)")
call AdjustPlayerStateBJ(200,GetOwningPlayer(udg_y),PLAYER_STATE_RESOURCE_GOLD)
else
if(dA4())then
call DisplayTextToForce(GetPlayersAll(),("Winner: "+udg_E[GetConvertedPlayerId(GetOwningPlayer(udg_x))]))
call DisplayTextToForce(GetPlayersAll(),"(+1000 gold, +3 medal, +400 exp)")
call AdjustPlayerStateBJ(200,GetOwningPlayer(udg_x),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
endif
set udg_me=YG(GetPlayableMapRect(),Condition(function dB4))
call ForGroupBJ(udg_me,function dC4)
call DestroyGroup(udg_me)
set udg_me=null
call PlaySoundBJ(udg_nq)
set udg_me=YG(udg_bn,Condition(function dE4))
if(dF4())then
call ForGroupBJ(udg_me,function d34)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_bn,Condition(function dH4))
if(dl4())then
call ForGroupBJ(udg_me,function dI4)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_bn,Condition(function dP4))
if(dR4())then
call ForGroupBJ(udg_me,function dQ4)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_bn,Condition(function d24))
if(d_4())then
call ForGroupBJ(udg_me,function dZ4)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
call EnableTrigger(udg_ot)
else
call DoNothing()
endif
call TriggerSleepAction(2.51)
set udg_ne=GetRectCenter(udg_uo)
if(e74())then
call SetUnitPositionLocFacingBJ(GetDyingUnit(),udg_ne,0.00)
else
call DoNothing()
endif
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
if(e84())then
call SetUnitPositionLocFacingBJ(GetDyingUnit(),udg_ne,180.00)
else
call DoNothing()
endif
call RemoveLocation(udg_ne)
set udg_ne=null
call TriggerSleepAction(2.48)
call DisableTrigger(udg_ot)
call TriggerSleepAction(0.01)
if(er4())then
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLoc(udg_x,udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLoc(udg_y,udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_x=null
set udg_y=null
set udg_z=false
set udg_w=false
set udg_me=YG(GetPlayableMapRect(),Condition(function e94))
call ForGroupBJ(udg_me,function ee4)
call DestroyGroup(udg_me)
set udg_me=null
call StartTimerBJ(udg_q,false,240.00)
call CinematicModeBJ(false,GetPlayersAll())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_ne=GetUnitLoc(udg_m[GetForLoopIndexA()])
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),udg_ne,0)
call SelectUnitForPlayerSingle(udg_m[GetForLoopIndexA()],GetOwningPlayer(udg_m[GetForLoopIndexA()]))
call RemoveLocation(udg_ne)
set udg_ne=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_oe=udg_bn
call EnumItemsInRectBJ(udg_oe,function ef4)
set udg_oe=null
set udg_me=YG(GetPlayableMapRect(),Condition(function ei4))
set udg_ne=GetUnitLoc(udg_mG)
call ForGroupBJ(udg_me,function ej4)
call DestroyGroup(udg_me)
set udg_me=null
call RemoveLocation(udg_ne)
set udg_ne=null
if(em4())then
call EnableTrigger(udg_MF)
else
call DoNothing()
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_c4[GetForLoopIndexA()]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_y7=1
loop
exitwhen udg_y7>12
if(eq4())then
if(eo4())then
call SetUnitLifeBJ(udg_m[udg_y7],I2R(udg_z7[udg_y7]))
else
call DoNothing()
endif
if(ep4())then
call SetUnitManaBJ(udg_m[udg_y7],I2R(udg_G7[udg_y7]))
else
call DoNothing()
endif
set udg_z7[udg_y7]=0
set udg_G7[udg_y7]=0
else
call DoNothing()
endif
set udg_y7=udg_y7+1
endloop
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function ev4 takes nothing returns nothing
set udg_jt=CreateTrigger()
call TriggerAddAction(udg_jt,function eu4)
endfunction
function ew4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
return true
endfunction
function ex4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function ey4 takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function ez4 takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
if(ey4())then
call SetUnitInvulnerable(GetEnumUnit(),true)
else
call DoNothing()
endif
endfunction
function eA4 takes nothing returns boolean
if(not(udg_Oi[1]==udg_Oi[2]))then
return false
endif
return true
endfunction
function ea4 takes nothing returns boolean
if(not(udg_Oi[2]>udg_Oi[1]))then
return false
endif
return true
endfunction
function eB4 takes nothing returns boolean
if(not(udg_Oi[1]>udg_Oi[2]))then
return false
endif
return true
endfunction
function eb4 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function eC4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function ec4 takes nothing returns boolean
return GetBooleanAnd(eb4(),eC4())
endfunction
function eD4 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function eE4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function e34 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==true)
endfunction
function eF4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function eG4 takes nothing returns boolean
return GetBooleanAnd(e34(),eF4())
endfunction
function e64 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function eH4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function eI4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function el4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function e14 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function eJ4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function eK4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function eL4 takes nothing returns boolean
return GetBooleanAnd(eJ4(),eK4())
endfunction
function eM4 takes nothing returns boolean
return GetBooleanAnd(e14(),eL4())
endfunction
function eN4 takes nothing returns boolean
return GetBooleanAnd(el4(),eM4())
endfunction
function eO4 takes nothing returns boolean
return GetBooleanAnd(eI4(),eN4())
endfunction
function e04 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function eP4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function eQ4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function eR4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function eS4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function e54 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function eT4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function eU4 takes nothing returns boolean
return GetBooleanAnd(e54(),eT4())
endfunction
function eV4 takes nothing returns boolean
return GetBooleanAnd(eS4(),eU4())
endfunction
function eW4 takes nothing returns boolean
return GetBooleanAnd(eR4(),eV4())
endfunction
function eX4 takes nothing returns boolean
return GetBooleanAnd(eQ4(),eW4())
endfunction
function eY4 takes nothing returns nothing
set udg_ne=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_ne,GetRandomDirectionDeg())
call RemoveLocation(udg_ne)
set udg_ne=null
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function e24 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_me)==false))then
return false
endif
return true
endfunction
function eZ4 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function e_4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function f44 takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function f74 takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
if(f44())then
call SetUnitInvulnerable(GetEnumUnit(),false)
else
call DoNothing()
endif
endfunction
function f84 takes nothing returns nothing
set udg_ne=GetUnitLoc(udg_mG)
call SetItemPositionLoc(GetEnumItem(),udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetItemLoc(GetEnumItem())
call AddSpecialEffectLocBJ(udg_ne,"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call RemoveLocation(udg_ne)
set udg_ne=null
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function f94 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function fd4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function fe4 takes nothing returns boolean
return GetBooleanAnd(f94(),fd4())
endfunction
function ff4 takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",udg_ne)
endfunction
function fg4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function fh4 takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function fg4)))!=0))then
return false
endif
return true
endfunction
function fi4 takes nothing returns boolean
if(not(udg_m[udg_y7]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_m[udg_y7])==false))then
return false
endif
return true
endfunction
function fj4 takes nothing returns boolean
return(udg_z7[udg_y7]!=0)
endfunction
function fk4 takes nothing returns boolean
return(udg_G7[udg_y7]!=0)
endfunction
function fm4 takes nothing returns boolean
if(not fi4())then
return false
endif
return true
endfunction
function fn4 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function fo4 takes nothing returns nothing
call TimerDialogDisplayBJ(false,udg_Mi)
call EndThematicMusicBJ()
set udg_Oi[1]=GetUnitLifePercent(udg_x)
set udg_Oi[2]=GetUnitLifePercent(udg_y)
if(eZ4())then
call CinematicModeBJ(true,GetPlayersAll())
call DisplayTextToForce(GetPlayersAll(),"Time is up!")
set udg_me=YG(GetPlayableMapRect(),Condition(function ex4))
call ForGroupBJ(udg_me,function ez4)
call DestroyGroup(udg_me)
set udg_me=null
call TriggerSleepAction(1.00)
if(eB4())then
call DisplayTextToForce(GetPlayersAll(),("Winner: "+udg_E[GetConvertedPlayerId(GetOwningPlayer(udg_x))]))
call DisplayTextToForce(GetPlayersAll(),((("Total Life Percentage ("+GetPlayerName(GetOwningPlayer(udg_x)))+") = ")+(I2S(R2I(udg_Oi[1]))+"%")))
call DisplayTextToForce(GetPlayersAll(),((("Total Life Percentage ("+GetPlayerName(GetOwningPlayer(udg_y)))+") = ")+(I2S(R2I(udg_Oi[2]))+"%")))
call DisplayTextToForce(GetPlayersAll(),"(+300 gold, +1 medal, +200 exp)")
call AdjustPlayerStateBJ(300,GetOwningPlayer(udg_x),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_x),PLAYER_STATE_RESOURCE_LUMBER)
call AddHeroXPSwapped(200,udg_x,true)
else
if(ea4())then
call DisplayTextToForce(GetPlayersAll(),("Winner: "+udg_E[GetConvertedPlayerId(GetOwningPlayer(udg_y))]))
call DisplayTextToForce(GetPlayersAll(),((("Total Life Percentage ("+GetPlayerName(GetOwningPlayer(udg_y)))+") = ")+(I2S(R2I(udg_Oi[2]))+"%")))
call DisplayTextToForce(GetPlayersAll(),((("Total Life Percentage ("+GetPlayerName(GetOwningPlayer(udg_x)))+") = ")+(I2S(R2I(udg_Oi[1]))+"%")))
call DisplayTextToForce(GetPlayersAll(),"(+300 gold, +1 medal, +200 exp)")
call AdjustPlayerStateBJ(300,GetOwningPlayer(udg_y),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_y),PLAYER_STATE_RESOURCE_LUMBER)
call AddHeroXPSwapped(200,udg_y,true)
else
if(eA4())then
call DisplayTextToForce(GetPlayersAll(),"DRAW!!!")
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 1) = "+(I2S(R2I(udg_Oi[1]))+"%")))
call DisplayTextToForce(GetPlayersAll(),("Total Life Percentage (Team 2) = "+(I2S(R2I(udg_Oi[2]))+"%")))
else
call DoNothing()
endif
endif
endif
call PlaySoundBJ(udg_nq)
set udg_me=YG(udg_bn,Condition(function ec4))
if(eE4())then
call ForGroupBJ(udg_me,function eD4)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_bn,Condition(function eG4))
if(eH4())then
call ForGroupBJ(udg_me,function e64)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_bn,Condition(function eO4))
if(eP4())then
call ForGroupBJ(udg_me,function e04)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
set udg_me=YG(udg_bn,Condition(function eX4))
if(e24())then
call ForGroupBJ(udg_me,function eY4)
else
call DoNothing()
endif
call DestroyGroup(udg_me)
set udg_me=null
call EnableTrigger(udg_ot)
else
call DoNothing()
endif
call TriggerSleepAction(2.51)
call TriggerSleepAction(2.48)
call DisableTrigger(udg_ot)
call TriggerSleepAction(0.01)
if(fn4())then
set udg_ne=GetRectCenter(udg_uo)
call SetUnitPositionLoc(udg_x,udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_ne=GetRectCenter(udg_wo)
call SetUnitPositionLoc(udg_y,udg_ne)
call RemoveLocation(udg_ne)
set udg_ne=null
set udg_x=null
set udg_y=null
set udg_z=false
set udg_w=false
set udg_me=YG(GetPlayableMapRect(),Condition(function e_4))
call ForGroupBJ(udg_me,function f74)
call DestroyGroup(udg_me)
set udg_me=null
call StartTimerBJ(udg_q,false,240.00)
call CinematicModeBJ(false,GetPlayersAll())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_ne=GetUnitLoc(udg_m[GetForLoopIndexA()])
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),udg_ne,0)
call SelectUnitForPlayerSingle(udg_m[GetForLoopIndexA()],GetOwningPlayer(udg_m[GetForLoopIndexA()]))
call RemoveLocation(udg_ne)
set udg_ne=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_oe=udg_bn
call EnumItemsInRectBJ(udg_oe,function f84)
set udg_oe=null
set udg_me=YG(GetPlayableMapRect(),Condition(function fe4))
set udg_ne=GetUnitLoc(udg_mG)
call ForGroupBJ(udg_me,function ff4)
call DestroyGroup(udg_me)
set udg_me=null
call RemoveLocation(udg_ne)
set udg_ne=null
if(fh4())then
call EnableTrigger(udg_MF)
else
call DoNothing()
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_c4[GetForLoopIndexA()]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_y7=1
loop
exitwhen udg_y7>12
if(fm4())then
if(fj4())then
call SetUnitLifeBJ(udg_m[udg_y7],I2R(udg_z7[udg_y7]))
else
call DoNothing()
endif
if(fk4())then
call SetUnitManaBJ(udg_m[udg_y7],I2R(udg_G7[udg_y7]))
else
call DoNothing()
endif
set udg_z7[udg_y7]=0
set udg_G7[udg_y7]=0
else
call DoNothing()
endif
set udg_y7=udg_y7+1
endloop
else
call DoNothing()
endif
endfunction
function fp4 takes nothing returns nothing
set udg_kt=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_kt,udg_Li)
call TriggerAddCondition(udg_kt,Condition(function ew4))
call TriggerAddAction(udg_kt,function fo4)
endfunction
function fq4 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679414))then
return false
endif
if(not(udg_H9==false))then
return false
endif
return true
endfunction
function fr4 takes nothing returns boolean
if((GetSpellAbilityId()==1093679436))then
return true
endif
if((GetSpellAbilityId()==1093679428))then
return true
endif
if((GetSpellAbilityId()==1093679432))then
return true
endif
if((GetSpellAbilityId()==1093681750))then
return true
endif
if((GetSpellAbilityId()==1093678925))then
return true
endif
if((GetSpellAbilityId()==1093678387))then
return true
endif
if((GetSpellAbilityId()==1093677899))then
return true
endif
if((GetSpellAbilityId()==1093679450))then
return true
endif
if((GetSpellAbilityId()==1093681477))then
return true
endif
if((GetSpellAbilityId()==1093679412))then
return true
endif
if((GetSpellAbilityId()==1093679416))then
return true
endif
if(fq4())then
return true
endif
if((GetSpellAbilityId()==1093678145))then
return true
endif
if((GetSpellAbilityId()==1093678640))then
return true
endif
if((GetSpellAbilityId()==1093678659))then
return true
endif
if((GetSpellAbilityId()==1093681492))then
return true
endif
if((GetSpellAbilityId()==1093677108))then
return true
endif
if((GetSpellAbilityId()==1093681745))then
return true
endif
if((GetSpellAbilityId()==1093678131))then
return true
endif
if((GetSpellAbilityId()==1093677379))then
return true
endif
if((GetSpellAbilityId()==1093681484))then
return true
endif
if((GetSpellAbilityId()==1093677129))then
return true
endif
if((GetSpellAbilityId()==1093678926))then
return true
endif
if((GetSpellAbilityId()==1093679172))then
return true
endif
if((GetSpellAbilityId()==1093678386))then
return true
endif
if((GetSpellAbilityId()==1093677146))then
return true
endif
if((GetSpellAbilityId()==1093677137))then
return true
endif
if((GetSpellAbilityId()==1093678146))then
return true
endif
if((GetSpellAbilityId()==1093677649))then
return true
endif
if((GetSpellAbilityId()==1093677889))then
return true
endif
if((GetSpellAbilityId()==1093678169))then
return true
endif
if((GetSpellAbilityId()==1093678919))then
return true
endif
if((GetSpellAbilityId()==1093677658))then
return true
endif
if((GetSpellAbilityId()==1093678408))then
return true
endif
if((GetSpellAbilityId()==1093679175))then
return true
endif
return false
endfunction
function fs4 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(RectContainsUnit(udg_Do,GetSpellAbilityUnit())==true))then
return false
endif
if(not fr4())then
return false
endif
return true
endfunction
function ft4 takes nothing returns boolean
if(not fs4())then
return false
endif
return true
endfunction
function fu4 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(GetSpellAbilityUnit()),udg_f)==true))then
return false
endif
return true
endfunction
function fv4 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(GetSpellAbilityUnit()),udg_e)==true))then
return false
endif
return true
endfunction
function fw4 takes nothing returns boolean
return(GetSpellAbilityId()==1093679414)
endfunction
function fx4 takes nothing returns nothing
if(fv4())then
set udg_W7[1]=(udg_W7[1]+1)
else
if(fu4())then
set udg_W7[2]=(udg_W7[2]+1)
else
call DoNothing()
endif
endif
if(fw4())then
set udg_H9=true
else
call DoNothing()
endif
endfunction
function fy4 takes nothing returns nothing
set udg_mt=CreateTrigger()
call DisableTrigger(udg_mt)
call TriggerRegisterAnyUnitEventBJ(udg_mt,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_mt,Condition(function ft4))
call TriggerAddAction(udg_mt,function fx4)
endfunction
function fz4 takes nothing returns boolean
return(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function fA4 takes nothing returns boolean
return(udg_J[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function fa4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function fB4 takes nothing returns boolean
return GetBooleanAnd(fA4(),fa4())
endfunction
function fb4 takes nothing returns boolean
return GetBooleanAnd(fz4(),fB4())
endfunction
function fC4 takes nothing returns boolean
if(not(IsUnitPausedBJ(GetEnumUnit())==false))then
return false
endif
return true
endfunction
function fc4 takes nothing returns boolean
if(not(IsUnitHiddenBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function fD4 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454324)==true))then
return false
endif
return true
endfunction
function fE4 takes nothing returns nothing
if(fC4())then
call PauseUnitBJ(true,GetEnumUnit())
else
call DoNothing()
endif
if(fc4())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
if(fD4())then
call UnitRemoveBuffBJ(1110454324,GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function f34 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function fF4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_P8[2])==false))then
return false
endif
return true
endfunction
function fG4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function f64 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_P8[3])==false))then
return false
endif
return true
endfunction
function fH4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function fI4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_P8[4])==false))then
return false
endif
return true
endfunction
function fl4 takes nothing returns boolean
if(not(udg_x!=null))then
return false
endif
if(not(udg_y!=null))then
return false
endif
return true
endfunction
function f14 takes nothing returns boolean
if(not fl4())then
return false
endif
return true
endfunction
function fJ4 takes nothing returns nothing
set udg_P8[1]=YG(GetPlayableMapRect(),Condition(function fb4))
set udg_P8[2]=g6(1747988545)
set udg_P8[3]=g6(1747988551)
set udg_P8[4]=g6(1747988548)
call ForGroupBJ(udg_P8[1],function fE4)
if(fF4())then
call ForGroupBJ(udg_P8[2],function f34)
else
call DoNothing()
endif
if(f64())then
call ForGroupBJ(udg_P8[3],function fG4)
else
call DoNothing()
endif
if(fI4())then
call ForGroupBJ(udg_P8[4],function fH4)
else
call DoNothing()
endif
if(f14())then
call PauseUnitBJ(true,udg_x)
call PauseUnitBJ(true,udg_y)
call SetUnitInvulnerable(udg_x,true)
call SetUnitInvulnerable(udg_y,true)
else
call DoNothing()
endif
call DestroyGroup(udg_P8[1])
set udg_P8[1]=null
call DestroyGroup(udg_P8[2])
set udg_P8[2]=null
call DestroyGroup(udg_P8[3])
set udg_P8[3]=null
call DestroyGroup(udg_P8[4])
set udg_P8[4]=null
endfunction
function fK4 takes nothing returns nothing
set udg_nt=CreateTrigger()
call DisableTrigger(udg_nt)
call TriggerRegisterTimerEventPeriodic(udg_nt,0.50)
call TriggerAddAction(udg_nt,function fJ4)
endfunction
function fL4 takes nothing returns boolean
return(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function fM4 takes nothing returns boolean
return(udg_J[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function fN4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function fO4 takes nothing returns boolean
return GetBooleanAnd(fM4(),fN4())
endfunction
function f04 takes nothing returns boolean
return GetBooleanAnd(fL4(),fO4())
endfunction
function fP4 takes nothing returns boolean
if(not(IsUnitPausedBJ(GetEnumUnit())==false))then
return false
endif
return true
endfunction
function fQ4 takes nothing returns boolean
if(not(IsUnitHiddenBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function fR4 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454324)==true))then
return false
endif
return true
endfunction
function fS4 takes nothing returns boolean
return(MG(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function f54 takes nothing returns nothing
if(fP4())then
call PauseUnitBJ(true,GetEnumUnit())
else
call DoNothing()
endif
if(fQ4())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
if(fR4())then
call UnitRemoveBuffBJ(1110454324,GetEnumUnit())
else
call DoNothing()
endif
if(fS4())then
call SetUnitInvulnerable(GetEnumUnit(),true)
else
call DoNothing()
endif
endfunction
function fT4 takes nothing returns boolean
if(not(udg_x!=null))then
return false
endif
if(not(udg_y!=null))then
return false
endif
return true
endfunction
function fU4 takes nothing returns boolean
if(not fT4())then
return false
endif
return true
endfunction
function fV4 takes nothing returns nothing
set udg_P8[1]=YG(GetPlayableMapRect(),Condition(function f04))
call ForGroupBJ(udg_P8[1],function f54)
if(fU4())then
call PauseUnitBJ(true,udg_x)
call PauseUnitBJ(true,udg_y)
call SetUnitInvulnerable(udg_x,true)
call SetUnitInvulnerable(udg_y,true)
else
call DoNothing()
endif
call DestroyGroup(udg_P8[1])
set udg_P8[1]=null
endfunction
function fW4 takes nothing returns nothing
set udg_ot=CreateTrigger()
call DisableTrigger(udg_ot)
call TriggerRegisterTimerEventPeriodic(udg_ot,0.50)
call TriggerAddAction(udg_ot,function fV4)
endfunction
function fX4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1853056871)
endfunction
function fY4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function f24 takes nothing returns nothing
call UnitRemoveItemSwapped(udg_oG,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))])
set udg_qe=YG(GetPlayableMapRect(),Condition(function fX4))
call ForGroupBJ(udg_qe,function fY4)
set udg_T=null
call TriggerExecute(udg_Tt)
set udg_pe=GetRectCenter(udg_ho)
call SetItemPositionLoc(udg_oG,udg_pe)
call AddSpecialEffectLocBJ(udg_pe,"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call DestroyGroup(udg_qe)
set udg_qe=null
call RemoveLocation(udg_pe)
set udg_pe=null
endfunction
function fZ4 takes nothing returns nothing
set udg_pt=CreateTrigger()
call TriggerAddAction(udg_pt,function f24)
endfunction
function f_4 takes nothing returns boolean
if((MG(GetEnteringUnit(),UNIT_TYPE_HERO)==true))then
return true
endif
if((IsUnitIllusionBJ(GetEnteringUnit())==true))then
return true
endif
return false
endfunction
function g44 takes nothing returns boolean
if(not f_4())then
return false
endif
return true
endfunction
function g74 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_se[1]),udg_f)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(udg_se[1],1227894839)==true))then
return false
endif
return true
endfunction
function g84 takes nothing returns boolean
if(not g74())then
return false
endif
return true
endfunction
function g94 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_se[1]),udg_f)==true))then
return false
endif
return true
endfunction
function gd4 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_se[1]),udg_e)==true))then
return false
endif
return true
endfunction
function ge4 takes nothing returns nothing
set udg_se[1]=GetEnteringUnit()
set udg_te[1]=GetUnitLoc(udg_se[1])
if(gd4())then
call GroupAddUnitSimple(udg_se[1],udg_n)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_se[1]),udg_te[1],bj_UNIT_FACING)
set udg_re[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678164,udg_re[1])
call IssueTargetOrderBJ(udg_re[1],"rejuvination",udg_se[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[1])
set udg_re[1]=null
else
if(g94())then
call UnitRemoveBuffBJ(1114205814,udg_se[1])
call UnitRemoveBuffBJ(1114207859,udg_se[1])
call UnitRemoveBuffBJ(1110454354,udg_se[1])
call UnitRemoveBuffBJ(1110454353,udg_se[1])
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_te[1],bj_UNIT_FACING)
set udg_re[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677104,udg_re[1])
call IssueTargetOrderBJ(udg_re[1],"doom",udg_se[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[1])
set udg_re[1]=null
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_te[1],bj_UNIT_FACING)
set udg_re[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681490,udg_re[1])
call IssueTargetOrderBJ(udg_re[1],"faeriefire",udg_se[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[1])
set udg_re[1]=null
if(g84())then
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_te[1],bj_UNIT_FACING)
set udg_re[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677104,udg_re[1])
call IssueTargetOrderBJ(udg_re[1],"doom",udg_se[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[1])
set udg_re[1]=null
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_te[1],bj_UNIT_FACING)
set udg_re[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681490,udg_re[1])
call IssueTargetOrderBJ(udg_re[1],"faeriefire",udg_se[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[1])
set udg_re[1]=null
else
call DoNothing()
endif
else
call DoNothing()
endif
endif
call RemoveLocation(udg_te[1])
set udg_te[1]=null
set udg_se[1]=null
endfunction
function gf4 takes nothing returns nothing
set udg_qt=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_qt,udg_vo)
call TriggerAddCondition(udg_qt,Condition(function g44))
call TriggerAddAction(udg_qt,function ge4)
endfunction
function gg4 takes nothing returns boolean
if((MG(GetLeavingUnit(),UNIT_TYPE_HERO)==true))then
return true
endif
if((IsUnitIllusionBJ(GetLeavingUnit())==true))then
return true
endif
return false
endfunction
function gh4 takes nothing returns boolean
if(not gg4())then
return false
endif
return true
endfunction
function gi4 takes nothing returns nothing
call GroupRemoveUnitSimple(GetLeavingUnit(),udg_n)
call SetUnitInvulnerable(GetLeavingUnit(),false)
call UnitRemoveBuffBJ(1110454337,GetLeavingUnit())
call UnitRemoveBuffBJ(1112433775,GetLeavingUnit())
call UnitRemoveBuffBJ(1112433769,GetLeavingUnit())
call UnitRemoveBuffBJ(1110454352,GetLeavingUnit())
endfunction
function gj4 takes nothing returns nothing
set udg_rt=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_rt,udg_vo)
call TriggerAddCondition(udg_rt,Condition(function gh4))
call TriggerAddAction(udg_rt,function gi4)
endfunction
function gk4 takes nothing returns boolean
if((MG(GetEnteringUnit(),UNIT_TYPE_HERO)==true))then
return true
endif
if((IsUnitIllusionBJ(GetEnteringUnit())==true))then
return true
endif
return false
endfunction
function gm4 takes nothing returns boolean
if(not gk4())then
return false
endif
return true
endfunction
function gn4 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_se[2]),udg_e)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(udg_se[2],1227894839)==true))then
return false
endif
return true
endfunction
function go4 takes nothing returns boolean
if(not gn4())then
return false
endif
return true
endfunction
function gp4 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_se[2]),udg_e)==true))then
return false
endif
return true
endfunction
function gq4 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_se[2]),udg_f)==true))then
return false
endif
return true
endfunction
function gr4 takes nothing returns nothing
set udg_se[2]=GetEnteringUnit()
set udg_te[2]=GetUnitLoc(udg_se[2])
if(gq4())then
call GroupAddUnitSimple(udg_se[2],udg_o)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_se[2]),udg_te[2],bj_UNIT_FACING)
set udg_re[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678164,udg_re[2])
call IssueTargetOrderBJ(udg_re[2],"rejuvination",udg_se[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[2])
set udg_re[2]=null
else
if(gp4())then
call UnitRemoveBuffBJ(1114205814,udg_se[2])
call UnitRemoveBuffBJ(1114207859,udg_se[2])
call UnitRemoveBuffBJ(1110454354,udg_se[2])
call UnitRemoveBuffBJ(1110454353,udg_se[2])
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_te[2],bj_UNIT_FACING)
set udg_re[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677104,udg_re[2])
call IssueTargetOrderBJ(udg_re[2],"doom",udg_se[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[2])
set udg_re[2]=null
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_te[2],bj_UNIT_FACING)
set udg_re[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681490,udg_re[2])
call IssueTargetOrderBJ(udg_re[2],"faeriefire",udg_se[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[2])
set udg_re[2]=null
if(go4())then
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_te[2],bj_UNIT_FACING)
set udg_re[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677104,udg_re[2])
call IssueTargetOrderBJ(udg_re[2],"doom",udg_se[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[2])
set udg_re[2]=null
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_te[2],bj_UNIT_FACING)
set udg_re[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681490,udg_re[2])
call IssueTargetOrderBJ(udg_re[2],"faeriefire",udg_se[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[2])
set udg_re[2]=null
else
call DoNothing()
endif
else
call DoNothing()
endif
endif
call RemoveLocation(udg_te[2])
set udg_te[2]=null
set udg_se[2]=null
endfunction
function gs4 takes nothing returns nothing
set udg_tt=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_tt,udg_xo)
call TriggerAddCondition(udg_tt,Condition(function gm4))
call TriggerAddAction(udg_tt,function gr4)
endfunction
function gt4 takes nothing returns boolean
if((MG(GetLeavingUnit(),UNIT_TYPE_HERO)==true))then
return true
endif
if((IsUnitIllusionBJ(GetLeavingUnit())==true))then
return true
endif
return false
endfunction
function gu4 takes nothing returns boolean
if(not gt4())then
return false
endif
return true
endfunction
function gv4 takes nothing returns nothing
call GroupRemoveUnitSimple(GetLeavingUnit(),udg_o)
call SetUnitInvulnerable(GetLeavingUnit(),false)
call UnitRemoveBuffBJ(1110454337,GetLeavingUnit())
call UnitRemoveBuffBJ(1112433775,GetLeavingUnit())
call UnitRemoveBuffBJ(1112433769,GetLeavingUnit())
call UnitRemoveBuffBJ(1110454352,GetLeavingUnit())
endfunction
function gw4 takes nothing returns nothing
set udg_ut=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_ut,udg_xo)
call TriggerAddCondition(udg_ut,Condition(function gu4))
call TriggerAddAction(udg_ut,function gv4)
endfunction
function gx4 takes nothing returns boolean
if((MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return true
endif
if((IsUnitIllusionBJ(GetTriggerUnit())==true))then
return true
endif
return false
endfunction
function gy4 takes nothing returns boolean
if(not gx4())then
return false
endif
return true
endfunction
function gz4 takes nothing returns nothing
call SetUnitInvulnerable(GetTriggerUnit(),false)
call UnitRemoveBuffBJ(1110454337,GetTriggerUnit())
endfunction
function gA4 takes nothing returns nothing
set udg_vt=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_vt,udg_sn)
call TriggerAddCondition(udg_vt,Condition(function gy4))
call TriggerAddAction(udg_vt,function gz4)
endfunction
function ga4 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function gB4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true)
endfunction
function gb4 takes nothing returns nothing
set udg_ue[1]=GetUnitLoc(GetTriggerUnit())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_ue[1],0)
if(gB4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetTriggerUnit()),GetTriggerUnit(),0,0,false)
else
call DoNothing()
endif
call RemoveLocation(udg_ue[1])
set udg_ue[1]=null
endfunction
function gC4 takes nothing returns nothing
set udg_wt=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_wt,udg_mo)
call TriggerAddCondition(udg_wt,Condition(function ga4))
call TriggerAddAction(udg_wt,function gb4)
endfunction
function gc4 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function gD4 takes nothing returns boolean
if(not(udg_B7==4))then
return false
endif
return true
endfunction
function gE4 takes nothing returns boolean
if(not(udg_B7==3))then
return false
endif
return true
endfunction
function g34 takes nothing returns boolean
if(not(udg_B7==2))then
return false
endif
return true
endfunction
function gF4 takes nothing returns boolean
if(not(udg_B7==1))then
return false
endif
return true
endfunction
function gG4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true)
endfunction
function g64 takes nothing returns nothing
set udg_B7=GetRandomInt(1,4)
call RemoveLocation(udg_ue[22])
set udg_ue[22]=null
if(gF4())then
set udg_ue[22]=GetUnitLoc(udg_sG)
else
if(g34())then
set udg_ue[22]=GetUnitLoc(udg_jG)
else
if(gE4())then
set udg_ue[22]=GetUnitLoc(udg_qG)
else
if(gD4())then
set udg_ue[22]=GetUnitLoc(udg_rG)
else
call DoNothing()
endif
endif
endif
endif
call WaygateSetDestinationLocBJ(udg_gG,udg_ue[22])
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_ue[2]=GetUnitLoc(GetTriggerUnit())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_ue[2],0)
if(gG4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetTriggerUnit()),GetTriggerUnit(),0,0,false)
else
call DoNothing()
endif
set udg_B7=0
call RemoveLocation(udg_ue[2])
set udg_ue[2]=null
endfunction
function gH4 takes nothing returns nothing
set udg_xt=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_xt,udg_Po)
call TriggerAddCondition(udg_xt,Condition(function gc4))
call TriggerAddAction(udg_xt,function g64)
endfunction
function gI4 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function gl4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true)
endfunction
function g14 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),1886545267)==true))then
return false
endif
return true
endfunction
function gJ4 takes nothing returns nothing
set udg_ue[3]=GetUnitLoc(GetTriggerUnit())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_ue[3],0)
if(gl4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetTriggerUnit()),GetTriggerUnit(),0,0,false)
else
call DoNothing()
endif
call RemoveLocation(udg_ue[3])
set udg_ue[3]=null
call SetUnitManaBJ(GetTriggerUnit(),0)
if(g14())then
set udg_jn=1
loop
exitwhen udg_jn>6
set udg_kn=GetItemOfTypeFromUnitBJ(GetTriggerUnit(),1886545267)
call UnitRemoveItemSwapped(udg_kn,GetTriggerUnit())
call SetItemPositionLoc(udg_kn,GetRectCenter(udg_Vn))
call AddSpecialEffectLocBJ(GetRectCenter(udg_Vn),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_kn=null
set udg_jn=udg_jn+1
endloop
else
call DoNothing()
endif
endfunction
function gK4 takes nothing returns nothing
set udg_yt=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_yt,udg_oo)
call TriggerAddCondition(udg_yt,Condition(function gI4))
call TriggerAddAction(udg_yt,function gJ4)
endfunction
function gL4 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetTriggerUnit())<20))then
return false
endif
return true
endfunction
function gM4 takes nothing returns boolean
if(not gL4())then
return false
endif
return true
endfunction
function gN4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true)
endfunction
function gO4 takes nothing returns nothing
set udg_ue[3]=GetRectCenter(udg_Vn)
set udg_ue[33]=GetUnitLoc(udg_mG)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),udg_ue[3],udg_ue[33])
call RemoveLocation(udg_ue[3])
set udg_ue[3]=null
call RemoveLocation(udg_ue[33])
set udg_ue[33]=null
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_ue[3]=GetUnitLoc(GetTriggerUnit())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_ue[3],0)
if(gN4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetTriggerUnit()),GetTriggerUnit(),0,0,false)
else
call DoNothing()
endif
call RemoveLocation(udg_ue[3])
set udg_ue[3]=null
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Area for hero above level 20|r")
endfunction
function g04 takes nothing returns nothing
set udg_zt=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_zt,300.00,udg_pG)
call TriggerAddCondition(udg_zt,Condition(function gM4))
call TriggerAddAction(udg_zt,function gO4)
endfunction
function gP4 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function gQ4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true)
endfunction
function gR4 takes nothing returns nothing
set udg_ue[4]=GetUnitLoc(GetTriggerUnit())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_ue[4],0)
if(gQ4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetTriggerUnit()),GetTriggerUnit(),0,0,false)
else
call DoNothing()
endif
call RemoveLocation(udg_ue[4])
set udg_ue[4]=null
endfunction
function gS4 takes nothing returns nothing
set udg_At=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_At,udg_Yn)
call TriggerAddCondition(udg_At,Condition(function gP4))
call TriggerAddAction(udg_At,function gR4)
endfunction
function g54 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetTriggerUnit())<40))then
return false
endif
return true
endfunction
function gT4 takes nothing returns boolean
if(not g54())then
return false
endif
return true
endfunction
function gU4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true)
endfunction
function gV4 takes nothing returns nothing
set udg_ue[4]=GetRectCenter(udg_Zn)
set udg_ue[44]=GetUnitLoc(udg_mG)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),udg_ue[4],udg_ue[44])
call RemoveLocation(udg_ue[4])
set udg_ue[4]=null
call RemoveLocation(udg_ue[44])
set udg_ue[44]=null
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_ue[4]=GetUnitLoc(GetTriggerUnit())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_ue[4],0)
if(gU4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetTriggerUnit()),GetTriggerUnit(),0,0,false)
else
call DoNothing()
endif
call RemoveLocation(udg_ue[4])
set udg_ue[4]=null
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Area for hero above level 40|r")
endfunction
function gW4 takes nothing returns nothing
set udg_at=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_at,400.00,udg_nG)
call TriggerAddCondition(udg_at,Condition(function gT4))
call TriggerAddAction(udg_at,function gV4)
endfunction
function gX4 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(RectContainsUnit(udg_jo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_ko,GetTriggerUnit())==false))then
return false
endif
if(not(GetTriggerUnit()!=udg_x))then
return false
endif
if(not(GetTriggerUnit()!=udg_y))then
return false
endif
if(not(GetTriggerUnit()!=udg_Y[1]))then
return false
endif
if(not(GetTriggerUnit()!=udg_Y[2]))then
return false
endif
if(not(GetTriggerUnit()!=udg_Y[3]))then
return false
endif
if(not(GetTriggerUnit()!=udg_Z[1]))then
return false
endif
if(not(GetTriggerUnit()!=udg_Z[2]))then
return false
endif
if(not(GetTriggerUnit()!=udg_Z[3]))then
return false
endif
if(not(GetTriggerUnit()!=udg_O7[1]))then
return false
endif
if(not(GetTriggerUnit()!=udg_O7[2]))then
return false
endif
if(not(GetTriggerUnit()!=udg_O7[3]))then
return false
endif
if(not(GetTriggerUnit()!=udg_O7[4]))then
return false
endif
if(not(GetTriggerUnit()!=udg_O7[5]))then
return false
endif
if(not(GetTriggerUnit()!=udg_P7[1]))then
return false
endif
if(not(GetTriggerUnit()!=udg_P7[2]))then
return false
endif
if(not(GetTriggerUnit()!=udg_P7[3]))then
return false
endif
if(not(GetTriggerUnit()!=udg_P7[4]))then
return false
endif
if(not(GetTriggerUnit()!=udg_P7[5]))then
return false
endif
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function gY4 takes nothing returns boolean
if(not gX4())then
return false
endif
return true
endfunction
function g24 takes nothing returns boolean
return(udg_z==false)
endfunction
function gZ4 takes nothing returns boolean
return(udg_z==false)
endfunction
function g_4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true)
endfunction
function h44 takes nothing returns boolean
return GetBooleanAnd(gZ4(),g_4())
endfunction
function h74 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function h84 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function h94 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function hd4 takes nothing returns nothing
set udg_ue[9]=GetUnitLoc(GetTriggerUnit())
if(g24())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_ue[9],0.00)
else
call DoNothing()
endif
if(h44())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetTriggerUnit()),GetTriggerUnit(),0,0,false)
else
call DoNothing()
endif
call RemoveLocation(udg_ue[9])
set udg_ue[9]=null
if(h94())then
call ForGroupBJ(d6(GetPlayableMapRect()),function h74)
call ForForce(GetPlayersAll(),function h84)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function he4 takes nothing returns nothing
set udg_Bt=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_Bt,udg_vo)
call TriggerRegisterLeaveRectSimple(udg_Bt,udg_xo)
call TriggerRegisterLeaveRectSimple(udg_Bt,udg_zn)
call TriggerRegisterLeaveRectSimple(udg_Bt,udg_mo)
call TriggerRegisterLeaveRectSimple(udg_Bt,udg_Po)
call TriggerAddCondition(udg_Bt,Condition(function gY4))
call TriggerAddAction(udg_Bt,function hd4)
endfunction
function hf4 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())!=PLAYER_SLOT_STATE_LEFT)
endfunction
function hg4 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_f)==true))then
return false
endif
return true
endfunction
function hh4 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_e)==true))then
return false
endif
return true
endfunction
function hi4 takes nothing returns nothing
if(hh4())then
call MultiboardSetItemValueBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),GetPlayerName(GetEnumPlayer()))
call MultiboardSetItemValueBJ(udg_X,2,(2+GetConvertedPlayerId(GetEnumPlayer())),"0")
call MultiboardSetItemStyleBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),true,true)
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"UI\\Console\\Human\\human-transport-slot.blp")
else
if(hg4())then
call MultiboardSetItemValueBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),GetPlayerName(GetEnumPlayer()))
call MultiboardSetItemValueBJ(udg_X,2,(3+GetConvertedPlayerId(GetEnumPlayer())),"0")
call MultiboardSetItemStyleBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),true,true)
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"UI\\Console\\Human\\human-transport-slot.blp")
else
call DoNothing()
endif
endif
endfunction
function hj4 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_EMPTY)
endfunction
function hk4 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_f)==true))then
return false
endif
return true
endfunction
function hm4 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_e)==true))then
return false
endif
return true
endfunction
function hn4 takes nothing returns nothing
if(hm4())then
call MultiboardSetItemValueBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"---")
call MultiboardSetItemValueBJ(udg_X,2,(2+GetConvertedPlayerId(GetEnumPlayer())),"-")
else
if(hk4())then
call MultiboardSetItemValueBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"---")
call MultiboardSetItemValueBJ(udg_X,2,(3+GetConvertedPlayerId(GetEnumPlayer())),"-")
else
call DoNothing()
endif
endif
endfunction
function ho4 takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_d[GetForLoopIndexA()]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_N[799]=9
call TriggerSleepAction(0.01)
call CreateMultiboardBJ(2,15,("BvO 2.0"+(I2S(udg_N[799])+"b")))
set udg_X=GetLastCreatedMultiboard()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemWidthBJ(udg_X,1,GetForLoopIndexA(),13.00)
call MultiboardSetItemWidthBJ(udg_X,2,GetForLoopIndexA(),2.50)
call MultiboardSetItemStyleBJ(udg_X,1,GetForLoopIndexA(),true,false)
call MultiboardSetItemStyleBJ(udg_X,2,GetForLoopIndexA(),true,false)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call MultiboardSetItemValueBJ(udg_X,1,1,("|c00fffc01Win = "+(I2S(udg_k)+" Team Score|r")))
call MultiboardSetItemValueBJ(udg_X,1,2,"|c00ff0000TEAM 1|r")
call MultiboardSetItemValueBJ(udg_X,2,2,("|c00ff0000"+(I2S(udg_h)+"|r")))
call MultiboardSetItemValueBJ(udg_X,1,9,"|c0020c000TEAM 2|r")
call MultiboardSetItemValueBJ(udg_X,2,9,("|c0020c000"+(I2S(udg_j)+"|r")))
call ForForce(t6(Condition(function hf4)),function hi4)
call ForForce(t6(Condition(function hj4)),function hn4)
call MultiboardMinimizeBJ(true,udg_X)
call MultiboardMinimizeBJ(false,udg_X)
call EnableTrigger(udg_Ct)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function hp4 takes nothing returns nothing
set udg_bt=CreateTrigger()
call TriggerAddAction(udg_bt,function ho4)
endfunction
function hq4 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())!=PLAYER_SLOT_STATE_LEFT)
endfunction
function hr4 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_f)==true))then
return false
endif
return true
endfunction
function hs4 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_e)==true))then
return false
endif
return true
endfunction
function ht4 takes nothing returns nothing
if(hs4())then
call MultiboardSetItemValueBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),GetPlayerName(GetEnumPlayer()))
call MultiboardSetItemValueBJ(udg_X,2,(2+GetConvertedPlayerId(GetEnumPlayer())),I2S(udg_d[GetConvertedPlayerId(GetEnumPlayer())]))
call TriggerExecute(udg_ct)
else
if(hr4())then
call MultiboardSetItemValueBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),GetPlayerName(GetEnumPlayer()))
call MultiboardSetItemValueBJ(udg_X,2,(3+GetConvertedPlayerId(GetEnumPlayer())),I2S(udg_d[GetConvertedPlayerId(GetEnumPlayer())]))
call TriggerExecute(udg_ct)
else
call DoNothing()
endif
endif
endfunction
function hu4 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_EMPTY)
endfunction
function hv4 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_f)==true))then
return false
endif
return true
endfunction
function hw4 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_e)==true))then
return false
endif
return true
endfunction
function hx4 takes nothing returns nothing
if(hw4())then
call MultiboardSetItemValueBJ(udg_X,2,(2+GetConvertedPlayerId(GetEnumPlayer())),"-")
else
if(hv4())then
call MultiboardSetItemValueBJ(udg_X,2,(3+GetConvertedPlayerId(GetEnumPlayer())),"-")
else
call DoNothing()
endif
endif
endfunction
function hy4 takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetEnumPlayer())]!=null)
endfunction
function hz4 takes nothing returns boolean
return(IsUnitPausedBJ(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==false)
endfunction
function hA4 takes nothing returns boolean
return GetBooleanAnd(hy4(),hz4())
endfunction
function ha4 takes nothing returns boolean
if(not(GetPlayerSlotState(GetEnumPlayer())==PLAYER_SLOT_STATE_LEFT))then
return false
endif
return true
endfunction
function hB4 takes nothing returns nothing
if(ha4())then
call MultiboardSetItemValueBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),("|c00959697"+(GetPlayerName(GetEnumPlayer())+"|r")))
call MultiboardSetItemValueBJ(udg_X,2,(2+GetConvertedPlayerId(GetEnumPlayer())),("|c00959697"+(I2S(udg_d[GetConvertedPlayerId(GetEnumPlayer())])+"|r")))
if(hA4())then
call PauseUnitBJ(true,udg_m[GetConvertedPlayerId(GetEnumPlayer())])
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function hb4 takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetEnumPlayer())]!=null)
endfunction
function hC4 takes nothing returns boolean
return(IsUnitPausedBJ(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==false)
endfunction
function hc4 takes nothing returns boolean
return GetBooleanAnd(hb4(),hC4())
endfunction
function hD4 takes nothing returns boolean
if(not(GetPlayerSlotState(GetEnumPlayer())==PLAYER_SLOT_STATE_LEFT))then
return false
endif
return true
endfunction
function hE4 takes nothing returns nothing
if(hD4())then
call MultiboardSetItemValueBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),("|c00959697"+(GetPlayerName(GetEnumPlayer())+"|r")))
call MultiboardSetItemValueBJ(udg_X,2,(3+GetConvertedPlayerId(GetEnumPlayer())),("|c00959697"+(I2S(udg_d[GetConvertedPlayerId(GetEnumPlayer())])+"|r")))
if(hc4())then
call PauseUnitBJ(true,udg_m[GetConvertedPlayerId(GetEnumPlayer())])
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function h34 takes nothing returns nothing
call MultiboardSetItemValueBJ(udg_X,2,2,("|c00ff0000"+(I2S(udg_h)+"|r")))
call MultiboardSetItemValueBJ(udg_X,2,9,("|c0020c000"+(I2S(udg_j)+"|r")))
call ForForce(t6(Condition(function hq4)),function ht4)
call ForForce(t6(Condition(function hu4)),function hx4)
call MultiboardSetItemValueBJ(udg_X,1,1,("|c00fffc01Win = "+(I2S(udg_k)+" Team Score|r")))
call ForForce(udg_e,function hB4)
call ForForce(udg_f,function hE4)
endfunction
function hF4 takes nothing returns nothing
set udg_Ct=CreateTrigger()
call DisableTrigger(udg_Ct)
call TriggerAddAction(udg_Ct,function h34)
endfunction
function hG4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221433)
endfunction
function h64 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117905)
endfunction
function hH4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221441)
endfunction
function hI4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780949)
endfunction
function hl4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780952)
endfunction
function h14 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780948)
endfunction
function hJ4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780947)
endfunction
function hK4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780946)
endfunction
function hL4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780921)
endfunction
function hM4 takes nothing returns boolean
return GetBooleanOr(hK4(),hL4())
endfunction
function hN4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558133)
endfunction
function hO4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558132)
endfunction
function h04 takes nothing returns boolean
return GetBooleanOr(hN4(),hO4())
endfunction
function hP4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558131)
endfunction
function hQ4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558130)
endfunction
function hR4 takes nothing returns boolean
return GetBooleanOr(hP4(),hQ4())
endfunction
function hS4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221460)
endfunction
function h54 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221459)
endfunction
function hT4 takes nothing returns boolean
return GetBooleanOr(hS4(),h54())
endfunction
function hU4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221462)
endfunction
function hV4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221461)
endfunction
function hW4 takes nothing returns boolean
return GetBooleanOr(hU4(),hV4())
endfunction
function hX4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221433)
endfunction
function hY4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117905)
endfunction
function h24 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221441)
endfunction
function hZ4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780949)
endfunction
function h_4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780952)
endfunction
function i44 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780948)
endfunction
function i74 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780947)
endfunction
function i84 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780946)
endfunction
function i94 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780921)
endfunction
function id4 takes nothing returns boolean
return GetBooleanOr(i84(),i94())
endfunction
function ie4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558133)
endfunction
function if4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558132)
endfunction
function ig4 takes nothing returns boolean
return GetBooleanOr(ie4(),if4())
endfunction
function ih4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558131)
endfunction
function ii4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558130)
endfunction
function ij4 takes nothing returns boolean
return GetBooleanOr(ih4(),ii4())
endfunction
function ik4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221460)
endfunction
function im4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221459)
endfunction
function in4 takes nothing returns boolean
return GetBooleanOr(ik4(),im4())
endfunction
function io4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221462)
endfunction
function ip4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221461)
endfunction
function iq4 takes nothing returns boolean
return GetBooleanOr(io4(),ip4())
endfunction
function ir4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1162031160)
endfunction
function is4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1160785971)
endfunction
function it4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1162031410)
endfunction
function iu4 takes nothing returns boolean
return GetBooleanOr(is4(),it4())
endfunction
function iv4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117642)
endfunction
function iw4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117641)
endfunction
function ix4 takes nothing returns boolean
return GetBooleanOr(iv4(),iw4())
endfunction
function iy4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117620)
endfunction
function iz4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117653)
endfunction
function iA4 takes nothing returns boolean
return GetBooleanOr(iy4(),iz4())
endfunction
function ia4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117637)
endfunction
function iB4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117619)
endfunction
function ib4 takes nothing returns boolean
return GetBooleanOr(ia4(),iB4())
endfunction
function iC4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558128)
endfunction
function ic4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1329803568)
endfunction
function iD4 takes nothing returns boolean
return GetBooleanOr(iC4(),ic4())
endfunction
function iE4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558129)
endfunction
function i34 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1313026099)
endfunction
function iF4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1430466867)
endfunction
function iG4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1430466865)
endfunction
function i64 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221428)
endfunction
function iH4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1160785972)
endfunction
function iI4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780918)
endfunction
function il4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780915)
endfunction
function i14 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780931)
endfunction
function iJ4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780914)
endfunction
function iK4 takes nothing returns boolean
return GetBooleanOr(i14(),iJ4())
endfunction
function iL4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780919)
endfunction
function iM4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780912)
endfunction
function iN4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780916)
endfunction
function iO4 takes nothing returns boolean
return GetBooleanOr(iM4(),iN4())
endfunction
function i04 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780917)
endfunction
function iP4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780920)
endfunction
function iQ4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1160785968)
endfunction
function iR4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1160785970)
endfunction
function iS4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1160785969)
endfunction
function i54 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_f)==true))then
return false
endif
return true
endfunction
function iT4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1162031160)
endfunction
function iU4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1160785971)
endfunction
function iV4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1162031410)
endfunction
function iW4 takes nothing returns boolean
return GetBooleanOr(iU4(),iV4())
endfunction
function iX4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117642)
endfunction
function iY4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117641)
endfunction
function i24 takes nothing returns boolean
return GetBooleanOr(iX4(),iY4())
endfunction
function iZ4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117620)
endfunction
function i_4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117653)
endfunction
function j44 takes nothing returns boolean
return GetBooleanOr(iZ4(),i_4())
endfunction
function j74 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117637)
endfunction
function j84 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1211117619)
endfunction
function j94 takes nothing returns boolean
return GetBooleanOr(j74(),j84())
endfunction
function jd4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558128)
endfunction
function je4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1329803568)
endfunction
function jf4 takes nothing returns boolean
return GetBooleanOr(jd4(),je4())
endfunction
function jg4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1328558129)
endfunction
function jh4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1313026099)
endfunction
function ji4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1430466867)
endfunction
function jj4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1430466865)
endfunction
function jk4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1429221428)
endfunction
function jm4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1160785972)
endfunction
function jn4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780918)
endfunction
function jo4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780915)
endfunction
function jp4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780931)
endfunction
function jq4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780914)
endfunction
function jr4 takes nothing returns boolean
return GetBooleanOr(jp4(),jq4())
endfunction
function js4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780919)
endfunction
function jt4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780912)
endfunction
function ju4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780916)
endfunction
function jv4 takes nothing returns boolean
return GetBooleanOr(jt4(),ju4())
endfunction
function jw4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780917)
endfunction
function jx4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1311780920)
endfunction
function jy4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1160785968)
endfunction
function jz4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1160785970)
endfunction
function jA4 takes nothing returns boolean
return(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==1160785969)
endfunction
function ja4 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_e)==true))then
return false
endif
return true
endfunction
function jB4 takes nothing returns nothing
if(ja4())then
if(hG4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNsquall.blp")
else
call DoNothing()
endif
if(h64())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNrenji.blp")
else
call DoNothing()
endif
if(hH4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNtousen.blp")
else
call DoNothing()
endif
if(hI4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNcroc.blp")
else
call DoNothing()
endif
if(hl4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNkuma.blp")
else
call DoNothing()
endif
if(h14())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNbrook.blp")
else
call DoNothing()
endif
if(hJ4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNmoria.blp")
else
call DoNothing()
endif
if(hM4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNAokiji.blp")
else
call DoNothing()
endif
if(h04())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNSasuke.blp")
else
call DoNothing()
endif
if(hR4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNsoifong.blp")
else
call DoNothing()
endif
if(hT4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNikakku.blp")
else
call DoNothing()
endif
if(hW4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNneliel.blp")
else
call DoNothing()
endif
if(iT4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNuryu.blp")
else
call DoNothing()
endif
if(iW4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNhitsu.blp")
else
call DoNothing()
endif
if(i24())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNevilichigo.blp")
else
call DoNothing()
endif
if(j44())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNchad.blp")
else
call DoNothing()
endif
if(j94())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNichi.blp")
else
call DoNothing()
endif
if(jf4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNyoruichi-chan.blp")
else
call DoNothing()
endif
if(jg4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNrukia.blp")
else
call DoNothing()
endif
if(jh4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNaizen.blp")
else
call DoNothing()
endif
if(ji4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNbyakuya.blp")
else
call DoNothing()
endif
if(jj4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNoyama.blp")
else
call DoNothing()
endif
if(jk4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNkenpachi.blp")
else
call DoNothing()
endif
if(jm4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNinoue.blp")
else
call DoNothing()
endif
if(jn4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNlucci.blp")
else
call DoNothing()
endif
if(jo4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNzoro.blp")
else
call DoNothing()
endif
if(jr4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNluffy.blp")
else
call DoNothing()
endif
if(js4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNusp.blp")
else
call DoNothing()
endif
if(jv4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNsanji.blp")
else
call DoNothing()
endif
if(jw4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNace.blp")
else
call DoNothing()
endif
if(jx4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNmihawk.blp")
else
call DoNothing()
endif
if(jy4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNrobin.blp")
else
call DoNothing()
endif
if(jz4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNenel.blp")
else
call DoNothing()
endif
if(jA4())then
call MultiboardSetItemIconBJ(udg_X,1,(2+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNnami.blp")
else
call DoNothing()
endif
else
if(i54())then
if(hX4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNsquall.blp")
else
call DoNothing()
endif
if(hY4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNrenji.blp")
else
call DoNothing()
endif
if(h24())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNtousen.blp")
else
call DoNothing()
endif
if(hZ4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNcroc.blp")
else
call DoNothing()
endif
if(h_4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNkuma.blp")
else
call DoNothing()
endif
if(i44())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNbrook.blp")
else
call DoNothing()
endif
if(i74())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNmoria.blp")
else
call DoNothing()
endif
if(id4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNAokiji.blp")
else
call DoNothing()
endif
if(ig4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNSasuke.blp")
else
call DoNothing()
endif
if(ij4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNsoifong.blp")
else
call DoNothing()
endif
if(in4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNikakku.blp")
else
call DoNothing()
endif
if(iq4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNneliel.blp")
else
call DoNothing()
endif
if(ir4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNuryu.blp")
else
call DoNothing()
endif
if(iu4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNhitsu.blp")
else
call DoNothing()
endif
if(ix4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNevilichigo.blp")
else
call DoNothing()
endif
if(iA4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNchad.blp")
else
call DoNothing()
endif
if(ib4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNichi.blp")
else
call DoNothing()
endif
if(iD4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNyoruichi-chan.blp")
else
call DoNothing()
endif
if(iE4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNrukia.blp")
else
call DoNothing()
endif
if(i34())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNaizen.blp")
else
call DoNothing()
endif
if(iF4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNbyakuya.blp")
else
call DoNothing()
endif
if(iG4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNoyama.blp")
else
call DoNothing()
endif
if(i64())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNkenpachi.blp")
else
call DoNothing()
endif
if(iH4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNinoue.blp")
else
call DoNothing()
endif
if(iI4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNlucci.blp")
else
call DoNothing()
endif
if(il4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNzoro.blp")
else
call DoNothing()
endif
if(iK4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNluffy.blp")
else
call DoNothing()
endif
if(iL4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNusp.blp")
else
call DoNothing()
endif
if(iO4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNsanji.blp")
else
call DoNothing()
endif
if(i04())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNace.blp")
else
call DoNothing()
endif
if(iP4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNmihawk.blp")
else
call DoNothing()
endif
if(iQ4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNrobin.blp")
else
call DoNothing()
endif
if(iR4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNenel.blp")
else
call DoNothing()
endif
if(iS4())then
call MultiboardSetItemIconBJ(udg_X,1,(3+GetConvertedPlayerId(GetEnumPlayer())),"ReplaceableTextures\\CommandButtons\\BTNnami.blp")
else
call DoNothing()
endif
else
call DoNothing()
endif
endif
endfunction
function jb4 takes nothing returns nothing
set udg_ct=CreateTrigger()
call TriggerAddAction(udg_ct,function jB4)
endfunction
function jC4 takes nothing returns boolean
if(not(udg_h>=udg_k))then
return false
endif
return true
endfunction
function jc4 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_Cn),0.00)
endfunction
function jD4 takes nothing returns nothing
set udg_M4=1
set udg_N4=true
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_Et)
call DisableTrigger(udg_Eu)
call DisableTrigger(udg_Fu)
call DisableTrigger(udg_Gu)
call DisableTrigger(udg_Hu)
call DisableTrigger(udg_Iu)
call DisableTrigger(udg_lu)
call DisableTrigger(udg_Ju)
call DisableTrigger(udg_Ku)
call DisableTrigger(udg_Lu)
call DisableTrigger(udg_Mu)
call DisableTrigger(udg_Nu)
call DisableTrigger(udg_Ou)
call DisableTrigger(udg_Ys)
call DisableTrigger(udg_Zs)
call DisableTrigger(udg_Xs)
call DisableTrigger(udg_cu)
call DisableTrigger(udg_Du)
call DisableTrigger(udg_Ps)
call DisableTrigger(udg_It)
call DisableTrigger(udg_KF)
call DisableTrigger(udg_DF)
call DisableTrigger(udg_EF)
call DisableTrigger(udg_MF)
call DisableTrigger(udg_TF)
call DisableTrigger(udg_SF)
call EnableTrigger(udg_Gt)
call CinematicModeBJ(true,GetPlayersAll())
call ClearTextMessagesBJ(GetPlayersAll())
call DisplayTextToForce(GetPlayersAll(),"|cffff0000LOADING RESULT....|r")
call StopMusicBJ(false)
call PlaySoundBJ(udg_ap)
call EnableTrigger(udg_Ft)
call TriggerSleepAction(4.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingLocBJ(udg_m[GetForLoopIndexA()],GetRandomLocInRect(udg_Io),GetRectCenter(udg_do))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=7
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingLocBJ(udg_m[GetForLoopIndexA()],GetRandomLocInRect(udg_do),GetRectCenter(udg_Io))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(udg_Ft)
call ForForce(GetPlayersAll(),function jc4)
call DisplayTextToForce(GetPlayersAll(),"Team 1 Wins!")
call MultiboardMinimizeBJ(true,udg_X)
call TimerDialogDisplayBJ(false,udg_s)
call PauseAllUnitsBJ(true)
call TriggerSleepAction(0.50)
call PauseAllUnitsBJ(true)
call TriggerExecute(udg_Ht)
endfunction
function jE4 takes nothing returns nothing
set udg_Dt=CreateTrigger()
call TriggerAddCondition(udg_Dt,Condition(function jC4))
call TriggerAddAction(udg_Dt,function jD4)
endfunction
function j34 takes nothing returns boolean
if(not(udg_j>=udg_k))then
return false
endif
return true
endfunction
function jF4 takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_Cn),0.00)
endfunction
function jG4 takes nothing returns nothing
set udg_M4=2
set udg_N4=true
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_Dt)
call DisableTrigger(udg_Eu)
call DisableTrigger(udg_Fu)
call DisableTrigger(udg_Gu)
call DisableTrigger(udg_Hu)
call DisableTrigger(udg_Iu)
call DisableTrigger(udg_lu)
call DisableTrigger(udg_Ju)
call DisableTrigger(udg_Ku)
call DisableTrigger(udg_Lu)
call DisableTrigger(udg_Mu)
call DisableTrigger(udg_Nu)
call DisableTrigger(udg_Ou)
call DisableTrigger(udg_Ys)
call DisableTrigger(udg_Zs)
call DisableTrigger(udg_Xs)
call DisableTrigger(udg_cu)
call DisableTrigger(udg_Du)
call DisableTrigger(udg_Ps)
call DisableTrigger(udg_It)
call DisableTrigger(udg_KF)
call DisableTrigger(udg_DF)
call DisableTrigger(udg_EF)
call DisableTrigger(udg_MF)
call DisableTrigger(udg_TF)
call DisableTrigger(udg_SF)
call EnableTrigger(udg_Gt)
call CinematicModeBJ(true,GetPlayersAll())
call ClearTextMessagesBJ(GetPlayersAll())
call DisplayTextToForce(GetPlayersAll(),"|cffff0000LOADING RESULT....|r")
call StopMusicBJ(false)
call PlaySoundBJ(udg_ap)
call EnableTrigger(udg_Ft)
call TriggerSleepAction(4.00)
set bj_forLoopAIndex=7
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingLocBJ(udg_m[GetForLoopIndexA()],GetRandomLocInRect(udg_Io),GetRectCenter(udg_do))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingLocBJ(udg_m[GetForLoopIndexA()],GetRandomLocInRect(udg_do),GetRectCenter(udg_Io))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(udg_Ft)
call ForForce(GetPlayersAll(),function jF4)
call DisplayTextToForce(GetPlayersAll(),"Team 2 Wins!")
call MultiboardMinimizeBJ(true,udg_X)
call TimerDialogDisplayBJ(false,udg_s)
call PauseAllUnitsBJ(true)
call TriggerSleepAction(0.50)
call PauseAllUnitsBJ(true)
call TriggerExecute(udg_Ht)
endfunction
function j64 takes nothing returns nothing
set udg_Et=CreateTrigger()
call TriggerAddCondition(udg_Et,Condition(function j34))
call TriggerAddAction(udg_Et,function jG4)
endfunction
function jH4 takes nothing returns boolean
return(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function jI4 takes nothing returns boolean
return(udg_J[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function jl4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function j14 takes nothing returns boolean
return GetBooleanAnd(jI4(),jl4())
endfunction
function jJ4 takes nothing returns boolean
return GetBooleanAnd(jH4(),j14())
endfunction
function jK4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1747988545)
endfunction
function jL4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1747988551)
endfunction
function jM4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1747988548)
endfunction
function jN4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1747988552)
endfunction
function jO4 takes nothing returns boolean
if(not(IsUnitPausedBJ(GetEnumUnit())==false))then
return false
endif
return true
endfunction
function j04 takes nothing returns boolean
if(not(IsUnitHiddenBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function jP4 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454324)==true))then
return false
endif
return true
endfunction
function jQ4 takes nothing returns nothing
if(jO4())then
call PauseUnitBJ(true,GetEnumUnit())
else
call DoNothing()
endif
if(j04())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
if(jP4())then
call UnitRemoveBuffBJ(1110454324,GetEnumUnit())
else
call DoNothing()
endif
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function jR4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function jS4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_P8[2])==false))then
return false
endif
return true
endfunction
function j54 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function jT4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_P8[3])==false))then
return false
endif
return true
endfunction
function jU4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function jV4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_P8[4])==false))then
return false
endif
return true
endfunction
function jW4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function jX4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_P8[5])==false))then
return false
endif
return true
endfunction
function jY4 takes nothing returns nothing
set udg_l[GetConvertedPlayerId(GetEnumPlayer())]=false
endfunction
function j24 takes nothing returns nothing
set udg_P8[1]=YG(GetPlayableMapRect(),Condition(function jJ4))
set udg_P8[2]=YG(GetPlayableMapRect(),Condition(function jK4))
set udg_P8[3]=YG(GetPlayableMapRect(),Condition(function jL4))
set udg_P8[4]=YG(GetPlayableMapRect(),Condition(function jM4))
set udg_P8[5]=YG(GetPlayableMapRect(),Condition(function jN4))
call ForGroupBJ(udg_P8[1],function jQ4)
if(jS4())then
call ForGroupBJ(udg_P8[2],function jR4)
else
call DoNothing()
endif
if(jT4())then
call ForGroupBJ(udg_P8[3],function j54)
else
call DoNothing()
endif
if(jV4())then
call ForGroupBJ(udg_P8[4],function jU4)
else
call DoNothing()
endif
if(jX4())then
call ForGroupBJ(udg_P8[5],function jW4)
else
call DoNothing()
endif
call DestroyGroup(udg_P8[1])
set udg_P8[1]=null
call DestroyGroup(udg_P8[2])
set udg_P8[2]=null
call DestroyGroup(udg_P8[3])
set udg_P8[3]=null
call DestroyGroup(udg_P8[4])
set udg_P8[4]=null
call DestroyGroup(udg_P8[5])
set udg_P8[5]=null
call ForForce(GetPlayersAll(),function jY4)
endfunction
function jZ4 takes nothing returns nothing
set udg_Ft=CreateTrigger()
call DisableTrigger(udg_Ft)
call TriggerRegisterTimerEventPeriodic(udg_Ft,0.40)
call TriggerAddAction(udg_Ft,function j24)
endfunction
function j_4 takes nothing returns boolean
if((MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())==1747988811))then
return true
endif
return false
endfunction
function k44 takes nothing returns boolean
if(not j_4())then
return false
endif
return true
endfunction
function k74 takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function k84 takes nothing returns nothing
set udg_Gt=CreateTrigger()
call DisableTrigger(udg_Gt)
call TriggerRegisterEnterRectSimple(udg_Gt,udg_lo)
call TriggerAddCondition(udg_Gt,Condition(function k44))
call TriggerAddAction(udg_Gt,function k74)
endfunction
function k94 takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function kd4 takes nothing returns boolean
return(IsUnitDeadBJ(GetEnumUnit())==true)
endfunction
function ke4 takes nothing returns nothing
if(k94())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
if(kd4())then
call ReviveHeroLoc(GetEnumUnit(),GetUnitLoc(GetEnumUnit()),true)
else
call DoNothing()
endif
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,GetEnumUnit())
call PauseUnitBJ(true,GetEnumUnit())
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function kf4 takes nothing returns boolean
return(IsUnitHiddenBJ(GetEnumUnit())==true)
endfunction
function kg4 takes nothing returns boolean
return(IsUnitDeadBJ(GetEnumUnit())==true)
endfunction
function kh4 takes nothing returns nothing
if(kf4())then
call ShowUnitShow(GetEnumUnit())
else
call DoNothing()
endif
if(kg4())then
call ReviveHeroLoc(GetEnumUnit(),GetUnitLoc(GetEnumUnit()),true)
else
call DoNothing()
endif
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_ALL,GetEnumUnit())
call PauseUnitBJ(true,GetEnumUnit())
call SetUnitLifeBJ(GetEnumUnit(),1.00)
call SetUnitManaBJ(GetEnumUnit(),0)
call SetUnitInvulnerable(GetEnumUnit(),false)
endfunction
function ki4 takes nothing returns boolean
if(not(udg_L4!=null))then
return false
endif
return true
endfunction
function kj4 takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
endfunction
function kk4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function km4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_L4))==true)
endfunction
function kn4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function ko4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function kp4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function kq4 takes nothing returns boolean
return GetBooleanAnd(ko4(),kp4())
endfunction
function kr4 takes nothing returns boolean
return GetBooleanAnd(kn4(),kq4())
endfunction
function ks4 takes nothing returns boolean
return GetBooleanAnd(km4(),kr4())
endfunction
function kt4 takes nothing returns boolean
return GetBooleanAnd(kk4(),ks4())
endfunction
function ku4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_L4,GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function kv4 takes nothing returns boolean
if(not(udg_L4!=null))then
return false
endif
return true
endfunction
function kw4 takes nothing returns boolean
if(not(udg_L4!=null))then
return false
endif
return true
endfunction
function kx4 takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function ky4 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"LOSER!")
endfunction
function kz4 takes nothing returns boolean
if(not(udg_M4==2))then
return false
endif
return true
endfunction
function kA4 takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function ka4 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"LOSER!")
endfunction
function kB4 takes nothing returns boolean
if(not(udg_M4==1))then
return false
endif
return true
endfunction
function kb4 takes nothing returns nothing
call PauseAllUnitsBJ(true)
call AddWeatherEffectSaveLast(udg_Io,1280467297)
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
call TriggerSleepAction(1.00)
call ForGroupBJ(d6(udg_Lo),function ke4)
call ForGroupBJ(d6(udg_Ko),function kh4)
call CreateNUnitsAtLocFacingLocBJ(1,1747988811,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Jo),GetRectCenter(udg_do))
set udg_L4=GetLastCreatedUnit()
if(ki4())then
call PauseUnitBJ(true,udg_L4)
call SetUnitInvulnerable(udg_L4,true)
else
call DoNothing()
endif
call ForGroupBJ(d6(udg_do),function kj4)
call TriggerSleepAction(1.40)
if(kv4())then
call PauseUnitBJ(false,udg_L4)
call SetUnitAnimation(udg_L4,"spell")
call AddSpecialEffectTargetUnitBJ("origin",udg_L4,"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_L4,"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.01)
set udg_c[3001]=AngleBetweenPoints(GetUnitLoc(udg_L4),GetRectCenter(udg_do))
set udg_c[3002]=(udg_c[3001]+20.00)
set udg_c[3003]=(udg_c[3001]-20.00)
set udg_Ah=1
loop
exitwhen udg_Ah>20
set udg_dg[0]=PG(GetUnitLoc(udg_L4),(45.00*I2R(udg_Ah)),udg_c[3001])
call AddSpecialEffectLocBJ(udg_dg[0],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[0],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_zh=e6(360.00,udg_dg[0],Condition(function kt4))
call ForGroupBJ(udg_zh,function ku4)
call DestroyGroup(udg_zh)
set udg_zh=null
call RemoveLocation(udg_dg[0])
set udg_dg[0]=null
set udg_dg[0]=PG(GetUnitLoc(udg_L4),(45.00*I2R(udg_Ah)),udg_c[3002])
call AddSpecialEffectLocBJ(udg_dg[0],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[0],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[0])
set udg_dg[0]=null
set udg_dg[0]=PG(GetUnitLoc(udg_L4),(45.00*I2R(udg_Ah)),udg_c[3003])
call AddSpecialEffectLocBJ(udg_dg[0],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[0],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[0])
set udg_dg[0]=null
set udg_Ah=udg_Ah+1
endloop
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_L4,"???",udg_ar,"Get the latest version from |c001ce6b9www.The-RoK.co.cc|r.",bj_TIMETYPE_ADD,2.00,true)
call ResetUnitAnimation(udg_L4)
else
call DoNothing()
endif
call TriggerSleepAction(0.05)
if(kw4())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_L4),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveUnit(udg_L4)
else
call DoNothing()
endif
call TriggerSleepAction(1.50)
if(kB4())then
call ForForce(udg_e,function kA4)
call ForForce(udg_f,function ka4)
else
if(kz4())then
call ForForce(udg_f,function kx4)
call ForForce(udg_e,function ky4)
else
call DoNothing()
endif
endif
endfunction
function kC4 takes nothing returns nothing
set udg_Ht=CreateTrigger()
call TriggerAddAction(udg_Ht,function kb4)
endfunction
function kc4 takes nothing returns boolean
if(not(udg_w==false))then
return false
endif
return true
endfunction
function kD4 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=60))then
return false
endif
return true
endfunction
function kE4 takes nothing returns boolean
if(not(GetRandomInt(1,100)>50))then
return false
endif
return true
endfunction
function k34 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=60))then
return false
endif
return true
endfunction
function kF4 takes nothing returns boolean
if(not(GetRandomInt(1,100)>50))then
return false
endif
return true
endfunction
function kG4 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function k64 takes nothing returns boolean
return(GetFilterUnit()!=udg_w4)
endfunction
function kH4 takes nothing returns boolean
return GetBooleanAnd(kG4(),k64())
endfunction
function kI4 takes nothing returns nothing
call UnitRemoveAbilityBJ(1097888359,GetEnumUnit())
call UnitRemoveAbilityBJ(1097885490,GetEnumUnit())
call UnitRemoveAbilityBJ(1094938741,GetEnumUnit())
call UnitRemoveAbilityBJ(1094937961,GetEnumUnit())
call UnitRemoveAbilityBJ(1094939243,GetEnumUnit())
call UnitRemoveAbilityBJ(1094939499,GetEnumUnit())
call UnitRemoveAbilityBJ(1094935667,GetEnumUnit())
call UnitRemoveAbilityBJ(1094935144,GetEnumUnit())
call UnitRemoveAbilityBJ(1095656040,GetEnumUnit())
call UnitRemoveAbilityBJ(1094936114,GetEnumUnit())
call UnitRemoveAbilityBJ(1094936181,GetEnumUnit())
call UnitRemoveAbilityBJ(1094936161,GetEnumUnit())
call UnitRemoveAbilityBJ(1094935393,GetEnumUnit())
call UnitRemoveAbilityBJ(1094935411,GetEnumUnit())
call UnitRemoveAbilityBJ(1094939511,GetEnumUnit())
call UnitRemoveAbilityBJ(1097886070,GetEnumUnit())
call UnitRemoveAbilityBJ(1098082413,GetEnumUnit())
call UnitRemoveAbilityBJ(1400072301,GetEnumUnit())
call UnitRemoveAbilityBJ(1097887593,GetEnumUnit())
call UnitRemoveAbilityBJ(1098084463,GetEnumUnit())
call UnitRemoveAbilityBJ(1094940275,GetEnumUnit())
call UnitRemoveAbilityBJ(1094935661,GetEnumUnit())
call UnitRemoveAbilityBJ(1094935602,GetEnumUnit())
call UnitRemoveAbilityBJ(1097753709,GetEnumUnit())
call UnitRemoveAbilityBJ(1096901741,GetEnumUnit())
call UnitRemoveAbilityBJ(1097102189,GetEnumUnit())
call UnitRemoveAbilityBJ(1097886055,GetEnumUnit())
call UnitRemoveAbilityBJ(1094939746,GetEnumUnit())
call SetUnitManaBJ(GetEnumUnit(),0)
call UnitSetCanSleepBJ(GetEnumUnit(),false)
endfunction
function kl4 takes nothing returns boolean
return(udg_v4==true)
endfunction
function k14 takes nothing returns boolean
return(udg_w4==null)
endfunction
function kJ4 takes nothing returns boolean
return GetBooleanAnd(kl4(),k14())
endfunction
function kK4 takes nothing returns boolean
return(udg_x4==1)
endfunction
function kL4 takes nothing returns boolean
return(udg_x4==2)
endfunction
function kM4 takes nothing returns boolean
return(udg_x4==3)
endfunction
function kN4 takes nothing returns boolean
return(udg_x4==4)
endfunction
function kO4 takes nothing returns boolean
return(udg_x4==5)
endfunction
function k04 takes nothing returns boolean
return(udg_x4==6)
endfunction
function kP4 takes nothing returns boolean
if(not(udg_v4==true))then
return false
endif
if(not(udg_w4==null))then
return false
endif
if(not(udg_x4<=6))then
return false
endif
return true
endfunction
function kQ4 takes nothing returns boolean
if(not kP4())then
return false
endif
return true
endfunction
function kR4 takes nothing returns nothing
set udg_h9=PG(udg_j9,600.00,0)
call CreateNUnitsAtLocFacingLocBJ(8,ChooseRandomCreepBJ(GetRandomInt(1,3)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(udg_j9,600.00,90.00)
call CreateNUnitsAtLocFacingLocBJ(8,ChooseRandomCreepBJ(GetRandomInt(1,3)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(udg_j9,600.00,180.00)
call CreateNUnitsAtLocFacingLocBJ(8,ChooseRandomCreepBJ(GetRandomInt(1,3)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(udg_j9,600.00,270.00)
call CreateNUnitsAtLocFacingLocBJ(8,ChooseRandomCreepBJ(GetRandomInt(1,3)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(udg_j9,1500.00,90.00)
call CreateNUnitsAtLocFacingLocBJ(4,ChooseRandomCreepBJ(GetRandomInt(4,6)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(udg_j9,1500.00,180.00)
call CreateNUnitsAtLocFacingLocBJ(4,ChooseRandomCreepBJ(GetRandomInt(4,6)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(udg_j9,1400.00,45.00)
call CreateNUnitsAtLocFacingLocBJ(6,ChooseRandomCreepBJ(GetRandomInt(1,4)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(udg_j9,1400.00,135.00)
call CreateNUnitsAtLocFacingLocBJ(6,ChooseRandomCreepBJ(GetRandomInt(1,4)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(udg_j9,1000.00,225.00)
call CreateNUnitsAtLocFacingLocBJ(6,ChooseRandomCreepBJ(GetRandomInt(1,4)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(udg_j9,1000.00,315.00)
call CreateNUnitsAtLocFacingLocBJ(6,ChooseRandomCreepBJ(GetRandomInt(1,4)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(GetRectCenter(udg_tn),450.00,AngleBetweenPoints(GetRectCenter(udg_tn),udg_j9))
call CreateNUnitsAtLocFacingLocBJ(6,ChooseRandomCreepBJ(GetRandomInt(2,4)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=GetRectCenter(udg_Yo)
call CreateNUnitsAtLocFacingLocBJ(6,ChooseRandomCreepBJ(GetRandomInt(2,4)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=GetRectCenter(udg_Zo)
call CreateNUnitsAtLocFacingLocBJ(6,ChooseRandomCreepBJ(GetRandomInt(2,4)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
set udg_h9=PG(GetRectCenter(udg_wn),450.00,AngleBetweenPoints(GetRectCenter(udg_wn),udg_j9))
call CreateNUnitsAtLocFacingLocBJ(6,ChooseRandomCreepBJ(GetRandomInt(2,4)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
if(kE4())then
call DoNothing()
else
if(kD4())then
call DoNothing()
else
set udg_h9=PG(GetRectCenter(udg_Zn),200.00,AngleBetweenPoints(GetRectCenter(udg_Zn),udg_j9))
call CreateNUnitsAtLocFacingLocBJ(3,ChooseRandomCreepBJ(GetRandomInt(7,10)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
endif
endif
if(kF4())then
call DoNothing()
else
if(k34())then
call DoNothing()
else
set udg_h9=PG(GetRectCenter(udg_Vn),220.00,AngleBetweenPoints(GetRectCenter(udg_Vn),udg_j9))
call CreateNUnitsAtLocFacingLocBJ(2,ChooseRandomCreepBJ(GetRandomInt(7,10)),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,udg_j9)
call RemoveLocation(udg_h9)
set udg_h9=null
endif
endif
set udg_i9=YG(udg_sn,Condition(function kH4))
call ForGroupBJ(udg_i9,function kI4)
call DestroyGroup(udg_i9)
set udg_i9=null
if(kJ4())then
set udg_x4=GetRandomInt(1,50)
else
call DoNothing()
endif
if(kQ4())then
set udg_h9=GetRandomLocInRect(udg_sn)
if(kK4())then
call CreateNUnitsAtLoc(1,1851879023,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,GetRandomDirectionDeg())
else
call DoNothing()
endif
if(kL4())then
call CreateNUnitsAtLoc(1,1852010091,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,GetRandomDirectionDeg())
else
call DoNothing()
endif
if(kM4())then
call CreateNUnitsAtLoc(1,1852208235,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,GetRandomDirectionDeg())
else
call DoNothing()
endif
if(kN4())then
call CreateNUnitsAtLoc(1,1852207713,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,GetRandomDirectionDeg())
else
call DoNothing()
endif
if(kO4())then
call CreateNUnitsAtLoc(1,1853055597,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,GetRandomDirectionDeg())
else
call DoNothing()
endif
if(k04())then
call CreateNUnitsAtLoc(1,1852663652,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_h9,GetRandomDirectionDeg())
else
call DoNothing()
endif
set udg_w4=GetLastCreatedUnit()
call DisplayTextToForce(GetPlayersAll(),(GetUnitName(udg_w4)+" has entered the Arena!"))
call AddSpecialEffectTargetUnitBJ("origin",udg_w4,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitManaPercentBJ(udg_w4,100)
call RemoveLocation(udg_h9)
set udg_h9=null
else
call DoNothing()
endif
endfunction
function kS4 takes nothing returns nothing
set udg_It=CreateTrigger()
call TriggerAddCondition(udg_It,Condition(function kc4))
call TriggerAddAction(udg_It,function kR4)
endfunction
function k54 takes nothing returns boolean
if((IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return true
endif
if((IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return true
endif
return false
endfunction
function kT4 takes nothing returns boolean
if(not k54())then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())==Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
return true
endfunction
function kU4 takes nothing returns boolean
if(not kT4())then
return false
endif
return true
endfunction
function kV4 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])==true))then
return false
endif
return true
endfunction
function kW4 takes nothing returns nothing
if(kV4())then
call AddHeroXPSwapped((3*GetUnitLevel(GetDyingUnit())),udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
else
call DoNothing()
endif
endfunction
function kX4 takes nothing returns nothing
set udg_lt=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_lt,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_lt,Condition(function kU4))
call TriggerAddAction(udg_lt,function kW4)
endfunction
function kY4 takes nothing returns nothing
set udg_Q8=GetRectCenter(udg_mo)
call CreateNUnitsAtLoc(1,1852204911,Player(PLAYER_NEUTRAL_AGGRESSIVE),PG(udg_Q8,350.00,90.00),bj_UNIT_FACING)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_no)
call CreateNUnitsAtLoc(1,1848651846,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_A7=GetLastCreatedUnit()
set udg_N[799]=8
set udg_a7=1
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function k24 takes nothing returns nothing
set udg_Jt=CreateTrigger()
call TriggerAddAction(udg_Jt,function kY4)
endfunction
function kZ4 takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())==1852204911))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())==1852204908))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())==1852403302))then
return true
endif
if((GetTriggerUnit()==udg_V))then
return true
endif
return false
endfunction
function k_4 takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not kZ4())then
return false
endif
return true
endfunction
function m44 takes nothing returns boolean
if(not k_4())then
return false
endif
return true
endfunction
function m74 takes nothing returns nothing
call AdjustPlayerStateBJ(9999,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function m84 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return false
endif
return true
endfunction
function m94 takes nothing returns nothing
call AdjustPlayerStateBJ(9999,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function md4 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return false
endif
return true
endfunction
function me4 takes nothing returns boolean
if(not(GetTriggerUnit()==udg_V))then
return false
endif
return true
endfunction
function mf4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1852204916)
endfunction
function mg4 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function mh4 takes nothing returns boolean
if(not(udg_in==false))then
return false
endif
if(not(udg_Rm[1]==true))then
return false
endif
if(not(udg_Rm[2]==true))then
return false
endif
if(not(udg_Rm[3]==true))then
return false
endif
if(not(udg_Rm[4]==true))then
return false
endif
if(not(udg_Rm[5]==true))then
return false
endif
if(not(udg_Rm[6]==true))then
return false
endif
return true
endfunction
function mi4 takes nothing returns boolean
if(not mh4())then
return false
endif
return true
endfunction
function mj4 takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())==1852204911))then
return false
endif
return true
endfunction
function mk4 takes nothing returns nothing
if(mj4())then
set udg_Rm[3]=true
call CreateItemLoc(1868984943,GetUnitLoc(GetTriggerUnit()))
set udg_P8[9]=YG(GetPlayableMapRect(),Condition(function mf4))
call ForGroupBJ(udg_P8[9],function mg4)
call AddHeroXPSwapped(5000,GetKillingUnitBJ(),true)
call DestroyGroup(udg_P8[9])
set udg_P8[9]=null
call TriggerExecute(udg_Lt)
if(mi4())then
call TriggerExecute(udg_pu)
else
call DoNothing()
endif
else
if(me4())then
call CreateItemLoc(1227894833,GetUnitLoc(GetTriggerUnit()))
call AddHeroXPSwapped(9999,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
if(md4())then
call ForForce(udg_e,function m94)
call DisplayTimedTextToForce(GetPlayersAll(),35.00,(GetHeroProperName(udg_V)+" (level 99) has been slain by Team 1 (+9999 gold each Player)!"))
else
if(m84())then
call ForForce(udg_f,function m74)
call DisplayTimedTextToForce(GetPlayersAll(),35.00,(GetHeroProperName(udg_V)+" (level 99) has been slain by Team 2 (+9999 gold each Player)!"))
else
call DoNothing()
endif
endif
set udg_V=null
call TriggerExecute(udg_ku)
else
call DoNothing()
endif
endif
endfunction
function mm4 takes nothing returns nothing
set udg_Kt=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Kt,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Kt,Condition(function m44))
call TriggerAddAction(udg_Kt,function mk4)
endfunction
function mn4 takes nothing returns nothing
set udg_O4=1
loop
exitwhen udg_O4>20
call CreateItemLoc(1735355492,GetUnitLoc(GetTriggerUnit()))
set udg_O4=udg_O4+1
endloop
endfunction
function mo4 takes nothing returns nothing
set udg_Lt=CreateTrigger()
call TriggerAddAction(udg_Lt,function mn4)
endfunction
function mp4 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function mq4 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function mr4 takes nothing returns nothing
set udg_Mt=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_Mt,udg_no)
call TriggerAddCondition(udg_Mt,Condition(function mp4))
call TriggerAddAction(udg_Mt,function mq4)
endfunction
function ms4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1852403302))then
return false
endif
return true
endfunction
function mt4 takes nothing returns nothing
call TriggerSleepAction(10.00)
set udg_Q8=GetRandomLocInRect(udg_no)
call CreateNUnitsAtLoc(1,1852403302,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,GetRandomDirectionDeg())
call RemoveLocation(udg_Q8)
set udg_Q8=null
endfunction
function mu4 takes nothing returns nothing
set udg_Nt=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Nt,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Nt,Condition(function ms4))
call TriggerAddAction(udg_Nt,function mt4)
endfunction
function mv4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_A7))then
return false
endif
return true
endfunction
function mw4 takes nothing returns boolean
return(udg_a7==9)
endfunction
function mx4 takes nothing returns boolean
return(udg_a7==10)
endfunction
function my4 takes nothing returns boolean
if(not(udg_a7==10))then
return false
endif
return true
endfunction
function mz4 takes nothing returns boolean
if(not(udg_a7==9))then
return false
endif
return true
endfunction
function mA4 takes nothing returns boolean
if(not(udg_a7==8))then
return false
endif
return true
endfunction
function ma4 takes nothing returns boolean
if(not(udg_a7==7))then
return false
endif
return true
endfunction
function mB4 takes nothing returns boolean
if(not(udg_a7==6))then
return false
endif
return true
endfunction
function mb4 takes nothing returns boolean
if(not(udg_a7==5))then
return false
endif
return true
endfunction
function mC4 takes nothing returns boolean
if(not(udg_a7==4))then
return false
endif
return true
endfunction
function mc4 takes nothing returns boolean
if(not(udg_a7==3))then
return false
endif
return true
endfunction
function mD4 takes nothing returns boolean
if(not(udg_a7==2))then
return false
endif
return true
endfunction
function mE4 takes nothing returns boolean
if(not(udg_a7==1))then
return false
endif
return true
endfunction
function m34 takes nothing returns nothing
set udg_O4=1
loop
exitwhen udg_O4>(4*udg_a7)
call CreateItemLoc(1227895623,GetUnitLoc(udg_A7))
set udg_O4=udg_O4+1
endloop
set udg_A7=null
call TriggerSleepAction(60.00)
if(mw4())then
call TriggerSleepAction(45.00)
else
call DoNothing()
endif
if(mx4())then
call TriggerSleepAction(100.00)
else
call DoNothing()
endif
set udg_Q8=GetRectCenter(udg_no)
if(mE4())then
call CreateNUnitsAtLoc(1,1848651852,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
set udg_A7=GetLastCreatedUnit()
set udg_a7=2
else
if(mD4())then
call CreateNUnitsAtLoc(1,1848651851,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
set udg_A7=GetLastCreatedUnit()
set udg_a7=3
else
if(mc4())then
call CreateNUnitsAtLoc(1,1848651850,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
set udg_A7=GetLastCreatedUnit()
set udg_a7=4
else
if(mC4())then
call CreateNUnitsAtLoc(1,1848651849,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
set udg_A7=GetLastCreatedUnit()
set udg_a7=5
else
if(mb4())then
call CreateNUnitsAtLoc(1,1848651848,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
set udg_A7=GetLastCreatedUnit()
set udg_a7=6
else
if(mB4())then
call CreateNUnitsAtLoc(1,1848651847,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
set udg_A7=GetLastCreatedUnit()
set udg_a7=7
else
if(ma4())then
call CreateNUnitsAtLoc(1,1848651845,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
set udg_A7=GetLastCreatedUnit()
set udg_a7=8
else
if(mA4())then
call CreateNUnitsAtLoc(1,1852204908,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
set udg_A7=GetLastCreatedUnit()
set udg_a7=9
else
if(mz4())then
call CreateNUnitsAtLoc(1,1848652080,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
set udg_A7=GetLastCreatedUnit()
set udg_a7=10
else
if(my4())then
call CreateNUnitsAtLoc(1,1848652081,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,bj_UNIT_FACING)
set udg_Pm=GetLastCreatedUnit()
set udg_a7=11
call EnableTrigger(udg_Qt)
call EnableTrigger(udg_Rt)
call DisableTrigger(udg_Nt)
call ShowUnitHide(udg_jG)
call ShowUnitHide(udg_sG)
call ShowUnitHide(udg_qG)
call ShowUnitHide(udg_rG)
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call RemoveLocation(udg_Q8)
set udg_Q8=null
call AddSpecialEffectTargetUnitBJ("origin",udg_A7,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function mF4 takes nothing returns nothing
set udg_Ot=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ot,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Ot,Condition(function mv4))
call TriggerAddAction(udg_Ot,function m34)
endfunction
function mG4 takes nothing returns boolean
if((GetTriggerUnit()==udg_A7))then
return true
endif
if((GetTriggerUnit()==udg_Pm))then
return true
endif
return false
endfunction
function m64 takes nothing returns boolean
if(not mG4())then
return false
endif
return true
endfunction
function mH4 takes nothing returns nothing
set udg_Q8=GetUnitLoc(udg_A7)
call AddSpecialEffectLocBJ(udg_Q8,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=GetRectCenter(udg_Po)
call SetUnitPositionLocFacingBJ(udg_A7,udg_Q8,270.00)
call RemoveLocation(udg_Q8)
set udg_Q8=null
call AddSpecialEffectTargetUnitBJ("chest",udg_A7,"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("chest",udg_A7,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function mI4 takes nothing returns nothing
set udg_Pt=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_Pt,udg_Po)
call TriggerAddCondition(udg_Pt,Condition(function m64))
call TriggerAddAction(udg_Pt,function mH4)
endfunction
function ml4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Pm))then
return false
endif
if(not(udg_a7==11))then
return false
endif
return true
endfunction
function m14 takes nothing returns boolean
if(not ml4())then
return false
endif
return true
endfunction
function mJ4 takes nothing returns boolean
if(not(udg_in==false))then
return false
endif
if(not(udg_Rm[1]==true))then
return false
endif
if(not(udg_Rm[2]==true))then
return false
endif
if(not(udg_Rm[3]==true))then
return false
endif
if(not(udg_Rm[4]==true))then
return false
endif
if(not(udg_Rm[5]==true))then
return false
endif
if(not(udg_Rm[6]==true))then
return false
endif
return true
endfunction
function mK4 takes nothing returns boolean
if(not mJ4())then
return false
endif
return true
endfunction
function mL4 takes nothing returns nothing
set udg_Rm[1]=true
set udg_Q8=GetUnitLoc(udg_Pm)
call CreateItemLoc(1227895886,udg_Q8)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Pm=null
call CreateNUnitsAtLoc(1,1848651866,Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_ep),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,1848651866,Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_fp),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetRectCenter(udg_ep),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRectCenter(udg_fp),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ShowUnitShow(udg_jG)
call ShowUnitShow(udg_sG)
call ShowUnitShow(udg_qG)
call ShowUnitShow(udg_rG)
if(mK4())then
call TriggerExecute(udg_pu)
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function mM4 takes nothing returns nothing
set udg_Qt=CreateTrigger()
call DisableTrigger(udg_Qt)
call TriggerRegisterAnyUnitEventBJ(udg_Qt,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Qt,Condition(function m14))
call TriggerAddAction(udg_Qt,function mL4)
endfunction
function mN4 takes nothing returns boolean
if(not(GetAttackedUnitBJ()==udg_Pm))then
return false
endif
return true
endfunction
function mO4 takes nothing returns nothing
call IssueImmediateOrderBJ(GetAttackedUnitBJ(),"stomp")
endfunction
function m04 takes nothing returns nothing
set udg_Rt=CreateTrigger()
call DisableTrigger(udg_Rt)
call TriggerRegisterAnyUnitEventBJ(udg_Rt,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_Rt,Condition(function mN4))
call TriggerAddAction(udg_Rt,function mO4)
endfunction
function mP4 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function mQ4 takes nothing returns nothing
call TriggerExecute(udg_Tt)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function mR4 takes nothing returns nothing
set udg_St=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_St,udg_oo)
call TriggerAddCondition(udg_St,Condition(function mP4))
call TriggerAddAction(udg_St,function mQ4)
endfunction
function mS4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1853056871)
endfunction
function m54 takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
call SetUnitInvulnerable(GetEnumUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
endfunction
function mT4 takes nothing returns nothing
set udg_k9=GetRectCenter(udg_cn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,0.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Dn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,180.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_En)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,0.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Fn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,180.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Gn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,0.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Hn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,180.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_In)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,0.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_ln)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,180.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Jn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,0.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Kn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,180.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Ln)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,0.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Mn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,180.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Nn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,0.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_On)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,180.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Pn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,0.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Qn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,180.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Rn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,0.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_k9=GetRectCenter(udg_Sn)
call CreateNUnitsAtLoc(1,1853056871,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_k9,180.00)
call RemoveLocation(udg_k9)
set udg_k9=null
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),0.00)
call AddSpecialEffectTargetUnitBJ("origin",GetLastCreatedUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_m9=YG(GetPlayableMapRect(),Condition(function mS4))
call ForGroupBJ(udg_m9,function m54)
call DestroyGroup(udg_m9)
set udg_m9=null
endfunction
function mU4 takes nothing returns nothing
set udg_Tt=CreateTrigger()
call TriggerAddAction(udg_Tt,function mT4)
endfunction
function mV4 takes nothing returns boolean
if(not(GetManipulatedItem()==udg_oG))then
return false
endif
if(not(RectContainsUnit(udg_zn,GetManipulatingUnit())==true))then
return false
endif
return true
endfunction
function mW4 takes nothing returns boolean
if(not mV4())then
return false
endif
return true
endfunction
function mX4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1853056871)
endfunction
function mY4 takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
call SetUnitInvulnerable(GetEnumUnit(),false)
call SetUnitTimeScalePercent(GetEnumUnit(),100)
endfunction
function m24 takes nothing returns nothing
call SetUnitManaBJ(GetManipulatingUnit(),0)
call SetUnitLifePercentBJ(GetManipulatingUnit(),40.00)
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_m9=YG(GetPlayableMapRect(),Condition(function mX4))
call ForGroupBJ(udg_m9,function mY4)
call DestroyGroup(udg_m9)
set udg_m9=null
set udg_T=GetManipulatingUnit()
endfunction
function mZ4 takes nothing returns nothing
set udg_Ut=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ut,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Ut,Condition(function mW4))
call TriggerAddAction(udg_Ut,function m24)
endfunction
function m_4 takes nothing returns boolean
if(not(GetManipulatedItem()==udg_oG))then
return false
endif
if(not(RectContainsUnit(udg_zn,GetManipulatingUnit())==true))then
return false
endif
return true
endfunction
function n44 takes nothing returns boolean
if(not m_4())then
return false
endif
return true
endfunction
function n74 takes nothing returns nothing
set udg_T=GetManipulatingUnit()
call DisableTrigger(GetTriggeringTrigger())
endfunction
function n84 takes nothing returns nothing
set udg_Vt=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Vt,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Vt,Condition(function n44))
call TriggerAddAction(udg_Vt,function n74)
endfunction
function n94 takes nothing returns boolean
if(not(GetDyingUnit()==udg_T))then
return false
endif
if(not(RectContainsUnit(udg_zn,udg_T)==true))then
return false
endif
return true
endfunction
function nd4 takes nothing returns boolean
if(not n94())then
return false
endif
return true
endfunction
function ne4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1853056871)
endfunction
function nf4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ng4 takes nothing returns nothing
set udg_m9=YG(GetPlayableMapRect(),Condition(function ne4))
call ForGroupBJ(udg_m9,function nf4)
call DestroyGroup(udg_m9)
set udg_m9=null
set udg_T=null
call TriggerExecute(udg_Tt)
set udg_Q8=GetRectCenter(udg_ho)
call SetItemPositionLoc(udg_oG,udg_Q8)
call AddSpecialEffectLocBJ(udg_Q8,"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_Q8)
set udg_Q8=null
endfunction
function nh4 takes nothing returns nothing
set udg_Wt=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Wt,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Wt,Condition(function nd4))
call TriggerAddAction(udg_Wt,function ng4)
endfunction
function ni4 takes nothing returns boolean
if(not(UnitHasItem(GetTriggerUnit(),udg_oG)==true))then
return false
endif
return true
endfunction
function nj4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1853056871)
endfunction
function nk4 takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
call SetUnitInvulnerable(GetEnumUnit(),false)
call SetUnitTimeScalePercent(GetEnumUnit(),100)
endfunction
function nm4 takes nothing returns nothing
set udg_m9=YG(GetPlayableMapRect(),Condition(function nj4))
call ForGroupBJ(udg_m9,function nk4)
call DestroyGroup(udg_m9)
set udg_m9=null
set udg_T=null
call DisableTrigger(udg_Ut)
call DisableTrigger(udg_Wt)
call DisableTrigger(udg_Tt)
call DisableTrigger(udg_pt)
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_hw)
call EnableTrigger(udg_iw)
call EnableTrigger(udg_jw)
call EnableTrigger(udg_nw)
set udg_Q8=GetRectCenter(udg_ho)
call CreateItemLoc(1227896395,udg_Q8)
call RemoveLocation(udg_Q8)
set udg_Q8=null
set udg_Q8=PG(GetRectCenter(udg_ho),400.00,AngleBetweenPoints(GetRectCenter(udg_ho),GetRectCenter(udg_Un)))
call CreateNUnitsAtLoc(6,1851941228,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Q8,AngleBetweenPoints(GetRectCenter(udg_ho),GetRectCenter(udg_Un)))
call RemoveLocation(udg_Q8)
set udg_Q8=null
call EnableTrigger(udg_Yt)
call EnableTrigger(udg_Zt)
endfunction
function nn4 takes nothing returns nothing
set udg_Xt=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_Xt,udg_Oo)
call TriggerAddCondition(udg_Xt,Condition(function ni4))
call TriggerAddAction(udg_Xt,function nm4)
endfunction
function no4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227896395))then
return false
endif
return true
endfunction
function np4 takes nothing returns nothing
set udg_Qm=GetItemLoc(GetManipulatedItem())
call CreateNUnitsAtLoc(1,1848652082,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_Qm,bj_UNIT_FACING)
call RemoveLocation(udg_Qm)
set udg_Qm=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function nq4 takes nothing returns nothing
set udg_Yt=CreateTrigger()
call DisableTrigger(udg_Yt)
call TriggerRegisterAnyUnitEventBJ(udg_Yt,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Yt,Condition(function no4))
call TriggerAddAction(udg_Yt,function np4)
endfunction
function nr4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1848652082))then
return false
endif
return true
endfunction
function ns4 takes nothing returns boolean
if(not(udg_in==false))then
return false
endif
if(not(udg_Rm[1]==true))then
return false
endif
if(not(udg_Rm[2]==true))then
return false
endif
if(not(udg_Rm[3]==true))then
return false
endif
if(not(udg_Rm[4]==true))then
return false
endif
if(not(udg_Rm[5]==true))then
return false
endif
if(not(udg_Rm[6]==true))then
return false
endif
return true
endfunction
function nt4 takes nothing returns boolean
if(not ns4())then
return false
endif
return true
endfunction
function nu4 takes nothing returns nothing
set udg_Rm[2]=true
set udg_Qm=GetUnitLoc(GetDyingUnit())
call CreateItemLoc(1227894849,udg_Qm)
call RemoveLocation(udg_Qm)
set udg_Qm=null
if(nt4())then
call TriggerExecute(udg_pu)
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function nv4 takes nothing returns nothing
set udg_Zt=CreateTrigger()
call DisableTrigger(udg_Zt)
call TriggerRegisterAnyUnitEventBJ(udg_Zt,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Zt,Condition(function nr4))
call TriggerAddAction(udg_Zt,function nu4)
endfunction
function nw4 takes nothing returns boolean
if(not(udg_J7[1]==13))then
return false
endif
return true
endfunction
function nx4 takes nothing returns boolean
if(not(udg_J7[1]==12))then
return false
endif
return true
endfunction
function ny4 takes nothing returns boolean
if(not(udg_J7[1]==11))then
return false
endif
return true
endfunction
function nz4 takes nothing returns boolean
if(not(udg_J7[1]==10))then
return false
endif
return true
endfunction
function nA4 takes nothing returns boolean
if(not(udg_J7[1]==9))then
return false
endif
return true
endfunction
function na4 takes nothing returns boolean
if(not(udg_J7[1]==8))then
return false
endif
return true
endfunction
function nB4 takes nothing returns boolean
if(not(udg_J7[1]==7))then
return false
endif
return true
endfunction
function nb4 takes nothing returns boolean
if(not(udg_J7[1]==6))then
return false
endif
return true
endfunction
function nC4 takes nothing returns boolean
if(not(udg_J7[1]==5))then
return false
endif
return true
endfunction
function nc4 takes nothing returns boolean
if(not(udg_J7[1]==4))then
return false
endif
return true
endfunction
function nD4 takes nothing returns boolean
if(not(udg_J7[1]==3))then
return false
endif
return true
endfunction
function nE4 takes nothing returns boolean
if(not(udg_J7[1]==2))then
return false
endif
return true
endfunction
function n34 takes nothing returns boolean
if(not(udg_J7[1]==1))then
return false
endif
return true
endfunction
function nF4 takes nothing returns boolean
if(not(udg_J7[2]==12))then
return false
endif
return true
endfunction
function nG4 takes nothing returns boolean
if(not(udg_J7[2]==11))then
return false
endif
return true
endfunction
function n64 takes nothing returns boolean
if(not(udg_J7[2]==10))then
return false
endif
return true
endfunction
function nH4 takes nothing returns boolean
if(not(udg_J7[2]==9))then
return false
endif
return true
endfunction
function nI4 takes nothing returns boolean
if(not(udg_J7[2]==8))then
return false
endif
return true
endfunction
function nl4 takes nothing returns boolean
if(not(udg_J7[2]==7))then
return false
endif
return true
endfunction
function n14 takes nothing returns boolean
if(not(udg_J7[2]==6))then
return false
endif
return true
endfunction
function nJ4 takes nothing returns boolean
if(not(udg_J7[2]==5))then
return false
endif
return true
endfunction
function nK4 takes nothing returns boolean
if(not(udg_J7[2]==4))then
return false
endif
return true
endfunction
function nL4 takes nothing returns boolean
if(not(udg_J7[2]==3))then
return false
endif
return true
endfunction
function nM4 takes nothing returns boolean
if(not(udg_J7[2]==2))then
return false
endif
return true
endfunction
function nN4 takes nothing returns boolean
if(not(udg_J7[2]==1))then
return false
endif
return true
endfunction
function nO4 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_J7[1]=GetRandomInt(1,13)
set udg_n9[1]=GetRectCenter(udg_To)
set udg_n9[2]=GetRectCenter(udg_tn)
if(n34())then
call CreateNUnitsAtLocFacingLocBJ(1,1214345325,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(nE4())then
call CreateNUnitsAtLocFacingLocBJ(1,1214734701,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(nD4())then
call CreateNUnitsAtLocFacingLocBJ(1,1214931305,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(nc4())then
call CreateNUnitsAtLocFacingLocBJ(1,1214996844,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(nC4())then
call CreateNUnitsAtLocFacingLocBJ(1,1215063922,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(nb4())then
call CreateNUnitsAtLocFacingLocBJ(1,1215128178,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(nB4())then
call CreateNUnitsAtLocFacingLocBJ(1,1215723364,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(na4())then
call CreateNUnitsAtLocFacingLocBJ(1,1164797554,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(nA4())then
call CreateNUnitsAtLocFacingLocBJ(1,1164342642,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(nz4())then
call CreateNUnitsAtLocFacingLocBJ(1,1164666727,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(ny4())then
call CreateNUnitsAtLocFacingLocBJ(1,1165261170,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(nx4())then
call CreateNUnitsAtLocFacingLocBJ(1,1315858291,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
if(nw4())then
call CreateNUnitsAtLocFacingLocBJ(1,1315074670,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[1]=GetLastCreatedUnit()
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call RemoveLocation(udg_n9[1])
set udg_n9[1]=null
call RemoveLocation(udg_n9[2])
set udg_n9[2]=null
set udg_J7[1]=0
set udg_K7[1]=0
call SetHeroLevelBJ(udg_l7[1],1,false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_l7[1],bj_MODIFYMETHOD_SET,100)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_l7[1],bj_MODIFYMETHOD_SET,100)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_l7[1],bj_MODIFYMETHOD_SET,100)
call UnitAddAbilityBJ(1094935926,udg_l7[1])
call UnitAddAbilityBJ(1094935397,udg_l7[1])
call UnitRemoveAbilityBJ(1095331446,udg_l7[1])
call SetUnitScalePercent(udg_l7[1],130.00,130.00,130.00)
call UnitAddTypeBJ(UNIT_TYPE_ANCIENT,udg_l7[1])
call TriggerExecute(udg_iu)
set udg_J7[2]=GetRandomInt(1,12)
set udg_n9[1]=GetRectCenter(udg_Uo)
set udg_n9[2]=GetRectCenter(udg_wn)
if(nN4())then
call CreateNUnitsAtLocFacingLocBJ(1,1315070563,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(nM4())then
call CreateNUnitsAtLocFacingLocBJ(1,1331913266,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(nL4())then
call CreateNUnitsAtLocFacingLocBJ(1,1315988077,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(nK4())then
call CreateNUnitsAtLocFacingLocBJ(1,1332179560,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(nJ4())then
call CreateNUnitsAtLocFacingLocBJ(1,1332766568,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(n14())then
call CreateNUnitsAtLocFacingLocBJ(1,1332898670,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(nl4())then
call CreateNUnitsAtLocFacingLocBJ(1,1333028978,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(nI4())then
call CreateNUnitsAtLocFacingLocBJ(1,1333028978,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(nH4())then
call CreateNUnitsAtLocFacingLocBJ(1,1315007587,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(n64())then
call CreateNUnitsAtLocFacingLocBJ(1,1316252014,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(nG4())then
call CreateNUnitsAtLocFacingLocBJ(1,1433231724,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
if(nF4())then
call CreateNUnitsAtLocFacingLocBJ(1,1433105516,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_n9[1],udg_n9[2])
set udg_l7[2]=GetLastCreatedUnit()
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call RemoveLocation(udg_n9[1])
set udg_n9[1]=null
call RemoveLocation(udg_n9[2])
set udg_n9[2]=null
set udg_J7[2]=0
set udg_K7[2]=0
call SetHeroLevelBJ(udg_l7[2],1,false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_l7[2],bj_MODIFYMETHOD_SET,100)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_l7[2],bj_MODIFYMETHOD_SET,100)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_l7[2],bj_MODIFYMETHOD_SET,100)
call UnitAddAbilityBJ(1094935926,udg_l7[2])
call UnitAddAbilityBJ(1094935397,udg_l7[2])
call UnitRemoveAbilityBJ(1095331446,udg_l7[2])
call SetUnitScalePercent(udg_l7[2],130.00,130.00,130.00)
call UnitAddTypeBJ(UNIT_TYPE_ANCIENT,udg_l7[2])
call TriggerExecute(udg_iu)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function n04 takes nothing returns nothing
set udg_du=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_du,200.00)
call TriggerAddAction(udg_du,function nO4)
endfunction
function nP4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_l7[1]))then
return false
endif
if(not(udg_K7[1]<10))then
return false
endif
return true
endfunction
function nQ4 takes nothing returns boolean
if(not nP4())then
return false
endif
return true
endfunction
function nR4 takes nothing returns boolean
if(not(udg_K7[1]<=1))then
return false
endif
if(not(udg_J7[3]==1))then
return false
endif
return true
endfunction
function nS4 takes nothing returns boolean
if(not nR4())then
return false
endif
return true
endfunction
function n54 takes nothing returns boolean
if(not(udg_K7[1]>1))then
return false
endif
if(not(udg_J7[3]==1))then
return false
endif
return true
endfunction
function nT4 takes nothing returns boolean
if(not n54())then
return false
endif
return true
endfunction
function nU4 takes nothing returns boolean
if(not(udg_J7[3]==2))then
return false
endif
return true
endfunction
function nV4 takes nothing returns boolean
if(not(udg_in==false))then
return false
endif
if(not(udg_Rm[1]==true))then
return false
endif
if(not(udg_Rm[2]==true))then
return false
endif
if(not(udg_Rm[3]==true))then
return false
endif
if(not(udg_Rm[4]==true))then
return false
endif
if(not(udg_Rm[5]==true))then
return false
endif
if(not(udg_Rm[6]==true))then
return false
endif
return true
endfunction
function nW4 takes nothing returns boolean
if(not nV4())then
return false
endif
return true
endfunction
function nX4 takes nothing returns boolean
if(not(udg_J7[1]==13))then
return false
endif
return true
endfunction
function nY4 takes nothing returns boolean
if(not(udg_J7[1]==12))then
return false
endif
return true
endfunction
function n24 takes nothing returns boolean
if(not(udg_J7[1]==11))then
return false
endif
return true
endfunction
function nZ4 takes nothing returns boolean
if(not(udg_J7[1]==10))then
return false
endif
return true
endfunction
function n_4 takes nothing returns boolean
if(not(udg_J7[1]==9))then
return false
endif
return true
endfunction
function o44 takes nothing returns boolean
if(not(udg_J7[1]==8))then
return false
endif
return true
endfunction
function o74 takes nothing returns boolean
if(not(udg_J7[1]==7))then
return false
endif
return true
endfunction
function o84 takes nothing returns boolean
if(not(udg_J7[1]==6))then
return false
endif
return true
endfunction
function o94 takes nothing returns boolean
if(not(udg_J7[1]==5))then
return false
endif
return true
endfunction
function od4 takes nothing returns boolean
if(not(udg_J7[1]==4))then
return false
endif
return true
endfunction
function oe4 takes nothing returns boolean
if(not(udg_J7[1]==3))then
return false
endif
return true
endfunction
function of4 takes nothing returns boolean
if(not(udg_J7[1]==2))then
return false
endif
return true
endfunction
function og4 takes nothing returns boolean
if(not(udg_J7[1]==1))then
return false
endif
return true
endfunction
function oh4 takes nothing returns boolean
if(not(udg_K7[1]<9))then
return false
endif
return true
endfunction
function oi4 takes nothing returns nothing
set udg_J7[3]=GetRandomInt(1,2)
call AddHeroXPSwapped(1500,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
if(nT4())then
set udg_L7=1
loop
exitwhen udg_L7>20
call CreateItemLoc(1227895116,GetUnitLoc(udg_l7[1]))
set udg_L7=udg_L7+1
endloop
else
if(nS4())then
set udg_L7=1
loop
exitwhen udg_L7>10
call CreateItemLoc(1227895116,GetUnitLoc(udg_l7[1]))
set udg_L7=udg_L7+1
endloop
else
call DoNothing()
endif
endif
if(nU4())then
call CreateItemLoc(1886545267,GetUnitLoc(udg_l7[1]))
else
call DoNothing()
endif
set udg_J7[3]=0
set udg_l7[1]=null
call TriggerSleepAction(GetRandomReal(60.00,90.00))
if(oh4())then
set udg_J7[1]=GetRandomInt(1,13)
if(og4())then
call CreateNUnitsAtLocFacingLocBJ(1,1214345325,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(of4())then
call CreateNUnitsAtLocFacingLocBJ(1,1214734701,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(oe4())then
call CreateNUnitsAtLocFacingLocBJ(1,1214931305,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(od4())then
call CreateNUnitsAtLocFacingLocBJ(1,1214996844,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(o94())then
call CreateNUnitsAtLocFacingLocBJ(1,1215063922,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(o84())then
call CreateNUnitsAtLocFacingLocBJ(1,1215128178,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(o74())then
call CreateNUnitsAtLocFacingLocBJ(1,1215723364,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(o44())then
call CreateNUnitsAtLocFacingLocBJ(1,1164797554,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(n_4())then
call CreateNUnitsAtLocFacingLocBJ(1,1164342642,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(nZ4())then
call CreateNUnitsAtLocFacingLocBJ(1,1164666727,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(n24())then
call CreateNUnitsAtLocFacingLocBJ(1,1165261170,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(nY4())then
call CreateNUnitsAtLocFacingLocBJ(1,1315858291,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
if(nX4())then
call CreateNUnitsAtLocFacingLocBJ(1,1315074670,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_To),GetRectCenter(udg_tn))
set udg_l7[1]=GetLastCreatedUnit()
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set udg_J7[1]=0
set udg_K7[1]=(udg_K7[1]+1)
call SetHeroLevelBJ(udg_l7[1],(10*udg_K7[1]),false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_l7[1],bj_MODIFYMETHOD_SET,(200*udg_K7[1]))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_l7[1],bj_MODIFYMETHOD_SET,(200*udg_K7[1]))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_l7[1],bj_MODIFYMETHOD_SET,(200*udg_K7[1]))
call UnitAddAbilityBJ(1094935926,udg_l7[1])
call UnitAddAbilityBJ(1094935397,udg_l7[1])
call UnitRemoveAbilityBJ(1095331446,udg_l7[1])
call SetUnitScalePercent(udg_l7[1],130.00,130.00,130.00)
call UnitAddTypeBJ(UNIT_TYPE_ANCIENT,udg_l7[1])
call AddSpecialEffectTargetUnitBJ("origin",udg_l7[1],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call TriggerExecute(udg_iu)
else
set udg_Rm[4]=true
if(nW4())then
call TriggerExecute(udg_pu)
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endif
endfunction
function oj4 takes nothing returns nothing
set udg_eu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_eu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_eu,Condition(function nQ4))
call TriggerAddAction(udg_eu,function oi4)
endfunction
function ok4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_l7[2]))then
return false
endif
if(not(udg_K7[2]<10))then
return false
endif
return true
endfunction
function om4 takes nothing returns boolean
if(not ok4())then
return false
endif
return true
endfunction
function on4 takes nothing returns boolean
if(not(udg_K7[2]<=1))then
return false
endif
if(not(udg_J7[4]==1))then
return false
endif
return true
endfunction
function oo4 takes nothing returns boolean
if(not on4())then
return false
endif
return true
endfunction
function op4 takes nothing returns boolean
if(not(udg_K7[2]>1))then
return false
endif
if(not(udg_J7[4]==1))then
return false
endif
return true
endfunction
function oq4 takes nothing returns boolean
if(not op4())then
return false
endif
return true
endfunction
function or4 takes nothing returns boolean
if(not(udg_J7[4]==2))then
return false
endif
return true
endfunction
function os4 takes nothing returns boolean
if(not(udg_in==false))then
return false
endif
if(not(udg_Rm[1]==true))then
return false
endif
if(not(udg_Rm[2]==true))then
return false
endif
if(not(udg_Rm[3]==true))then
return false
endif
if(not(udg_Rm[4]==true))then
return false
endif
if(not(udg_Rm[5]==true))then
return false
endif
if(not(udg_Rm[6]==true))then
return false
endif
return true
endfunction
function ot4 takes nothing returns boolean
if(not os4())then
return false
endif
return true
endfunction
function ou4 takes nothing returns boolean
if(not(udg_J7[2]==12))then
return false
endif
return true
endfunction
function ov4 takes nothing returns boolean
if(not(udg_J7[2]==11))then
return false
endif
return true
endfunction
function ow4 takes nothing returns boolean
if(not(udg_J7[2]==10))then
return false
endif
return true
endfunction
function ox4 takes nothing returns boolean
if(not(udg_J7[2]==9))then
return false
endif
return true
endfunction
function oy4 takes nothing returns boolean
if(not(udg_J7[2]==8))then
return false
endif
return true
endfunction
function oz4 takes nothing returns boolean
if(not(udg_J7[2]==7))then
return false
endif
return true
endfunction
function oA4 takes nothing returns boolean
if(not(udg_J7[2]==6))then
return false
endif
return true
endfunction
function oa4 takes nothing returns boolean
if(not(udg_J7[2]==5))then
return false
endif
return true
endfunction
function oB4 takes nothing returns boolean
if(not(udg_J7[2]==4))then
return false
endif
return true
endfunction
function ob4 takes nothing returns boolean
if(not(udg_J7[2]==3))then
return false
endif
return true
endfunction
function oC4 takes nothing returns boolean
if(not(udg_J7[2]==2))then
return false
endif
return true
endfunction
function oc4 takes nothing returns boolean
if(not(udg_J7[2]==1))then
return false
endif
return true
endfunction
function oD4 takes nothing returns boolean
if(not(udg_K7[2]<9))then
return false
endif
return true
endfunction
function oE4 takes nothing returns nothing
set udg_J7[4]=GetRandomInt(1,2)
call AddHeroXPSwapped(1500,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
if(oq4())then
set udg_L7=1
loop
exitwhen udg_L7>20
call CreateItemLoc(1227895116,GetUnitLoc(udg_l7[2]))
set udg_L7=udg_L7+1
endloop
else
if(oo4())then
set udg_L7=1
loop
exitwhen udg_L7>10
call CreateItemLoc(1227895116,GetUnitLoc(udg_l7[2]))
set udg_L7=udg_L7+1
endloop
else
call DoNothing()
endif
endif
if(or4())then
call CreateItemLoc(1886545267,GetUnitLoc(udg_l7[2]))
else
call DoNothing()
endif
set udg_J7[4]=0
set udg_l7[2]=null
call TriggerSleepAction(GetRandomReal(60.00,90.00))
if(oD4())then
set udg_J7[2]=GetRandomInt(1,12)
if(oc4())then
call CreateNUnitsAtLocFacingLocBJ(1,1315070563,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(oC4())then
call CreateNUnitsAtLocFacingLocBJ(1,1331913266,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(ob4())then
call CreateNUnitsAtLocFacingLocBJ(1,1315988077,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(oB4())then
call CreateNUnitsAtLocFacingLocBJ(1,1332179560,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(oa4())then
call CreateNUnitsAtLocFacingLocBJ(1,1332766568,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(oA4())then
call CreateNUnitsAtLocFacingLocBJ(1,1332898670,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(oz4())then
call CreateNUnitsAtLocFacingLocBJ(1,1333028978,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(oy4())then
call CreateNUnitsAtLocFacingLocBJ(1,1333028978,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(ox4())then
call CreateNUnitsAtLocFacingLocBJ(1,1315007587,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(ow4())then
call CreateNUnitsAtLocFacingLocBJ(1,1316252014,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(ov4())then
call CreateNUnitsAtLocFacingLocBJ(1,1433231724,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
if(ou4())then
call CreateNUnitsAtLocFacingLocBJ(1,1433105516,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Uo),GetRectCenter(udg_wn))
set udg_l7[2]=GetLastCreatedUnit()
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set udg_J7[2]=0
set udg_K7[2]=(udg_K7[2]+1)
call SetHeroLevelBJ(udg_l7[2],(10*udg_K7[2]),false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_l7[2],bj_MODIFYMETHOD_SET,(200*udg_K7[2]))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_l7[2],bj_MODIFYMETHOD_SET,(200*udg_K7[2]))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_l7[2],bj_MODIFYMETHOD_SET,(200*udg_K7[2]))
call UnitAddAbilityBJ(1094935926,udg_l7[2])
call UnitAddAbilityBJ(1094935397,udg_l7[2])
call UnitRemoveAbilityBJ(1095331446,udg_l7[2])
call SetUnitScalePercent(udg_l7[2],130.00,130.00,130.00)
call UnitAddTypeBJ(UNIT_TYPE_ANCIENT,udg_l7[2])
call AddSpecialEffectTargetUnitBJ("origin",udg_l7[2],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call TriggerExecute(udg_iu)
else
set udg_Rm[5]=true
if(ot4())then
call TriggerExecute(udg_pu)
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endif
endfunction
function o34 takes nothing returns nothing
set udg_fu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_fu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_fu,Condition(function om4))
call TriggerAddAction(udg_fu,function oE4)
endfunction
function oF4 takes nothing returns boolean
if(not(GetTriggerUnit()==udg_l7[1]))then
return false
endif
return true
endfunction
function oG4 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(udg_l7[1]),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPositionLocFacingBJ(udg_l7[1],GetRectCenter(udg_To),270.00)
call AddSpecialEffectTargetUnitBJ("chest",udg_l7[1],"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("chest",udg_l7[1],"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function o64 takes nothing returns nothing
set udg_gu=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_gu,udg_Ro)
call TriggerAddCondition(udg_gu,Condition(function oF4))
call TriggerAddAction(udg_gu,function oG4)
endfunction
function oH4 takes nothing returns boolean
if(not(GetTriggerUnit()==udg_l7[2]))then
return false
endif
return true
endfunction
function oI4 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(udg_l7[2]),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPositionLocFacingBJ(udg_l7[2],GetRectCenter(udg_Uo),270.00)
call AddSpecialEffectTargetUnitBJ("chest",udg_l7[2],"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("chest",udg_l7[2],"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function ol4 takes nothing returns nothing
set udg_hu=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_hu,udg_So)
call TriggerAddCondition(udg_hu,Condition(function oH4))
call TriggerAddAction(udg_hu,function oI4)
endfunction
function o14 takes nothing returns nothing
set udg_N7=1
loop
exitwhen udg_N7>3
call SelectHeroSkill(GetLastCreatedUnit(),1095262842)
call SelectHeroSkill(GetLastCreatedUnit(),1095262562)
call SelectHeroSkill(GetLastCreatedUnit(),1095263859)
call SelectHeroSkill(GetLastCreatedUnit(),1095262830)
call SelectHeroSkill(GetLastCreatedUnit(),1095263346)
call SelectHeroSkill(GetLastCreatedUnit(),1095267426)
call SelectHeroSkill(GetLastCreatedUnit(),1095267427)
call SelectHeroSkill(GetLastCreatedUnit(),1095262824)
call SelectHeroSkill(GetLastCreatedUnit(),1095262582)
call SelectHeroSkill(GetLastCreatedUnit(),1095264354)
call SelectHeroSkill(GetLastCreatedUnit(),1095262564)
call SelectHeroSkill(GetLastCreatedUnit(),1095266917)
call SelectHeroSkill(GetLastCreatedUnit(),1095724393)
call SelectHeroSkill(GetLastCreatedUnit(),1095721842)
call SelectHeroSkill(GetLastCreatedUnit(),1095726967)
call SelectHeroSkill(GetLastCreatedUnit(),1095725926)
call SelectHeroSkill(GetLastCreatedUnit(),1095723127)
call SelectHeroSkill(GetLastCreatedUnit(),1095723128)
call SelectHeroSkill(GetLastCreatedUnit(),1095726692)
call SelectHeroSkill(GetLastCreatedUnit(),1095726963)
call SelectHeroSkill(GetLastCreatedUnit(),1095721317)
call SelectHeroSkill(GetLastCreatedUnit(),1095725669)
call SelectHeroSkill(GetLastCreatedUnit(),1096119148)
call SelectHeroSkill(GetLastCreatedUnit(),1096114550)
call SelectHeroSkill(GetLastCreatedUnit(),1096115822)
call SelectHeroSkill(GetLastCreatedUnit(),1096115809)
call SelectHeroSkill(GetLastCreatedUnit(),1096115300)
call SelectHeroSkill(GetLastCreatedUnit(),1095066994)
call SelectHeroSkill(GetLastCreatedUnit(),1095065960)
call SelectHeroSkill(GetLastCreatedUnit(),1095070833)
call SelectHeroSkill(GetLastCreatedUnit(),1095263841)
call SelectHeroSkill(GetLastCreatedUnit(),1095065970)
call SelectHeroSkill(GetLastCreatedUnit(),1095660393)
call SelectHeroSkill(GetLastCreatedUnit(),1095656033)
call SelectHeroSkill(GetLastCreatedUnit(),1095656562)
call SelectHeroSkill(GetLastCreatedUnit(),1095657057)
call SelectHeroSkill(GetLastCreatedUnit(),1095658867)
call SelectHeroSkill(GetLastCreatedUnit(),1095656546)
call SelectHeroSkill(GetLastCreatedUnit(),1095655778)
call SelectHeroSkill(GetLastCreatedUnit(),1095656306)
call SelectHeroSkill(GetLastCreatedUnit(),1095656807)
call SelectHeroSkill(GetLastCreatedUnit(),1095656307)
call SelectHeroSkill(GetLastCreatedUnit(),1095657591)
call SelectHeroSkill(GetLastCreatedUnit(),1095657592)
call SelectHeroSkill(GetLastCreatedUnit(),1098019703)
call SelectHeroSkill(GetLastCreatedUnit(),1095724147)
call SelectHeroSkill(GetLastCreatedUnit(),1096904043)
call SelectHeroSkill(GetLastCreatedUnit(),1095263073)
set udg_N7=udg_N7+1
endloop
endfunction
function oJ4 takes nothing returns nothing
set udg_iu=CreateTrigger()
call TriggerAddAction(udg_iu,function o14)
endfunction
function oK4 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function oL4 takes nothing returns boolean
if(not(udg_U==8))then
return false
endif
return true
endfunction
function oM4 takes nothing returns boolean
if(not(udg_U==7))then
return false
endif
return true
endfunction
function oN4 takes nothing returns boolean
if(not(udg_U==6))then
return false
endif
return true
endfunction
function oO4 takes nothing returns boolean
if(not(udg_U==5))then
return false
endif
return true
endfunction
function o04 takes nothing returns boolean
if(not(udg_U==4))then
return false
endif
return true
endfunction
function oP4 takes nothing returns boolean
if(not(udg_U==3))then
return false
endif
return true
endfunction
function oQ4 takes nothing returns boolean
if(not(udg_U==2))then
return false
endif
return true
endfunction
function oR4 takes nothing returns boolean
if(not(udg_U==1))then
return false
endif
return true
endfunction
function oS4 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_U=GetRandomInt(1,8)
if(oR4())then
call CreateNUnitsAtLocFacingLocBJ(1,1214345830,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_V=GetLastCreatedUnit()
else
if(oQ4())then
call CreateNUnitsAtLocFacingLocBJ(1,1215657064,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_V=GetLastCreatedUnit()
else
if(oP4())then
call CreateNUnitsAtLocFacingLocBJ(1,1331913266,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_V=GetLastCreatedUnit()
else
if(o04())then
call CreateNUnitsAtLocFacingLocBJ(1,1332897144,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_V=GetLastCreatedUnit()
else
if(oO4())then
call CreateNUnitsAtLocFacingLocBJ(1,1164277353,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_V=GetLastCreatedUnit()
else
if(oN4())then
call CreateNUnitsAtLocFacingLocBJ(1,1165455972,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_V=GetLastCreatedUnit()
else
if(oM4())then
call CreateNUnitsAtLocFacingLocBJ(1,1432707442,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_V=GetLastCreatedUnit()
else
if(oL4())then
call CreateNUnitsAtLocFacingLocBJ(1,1433692515,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_V=GetLastCreatedUnit()
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
endif
call SetHeroLevelBJ(udg_V,99,false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_V,bj_MODIFYMETHOD_SET,3333)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_V,bj_MODIFYMETHOD_SET,3333)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_V,bj_MODIFYMETHOD_SET,3333)
call UnitAddAbilityBJ(1097886070,udg_V)
call UnitAddAbilityBJ(1094935926,udg_V)
call UnitAddAbilityBJ(1094935397,udg_V)
call UnitAddAbilityBJ(1093677911,udg_V)
call UnitRemoveAbilityBJ(1095331446,udg_V)
call SetUnitScalePercent(udg_V,130.00,130.00,130.00)
call UnitAddTypeBJ(UNIT_TYPE_ANCIENT,udg_V)
call EnableTrigger(udg_nu)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function o54 takes nothing returns nothing
set udg_ju=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_ju,udg_po)
call TriggerAddCondition(udg_ju,Condition(function oK4))
call TriggerAddAction(udg_ju,function oS4)
endfunction
function oT4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1211117641)
endfunction
function oU4 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function oV4 takes nothing returns boolean
return GetBooleanAnd(oT4(),oU4())
endfunction
function oW4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1211117642)
endfunction
function oX4 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function oY4 takes nothing returns boolean
return GetBooleanAnd(oW4(),oX4())
endfunction
function o24 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function oV4)))==true))then
return false
endif
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function oY4)))==true))then
return false
endif
return true
endfunction
function oZ4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1313026099)
endfunction
function o_4 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function p44 takes nothing returns boolean
return GetBooleanAnd(oZ4(),o_4())
endfunction
function p74 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function p44)))==true))then
return false
endif
return true
endfunction
function p84 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1311780915)
endfunction
function p94 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function pd4 takes nothing returns boolean
return GetBooleanAnd(p84(),p94())
endfunction
function pe4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function pd4)))==true))then
return false
endif
return true
endfunction
function pf4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1311780920)
endfunction
function pg4 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function ph4 takes nothing returns boolean
return GetBooleanAnd(pf4(),pg4())
endfunction
function pi4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function ph4)))==true))then
return false
endif
return true
endfunction
function pj4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1429221428)
endfunction
function pk4 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function pm4 takes nothing returns boolean
return GetBooleanAnd(pj4(),pk4())
endfunction
function pn4 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function pm4)))==true))then
return false
endif
return true
endfunction
function po4 takes nothing returns boolean
if(not o24())then
return false
endif
return true
endfunction
function pp4 takes nothing returns boolean
if(not(udg_l4!=null))then
return false
endif
return true
endfunction
function pq4 takes nothing returns nothing
call TriggerSleepAction(20.00)
call DisableTrigger(GetTriggeringTrigger())
if(po4())then
call CreateNUnitsAtLocFacingLocBJ(1,1211117641,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_l4=GetLastCreatedUnit()
else
if(pn4())then
call CreateNUnitsAtLocFacingLocBJ(1,1429221428,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_l4=GetLastCreatedUnit()
else
if(pi4())then
call CreateNUnitsAtLocFacingLocBJ(1,1311780920,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_l4=GetLastCreatedUnit()
else
if(pe4())then
call CreateNUnitsAtLocFacingLocBJ(1,1311780915,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_l4=GetLastCreatedUnit()
else
if(p74())then
call CreateNUnitsAtLocFacingLocBJ(1,1313026099,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Wn),GetRectCenter(udg_Yn))
set udg_l4=GetLastCreatedUnit()
else
call DoNothing()
endif
endif
endif
endif
endif
if(pp4())then
call SetHeroLevelBJ(udg_l4,99,false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_l4,bj_MODIFYMETHOD_SET,5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_l4,bj_MODIFYMETHOD_SET,5000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_l4,bj_MODIFYMETHOD_SET,5000)
call UnitAddItemByIdSwapped(1227895373,udg_l4)
call UnitAddItemByIdSwapped(1227895126,udg_l4)
set udg_J4=1
loop
exitwhen udg_J4>6
call SelectHeroSkill(udg_l4,1093678420)
call SelectHeroSkill(udg_l4,1093678421)
call SelectHeroSkill(udg_l4,1093678422)
call SelectHeroSkill(udg_l4,1093678424)
call SelectHeroSkill(udg_l4,1093678640)
call SelectHeroSkill(udg_l4,1093677899)
call SelectHeroSkill(udg_l4,1093678409)
call SelectHeroSkill(udg_l4,1093677892)
call SelectHeroSkill(udg_l4,1093677897)
call SelectHeroSkill(udg_l4,1093678160)
call SelectHeroSkill(udg_l4,1093679153)
call SelectHeroSkill(udg_l4,1093677110)
call SelectHeroSkill(udg_l4,1093677642)
call SelectHeroSkill(udg_l4,1093677107)
call SelectHeroSkill(udg_l4,1093677392)
call SelectHeroSkill(udg_l4,1093677140)
call SelectHeroSkill(udg_l4,1093678384)
call SelectHeroSkill(udg_l4,1093677143)
call SelectHeroSkill(udg_l4,1093677144)
call SelectHeroSkill(udg_l4,1093677146)
call SelectHeroSkill(udg_l4,1093679169)
call SelectHeroSkill(udg_l4,1093677368)
call SelectHeroSkill(udg_l4,1093677912)
call SelectHeroSkill(udg_l4,1093677900)
call SelectHeroSkill(udg_l4,1093678169)
set udg_J4=udg_J4+1
endloop
call AddSpecialEffectTargetUnitBJ("origin",udg_l4,"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
call EnableTrigger(udg_mu)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function pr4 takes nothing returns nothing
set udg_ku=CreateTrigger()
call TriggerAddAction(udg_ku,function pq4)
endfunction
function ps4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_l4))then
return false
endif
return true
endfunction
function pt4 takes nothing returns boolean
if(not(udg_in==false))then
return false
endif
if(not(udg_Rm[1]==true))then
return false
endif
if(not(udg_Rm[2]==true))then
return false
endif
if(not(udg_Rm[3]==true))then
return false
endif
if(not(udg_Rm[4]==true))then
return false
endif
if(not(udg_Rm[5]==true))then
return false
endif
if(not(udg_Rm[6]==true))then
return false
endif
return true
endfunction
function pu4 takes nothing returns boolean
if(not pt4())then
return false
endif
return true
endfunction
function pv4 takes nothing returns nothing
set udg_Rm[6]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetHeroProperName(udg_l4)+" (level 99) has been slain!!!"))
set udg_l4=null
if(pu4())then
call TriggerExecute(udg_pu)
else
call DoNothing()
endif
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function pw4 takes nothing returns nothing
set udg_mu=CreateTrigger()
call DisableTrigger(udg_mu)
call TriggerRegisterAnyUnitEventBJ(udg_mu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_mu,Condition(function ps4))
call TriggerAddAction(udg_mu,function pv4)
endfunction
function px4 takes nothing returns boolean
if((GetAttackedUnitBJ()==udg_V))then
return true
endif
if((GetAttackedUnitBJ()==udg_l4))then
return true
endif
return false
endfunction
function py4 takes nothing returns boolean
if(not(IsUnitIllusionBJ(GetAttacker())==true))then
return false
endif
if(not px4())then
return false
endif
return true
endfunction
function pz4 takes nothing returns boolean
if(not py4())then
return false
endif
return true
endfunction
function pA4 takes nothing returns nothing
call SetUnitLifeBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttacker())-(0.10*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker()))))
call AddSpecialEffectTargetUnitBJ("origin",GetAttacker(),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function pa4 takes nothing returns nothing
set udg_nu=CreateTrigger()
call DisableTrigger(udg_nu)
call TriggerRegisterAnyUnitEventBJ(udg_nu,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_nu,Condition(function pz4))
call TriggerAddAction(udg_nu,function pA4)
endfunction
function pB4 takes nothing returns boolean
if((GetTriggerUnit()==udg_V))then
return true
endif
if((GetTriggerUnit()==udg_l4))then
return true
endif
return false
endfunction
function pb4 takes nothing returns boolean
if(not pB4())then
return false
endif
return true
endfunction
function pC4 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPositionLocFacingBJ(GetTriggerUnit(),GetRectCenter(udg_po),270.00)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function pc4 takes nothing returns nothing
set udg_ou=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_ou,udg_gp)
call TriggerAddCondition(udg_ou,Condition(function pb4))
call TriggerAddAction(udg_ou,function pC4)
endfunction
function pD4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_mG)==true)
endfunction
function pE4 takes nothing returns boolean
if(not(udg_in==false))then
return false
endif
return true
endfunction
function p34 takes nothing returns nothing
call TriggerSleepAction(90.00)
if(pE4())then
set udg_in=true
if(pD4())then
call KillUnit(udg_mG)
else
call DoNothing()
endif
call CreateNUnitsAtLoc(1,1313026099,Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRectCenter(udg_Xo),bj_UNIT_FACING)
set udg_Sm=GetLastCreatedUnit()
call SetHeroLevelBJ(udg_Sm,99,false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Sm,bj_MODIFYMETHOD_SET,8585)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Sm,bj_MODIFYMETHOD_SET,9267)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_Sm,bj_MODIFYMETHOD_SET,6755)
call UnitAddItemByIdSwapped(1227895888,udg_Sm)
call UnitAddItemByIdSwapped(1227895887,udg_Sm)
call AddSpecialEffectTargetUnitBJ("origin",udg_Sm,"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call DisplayTimedTextToForce(GetPlayersAll(),40.00,(GetHeroProperName(udg_Sm)+" has entered the Arena!!"))
call TriggerRegisterUnitEvent(udg_su,udg_Sm,EVENT_UNIT_ATTACKED)
call EnableTrigger(udg_qu)
call EnableTrigger(udg_ru)
call EnableTrigger(udg_su)
else
call DoNothing()
endif
endfunction
function pF4 takes nothing returns nothing
set udg_pu=CreateTrigger()
call TriggerAddAction(udg_pu,function p34)
endfunction
function pG4 takes nothing returns boolean
if(not(GetTriggerUnit()==udg_Sm))then
return false
endif
return true
endfunction
function p64 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(udg_Sm),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPositionLocFacingBJ(udg_Sm,udg_j9,270.00)
call AddSpecialEffectTargetUnitBJ("chest",udg_Sm,"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("chest",udg_Sm,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function pH4 takes nothing returns nothing
set udg_qu=CreateTrigger()
call DisableTrigger(udg_qu)
call TriggerRegisterLeaveRectSimple(udg_qu,udg_sn)
call TriggerAddCondition(udg_qu,Condition(function pG4))
call TriggerAddAction(udg_qu,function p64)
endfunction
function pI4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Sm))then
return false
endif
return true
endfunction
function pl4 takes nothing returns nothing
call UnitRemoveItemFromSlotSwapped(1,udg_Sm)
call UnitRemoveItemFromSlotSwapped(2,udg_Sm)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_Sm),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call DisplayTimedTextToForce(GetPlayersAll(),45.00,(GetHeroProperName(udg_Sm)+" has been slain!!!"))
set udg_Sm=null
call TriggerSleepAction(20.00)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function p14 takes nothing returns nothing
set udg_ru=CreateTrigger()
call DisableTrigger(udg_ru)
call TriggerRegisterAnyUnitEventBJ(udg_ru,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_ru,Condition(function pI4))
call TriggerAddAction(udg_ru,function pl4)
endfunction
function pJ4 takes nothing returns boolean
if(not(GetAttackedUnitBJ()==udg_Sm))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function pK4 takes nothing returns boolean
if(not pJ4())then
return false
endif
return true
endfunction
function pL4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function pM4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function pN4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Sm))==true)
endfunction
function pO4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function p04 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function pP4 takes nothing returns boolean
return GetBooleanAnd(pO4(),p04())
endfunction
function pQ4 takes nothing returns boolean
return GetBooleanAnd(pN4(),pP4())
endfunction
function pR4 takes nothing returns boolean
return GetBooleanAnd(pM4(),pQ4())
endfunction
function pS4 takes nothing returns boolean
return GetBooleanAnd(pL4(),pR4())
endfunction
function Trig_Final_Boss_Skills_Func005Func004Func002Func005Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[20])<=9999.00)
endfunction
function p54 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_y9[20],1227895886)==false))then
return false
endif
return true
endfunction
function pT4 takes nothing returns nothing
set udg_y9[20]=GetEnumUnit()
if(p54())then
call UnitDamageTargetBJ(udg_Sm,udg_y9[20],99999.00,ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ("99999!",udg_y9[20],0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.60)
else
call CreateTextTagUnitBJ("|c0000FFFFIMMUNE|r",udg_y9[20],0,11.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.60)
endif
set udg_y9[20]=null
endfunction
function pU4 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function pV4 takes nothing returns boolean
if(not(udg_Tm==1))then
return false
endif
return true
endfunction
function pW4 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=50))then
return false
endif
return true
endfunction
function pX4 takes nothing returns boolean
if(not(udg_Tm==2))then
return false
endif
return true
endfunction
function pY4 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[222],1110454324)==true)
endfunction
function Trig_Final_Boss_Skills_Func007Func021Func005Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[20])<=9999.00)
endfunction
function p24 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_a[222],1227895886)==false))then
return false
endif
return true
endfunction
function pZ4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function p_4 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_B[222])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_B[222])==true))then
return true
endif
return false
endfunction
function q44 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[222])==true))then
return false
endif
if(not p_4())then
return false
endif
return true
endfunction
function q74 takes nothing returns boolean
if(not(udg_Tm==3))then
return false
endif
return true
endfunction
function q84 takes nothing returns nothing
set udg_A[222]=udg_Sm
set udg_a[222]=GetAttacker()
set udg_Tm=GetRandomInt(1,3)
if(pV4())then
set udg_Sg[7]=GetUnitLoc(udg_Sm)
set udg_td=e6(800.00,udg_Sg[7],Condition(function pS4))
call ForGroupBJ(udg_td,function pT4)
call DestroyGroup(udg_td)
set udg_td=null
call PlaySoundAtPointBJ(udg_Uq,100,udg_Sg[7],0)
call RemoveLocation(udg_Sg[7])
set udg_Sg[7]=null
call CreateTextTagUnitBJ("Kyoka Suigetsu",udg_Sm,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function pU4)))
call AddSpecialEffectTargetUnitBJ("origin",udg_Sm,"Abilities\\Spells\\NightElf\\Taunt\\TauntCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(pX4())then
if(pW4())then
call UnitUseItemTarget(udg_Sm,UnitItemInSlotBJ(udg_Sm,1),GetAttacker())
else
call UnitUseItemTarget(udg_Sm,UnitItemInSlotBJ(udg_Sm,1),udg_Sm)
endif
else
call DoNothing()
endif
if(q74())then
set udg_B[222]=PG(GetUnitLoc(udg_a[222]),175.00,AngleBetweenPoints(GetUnitLoc(udg_A[222]),GetUnitLoc(udg_a[222])))
set udg_sd[2]=GetUnitLoc(udg_A[222])
call CreateNUnitsAtLocFacingLocBJ(1,1747988552,GetOwningPlayer(udg_A[222]),udg_sd[2],udg_B[222])
set udg_A[223]=GetLastCreatedUnit()
call AddSpecialEffectTargetUnitBJ("origin",udg_A[223],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
set udg_ud[1]=GetLastCreatedEffectBJ()
call SetUnitAnimation(udg_A[222],"attack")
call SetUnitAnimation(udg_A[223],"attack")
call RemoveLocation(udg_sd[2])
set udg_sd[2]=null
if(pY4())then
call AddSpecialEffectTargetUnitBJ("origin",udg_A[223],"Abilities\\Spells\\Undead\\Unsummon\\UnsummonTarget.mdl")
else
call DoNothing()
endif
call TriggerSleepAction(0.01)
call SetUnitPositionLocFacingBJ(udg_A[223],udg_B[222],AngleBetweenPoints(GetUnitLoc(udg_A[222]),GetUnitLoc(udg_a[222])))
set udg_sd[2]=GetUnitLoc(udg_a[222])
call AddSpecialEffectLocBJ(udg_sd[2],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_sd[2])
set udg_sd[2]=null
if(p24())then
call UnitDamageTargetBJ(udg_Sm,udg_a[222],99999.00,ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ("99999!",udg_a[222],0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.60)
else
call CreateTextTagUnitBJ("|c0000FFFFBLOCK|r",udg_a[222],0,11.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.60)
endif
call TriggerSleepAction(0.50)
set udg_sd[2]=GetUnitLoc(udg_A[222])
call AddSpecialEffectLocBJ(udg_sd[2],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_sd[2])
set udg_sd[2]=null
set udg_sd[2]=GetUnitLoc(udg_A[223])
call AddSpecialEffectLocBJ(udg_sd[2],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_sd[2])
set udg_sd[2]=null
call DestroyEffectBJ(udg_ud[1])
call RemoveUnit(udg_A[223])
if(q44())then
call UG(300.00,udg_B[222],function pZ4)
call SetUnitPositionLocFacingBJ(udg_A[222],udg_B[222],AngleBetweenPoints(GetUnitLoc(udg_A[222]),GetUnitLoc(udg_a[222])))
else
set udg_sd[2]=PG(GetUnitLoc(udg_a[222]),-80.00,AngleBetweenPoints(GetUnitLoc(udg_A[222]),GetUnitLoc(udg_a[222])))
call SetUnitPositionLocFacingBJ(udg_A[222],udg_sd[2],AngleBetweenPoints(GetUnitLoc(udg_A[222]),GetUnitLoc(udg_a[222])))
call RemoveLocation(udg_sd[2])
set udg_sd[2]=null
set udg_sd[2]=GetUnitLoc(udg_A[222])
call AddSpecialEffectLocBJ(udg_sd[2],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_sd[2])
set udg_sd[2]=null
endif
call TriggerSleepAction(0.50)
call RemoveLocation(udg_B[222])
set udg_B[222]=null
set udg_A[223]=null
else
call DoNothing()
endif
set udg_Tm=0
set udg_A[222]=null
set udg_a[222]=null
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(7.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function q94 takes nothing returns nothing
set udg_su=CreateTrigger()
call DisableTrigger(udg_su)
call TriggerAddCondition(udg_su,Condition(function pK4))
call TriggerAddAction(udg_su,function q84)
endfunction
function qd4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[1]))then
return false
endif
return true
endfunction
function qe4 takes nothing returns boolean
if(not qd4())then
return false
endif
return true
endfunction
function qf4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[1])>=1)
endfunction
function qg4 takes nothing returns boolean
if((GetHeroLevel(udg_m[1])==3))then
return true
endif
if((GetHeroLevel(udg_m[1])==4))then
return true
endif
if((GetHeroLevel(udg_m[1])==6))then
return true
endif
if((GetHeroLevel(udg_m[1])==10))then
return true
endif
if((GetHeroLevel(udg_m[1])==12))then
return true
endif
if((GetHeroLevel(udg_m[1])==13))then
return true
endif
if((GetHeroLevel(udg_m[1])==15))then
return true
endif
if((GetHeroLevel(udg_m[1])==17))then
return true
endif
if((GetHeroLevel(udg_m[1])==19))then
return true
endif
if((GetHeroLevel(udg_m[1])==20))then
return true
endif
if((GetHeroLevel(udg_m[1])==21))then
return true
endif
if((GetHeroLevel(udg_m[1])==22))then
return true
endif
if((GetHeroLevel(udg_m[1])==25))then
return true
endif
if((GetHeroLevel(udg_m[1])==26))then
return true
endif
if((GetHeroLevel(udg_m[1])==27))then
return true
endif
if((GetHeroLevel(udg_m[1])==30))then
return true
endif
if((GetHeroLevel(udg_m[1])==32))then
return true
endif
if((GetHeroLevel(udg_m[1])==35))then
return true
endif
if((GetHeroLevel(udg_m[1])==40))then
return true
endif
return false
endfunction
function qh4 takes nothing returns boolean
if(not qg4())then
return false
endif
return true
endfunction
function qi4 takes nothing returns boolean
if((GetHeroLevel(udg_m[1])==7))then
return true
endif
if((GetHeroLevel(udg_m[1])==11))then
return true
endif
if((GetHeroLevel(udg_m[1])==16))then
return true
endif
return false
endfunction
function qj4 takes nothing returns boolean
if(not qi4())then
return false
endif
return true
endfunction
function qk4 takes nothing returns nothing
if(qf4())then
call ModifyHeroSkillPoints(udg_m[1],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(qh4())then
call ModifyHeroSkillPoints(udg_m[1],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(qj4())then
call ModifyHeroSkillPoints(udg_m[1],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function qm4 takes nothing returns nothing
set udg_tu=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_tu,Player(0),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_tu,Condition(function qe4))
call TriggerAddAction(udg_tu,function qk4)
endfunction
function qn4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[2]))then
return false
endif
return true
endfunction
function qo4 takes nothing returns boolean
if(not qn4())then
return false
endif
return true
endfunction
function qp4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[2])>=1)
endfunction
function qq4 takes nothing returns boolean
if((GetHeroLevel(udg_m[2])==3))then
return true
endif
if((GetHeroLevel(udg_m[2])==4))then
return true
endif
if((GetHeroLevel(udg_m[2])==6))then
return true
endif
if((GetHeroLevel(udg_m[2])==10))then
return true
endif
if((GetHeroLevel(udg_m[2])==12))then
return true
endif
if((GetHeroLevel(udg_m[2])==13))then
return true
endif
if((GetHeroLevel(udg_m[2])==15))then
return true
endif
if((GetHeroLevel(udg_m[2])==17))then
return true
endif
if((GetHeroLevel(udg_m[2])==19))then
return true
endif
if((GetHeroLevel(udg_m[2])==20))then
return true
endif
if((GetHeroLevel(udg_m[2])==21))then
return true
endif
if((GetHeroLevel(udg_m[2])==22))then
return true
endif
if((GetHeroLevel(udg_m[2])==25))then
return true
endif
if((GetHeroLevel(udg_m[2])==26))then
return true
endif
if((GetHeroLevel(udg_m[2])==27))then
return true
endif
if((GetHeroLevel(udg_m[2])==30))then
return true
endif
if((GetHeroLevel(udg_m[2])==32))then
return true
endif
if((GetHeroLevel(udg_m[2])==35))then
return true
endif
if((GetHeroLevel(udg_m[2])==40))then
return true
endif
return false
endfunction
function qr4 takes nothing returns boolean
if(not qq4())then
return false
endif
return true
endfunction
function qs4 takes nothing returns boolean
if((GetHeroLevel(udg_m[2])==7))then
return true
endif
if((GetHeroLevel(udg_m[2])==11))then
return true
endif
if((GetHeroLevel(udg_m[2])==16))then
return true
endif
return false
endfunction
function qt4 takes nothing returns boolean
if(not qs4())then
return false
endif
return true
endfunction
function qu4 takes nothing returns nothing
if(qp4())then
call ModifyHeroSkillPoints(udg_m[2],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(qr4())then
call ModifyHeroSkillPoints(udg_m[2],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(qt4())then
call ModifyHeroSkillPoints(udg_m[2],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function qv4 takes nothing returns nothing
set udg_uu=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_uu,Player(1),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_uu,Condition(function qo4))
call TriggerAddAction(udg_uu,function qu4)
endfunction
function qw4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[3]))then
return false
endif
return true
endfunction
function qx4 takes nothing returns boolean
if(not qw4())then
return false
endif
return true
endfunction
function qy4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[3])>=1)
endfunction
function qz4 takes nothing returns boolean
if((GetHeroLevel(udg_m[3])==3))then
return true
endif
if((GetHeroLevel(udg_m[3])==4))then
return true
endif
if((GetHeroLevel(udg_m[3])==6))then
return true
endif
if((GetHeroLevel(udg_m[3])==10))then
return true
endif
if((GetHeroLevel(udg_m[3])==12))then
return true
endif
if((GetHeroLevel(udg_m[3])==13))then
return true
endif
if((GetHeroLevel(udg_m[3])==15))then
return true
endif
if((GetHeroLevel(udg_m[3])==17))then
return true
endif
if((GetHeroLevel(udg_m[3])==19))then
return true
endif
if((GetHeroLevel(udg_m[3])==20))then
return true
endif
if((GetHeroLevel(udg_m[3])==21))then
return true
endif
if((GetHeroLevel(udg_m[3])==22))then
return true
endif
if((GetHeroLevel(udg_m[3])==25))then
return true
endif
if((GetHeroLevel(udg_m[3])==26))then
return true
endif
if((GetHeroLevel(udg_m[3])==27))then
return true
endif
if((GetHeroLevel(udg_m[3])==30))then
return true
endif
if((GetHeroLevel(udg_m[3])==32))then
return true
endif
if((GetHeroLevel(udg_m[3])==35))then
return true
endif
if((GetHeroLevel(udg_m[3])==40))then
return true
endif
return false
endfunction
function qA4 takes nothing returns boolean
if(not qz4())then
return false
endif
return true
endfunction
function qa4 takes nothing returns boolean
if((GetHeroLevel(udg_m[3])==7))then
return true
endif
if((GetHeroLevel(udg_m[3])==11))then
return true
endif
if((GetHeroLevel(udg_m[3])==16))then
return true
endif
return false
endfunction
function qB4 takes nothing returns boolean
if(not qa4())then
return false
endif
return true
endfunction
function qb4 takes nothing returns nothing
if(qy4())then
call ModifyHeroSkillPoints(udg_m[3],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(qA4())then
call ModifyHeroSkillPoints(udg_m[3],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(qB4())then
call ModifyHeroSkillPoints(udg_m[3],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function qC4 takes nothing returns nothing
set udg_vu=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_vu,Player(2),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_vu,Condition(function qx4))
call TriggerAddAction(udg_vu,function qb4)
endfunction
function qc4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[4]))then
return false
endif
return true
endfunction
function qD4 takes nothing returns boolean
if(not qc4())then
return false
endif
return true
endfunction
function qE4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[4])>=1)
endfunction
function q34 takes nothing returns boolean
if((GetHeroLevel(udg_m[4])==3))then
return true
endif
if((GetHeroLevel(udg_m[4])==4))then
return true
endif
if((GetHeroLevel(udg_m[4])==6))then
return true
endif
if((GetHeroLevel(udg_m[4])==10))then
return true
endif
if((GetHeroLevel(udg_m[4])==12))then
return true
endif
if((GetHeroLevel(udg_m[4])==13))then
return true
endif
if((GetHeroLevel(udg_m[4])==15))then
return true
endif
if((GetHeroLevel(udg_m[4])==17))then
return true
endif
if((GetHeroLevel(udg_m[4])==19))then
return true
endif
if((GetHeroLevel(udg_m[4])==20))then
return true
endif
if((GetHeroLevel(udg_m[4])==21))then
return true
endif
if((GetHeroLevel(udg_m[4])==22))then
return true
endif
if((GetHeroLevel(udg_m[4])==25))then
return true
endif
if((GetHeroLevel(udg_m[4])==26))then
return true
endif
if((GetHeroLevel(udg_m[4])==27))then
return true
endif
if((GetHeroLevel(udg_m[4])==30))then
return true
endif
if((GetHeroLevel(udg_m[4])==32))then
return true
endif
if((GetHeroLevel(udg_m[4])==35))then
return true
endif
if((GetHeroLevel(udg_m[4])==40))then
return true
endif
return false
endfunction
function qF4 takes nothing returns boolean
if(not q34())then
return false
endif
return true
endfunction
function qG4 takes nothing returns boolean
if((GetHeroLevel(udg_m[4])==7))then
return true
endif
if((GetHeroLevel(udg_m[4])==11))then
return true
endif
if((GetHeroLevel(udg_m[4])==16))then
return true
endif
return false
endfunction
function q64 takes nothing returns boolean
if(not qG4())then
return false
endif
return true
endfunction
function qH4 takes nothing returns nothing
if(qE4())then
call ModifyHeroSkillPoints(udg_m[4],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(qF4())then
call ModifyHeroSkillPoints(udg_m[4],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(q64())then
call ModifyHeroSkillPoints(udg_m[4],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function qI4 takes nothing returns nothing
set udg_wu=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_wu,Player(3),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_wu,Condition(function qD4))
call TriggerAddAction(udg_wu,function qH4)
endfunction
function ql4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[5]))then
return false
endif
return true
endfunction
function q14 takes nothing returns boolean
if(not ql4())then
return false
endif
return true
endfunction
function qJ4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[5])>=1)
endfunction
function qK4 takes nothing returns boolean
if((GetHeroLevel(udg_m[5])==3))then
return true
endif
if((GetHeroLevel(udg_m[5])==4))then
return true
endif
if((GetHeroLevel(udg_m[5])==6))then
return true
endif
if((GetHeroLevel(udg_m[5])==10))then
return true
endif
if((GetHeroLevel(udg_m[5])==12))then
return true
endif
if((GetHeroLevel(udg_m[5])==13))then
return true
endif
if((GetHeroLevel(udg_m[5])==15))then
return true
endif
if((GetHeroLevel(udg_m[5])==17))then
return true
endif
if((GetHeroLevel(udg_m[5])==19))then
return true
endif
if((GetHeroLevel(udg_m[5])==20))then
return true
endif
if((GetHeroLevel(udg_m[5])==21))then
return true
endif
if((GetHeroLevel(udg_m[5])==22))then
return true
endif
if((GetHeroLevel(udg_m[5])==25))then
return true
endif
if((GetHeroLevel(udg_m[5])==26))then
return true
endif
if((GetHeroLevel(udg_m[5])==27))then
return true
endif
if((GetHeroLevel(udg_m[5])==30))then
return true
endif
if((GetHeroLevel(udg_m[5])==32))then
return true
endif
if((GetHeroLevel(udg_m[5])==35))then
return true
endif
if((GetHeroLevel(udg_m[5])==40))then
return true
endif
return false
endfunction
function qL4 takes nothing returns boolean
if(not qK4())then
return false
endif
return true
endfunction
function qM4 takes nothing returns boolean
if((GetHeroLevel(udg_m[5])==7))then
return true
endif
if((GetHeroLevel(udg_m[5])==11))then
return true
endif
if((GetHeroLevel(udg_m[5])==16))then
return true
endif
return false
endfunction
function qN4 takes nothing returns boolean
if(not qM4())then
return false
endif
return true
endfunction
function qO4 takes nothing returns nothing
if(qJ4())then
call ModifyHeroSkillPoints(udg_m[5],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(qL4())then
call ModifyHeroSkillPoints(udg_m[5],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(qN4())then
call ModifyHeroSkillPoints(udg_m[5],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function q04 takes nothing returns nothing
set udg_xu=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_xu,Player(4),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_xu,Condition(function q14))
call TriggerAddAction(udg_xu,function qO4)
endfunction
function qP4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[6]))then
return false
endif
return true
endfunction
function qQ4 takes nothing returns boolean
if(not qP4())then
return false
endif
return true
endfunction
function qR4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[6])>=1)
endfunction
function qS4 takes nothing returns boolean
if((GetHeroLevel(udg_m[6])==3))then
return true
endif
if((GetHeroLevel(udg_m[6])==4))then
return true
endif
if((GetHeroLevel(udg_m[6])==6))then
return true
endif
if((GetHeroLevel(udg_m[6])==10))then
return true
endif
if((GetHeroLevel(udg_m[6])==12))then
return true
endif
if((GetHeroLevel(udg_m[6])==13))then
return true
endif
if((GetHeroLevel(udg_m[6])==15))then
return true
endif
if((GetHeroLevel(udg_m[6])==17))then
return true
endif
if((GetHeroLevel(udg_m[6])==19))then
return true
endif
if((GetHeroLevel(udg_m[6])==20))then
return true
endif
if((GetHeroLevel(udg_m[6])==21))then
return true
endif
if((GetHeroLevel(udg_m[6])==22))then
return true
endif
if((GetHeroLevel(udg_m[6])==25))then
return true
endif
if((GetHeroLevel(udg_m[6])==26))then
return true
endif
if((GetHeroLevel(udg_m[6])==27))then
return true
endif
if((GetHeroLevel(udg_m[6])==30))then
return true
endif
if((GetHeroLevel(udg_m[6])==32))then
return true
endif
if((GetHeroLevel(udg_m[6])==35))then
return true
endif
if((GetHeroLevel(udg_m[6])==40))then
return true
endif
return false
endfunction
function q54 takes nothing returns boolean
if(not qS4())then
return false
endif
return true
endfunction
function qT4 takes nothing returns boolean
if((GetHeroLevel(udg_m[6])==7))then
return true
endif
if((GetHeroLevel(udg_m[6])==11))then
return true
endif
if((GetHeroLevel(udg_m[6])==16))then
return true
endif
return false
endfunction
function qU4 takes nothing returns boolean
if(not qT4())then
return false
endif
return true
endfunction
function qV4 takes nothing returns nothing
if(qR4())then
call ModifyHeroSkillPoints(udg_m[6],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(q54())then
call ModifyHeroSkillPoints(udg_m[6],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(qU4())then
call ModifyHeroSkillPoints(udg_m[6],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function qW4 takes nothing returns nothing
set udg_yu=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_yu,Player(5),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_yu,Condition(function qQ4))
call TriggerAddAction(udg_yu,function qV4)
endfunction
function qX4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[7]))then
return false
endif
return true
endfunction
function qY4 takes nothing returns boolean
if(not qX4())then
return false
endif
return true
endfunction
function q24 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[7])>=1)
endfunction
function qZ4 takes nothing returns boolean
if((GetHeroLevel(udg_m[7])==3))then
return true
endif
if((GetHeroLevel(udg_m[7])==4))then
return true
endif
if((GetHeroLevel(udg_m[7])==6))then
return true
endif
if((GetHeroLevel(udg_m[7])==10))then
return true
endif
if((GetHeroLevel(udg_m[7])==12))then
return true
endif
if((GetHeroLevel(udg_m[7])==13))then
return true
endif
if((GetHeroLevel(udg_m[7])==15))then
return true
endif
if((GetHeroLevel(udg_m[7])==17))then
return true
endif
if((GetHeroLevel(udg_m[7])==19))then
return true
endif
if((GetHeroLevel(udg_m[7])==20))then
return true
endif
if((GetHeroLevel(udg_m[7])==21))then
return true
endif
if((GetHeroLevel(udg_m[7])==22))then
return true
endif
if((GetHeroLevel(udg_m[7])==25))then
return true
endif
if((GetHeroLevel(udg_m[7])==26))then
return true
endif
if((GetHeroLevel(udg_m[7])==27))then
return true
endif
if((GetHeroLevel(udg_m[7])==30))then
return true
endif
if((GetHeroLevel(udg_m[7])==32))then
return true
endif
if((GetHeroLevel(udg_m[7])==35))then
return true
endif
if((GetHeroLevel(udg_m[7])==40))then
return true
endif
return false
endfunction
function q_4 takes nothing returns boolean
if(not qZ4())then
return false
endif
return true
endfunction
function r44 takes nothing returns boolean
if((GetHeroLevel(udg_m[7])==7))then
return true
endif
if((GetHeroLevel(udg_m[7])==11))then
return true
endif
if((GetHeroLevel(udg_m[7])==16))then
return true
endif
return false
endfunction
function r74 takes nothing returns boolean
if(not r44())then
return false
endif
return true
endfunction
function r84 takes nothing returns nothing
if(q24())then
call ModifyHeroSkillPoints(udg_m[7],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(q_4())then
call ModifyHeroSkillPoints(udg_m[7],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(r74())then
call ModifyHeroSkillPoints(udg_m[7],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function r94 takes nothing returns nothing
set udg_zu=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_zu,Player(6),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_zu,Condition(function qY4))
call TriggerAddAction(udg_zu,function r84)
endfunction
function rd4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[8]))then
return false
endif
return true
endfunction
function re4 takes nothing returns boolean
if(not rd4())then
return false
endif
return true
endfunction
function rf4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[8])>=1)
endfunction
function rg4 takes nothing returns boolean
if((GetHeroLevel(udg_m[8])==3))then
return true
endif
if((GetHeroLevel(udg_m[8])==4))then
return true
endif
if((GetHeroLevel(udg_m[8])==6))then
return true
endif
if((GetHeroLevel(udg_m[8])==10))then
return true
endif
if((GetHeroLevel(udg_m[8])==12))then
return true
endif
if((GetHeroLevel(udg_m[8])==13))then
return true
endif
if((GetHeroLevel(udg_m[8])==15))then
return true
endif
if((GetHeroLevel(udg_m[8])==17))then
return true
endif
if((GetHeroLevel(udg_m[8])==19))then
return true
endif
if((GetHeroLevel(udg_m[8])==20))then
return true
endif
if((GetHeroLevel(udg_m[8])==21))then
return true
endif
if((GetHeroLevel(udg_m[8])==22))then
return true
endif
if((GetHeroLevel(udg_m[8])==25))then
return true
endif
if((GetHeroLevel(udg_m[8])==26))then
return true
endif
if((GetHeroLevel(udg_m[8])==27))then
return true
endif
if((GetHeroLevel(udg_m[8])==30))then
return true
endif
if((GetHeroLevel(udg_m[8])==32))then
return true
endif
if((GetHeroLevel(udg_m[8])==35))then
return true
endif
if((GetHeroLevel(udg_m[8])==40))then
return true
endif
return false
endfunction
function rh4 takes nothing returns boolean
if(not rg4())then
return false
endif
return true
endfunction
function ri4 takes nothing returns boolean
if((GetHeroLevel(udg_m[8])==7))then
return true
endif
if((GetHeroLevel(udg_m[8])==11))then
return true
endif
if((GetHeroLevel(udg_m[8])==16))then
return true
endif
return false
endfunction
function rj4 takes nothing returns boolean
if(not ri4())then
return false
endif
return true
endfunction
function rk4 takes nothing returns nothing
if(rf4())then
call ModifyHeroSkillPoints(udg_m[8],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(rh4())then
call ModifyHeroSkillPoints(udg_m[8],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(rj4())then
call ModifyHeroSkillPoints(udg_m[8],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function rm4 takes nothing returns nothing
set udg_Au=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Au,Player(7),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_Au,Condition(function re4))
call TriggerAddAction(udg_Au,function rk4)
endfunction
function rn4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[9]))then
return false
endif
return true
endfunction
function ro4 takes nothing returns boolean
if(not rn4())then
return false
endif
return true
endfunction
function rp4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[9])>=1)
endfunction
function rq4 takes nothing returns boolean
if((GetHeroLevel(udg_m[9])==3))then
return true
endif
if((GetHeroLevel(udg_m[9])==4))then
return true
endif
if((GetHeroLevel(udg_m[9])==6))then
return true
endif
if((GetHeroLevel(udg_m[9])==10))then
return true
endif
if((GetHeroLevel(udg_m[9])==12))then
return true
endif
if((GetHeroLevel(udg_m[9])==13))then
return true
endif
if((GetHeroLevel(udg_m[9])==15))then
return true
endif
if((GetHeroLevel(udg_m[9])==17))then
return true
endif
if((GetHeroLevel(udg_m[9])==19))then
return true
endif
if((GetHeroLevel(udg_m[9])==20))then
return true
endif
if((GetHeroLevel(udg_m[9])==21))then
return true
endif
if((GetHeroLevel(udg_m[9])==22))then
return true
endif
if((GetHeroLevel(udg_m[9])==25))then
return true
endif
if((GetHeroLevel(udg_m[9])==26))then
return true
endif
if((GetHeroLevel(udg_m[9])==27))then
return true
endif
if((GetHeroLevel(udg_m[9])==30))then
return true
endif
if((GetHeroLevel(udg_m[9])==32))then
return true
endif
if((GetHeroLevel(udg_m[9])==35))then
return true
endif
if((GetHeroLevel(udg_m[9])==40))then
return true
endif
return false
endfunction
function rr4 takes nothing returns boolean
if(not rq4())then
return false
endif
return true
endfunction
function rs4 takes nothing returns boolean
if((GetHeroLevel(udg_m[9])==7))then
return true
endif
if((GetHeroLevel(udg_m[9])==11))then
return true
endif
if((GetHeroLevel(udg_m[9])==16))then
return true
endif
return false
endfunction
function rt4 takes nothing returns boolean
if(not rs4())then
return false
endif
return true
endfunction
function ru4 takes nothing returns nothing
if(rp4())then
call ModifyHeroSkillPoints(udg_m[9],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(rr4())then
call ModifyHeroSkillPoints(udg_m[9],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(rt4())then
call ModifyHeroSkillPoints(udg_m[9],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function rv4 takes nothing returns nothing
set udg_au=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_au,Player(8),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_au,Condition(function ro4))
call TriggerAddAction(udg_au,function ru4)
endfunction
function rw4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[10]))then
return false
endif
return true
endfunction
function rx4 takes nothing returns boolean
if(not rw4())then
return false
endif
return true
endfunction
function ry4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[10])>=1)
endfunction
function rz4 takes nothing returns boolean
if((GetHeroLevel(udg_m[10])==3))then
return true
endif
if((GetHeroLevel(udg_m[10])==4))then
return true
endif
if((GetHeroLevel(udg_m[10])==6))then
return true
endif
if((GetHeroLevel(udg_m[10])==10))then
return true
endif
if((GetHeroLevel(udg_m[10])==12))then
return true
endif
if((GetHeroLevel(udg_m[10])==13))then
return true
endif
if((GetHeroLevel(udg_m[10])==15))then
return true
endif
if((GetHeroLevel(udg_m[10])==17))then
return true
endif
if((GetHeroLevel(udg_m[10])==19))then
return true
endif
if((GetHeroLevel(udg_m[10])==20))then
return true
endif
if((GetHeroLevel(udg_m[10])==21))then
return true
endif
if((GetHeroLevel(udg_m[10])==22))then
return true
endif
if((GetHeroLevel(udg_m[10])==25))then
return true
endif
if((GetHeroLevel(udg_m[10])==26))then
return true
endif
if((GetHeroLevel(udg_m[10])==27))then
return true
endif
if((GetHeroLevel(udg_m[10])==30))then
return true
endif
if((GetHeroLevel(udg_m[10])==32))then
return true
endif
if((GetHeroLevel(udg_m[10])==35))then
return true
endif
if((GetHeroLevel(udg_m[10])==40))then
return true
endif
return false
endfunction
function rA4 takes nothing returns boolean
if(not rz4())then
return false
endif
return true
endfunction
function ra4 takes nothing returns boolean
if((GetHeroLevel(udg_m[10])==7))then
return true
endif
if((GetHeroLevel(udg_m[10])==11))then
return true
endif
if((GetHeroLevel(udg_m[10])==16))then
return true
endif
return false
endfunction
function rB4 takes nothing returns boolean
if(not ra4())then
return false
endif
return true
endfunction
function rb4 takes nothing returns nothing
if(ry4())then
call ModifyHeroSkillPoints(udg_m[10],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(rA4())then
call ModifyHeroSkillPoints(udg_m[10],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(rB4())then
call ModifyHeroSkillPoints(udg_m[10],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function rC4 takes nothing returns nothing
set udg_Bu=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Bu,Player(9),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_Bu,Condition(function rx4))
call TriggerAddAction(udg_Bu,function rb4)
endfunction
function rc4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[11]))then
return false
endif
return true
endfunction
function rD4 takes nothing returns boolean
if(not rc4())then
return false
endif
return true
endfunction
function rE4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[11])>=1)
endfunction
function r34 takes nothing returns boolean
if((GetHeroLevel(udg_m[11])==3))then
return true
endif
if((GetHeroLevel(udg_m[11])==4))then
return true
endif
if((GetHeroLevel(udg_m[11])==6))then
return true
endif
if((GetHeroLevel(udg_m[11])==10))then
return true
endif
if((GetHeroLevel(udg_m[11])==12))then
return true
endif
if((GetHeroLevel(udg_m[11])==13))then
return true
endif
if((GetHeroLevel(udg_m[11])==15))then
return true
endif
if((GetHeroLevel(udg_m[11])==17))then
return true
endif
if((GetHeroLevel(udg_m[11])==19))then
return true
endif
if((GetHeroLevel(udg_m[11])==20))then
return true
endif
if((GetHeroLevel(udg_m[11])==21))then
return true
endif
if((GetHeroLevel(udg_m[11])==22))then
return true
endif
if((GetHeroLevel(udg_m[11])==25))then
return true
endif
if((GetHeroLevel(udg_m[11])==26))then
return true
endif
if((GetHeroLevel(udg_m[11])==27))then
return true
endif
if((GetHeroLevel(udg_m[11])==30))then
return true
endif
if((GetHeroLevel(udg_m[11])==32))then
return true
endif
if((GetHeroLevel(udg_m[11])==35))then
return true
endif
if((GetHeroLevel(udg_m[11])==40))then
return true
endif
return false
endfunction
function rF4 takes nothing returns boolean
if(not r34())then
return false
endif
return true
endfunction
function rG4 takes nothing returns boolean
if((GetHeroLevel(udg_m[11])==7))then
return true
endif
if((GetHeroLevel(udg_m[11])==11))then
return true
endif
if((GetHeroLevel(udg_m[11])==16))then
return true
endif
return false
endfunction
function r64 takes nothing returns boolean
if(not rG4())then
return false
endif
return true
endfunction
function rH4 takes nothing returns nothing
if(rE4())then
call ModifyHeroSkillPoints(udg_m[11],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(rF4())then
call ModifyHeroSkillPoints(udg_m[11],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(r64())then
call ModifyHeroSkillPoints(udg_m[11],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function rI4 takes nothing returns nothing
set udg_bu=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_bu,Player(10),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_bu,Condition(function rD4))
call TriggerAddAction(udg_bu,function rH4)
endfunction
function rl4 takes nothing returns boolean
if(not(MG(GetLevelingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetLevelingUnit())<41))then
return false
endif
if(not(GetLevelingUnit()==udg_m[12]))then
return false
endif
return true
endfunction
function r14 takes nothing returns boolean
if(not rl4())then
return false
endif
return true
endfunction
function rJ4 takes nothing returns boolean
return(GetHeroSkillPoints(udg_m[12])>=1)
endfunction
function rK4 takes nothing returns boolean
if((GetHeroLevel(udg_m[12])==3))then
return true
endif
if((GetHeroLevel(udg_m[12])==4))then
return true
endif
if((GetHeroLevel(udg_m[12])==6))then
return true
endif
if((GetHeroLevel(udg_m[12])==10))then
return true
endif
if((GetHeroLevel(udg_m[12])==12))then
return true
endif
if((GetHeroLevel(udg_m[12])==13))then
return true
endif
if((GetHeroLevel(udg_m[12])==15))then
return true
endif
if((GetHeroLevel(udg_m[12])==17))then
return true
endif
if((GetHeroLevel(udg_m[12])==19))then
return true
endif
if((GetHeroLevel(udg_m[12])==20))then
return true
endif
if((GetHeroLevel(udg_m[12])==21))then
return true
endif
if((GetHeroLevel(udg_m[12])==22))then
return true
endif
if((GetHeroLevel(udg_m[12])==25))then
return true
endif
if((GetHeroLevel(udg_m[12])==26))then
return true
endif
if((GetHeroLevel(udg_m[12])==27))then
return true
endif
if((GetHeroLevel(udg_m[12])==30))then
return true
endif
if((GetHeroLevel(udg_m[12])==32))then
return true
endif
if((GetHeroLevel(udg_m[12])==35))then
return true
endif
if((GetHeroLevel(udg_m[12])==40))then
return true
endif
return false
endfunction
function rL4 takes nothing returns boolean
if(not rK4())then
return false
endif
return true
endfunction
function rM4 takes nothing returns boolean
if((GetHeroLevel(udg_m[12])==7))then
return true
endif
if((GetHeroLevel(udg_m[12])==11))then
return true
endif
if((GetHeroLevel(udg_m[12])==16))then
return true
endif
return false
endfunction
function rN4 takes nothing returns boolean
if(not rM4())then
return false
endif
return true
endfunction
function rO4 takes nothing returns nothing
if(rJ4())then
call ModifyHeroSkillPoints(udg_m[12],bj_MODIFYMETHOD_SUB,1)
else
call DoNothing()
endif
if(rL4())then
call ModifyHeroSkillPoints(udg_m[12],bj_MODIFYMETHOD_ADD,1)
else
call DoNothing()
endif
if(rN4())then
call ModifyHeroSkillPoints(udg_m[12],bj_MODIFYMETHOD_ADD,2)
else
call DoNothing()
endif
endfunction
function r04 takes nothing returns nothing
set udg_Cu=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Cu,Player(11),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_Cu,Condition(function r14))
call TriggerAddAction(udg_Cu,function rO4)
endfunction
function rP4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==false))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function rQ4 takes nothing returns boolean
if(not rP4())then
return false
endif
return true
endfunction
function rR4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function rS4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function r54 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()==udg_x))then
return false
endif
return true
endfunction
function rT4 takes nothing returns boolean
if(not r54())then
return false
endif
return true
endfunction
function rU4 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[2]==3))then
return false
endif
return true
endfunction
function rV4 takes nothing returns boolean
if(not rU4())then
return false
endif
return true
endfunction
function rW4 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[2]==5))then
return false
endif
return true
endfunction
function rX4 takes nothing returns boolean
if(not rW4())then
return false
endif
return true
endfunction
function rY4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[1]))then
return false
endif
return true
endfunction
function r24 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[2]))then
return false
endif
return true
endfunction
function rZ4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[3]))then
return false
endif
return true
endfunction
function r_4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[4]))then
return false
endif
return true
endfunction
function s44 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[5]))then
return false
endif
return true
endfunction
function s74 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[6]))then
return false
endif
return true
endfunction
function s84 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function s94 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function sd4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function se4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function sf4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function sg4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function sh4 takes nothing returns boolean
return(udg_z==false)
endfunction
function si4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function sj4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function sk4 takes nothing returns boolean
return GetBooleanAnd(si4(),sj4())
endfunction
function sm4 takes nothing returns boolean
return GetBooleanAnd(sh4(),sk4())
endfunction
function sn4 takes nothing returns boolean
return(GetDyingUnit()==udg_x)
endfunction
function so4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function sp4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function sq4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function sr4 takes nothing returns boolean
if(not sq4())then
return false
endif
return true
endfunction
function ss4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function st4 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function su4 takes nothing returns boolean
return GetBooleanAnd(ss4(),st4())
endfunction
function sv4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function sw4 takes nothing returns boolean
if(not sv4())then
return false
endif
return true
endfunction
function sx4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function sy4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function sz4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function sA4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function sa4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function sB4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not sa4())then
return false
endif
return true
endfunction
function sb4 takes nothing returns boolean
if(not sB4())then
return false
endif
return true
endfunction
function sC4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function sc4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function sD4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function sE4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function s34 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function sF4 takes nothing returns boolean
if(not s34())then
return false
endif
return true
endfunction
function sG4 takes nothing returns nothing
set udg_c4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=0
if(rR4())then
set udg_e4[2]=(udg_e4[2]+1)
else
call DoNothing()
endif
if(rS4())then
set udg_R7[2]=(udg_R7[2]+1)
else
call DoNothing()
endif
if(rT4())then
set udg_z=false
call TriggerExecute(udg_jt)
else
call DoNothing()
endif
if(rV4())then
set udg_e4[1]=0
set udg_e4[2]=0
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(rX4())then
set udg_R7[1]=0
set udg_R7[2]=0
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(rY4())then
set udg_L[1]=false
set udg_l[1]=false
set udg_J[1]=false
else
call DoNothing()
endif
if(r24())then
set udg_L[2]=false
set udg_l[2]=false
set udg_J[2]=false
else
call DoNothing()
endif
if(rZ4())then
set udg_L[3]=false
set udg_l[3]=false
set udg_J[3]=false
else
call DoNothing()
endif
if(r_4())then
set udg_L[4]=false
set udg_l[4]=false
set udg_J[4]=false
else
call DoNothing()
endif
if(s44())then
set udg_L[5]=false
set udg_l[5]=false
set udg_J[5]=false
else
call DoNothing()
endif
if(s74())then
set udg_L[6]=false
set udg_l[6]=false
set udg_J[6]=false
else
call DoNothing()
endif
if(s84())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(s94())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function sd4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function se4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function sf4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function sg4)
call TriggerSleepAction(2.00)
if(sm4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_uo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
if(sn4())then
call SetUnitPositionLoc(GetDyingUnit(),GetRectCenter(udg_an))
else
call SetUnitPositionLoc(GetDyingUnit(),GetRectCenter(udg_uo))
endif
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(so4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(sp4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(sr4())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(su4())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
if(sw4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(sx4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(sy4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(sb4())then
call PauseUnitBJ(true,GetDyingUnit())
if(sz4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(sA4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(sC4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(sF4())then
if(sc4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(sD4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(sE4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function s64 takes nothing returns nothing
set udg_cu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_cu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_cu,Condition(function rQ4))
call TriggerAddAction(udg_cu,function sG4)
endfunction
function sH4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==false))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function sI4 takes nothing returns boolean
if(not sH4())then
return false
endif
return true
endfunction
function sl4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function s14 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function sJ4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()==udg_y))then
return false
endif
return true
endfunction
function sK4 takes nothing returns boolean
if(not sJ4())then
return false
endif
return true
endfunction
function sL4 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[1]==3))then
return false
endif
return true
endfunction
function sM4 takes nothing returns boolean
if(not sL4())then
return false
endif
return true
endfunction
function sN4 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[1]==5))then
return false
endif
return true
endfunction
function sO4 takes nothing returns boolean
if(not sN4())then
return false
endif
return true
endfunction
function s04 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[7]))then
return false
endif
return true
endfunction
function sP4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[8]))then
return false
endif
return true
endfunction
function sQ4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[9]))then
return false
endif
return true
endfunction
function sR4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[10]))then
return false
endif
return true
endfunction
function sS4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[11]))then
return false
endif
return true
endfunction
function s54 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[12]))then
return false
endif
return true
endfunction
function sT4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function sU4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function sV4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function sW4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function sX4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function sY4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function s24 takes nothing returns boolean
return(udg_z==false)
endfunction
function sZ4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function s_4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function t44 takes nothing returns boolean
return GetBooleanAnd(sZ4(),s_4())
endfunction
function t74 takes nothing returns boolean
return GetBooleanAnd(s24(),t44())
endfunction
function t84 takes nothing returns boolean
return(GetDyingUnit()==udg_y)
endfunction
function t94 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function td4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function te4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function tf4 takes nothing returns boolean
if(not te4())then
return false
endif
return true
endfunction
function tg4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function th4 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function ti4 takes nothing returns boolean
return GetBooleanAnd(tg4(),th4())
endfunction
function tj4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function tk4 takes nothing returns boolean
if(not tj4())then
return false
endif
return true
endfunction
function tm4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function tn4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function to4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function tp4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function tq4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function tr4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not tq4())then
return false
endif
return true
endfunction
function ts4 takes nothing returns boolean
if(not tr4())then
return false
endif
return true
endfunction
function tt4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function tu4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function tv4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function tw4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function tx4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function ty4 takes nothing returns boolean
if(not tx4())then
return false
endif
return true
endfunction
function tz4 takes nothing returns nothing
set udg_c4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=0
if(sl4())then
set udg_e4[1]=(udg_e4[1]+1)
else
call DoNothing()
endif
if(s14())then
set udg_R7[1]=(udg_R7[1]+1)
else
call DoNothing()
endif
if(sK4())then
set udg_z=false
call TriggerExecute(udg_jt)
else
call DoNothing()
endif
if(sM4())then
set udg_e4[1]=0
set udg_e4[2]=0
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(sO4())then
set udg_R7[1]=0
set udg_R7[2]=0
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(s04())then
set udg_L[7]=false
set udg_l[7]=false
set udg_J[7]=false
else
call DoNothing()
endif
if(sP4())then
set udg_L[8]=false
set udg_l[8]=false
set udg_J[8]=false
else
call DoNothing()
endif
if(sQ4())then
set udg_L[9]=false
set udg_l[9]=false
set udg_J[9]=false
else
call DoNothing()
endif
if(sR4())then
set udg_L[10]=false
set udg_l[10]=false
set udg_J[10]=false
else
call DoNothing()
endif
if(sS4())then
set udg_L[11]=false
set udg_l[11]=false
set udg_J[11]=false
else
call DoNothing()
endif
if(s54())then
set udg_L[12]=false
set udg_l[12]=false
set udg_J[12]=false
else
call DoNothing()
endif
if(sT4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(sU4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function sV4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function sW4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function sX4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function sY4)
call TriggerSleepAction(2.00)
if(t74())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_wo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
if(t84())then
call SetUnitPositionLoc(GetDyingUnit(),GetRectCenter(udg_Bn))
else
call SetUnitPositionLoc(GetDyingUnit(),GetRectCenter(udg_wo))
endif
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(t94())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(td4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(tf4())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(ti4())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
if(tk4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(tm4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(tn4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(ts4())then
call PauseUnitBJ(true,GetDyingUnit())
if(to4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(tp4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(tt4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(ty4())then
if(tu4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(tv4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(tw4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function tA4 takes nothing returns nothing
set udg_Du=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Du,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Du,Condition(function sI4))
call TriggerAddAction(udg_Du,function tz4)
endfunction
function ta4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
return false
endif
if(not(udg_m[1]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function tB4 takes nothing returns boolean
if(not ta4())then
return false
endif
return true
endfunction
function tb4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[7]))then
return false
endif
return true
endfunction
function tC4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[8]))then
return false
endif
return true
endfunction
function tc4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[9]))then
return false
endif
return true
endfunction
function tD4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[10]))then
return false
endif
return true
endfunction
function tE4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[11]))then
return false
endif
return true
endfunction
function t34 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[12]))then
return false
endif
return true
endfunction
function tF4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function tG4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function t64 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function tH4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function tI4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true)
endfunction
function tl4 takes nothing returns boolean
return GetBooleanAnd(tH4(),tI4())
endfunction
function t14 takes nothing returns boolean
return GetBooleanAnd(t64(),tl4())
endfunction
function tJ4 takes nothing returns boolean
return(udg_D4==false)
endfunction
function tK4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(0))
endfunction
function tL4 takes nothing returns boolean
return GetBooleanAnd(tJ4(),tK4())
endfunction
function tM4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function tN4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function tO4 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function t04 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[1])==true)
endfunction
function tP4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[1])==true)
endfunction
function tQ4 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function tR4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function tS4 takes nothing returns boolean
return(udg_z==true)
endfunction
function t54 takes nothing returns boolean
if(not tR4())then
return false
endif
return true
endfunction
function tT4 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[1]==3))then
return false
endif
return true
endfunction
function tU4 takes nothing returns boolean
if(not tT4())then
return false
endif
return true
endfunction
function tV4 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[1]==5))then
return false
endif
return true
endfunction
function tW4 takes nothing returns boolean
if(not tV4())then
return false
endif
return true
endfunction
function tX4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function tY4 takes nothing returns boolean
if(not tX4())then
return false
endif
return true
endfunction
function t24 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function tZ4 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function t_4 takes nothing returns boolean
return GetBooleanAnd(t24(),tZ4())
endfunction
function u44 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function u74 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function u84 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function u94 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ud4 takes nothing returns boolean
return(udg_z==false)
endfunction
function ue4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function uf4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function ug4 takes nothing returns boolean
return GetBooleanAnd(ue4(),uf4())
endfunction
function uh4 takes nothing returns boolean
return GetBooleanAnd(ud4(),ug4())
endfunction
function ui4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function uj4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function uk4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function um4 takes nothing returns boolean
if(not uk4())then
return false
endif
return true
endfunction
function un4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function uo4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function up4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function uq4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function ur4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function us4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not ur4())then
return false
endif
return true
endfunction
function ut4 takes nothing returns boolean
if(not us4())then
return false
endif
return true
endfunction
function uu4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function uv4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function uw4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function ux4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function uy4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function uz4 takes nothing returns boolean
if(not uy4())then
return false
endif
return true
endfunction
function uA4 takes nothing returns nothing
set udg_d[1]=(udg_d[1]+1)
set udg_T4[1]=(udg_T4[1]+(25*GetHeroLevel(GetDyingUnit())))
if(tb4())then
set udg_d7[1]=(udg_d7[1]+1)
set udg_L[7]=false
set udg_l[7]=false
set udg_J[7]=false
else
call DoNothing()
endif
if(tC4())then
set udg_e7[1]=(udg_e7[1]+1)
set udg_L[8]=false
set udg_l[8]=false
set udg_J[8]=false
else
call DoNothing()
endif
if(tc4())then
set udg_f7[1]=(udg_f7[1]+1)
set udg_L[9]=false
set udg_l[9]=false
set udg_J[9]=false
else
call DoNothing()
endif
if(tD4())then
set udg_g7[1]=(udg_g7[1]+1)
set udg_L[10]=false
set udg_l[10]=false
set udg_J[10]=false
else
call DoNothing()
endif
if(tE4())then
set udg_h7[1]=(udg_h7[1]+1)
set udg_L[11]=false
set udg_l[11]=false
set udg_J[11]=false
else
call DoNothing()
endif
if(t34())then
set udg_i7[1]=(udg_i7[1]+1)
set udg_L[12]=false
set udg_l[12]=false
set udg_J[12]=false
else
call DoNothing()
endif
set udg_h=(udg_h+1)
if(tF4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(tG4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(t14())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(tL4())then
call TriggerExecute(udg_Qu)
else
call DoNothing()
endif
if(tM4())then
set udg_e4[1]=(udg_e4[1]+1)
else
call DoNothing()
endif
if(tN4())then
set udg_R7[1]=(udg_R7[1]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function tO4)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(tQ4())then
if(tP4())then
call AddHeroXPSwapped(200,udg_m[1],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[1]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(t04())then
call AddHeroXPSwapped(50,udg_m[1],true)
else
call DoNothing()
endif
endif
if(t54())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(tS4())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(tU4())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(tW4())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(tY4())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(t_4())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function u44)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function u74)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function u84)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function u94)
call TriggerSleepAction(2.00)
if(uh4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_wo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(ui4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(uj4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(um4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(un4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(uo4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(ut4())then
call PauseUnitBJ(true,GetDyingUnit())
if(up4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(uq4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(uu4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(uz4())then
if(uv4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(uw4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(ux4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function ua4 takes nothing returns nothing
set udg_Eu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Eu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Eu,Condition(function tB4))
call TriggerAddAction(udg_Eu,function uA4)
endfunction
function uB4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(1)))then
return false
endif
if(not(udg_m[2]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function ub4 takes nothing returns boolean
if(not uB4())then
return false
endif
return true
endfunction
function uC4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[7]))then
return false
endif
return true
endfunction
function uc4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[8]))then
return false
endif
return true
endfunction
function uD4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[9]))then
return false
endif
return true
endfunction
function uE4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[10]))then
return false
endif
return true
endfunction
function u34 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[11]))then
return false
endif
return true
endfunction
function uF4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[12]))then
return false
endif
return true
endfunction
function uG4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function u64 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function uH4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function uI4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function ul4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true)
endfunction
function u14 takes nothing returns boolean
return GetBooleanAnd(uI4(),ul4())
endfunction
function uJ4 takes nothing returns boolean
return GetBooleanAnd(uH4(),u14())
endfunction
function uK4 takes nothing returns boolean
return(udg_D4==false)
endfunction
function uL4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(1))
endfunction
function uM4 takes nothing returns boolean
return GetBooleanAnd(uK4(),uL4())
endfunction
function uN4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function uO4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function u04 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function uP4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[2])==true)
endfunction
function uQ4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[2])==true)
endfunction
function uR4 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function uS4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function u54 takes nothing returns boolean
return(udg_z==true)
endfunction
function uT4 takes nothing returns boolean
if(not uS4())then
return false
endif
return true
endfunction
function uU4 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[1]==3))then
return false
endif
return true
endfunction
function uV4 takes nothing returns boolean
if(not uU4())then
return false
endif
return true
endfunction
function uW4 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[1]==5))then
return false
endif
return true
endfunction
function uX4 takes nothing returns boolean
if(not uW4())then
return false
endif
return true
endfunction
function uY4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function u24 takes nothing returns boolean
if(not uY4())then
return false
endif
return true
endfunction
function uZ4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function u_4 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function v44 takes nothing returns boolean
return GetBooleanAnd(uZ4(),u_4())
endfunction
function v74 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function v84 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function v94 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function vd4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ve4 takes nothing returns boolean
return(udg_z==false)
endfunction
function vf4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function vg4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function vh4 takes nothing returns boolean
return GetBooleanAnd(vf4(),vg4())
endfunction
function vi4 takes nothing returns boolean
return GetBooleanAnd(ve4(),vh4())
endfunction
function vj4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function vk4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function vm4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function vn4 takes nothing returns boolean
if(not vm4())then
return false
endif
return true
endfunction
function vo4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function vp4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function vq4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function vr4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function vs4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function vt4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not vs4())then
return false
endif
return true
endfunction
function vu4 takes nothing returns boolean
if(not vt4())then
return false
endif
return true
endfunction
function vv4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function vw4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function vx4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function vy4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function vz4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function vA4 takes nothing returns boolean
if(not vz4())then
return false
endif
return true
endfunction
function va4 takes nothing returns nothing
set udg_d[2]=(udg_d[2]+1)
set udg_T4[2]=(udg_T4[2]+(25*GetHeroLevel(GetDyingUnit())))
if(uC4())then
set udg_d7[2]=(udg_d7[2]+1)
set udg_L[7]=false
set udg_l[7]=false
set udg_J[7]=false
else
call DoNothing()
endif
if(uc4())then
set udg_e7[2]=(udg_e7[2]+1)
set udg_L[8]=false
set udg_l[8]=false
set udg_J[8]=false
else
call DoNothing()
endif
if(uD4())then
set udg_f7[2]=(udg_f7[2]+1)
set udg_L[9]=false
set udg_l[9]=false
set udg_J[9]=false
else
call DoNothing()
endif
if(uE4())then
set udg_g7[2]=(udg_g7[2]+1)
set udg_L[10]=false
set udg_l[10]=false
set udg_J[10]=false
else
call DoNothing()
endif
if(u34())then
set udg_h7[2]=(udg_h7[2]+1)
set udg_L[11]=false
set udg_l[11]=false
set udg_J[11]=false
else
call DoNothing()
endif
if(uF4())then
set udg_i7[2]=(udg_i7[2]+1)
set udg_L[12]=false
set udg_l[12]=false
set udg_J[12]=false
else
call DoNothing()
endif
set udg_h=(udg_h+1)
if(uG4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(u64())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(uJ4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(uM4())then
call TriggerExecute(udg_Ru)
else
call DoNothing()
endif
if(uN4())then
set udg_e4[1]=(udg_e4[1]+1)
else
call DoNothing()
endif
if(uO4())then
set udg_R7[1]=(udg_R7[1]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function u04)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(uR4())then
if(uQ4())then
call AddHeroXPSwapped(200,udg_m[2],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[2]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(uP4())then
call AddHeroXPSwapped(50,udg_m[2],true)
else
call DoNothing()
endif
endif
if(uT4())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(u54())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(uV4())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(uX4())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(u24())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(v44())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function v74)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function v84)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function v94)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function vd4)
call TriggerSleepAction(2.00)
if(vi4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_wo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(vj4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(vk4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(vn4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(vo4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(vp4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(vu4())then
call PauseUnitBJ(true,GetDyingUnit())
if(vq4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(vr4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(vv4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(vA4())then
if(vw4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(vx4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(vy4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function vB4 takes nothing returns nothing
set udg_Fu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Fu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Fu,Condition(function ub4))
call TriggerAddAction(udg_Fu,function va4)
endfunction
function vb4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(2)))then
return false
endif
if(not(udg_m[3]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function vC4 takes nothing returns boolean
if(not vb4())then
return false
endif
return true
endfunction
function vc4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[7]))then
return false
endif
return true
endfunction
function vD4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[8]))then
return false
endif
return true
endfunction
function vE4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[9]))then
return false
endif
return true
endfunction
function v34 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[10]))then
return false
endif
return true
endfunction
function vF4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[11]))then
return false
endif
return true
endfunction
function vG4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[12]))then
return false
endif
return true
endfunction
function v64 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function vH4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function vI4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function vl4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function v14 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true)
endfunction
function vJ4 takes nothing returns boolean
return GetBooleanAnd(vl4(),v14())
endfunction
function vK4 takes nothing returns boolean
return GetBooleanAnd(vI4(),vJ4())
endfunction
function vL4 takes nothing returns boolean
return(udg_D4==false)
endfunction
function vM4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(2))
endfunction
function vN4 takes nothing returns boolean
return GetBooleanAnd(vL4(),vM4())
endfunction
function vO4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function v04 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function vP4 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function vQ4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[3])==true)
endfunction
function vR4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[3])==true)
endfunction
function vS4 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function v54 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function vT4 takes nothing returns boolean
return(udg_z==true)
endfunction
function vU4 takes nothing returns boolean
if(not v54())then
return false
endif
return true
endfunction
function vV4 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[1]==3))then
return false
endif
return true
endfunction
function vW4 takes nothing returns boolean
if(not vV4())then
return false
endif
return true
endfunction
function vX4 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[1]==5))then
return false
endif
return true
endfunction
function vY4 takes nothing returns boolean
if(not vX4())then
return false
endif
return true
endfunction
function v24 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function vZ4 takes nothing returns boolean
if(not v24())then
return false
endif
return true
endfunction
function v_4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function w44 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function w74 takes nothing returns boolean
return GetBooleanAnd(v_4(),w44())
endfunction
function w84 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function w94 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function wd4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function we4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function wf4 takes nothing returns boolean
return(udg_z==false)
endfunction
function wg4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function wh4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function wi4 takes nothing returns boolean
return GetBooleanAnd(wg4(),wh4())
endfunction
function wj4 takes nothing returns boolean
return GetBooleanAnd(wf4(),wi4())
endfunction
function wk4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function wm4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function wn4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function wo4 takes nothing returns boolean
if(not wn4())then
return false
endif
return true
endfunction
function wp4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function wq4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function wr4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function ws4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function wt4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function wu4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not wt4())then
return false
endif
return true
endfunction
function wv4 takes nothing returns boolean
if(not wu4())then
return false
endif
return true
endfunction
function ww4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function wx4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function wy4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function wz4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function wA4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function wa4 takes nothing returns boolean
if(not wA4())then
return false
endif
return true
endfunction
function wB4 takes nothing returns nothing
set udg_d[3]=(udg_d[3]+1)
set udg_T4[3]=(udg_T4[3]+(25*GetHeroLevel(GetDyingUnit())))
if(vc4())then
set udg_d7[3]=(udg_d7[3]+1)
set udg_L[7]=false
set udg_l[7]=false
set udg_J[7]=false
else
call DoNothing()
endif
if(vD4())then
set udg_e7[3]=(udg_e7[3]+1)
set udg_L[8]=false
set udg_l[8]=false
set udg_J[8]=false
else
call DoNothing()
endif
if(vE4())then
set udg_f7[3]=(udg_f7[3]+1)
set udg_L[9]=false
set udg_l[9]=false
set udg_J[9]=false
else
call DoNothing()
endif
if(v34())then
set udg_g7[3]=(udg_g7[3]+1)
set udg_L[10]=false
set udg_l[10]=false
set udg_J[10]=false
else
call DoNothing()
endif
if(vF4())then
set udg_h7[3]=(udg_h7[3]+1)
set udg_L[11]=false
set udg_l[11]=false
set udg_J[11]=false
else
call DoNothing()
endif
if(vG4())then
set udg_i7[3]=(udg_i7[3]+1)
set udg_L[12]=false
set udg_l[12]=false
set udg_J[12]=false
else
call DoNothing()
endif
set udg_h=(udg_h+1)
if(v64())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(vH4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(vK4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(vN4())then
call TriggerExecute(udg_Su)
else
call DoNothing()
endif
if(vO4())then
set udg_e4[1]=(udg_e4[1]+1)
else
call DoNothing()
endif
if(v04())then
set udg_R7[1]=(udg_R7[1]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function vP4)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(vS4())then
if(vR4())then
call AddHeroXPSwapped(200,udg_m[3],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[3]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(vQ4())then
call AddHeroXPSwapped(50,udg_m[3],true)
else
call DoNothing()
endif
endif
if(vU4())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(vT4())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(vW4())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(vY4())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(vZ4())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(w74())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function w84)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function w94)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function wd4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function we4)
call TriggerSleepAction(2.00)
if(wj4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_wo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(wk4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(wm4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(wo4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(wp4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(wq4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(wv4())then
call PauseUnitBJ(true,GetDyingUnit())
if(wr4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(ws4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(ww4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(wa4())then
if(wx4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(wy4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(wz4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function wb4 takes nothing returns nothing
set udg_Gu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Gu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Gu,Condition(function vC4))
call TriggerAddAction(udg_Gu,function wB4)
endfunction
function wC4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(3)))then
return false
endif
if(not(udg_m[4]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function wc4 takes nothing returns boolean
if(not wC4())then
return false
endif
return true
endfunction
function wD4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[7]))then
return false
endif
return true
endfunction
function wE4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[8]))then
return false
endif
return true
endfunction
function w34 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[9]))then
return false
endif
return true
endfunction
function wF4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[10]))then
return false
endif
return true
endfunction
function wG4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[11]))then
return false
endif
return true
endfunction
function w64 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[12]))then
return false
endif
return true
endfunction
function wH4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function wI4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function wl4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function w14 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function wJ4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true)
endfunction
function wK4 takes nothing returns boolean
return GetBooleanAnd(w14(),wJ4())
endfunction
function wL4 takes nothing returns boolean
return GetBooleanAnd(wl4(),wK4())
endfunction
function wM4 takes nothing returns boolean
return(udg_D4==false)
endfunction
function wN4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(3))
endfunction
function wO4 takes nothing returns boolean
return GetBooleanAnd(wM4(),wN4())
endfunction
function w04 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function wP4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function wQ4 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function wR4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[4])==true)
endfunction
function wS4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[4])==true)
endfunction
function w54 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function wT4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function wU4 takes nothing returns boolean
return(udg_z==true)
endfunction
function wV4 takes nothing returns boolean
if(not wT4())then
return false
endif
return true
endfunction
function wW4 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[1]==3))then
return false
endif
return true
endfunction
function wX4 takes nothing returns boolean
if(not wW4())then
return false
endif
return true
endfunction
function wY4 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[1]==5))then
return false
endif
return true
endfunction
function w24 takes nothing returns boolean
if(not wY4())then
return false
endif
return true
endfunction
function wZ4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function w_4 takes nothing returns boolean
if(not wZ4())then
return false
endif
return true
endfunction
function x44 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function x74 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function x84 takes nothing returns boolean
return GetBooleanAnd(x44(),x74())
endfunction
function x94 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function xd4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function xe4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function xf4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function xg4 takes nothing returns boolean
return(udg_z==false)
endfunction
function xh4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function xi4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function xj4 takes nothing returns boolean
return GetBooleanAnd(xh4(),xi4())
endfunction
function xk4 takes nothing returns boolean
return GetBooleanAnd(xg4(),xj4())
endfunction
function xm4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function xn4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function xo4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function xp4 takes nothing returns boolean
if(not xo4())then
return false
endif
return true
endfunction
function xq4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function xr4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function xs4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function xt4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function xu4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function xv4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not xu4())then
return false
endif
return true
endfunction
function xw4 takes nothing returns boolean
if(not xv4())then
return false
endif
return true
endfunction
function xx4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function xy4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function xz4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function xA4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function xa4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function xB4 takes nothing returns boolean
if(not xa4())then
return false
endif
return true
endfunction
function xb4 takes nothing returns nothing
set udg_d[4]=(udg_d[4]+1)
set udg_T4[4]=(udg_T4[4]+(25*GetHeroLevel(GetDyingUnit())))
if(wD4())then
set udg_d7[4]=(udg_d7[4]+1)
set udg_L[7]=false
set udg_l[7]=false
set udg_J[7]=false
else
call DoNothing()
endif
if(wE4())then
set udg_e7[4]=(udg_e7[4]+1)
set udg_L[8]=false
set udg_l[8]=false
set udg_J[8]=false
else
call DoNothing()
endif
if(w34())then
set udg_f7[4]=(udg_f7[4]+1)
set udg_L[9]=false
set udg_l[9]=false
set udg_J[9]=false
else
call DoNothing()
endif
if(wF4())then
set udg_g7[4]=(udg_g7[4]+1)
set udg_L[10]=false
set udg_l[10]=false
set udg_J[10]=false
else
call DoNothing()
endif
if(wG4())then
set udg_h7[4]=(udg_h7[4]+1)
set udg_L[11]=false
set udg_l[11]=false
set udg_J[11]=false
else
call DoNothing()
endif
if(w64())then
set udg_i7[4]=(udg_i7[4]+1)
set udg_L[12]=false
set udg_l[12]=false
set udg_J[12]=false
else
call DoNothing()
endif
set udg_h=(udg_h+1)
if(wH4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(wI4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(wL4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(wO4())then
call TriggerExecute(udg_Tu)
else
call DoNothing()
endif
if(w04())then
set udg_e4[1]=(udg_e4[1]+1)
else
call DoNothing()
endif
if(wP4())then
set udg_R7[1]=(udg_R7[1]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function wQ4)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(w54())then
if(wS4())then
call AddHeroXPSwapped(200,udg_m[4],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[4]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(wR4())then
call AddHeroXPSwapped(50,udg_m[4],true)
else
call DoNothing()
endif
endif
if(wV4())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(wU4())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(wX4())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(w24())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(w_4())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(x84())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function x94)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function xd4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function xe4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function xf4)
call TriggerSleepAction(2.00)
if(xk4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_wo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(xm4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(xn4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(xp4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(xq4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(xr4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(xw4())then
call PauseUnitBJ(true,GetDyingUnit())
if(xs4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(xt4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(xx4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(xB4())then
if(xy4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(xz4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(xA4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function xC4 takes nothing returns nothing
set udg_Hu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Hu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Hu,Condition(function wc4))
call TriggerAddAction(udg_Hu,function xb4)
endfunction
function xc4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(4)))then
return false
endif
if(not(udg_m[5]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function xD4 takes nothing returns boolean
if(not xc4())then
return false
endif
return true
endfunction
function xE4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[7]))then
return false
endif
return true
endfunction
function x34 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[8]))then
return false
endif
return true
endfunction
function xF4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[9]))then
return false
endif
return true
endfunction
function xG4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[10]))then
return false
endif
return true
endfunction
function x64 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[11]))then
return false
endif
return true
endfunction
function xH4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[12]))then
return false
endif
return true
endfunction
function xI4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function xl4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function x14 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function xJ4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function xK4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true)
endfunction
function xL4 takes nothing returns boolean
return GetBooleanAnd(xJ4(),xK4())
endfunction
function xM4 takes nothing returns boolean
return GetBooleanAnd(x14(),xL4())
endfunction
function xN4 takes nothing returns boolean
return(udg_D4==false)
endfunction
function xO4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(4))
endfunction
function x04 takes nothing returns boolean
return GetBooleanAnd(xN4(),xO4())
endfunction
function xP4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function xQ4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function xR4 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function xS4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[5])==true)
endfunction
function x54 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[5])==true)
endfunction
function xT4 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function xU4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function xV4 takes nothing returns boolean
return(udg_z==true)
endfunction
function xW4 takes nothing returns boolean
if(not xU4())then
return false
endif
return true
endfunction
function xX4 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[1]==3))then
return false
endif
return true
endfunction
function xY4 takes nothing returns boolean
if(not xX4())then
return false
endif
return true
endfunction
function x24 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[1]==5))then
return false
endif
return true
endfunction
function xZ4 takes nothing returns boolean
if(not x24())then
return false
endif
return true
endfunction
function x_4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function y44 takes nothing returns boolean
if(not x_4())then
return false
endif
return true
endfunction
function y74 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function y84 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function y94 takes nothing returns boolean
return GetBooleanAnd(y74(),y84())
endfunction
function yd4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ye4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function yf4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function yg4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function yh4 takes nothing returns boolean
return(udg_z==false)
endfunction
function yi4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function yj4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function yk4 takes nothing returns boolean
return GetBooleanAnd(yi4(),yj4())
endfunction
function ym4 takes nothing returns boolean
return GetBooleanAnd(yh4(),yk4())
endfunction
function yn4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function yo4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function yp4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function yq4 takes nothing returns boolean
if(not yp4())then
return false
endif
return true
endfunction
function yr4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function ys4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function yt4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function yu4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function yv4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function yw4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not yv4())then
return false
endif
return true
endfunction
function yx4 takes nothing returns boolean
if(not yw4())then
return false
endif
return true
endfunction
function yy4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function yz4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function yA4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function ya4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function yB4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function yb4 takes nothing returns boolean
if(not yB4())then
return false
endif
return true
endfunction
function yC4 takes nothing returns nothing
set udg_d[5]=(udg_d[5]+1)
set udg_T4[5]=(udg_T4[5]+(25*GetHeroLevel(GetDyingUnit())))
if(xE4())then
set udg_d7[5]=(udg_d7[5]+1)
set udg_L[7]=false
set udg_l[7]=false
set udg_J[7]=false
else
call DoNothing()
endif
if(x34())then
set udg_e7[5]=(udg_e7[5]+1)
set udg_L[8]=false
set udg_l[8]=false
set udg_J[8]=false
else
call DoNothing()
endif
if(xF4())then
set udg_f7[5]=(udg_f7[5]+1)
set udg_L[9]=false
set udg_l[9]=false
set udg_J[9]=false
else
call DoNothing()
endif
if(xG4())then
set udg_g7[5]=(udg_g7[5]+1)
set udg_L[10]=false
set udg_l[10]=false
set udg_J[10]=false
else
call DoNothing()
endif
if(x64())then
set udg_h7[5]=(udg_h7[5]+1)
set udg_L[11]=false
set udg_l[11]=false
set udg_J[11]=false
else
call DoNothing()
endif
if(xH4())then
set udg_i7[5]=(udg_i7[5]+1)
set udg_L[12]=false
set udg_l[12]=false
set udg_J[12]=false
else
call DoNothing()
endif
set udg_h=(udg_h+1)
if(xI4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(xl4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(xM4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(x04())then
call TriggerExecute(udg_Uu)
else
call DoNothing()
endif
if(xP4())then
set udg_e4[1]=(udg_e4[1]+1)
else
call DoNothing()
endif
if(xQ4())then
set udg_R7[1]=(udg_R7[1]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function xR4)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(xT4())then
if(x54())then
call AddHeroXPSwapped(200,udg_m[5],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[5]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(xS4())then
call AddHeroXPSwapped(50,udg_m[5],true)
else
call DoNothing()
endif
endif
if(xW4())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(xV4())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(xY4())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(xZ4())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(y44())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(y94())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function yd4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function ye4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function yf4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function yg4)
call TriggerSleepAction(2.00)
if(ym4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_wo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(yn4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(yo4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(yq4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(yr4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(ys4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(yx4())then
call PauseUnitBJ(true,GetDyingUnit())
if(yt4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(yu4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(yy4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(yb4())then
if(yz4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(yA4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(ya4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function yc4 takes nothing returns nothing
set udg_Iu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Iu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Iu,Condition(function xD4))
call TriggerAddAction(udg_Iu,function yC4)
endfunction
function yD4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(5)))then
return false
endif
if(not(udg_m[6]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function yE4 takes nothing returns boolean
if(not yD4())then
return false
endif
return true
endfunction
function y34 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[7]))then
return false
endif
return true
endfunction
function yF4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[8]))then
return false
endif
return true
endfunction
function yG4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[9]))then
return false
endif
return true
endfunction
function y64 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[10]))then
return false
endif
return true
endfunction
function yH4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[11]))then
return false
endif
return true
endfunction
function yI4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[12]))then
return false
endif
return true
endfunction
function yl4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function y14 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function yJ4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function yK4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function yL4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true)
endfunction
function yM4 takes nothing returns boolean
return GetBooleanAnd(yK4(),yL4())
endfunction
function yN4 takes nothing returns boolean
return GetBooleanAnd(yJ4(),yM4())
endfunction
function yO4 takes nothing returns boolean
return(udg_D4==false)
endfunction
function y04 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(5))
endfunction
function yP4 takes nothing returns boolean
return GetBooleanAnd(yO4(),y04())
endfunction
function yQ4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function yR4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function yS4 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function y54 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[6])==true)
endfunction
function yT4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[6])==true)
endfunction
function yU4 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function yV4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function yW4 takes nothing returns boolean
return(udg_z==true)
endfunction
function yX4 takes nothing returns boolean
if(not yV4())then
return false
endif
return true
endfunction
function yY4 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[1]==3))then
return false
endif
return true
endfunction
function y24 takes nothing returns boolean
if(not yY4())then
return false
endif
return true
endfunction
function yZ4 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[1]==5))then
return false
endif
return true
endfunction
function y_4 takes nothing returns boolean
if(not yZ4())then
return false
endif
return true
endfunction
function z44 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function z74 takes nothing returns boolean
if(not z44())then
return false
endif
return true
endfunction
function z84 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function z94 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function zd4 takes nothing returns boolean
return GetBooleanAnd(z84(),z94())
endfunction
function ze4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function zf4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function zg4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function zh4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function zi4 takes nothing returns boolean
return(udg_z==false)
endfunction
function zj4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function zk4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function zm4 takes nothing returns boolean
return GetBooleanAnd(zj4(),zk4())
endfunction
function zn4 takes nothing returns boolean
return GetBooleanAnd(zi4(),zm4())
endfunction
function zo4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function zp4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function zq4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function zr4 takes nothing returns boolean
if(not zq4())then
return false
endif
return true
endfunction
function zs4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function zt4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function zu4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function zv4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function zw4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function zx4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not zw4())then
return false
endif
return true
endfunction
function zy4 takes nothing returns boolean
if(not zx4())then
return false
endif
return true
endfunction
function zz4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function zA4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function za4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function zB4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function zb4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function zC4 takes nothing returns boolean
if(not zb4())then
return false
endif
return true
endfunction
function zc4 takes nothing returns nothing
set udg_d[6]=(udg_d[6]+1)
set udg_T4[6]=(udg_T4[6]+(25*GetHeroLevel(GetDyingUnit())))
if(y34())then
set udg_d7[6]=(udg_d7[6]+1)
set udg_L[7]=false
set udg_l[7]=false
set udg_J[7]=false
else
call DoNothing()
endif
if(yF4())then
set udg_e7[6]=(udg_e7[6]+1)
set udg_L[8]=false
set udg_l[8]=false
set udg_J[8]=false
else
call DoNothing()
endif
if(yG4())then
set udg_f7[6]=(udg_f7[6]+1)
set udg_L[9]=false
set udg_l[9]=false
set udg_J[9]=false
else
call DoNothing()
endif
if(y64())then
set udg_g7[6]=(udg_g7[6]+1)
set udg_L[10]=false
set udg_l[10]=false
set udg_J[10]=false
else
call DoNothing()
endif
if(yH4())then
set udg_h7[6]=(udg_h7[6]+1)
set udg_L[11]=false
set udg_l[11]=false
set udg_J[11]=false
else
call DoNothing()
endif
if(yI4())then
set udg_i7[6]=(udg_i7[6]+1)
set udg_L[12]=false
set udg_l[12]=false
set udg_J[12]=false
else
call DoNothing()
endif
set udg_h=(udg_h+1)
if(yl4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(y14())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(yN4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(yP4())then
call TriggerExecute(udg_Vu)
else
call DoNothing()
endif
if(yQ4())then
set udg_e4[1]=(udg_e4[1]+1)
else
call DoNothing()
endif
if(yR4())then
set udg_R7[1]=(udg_R7[1]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function yS4)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(yU4())then
if(yT4())then
call AddHeroXPSwapped(200,udg_m[6],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[6]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(y54())then
call AddHeroXPSwapped(50,udg_m[6],true)
else
call DoNothing()
endif
endif
if(yX4())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(yW4())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(y24())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(y_4())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(z74())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(zd4())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function ze4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function zf4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function zg4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function zh4)
call TriggerSleepAction(2.00)
if(zn4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_wo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(zo4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(zp4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(zr4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(zs4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(zt4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(zy4())then
call PauseUnitBJ(true,GetDyingUnit())
if(zu4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(zv4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(zz4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(zC4())then
if(zA4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(za4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(zB4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function zD4 takes nothing returns nothing
set udg_lu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_lu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_lu,Condition(function yE4))
call TriggerAddAction(udg_lu,function zc4)
endfunction
function zE4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(6)))then
return false
endif
if(not(udg_m[7]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function z34 takes nothing returns boolean
if(not zE4())then
return false
endif
return true
endfunction
function zF4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[1]))then
return false
endif
return true
endfunction
function zG4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[2]))then
return false
endif
return true
endfunction
function z64 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[3]))then
return false
endif
return true
endfunction
function zH4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[4]))then
return false
endif
return true
endfunction
function zI4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[5]))then
return false
endif
return true
endfunction
function zl4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[6]))then
return false
endif
return true
endfunction
function z14 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function zJ4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function zK4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function zL4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function zM4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true)
endfunction
function zN4 takes nothing returns boolean
return GetBooleanAnd(zL4(),zM4())
endfunction
function zO4 takes nothing returns boolean
return GetBooleanAnd(zK4(),zN4())
endfunction
function z04 takes nothing returns boolean
return(udg_D4==false)
endfunction
function zP4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(6))
endfunction
function zQ4 takes nothing returns boolean
return GetBooleanAnd(z04(),zP4())
endfunction
function zR4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function zS4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function z54 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function zT4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[7])==true)
endfunction
function zU4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[7])==true)
endfunction
function zV4 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function zW4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function zX4 takes nothing returns boolean
return(udg_z==true)
endfunction
function zY4 takes nothing returns boolean
if(not zW4())then
return false
endif
return true
endfunction
function z24 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[2]==3))then
return false
endif
return true
endfunction
function zZ4 takes nothing returns boolean
if(not z24())then
return false
endif
return true
endfunction
function z_4 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[2]==5))then
return false
endif
return true
endfunction
function A44 takes nothing returns boolean
if(not z_4())then
return false
endif
return true
endfunction
function A74 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function A84 takes nothing returns boolean
if(not A74())then
return false
endif
return true
endfunction
function A94 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function Ad4 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function Ae4 takes nothing returns boolean
return GetBooleanAnd(A94(),Ad4())
endfunction
function Af4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Ag4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Ah4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Ai4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Aj4 takes nothing returns boolean
return(udg_z==false)
endfunction
function Ak4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function Am4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function An4 takes nothing returns boolean
return GetBooleanAnd(Ak4(),Am4())
endfunction
function Ao4 takes nothing returns boolean
return GetBooleanAnd(Aj4(),An4())
endfunction
function Ap4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function Aq4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function Ar4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function As4 takes nothing returns boolean
if(not Ar4())then
return false
endif
return true
endfunction
function At4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function Au4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function Av4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function Aw4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function Ax4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function Ay4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not Ax4())then
return false
endif
return true
endfunction
function Az4 takes nothing returns boolean
if(not Ay4())then
return false
endif
return true
endfunction
function AA4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function Aa4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function AB4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function Ab4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function AC4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function Ac4 takes nothing returns boolean
if(not AC4())then
return false
endif
return true
endfunction
function AD4 takes nothing returns nothing
set udg_d[7]=(udg_d[7]+1)
set udg_T4[7]=(udg_T4[7]+(25*GetHeroLevel(GetDyingUnit())))
if(zF4())then
set udg_W4[7]=(udg_W4[7]+1)
set udg_L[1]=false
set udg_l[1]=false
set udg_J[1]=false
else
call DoNothing()
endif
if(zG4())then
set udg_X4[7]=(udg_X4[7]+1)
set udg_L[2]=false
set udg_l[2]=false
set udg_J[2]=false
else
call DoNothing()
endif
if(z64())then
set udg_j7[7]=(udg_j7[7]+1)
set udg_L[3]=false
set udg_l[3]=false
set udg_J[3]=false
else
call DoNothing()
endif
if(zH4())then
set udg_k7[7]=(udg_k7[7]+1)
set udg_L[4]=false
set udg_l[4]=false
set udg_J[4]=false
else
call DoNothing()
endif
if(zI4())then
set udg_Y4[7]=(udg_Y4[7]+1)
set udg_L[5]=false
set udg_l[5]=false
set udg_J[5]=false
else
call DoNothing()
endif
if(zl4())then
set udg_Z4[7]=(udg_Z4[7]+1)
set udg_L[6]=false
set udg_l[6]=false
set udg_J[6]=false
else
call DoNothing()
endif
set udg_j=(udg_j+1)
if(z14())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(zJ4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(zO4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(zQ4())then
call TriggerExecute(udg_Wu)
else
call DoNothing()
endif
if(zR4())then
set udg_e4[2]=(udg_e4[2]+1)
else
call DoNothing()
endif
if(zS4())then
set udg_R7[2]=(udg_R7[2]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function z54)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(zV4())then
if(zU4())then
call AddHeroXPSwapped(200,udg_m[7],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[7]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(zT4())then
call AddHeroXPSwapped(50,udg_m[7],true)
else
call DoNothing()
endif
endif
if(zY4())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(zX4())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(zZ4())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(A44())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(A84())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(Ae4())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function Af4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function Ag4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function Ah4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function Ai4)
call TriggerSleepAction(2.00)
if(Ao4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_uo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(Ap4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(Aq4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(As4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(At4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(Au4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(Az4())then
call PauseUnitBJ(true,GetDyingUnit())
if(Av4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(Aw4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(AA4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(Ac4())then
if(Aa4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(AB4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(Ab4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function AE4 takes nothing returns nothing
set udg_Ju=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ju,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Ju,Condition(function z34))
call TriggerAddAction(udg_Ju,function AD4)
endfunction
function A34 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(7)))then
return false
endif
if(not(udg_m[8]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function AF4 takes nothing returns boolean
if(not A34())then
return false
endif
return true
endfunction
function AG4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[1]))then
return false
endif
return true
endfunction
function A64 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[2]))then
return false
endif
return true
endfunction
function AH4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[3]))then
return false
endif
return true
endfunction
function AI4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[4]))then
return false
endif
return true
endfunction
function Al4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[5]))then
return false
endif
return true
endfunction
function A14 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[6]))then
return false
endif
return true
endfunction
function AJ4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function AK4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function AL4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function AM4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function AN4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true)
endfunction
function AO4 takes nothing returns boolean
return GetBooleanAnd(AM4(),AN4())
endfunction
function A04 takes nothing returns boolean
return GetBooleanAnd(AL4(),AO4())
endfunction
function AP4 takes nothing returns boolean
return(udg_D4==false)
endfunction
function AQ4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(7))
endfunction
function AR4 takes nothing returns boolean
return GetBooleanAnd(AP4(),AQ4())
endfunction
function AS4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function A54 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function AT4 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function AU4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[8])==true)
endfunction
function AV4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[8])==true)
endfunction
function AW4 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function AX4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function AY4 takes nothing returns boolean
return(udg_z==true)
endfunction
function A24 takes nothing returns boolean
if(not AX4())then
return false
endif
return true
endfunction
function AZ4 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[2]==3))then
return false
endif
return true
endfunction
function A_4 takes nothing returns boolean
if(not AZ4())then
return false
endif
return true
endfunction
function a44 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[2]==5))then
return false
endif
return true
endfunction
function a74 takes nothing returns boolean
if(not a44())then
return false
endif
return true
endfunction
function a84 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function a94 takes nothing returns boolean
if(not a84())then
return false
endif
return true
endfunction
function ad4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function ae4 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function af4 takes nothing returns boolean
return GetBooleanAnd(ad4(),ae4())
endfunction
function ag4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ah4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ai4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aj4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ak4 takes nothing returns boolean
return(udg_z==false)
endfunction
function am4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function an4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function ao4 takes nothing returns boolean
return GetBooleanAnd(am4(),an4())
endfunction
function ap4 takes nothing returns boolean
return GetBooleanAnd(ak4(),ao4())
endfunction
function aq4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function ar4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function as4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function at4 takes nothing returns boolean
if(not as4())then
return false
endif
return true
endfunction
function au4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function av4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function aw4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function ax4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function ay4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function az4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not ay4())then
return false
endif
return true
endfunction
function aA4 takes nothing returns boolean
if(not az4())then
return false
endif
return true
endfunction
function aa4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function aB4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function ab4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function aC4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function ac4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function aD4 takes nothing returns boolean
if(not ac4())then
return false
endif
return true
endfunction
function aE4 takes nothing returns nothing
set udg_d[8]=(udg_d[8]+1)
set udg_T4[8]=(udg_T4[8]+(25*GetHeroLevel(GetDyingUnit())))
if(AG4())then
set udg_W4[8]=(udg_W4[8]+1)
set udg_L[1]=false
set udg_l[1]=false
set udg_J[1]=false
else
call DoNothing()
endif
if(A64())then
set udg_X4[8]=(udg_X4[8]+1)
set udg_L[2]=false
set udg_l[2]=false
set udg_J[2]=false
else
call DoNothing()
endif
if(AH4())then
set udg_j7[8]=(udg_j7[8]+1)
set udg_L[3]=false
set udg_l[3]=false
set udg_J[3]=false
else
call DoNothing()
endif
if(AI4())then
set udg_k7[8]=(udg_k7[8]+1)
set udg_L[4]=false
set udg_l[4]=false
set udg_J[4]=false
else
call DoNothing()
endif
if(Al4())then
set udg_Y4[8]=(udg_Y4[8]+1)
set udg_L[5]=false
set udg_l[5]=false
set udg_J[5]=false
else
call DoNothing()
endif
if(A14())then
set udg_Z4[8]=(udg_Z4[8]+1)
set udg_L[6]=false
set udg_l[6]=false
set udg_J[6]=false
else
call DoNothing()
endif
set udg_j=(udg_j+1)
if(AJ4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(AK4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(A04())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(AR4())then
call TriggerExecute(udg_Xu)
else
call DoNothing()
endif
if(AS4())then
set udg_e4[2]=(udg_e4[2]+1)
else
call DoNothing()
endif
if(A54())then
set udg_R7[2]=(udg_R7[2]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function AT4)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(AW4())then
if(AV4())then
call AddHeroXPSwapped(200,udg_m[8],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[8]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(AU4())then
call AddHeroXPSwapped(50,udg_m[8],true)
else
call DoNothing()
endif
endif
if(A24())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(AY4())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(A_4())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(a74())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(a94())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(af4())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function ag4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function ah4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function ai4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function aj4)
call TriggerSleepAction(2.00)
if(ap4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_uo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(aq4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(ar4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(at4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(au4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(av4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(aA4())then
call PauseUnitBJ(true,GetDyingUnit())
if(aw4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(ax4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(aa4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(aD4())then
if(aB4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(ab4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(aC4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function a34 takes nothing returns nothing
set udg_Ku=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ku,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Ku,Condition(function AF4))
call TriggerAddAction(udg_Ku,function aE4)
endfunction
function aF4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(8)))then
return false
endif
if(not(udg_m[9]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function aG4 takes nothing returns boolean
if(not aF4())then
return false
endif
return true
endfunction
function a64 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[1]))then
return false
endif
return true
endfunction
function aH4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[2]))then
return false
endif
return true
endfunction
function aI4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[3]))then
return false
endif
return true
endfunction
function al4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[4]))then
return false
endif
return true
endfunction
function a14 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[5]))then
return false
endif
return true
endfunction
function aJ4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[6]))then
return false
endif
return true
endfunction
function aK4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function aL4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function aM4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function aN4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function aO4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true)
endfunction
function a04 takes nothing returns boolean
return GetBooleanAnd(aN4(),aO4())
endfunction
function aP4 takes nothing returns boolean
return GetBooleanAnd(aM4(),a04())
endfunction
function aQ4 takes nothing returns boolean
return(udg_D4==false)
endfunction
function aR4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(8))
endfunction
function aS4 takes nothing returns boolean
return GetBooleanAnd(aQ4(),aR4())
endfunction
function a54 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function aT4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function aU4 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function aV4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[9])==true)
endfunction
function aW4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[9])==true)
endfunction
function aX4 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function aY4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function a24 takes nothing returns boolean
return(udg_z==true)
endfunction
function aZ4 takes nothing returns boolean
if(not aY4())then
return false
endif
return true
endfunction
function a_4 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[2]==3))then
return false
endif
return true
endfunction
function B44 takes nothing returns boolean
if(not a_4())then
return false
endif
return true
endfunction
function B74 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[2]==5))then
return false
endif
return true
endfunction
function B84 takes nothing returns boolean
if(not B74())then
return false
endif
return true
endfunction
function B94 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function Bd4 takes nothing returns boolean
if(not B94())then
return false
endif
return true
endfunction
function Be4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function Bf4 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function Bg4 takes nothing returns boolean
return GetBooleanAnd(Be4(),Bf4())
endfunction
function Bh4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Bi4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Bj4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Bk4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Bm4 takes nothing returns boolean
return(udg_z==false)
endfunction
function Bn4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function Bo4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function Bp4 takes nothing returns boolean
return GetBooleanAnd(Bn4(),Bo4())
endfunction
function Bq4 takes nothing returns boolean
return GetBooleanAnd(Bm4(),Bp4())
endfunction
function Br4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function Bs4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function Bt4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function Bu4 takes nothing returns boolean
if(not Bt4())then
return false
endif
return true
endfunction
function Bv4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function Bw4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function Bx4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function By4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function Bz4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function BA4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not Bz4())then
return false
endif
return true
endfunction
function Ba4 takes nothing returns boolean
if(not BA4())then
return false
endif
return true
endfunction
function BB4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function Bb4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function BC4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function Bc4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function BD4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function BE4 takes nothing returns boolean
if(not BD4())then
return false
endif
return true
endfunction
function B34 takes nothing returns nothing
set udg_d[9]=(udg_d[9]+1)
set udg_T4[9]=(udg_T4[9]+(25*GetHeroLevel(GetDyingUnit())))
if(a64())then
set udg_W4[9]=(udg_W4[9]+1)
set udg_L[1]=false
set udg_l[1]=false
set udg_J[1]=false
else
call DoNothing()
endif
if(aH4())then
set udg_X4[9]=(udg_X4[9]+1)
set udg_L[2]=false
set udg_l[2]=false
set udg_J[2]=false
else
call DoNothing()
endif
if(aI4())then
set udg_j7[9]=(udg_j7[9]+1)
set udg_L[3]=false
set udg_l[3]=false
set udg_J[3]=false
else
call DoNothing()
endif
if(al4())then
set udg_k7[9]=(udg_k7[9]+1)
set udg_L[4]=false
set udg_l[4]=false
set udg_J[4]=false
else
call DoNothing()
endif
if(a14())then
set udg_Y4[9]=(udg_Y4[9]+1)
set udg_L[5]=false
set udg_l[5]=false
set udg_J[5]=false
else
call DoNothing()
endif
if(aJ4())then
set udg_Z4[9]=(udg_Z4[9]+1)
set udg_L[6]=false
set udg_l[6]=false
set udg_J[6]=false
else
call DoNothing()
endif
set udg_j=(udg_j+1)
if(aK4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(aL4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(aP4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(aS4())then
call TriggerExecute(udg_Yu)
else
call DoNothing()
endif
if(a54())then
set udg_e4[2]=(udg_e4[2]+1)
else
call DoNothing()
endif
if(aT4())then
set udg_R7[2]=(udg_R7[2]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function aU4)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(aX4())then
if(aW4())then
call AddHeroXPSwapped(200,udg_m[9],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[9]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(aV4())then
call AddHeroXPSwapped(50,udg_m[9],true)
else
call DoNothing()
endif
endif
if(aZ4())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(a24())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(B44())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(B84())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(Bd4())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(Bg4())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function Bh4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function Bi4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function Bj4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function Bk4)
call TriggerSleepAction(2.00)
if(Bq4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_uo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(Br4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(Bs4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(Bu4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(Bv4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(Bw4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(Ba4())then
call PauseUnitBJ(true,GetDyingUnit())
if(Bx4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(By4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(BB4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(BE4())then
if(Bb4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(BC4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(Bc4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function BF4 takes nothing returns nothing
set udg_Lu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Lu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Lu,Condition(function aG4))
call TriggerAddAction(udg_Lu,function B34)
endfunction
function BG4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(9)))then
return false
endif
if(not(udg_m[10]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function B64 takes nothing returns boolean
if(not BG4())then
return false
endif
return true
endfunction
function BH4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[1]))then
return false
endif
return true
endfunction
function BI4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[2]))then
return false
endif
return true
endfunction
function Bl4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[3]))then
return false
endif
return true
endfunction
function B14 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[4]))then
return false
endif
return true
endfunction
function BJ4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[5]))then
return false
endif
return true
endfunction
function BK4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[6]))then
return false
endif
return true
endfunction
function BL4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function BM4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function BN4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function BO4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function B04 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true)
endfunction
function BP4 takes nothing returns boolean
return GetBooleanAnd(BO4(),B04())
endfunction
function BQ4 takes nothing returns boolean
return GetBooleanAnd(BN4(),BP4())
endfunction
function BR4 takes nothing returns boolean
return(udg_D4==false)
endfunction
function BS4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(9))
endfunction
function B54 takes nothing returns boolean
return GetBooleanAnd(BR4(),BS4())
endfunction
function BT4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function BU4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function BV4 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function BW4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[10])==true)
endfunction
function BX4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[10])==true)
endfunction
function BY4 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function B24 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function BZ4 takes nothing returns boolean
return(udg_z==true)
endfunction
function B_4 takes nothing returns boolean
if(not B24())then
return false
endif
return true
endfunction
function b44 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[2]==3))then
return false
endif
return true
endfunction
function b74 takes nothing returns boolean
if(not b44())then
return false
endif
return true
endfunction
function b84 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[2]==5))then
return false
endif
return true
endfunction
function b94 takes nothing returns boolean
if(not b84())then
return false
endif
return true
endfunction
function bd4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function be4 takes nothing returns boolean
if(not bd4())then
return false
endif
return true
endfunction
function bf4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function bg4 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function bh4 takes nothing returns boolean
return GetBooleanAnd(bf4(),bg4())
endfunction
function bi4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function bj4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function bk4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function bm4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function bn4 takes nothing returns boolean
return(udg_z==false)
endfunction
function bo4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function bp4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function bq4 takes nothing returns boolean
return GetBooleanAnd(bo4(),bp4())
endfunction
function br4 takes nothing returns boolean
return GetBooleanAnd(bn4(),bq4())
endfunction
function bs4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function bt4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function bu4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function bv4 takes nothing returns boolean
if(not bu4())then
return false
endif
return true
endfunction
function bw4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function bx4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function by4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function bz4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function bA4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function ba4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not bA4())then
return false
endif
return true
endfunction
function bB4 takes nothing returns boolean
if(not ba4())then
return false
endif
return true
endfunction
function bb4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function bC4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function bc4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function bD4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function bE4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function b34 takes nothing returns boolean
if(not bE4())then
return false
endif
return true
endfunction
function bF4 takes nothing returns nothing
set udg_d[10]=(udg_d[10]+1)
set udg_T4[10]=(udg_T4[10]+(25*GetHeroLevel(GetDyingUnit())))
if(BH4())then
set udg_W4[10]=(udg_W4[10]+1)
set udg_L[1]=false
set udg_l[1]=false
set udg_J[1]=false
else
call DoNothing()
endif
if(BI4())then
set udg_X4[10]=(udg_X4[10]+1)
set udg_L[2]=false
set udg_l[2]=false
set udg_J[2]=false
else
call DoNothing()
endif
if(Bl4())then
set udg_j7[10]=(udg_j7[10]+1)
set udg_L[3]=false
set udg_l[3]=false
set udg_J[3]=false
else
call DoNothing()
endif
if(B14())then
set udg_k7[10]=(udg_k7[10]+1)
set udg_L[4]=false
set udg_l[4]=false
set udg_J[4]=false
else
call DoNothing()
endif
if(BJ4())then
set udg_Y4[10]=(udg_Y4[10]+1)
set udg_L[5]=false
set udg_l[5]=false
set udg_J[5]=false
else
call DoNothing()
endif
if(BK4())then
set udg_Z4[10]=(udg_Z4[10]+1)
set udg_L[6]=false
set udg_l[6]=false
set udg_J[6]=false
else
call DoNothing()
endif
set udg_j=(udg_j+1)
if(BL4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(BM4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(BQ4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(B54())then
call TriggerExecute(udg_Zu)
else
call DoNothing()
endif
if(BT4())then
set udg_e4[2]=(udg_e4[2]+1)
else
call DoNothing()
endif
if(BU4())then
set udg_R7[2]=(udg_R7[2]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function BV4)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(BY4())then
if(BX4())then
call AddHeroXPSwapped(200,udg_m[10],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[10]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(BW4())then
call AddHeroXPSwapped(50,udg_m[10],true)
else
call DoNothing()
endif
endif
if(B_4())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(BZ4())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(b74())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(b94())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(be4())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(bh4())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function bi4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function bj4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function bk4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function bm4)
call TriggerSleepAction(2.00)
if(br4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_uo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(bs4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(bt4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(bv4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(bw4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(bx4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(bB4())then
call PauseUnitBJ(true,GetDyingUnit())
if(by4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(bz4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(bb4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(b34())then
if(bC4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(bc4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(bD4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function bG4 takes nothing returns nothing
set udg_Mu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Mu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Mu,Condition(function B64))
call TriggerAddAction(udg_Mu,function bF4)
endfunction
function b64 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(10)))then
return false
endif
if(not(udg_m[11]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function bH4 takes nothing returns boolean
if(not b64())then
return false
endif
return true
endfunction
function bI4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[1]))then
return false
endif
return true
endfunction
function bl4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[2]))then
return false
endif
return true
endfunction
function b14 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[3]))then
return false
endif
return true
endfunction
function bJ4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[4]))then
return false
endif
return true
endfunction
function bK4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[5]))then
return false
endif
return true
endfunction
function bL4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[6]))then
return false
endif
return true
endfunction
function bM4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function bN4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function bO4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function b04 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function bP4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true)
endfunction
function bQ4 takes nothing returns boolean
return GetBooleanAnd(b04(),bP4())
endfunction
function bR4 takes nothing returns boolean
return GetBooleanAnd(bO4(),bQ4())
endfunction
function bS4 takes nothing returns boolean
return(udg_D4==false)
endfunction
function b54 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(10))
endfunction
function bT4 takes nothing returns boolean
return GetBooleanAnd(bS4(),b54())
endfunction
function bU4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function bV4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function bW4 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function bX4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[11])==true)
endfunction
function bY4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[11])==true)
endfunction
function b24 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function bZ4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function b_4 takes nothing returns boolean
return(udg_z==true)
endfunction
function C44 takes nothing returns boolean
if(not bZ4())then
return false
endif
return true
endfunction
function C74 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[2]==3))then
return false
endif
return true
endfunction
function C84 takes nothing returns boolean
if(not C74())then
return false
endif
return true
endfunction
function C94 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[2]==5))then
return false
endif
return true
endfunction
function Cd4 takes nothing returns boolean
if(not C94())then
return false
endif
return true
endfunction
function Ce4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function Cf4 takes nothing returns boolean
if(not Ce4())then
return false
endif
return true
endfunction
function Cg4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function Ch4 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function Ci4 takes nothing returns boolean
return GetBooleanAnd(Cg4(),Ch4())
endfunction
function Cj4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Ck4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Cm4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Cn4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Co4 takes nothing returns boolean
return(udg_z==false)
endfunction
function Cp4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function Cq4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function Cr4 takes nothing returns boolean
return GetBooleanAnd(Cp4(),Cq4())
endfunction
function Cs4 takes nothing returns boolean
return GetBooleanAnd(Co4(),Cr4())
endfunction
function Ct4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function Cu4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function Cv4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function Cw4 takes nothing returns boolean
if(not Cv4())then
return false
endif
return true
endfunction
function Cx4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function Cy4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function Cz4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function CA4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function Ca4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function CB4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not Ca4())then
return false
endif
return true
endfunction
function Cb4 takes nothing returns boolean
if(not CB4())then
return false
endif
return true
endfunction
function CC4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function Cc4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function CD4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function CE4 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function C34 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function CF4 takes nothing returns boolean
if(not C34())then
return false
endif
return true
endfunction
function CG4 takes nothing returns nothing
set udg_d[11]=(udg_d[11]+1)
set udg_T4[11]=(udg_T4[11]+(25*GetHeroLevel(GetDyingUnit())))
if(bI4())then
set udg_W4[11]=(udg_W4[11]+1)
set udg_L[1]=false
set udg_l[1]=false
set udg_J[1]=false
else
call DoNothing()
endif
if(bl4())then
set udg_X4[11]=(udg_X4[11]+1)
set udg_L[2]=false
set udg_l[2]=false
set udg_J[2]=false
else
call DoNothing()
endif
if(b14())then
set udg_j7[11]=(udg_j7[11]+1)
set udg_L[3]=false
set udg_l[3]=false
set udg_J[3]=false
else
call DoNothing()
endif
if(bJ4())then
set udg_k7[11]=(udg_k7[11]+1)
set udg_L[4]=false
set udg_l[4]=false
set udg_J[4]=false
else
call DoNothing()
endif
if(bK4())then
set udg_Y4[11]=(udg_Y4[11]+1)
set udg_L[5]=false
set udg_l[5]=false
set udg_J[5]=false
else
call DoNothing()
endif
if(bL4())then
set udg_Z4[11]=(udg_Z4[11]+1)
set udg_L[6]=false
set udg_l[6]=false
set udg_J[6]=false
else
call DoNothing()
endif
set udg_j=(udg_j+1)
if(bM4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(bN4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(bR4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(bT4())then
call TriggerExecute(udg_dv)
else
call DoNothing()
endif
if(bU4())then
set udg_e4[2]=(udg_e4[2]+1)
else
call DoNothing()
endif
if(bV4())then
set udg_R7[2]=(udg_R7[2]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function bW4)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(b24())then
if(bY4())then
call AddHeroXPSwapped(200,udg_m[11],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[11]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(bX4())then
call AddHeroXPSwapped(50,udg_m[11],true)
else
call DoNothing()
endif
endif
if(C44())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(b_4())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(C84())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(Cd4())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(Cf4())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(Ci4())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function Cj4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function Ck4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function Cm4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function Cn4)
call TriggerSleepAction(2.00)
if(Cs4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_uo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(Ct4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(Cu4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(Cw4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(Cx4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(Cy4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(Cb4())then
call PauseUnitBJ(true,GetDyingUnit())
if(Cz4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(CA4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(CC4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(CF4())then
if(Cc4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(CD4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(CE4())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function C64 takes nothing returns nothing
set udg_Nu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Nu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Nu,Condition(function bH4))
call TriggerAddAction(udg_Nu,function CG4)
endfunction
function CH4 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return false
endif
if(not(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(11)))then
return false
endif
if(not(udg_m[12]!=null))then
return false
endif
if(not(GetDyingUnit()!=udg_Ck))then
return false
endif
return true
endfunction
function CI4 takes nothing returns boolean
if(not CH4())then
return false
endif
return true
endfunction
function Cl4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[1]))then
return false
endif
return true
endfunction
function C14 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[2]))then
return false
endif
return true
endfunction
function CJ4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[3]))then
return false
endif
return true
endfunction
function CK4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[4]))then
return false
endif
return true
endfunction
function CL4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[5]))then
return false
endif
return true
endfunction
function CM4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_m[6]))then
return false
endif
return true
endfunction
function CN4 takes nothing returns boolean
return(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function CO4 takes nothing returns boolean
return(IsUnitInGroup(GetDyingUnit(),udg_C4)==true)
endfunction
function C04 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function CP4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function CQ4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true)
endfunction
function CR4 takes nothing returns boolean
return GetBooleanAnd(CP4(),CQ4())
endfunction
function CS4 takes nothing returns boolean
return GetBooleanAnd(C04(),CR4())
endfunction
function C54 takes nothing returns boolean
return(udg_D4==false)
endfunction
function CT4 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnitBJ())==Player(11))
endfunction
function CU4 takes nothing returns boolean
return GetBooleanAnd(C54(),CT4())
endfunction
function CV4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_d4==true))then
return false
endif
return true
endfunction
function CW4 takes nothing returns boolean
if(not(RectContainsUnit(udg_Do,GetDyingUnit())==true))then
return false
endif
if(not(udg_Q7==true))then
return false
endif
return true
endfunction
function CX4 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function CY4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[12])==true)
endfunction
function C24 takes nothing returns boolean
return(IsUnitAliveBJ(udg_m[12])==true)
endfunction
function CZ4 takes nothing returns boolean
if(not(I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]))<I2R(GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]))))then
return false
endif
return true
endfunction
function C_4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsUnit(udg_bn,GetDyingUnit())==true))then
return false
endif
return true
endfunction
function c44 takes nothing returns boolean
return(udg_z==true)
endfunction
function c74 takes nothing returns boolean
if(not C_4())then
return false
endif
return true
endfunction
function c84 takes nothing returns boolean
if(not(udg_d4==true))then
return false
endif
if(not(udg_e4[2]==3))then
return false
endif
return true
endfunction
function c94 takes nothing returns boolean
if(not c84())then
return false
endif
return true
endfunction
function cd4 takes nothing returns boolean
if(not(udg_Q7==true))then
return false
endif
if(not(udg_R7[2]==5))then
return false
endif
return true
endfunction
function ce4 takes nothing returns boolean
if(not cd4())then
return false
endif
return true
endfunction
function cf4 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
if(not(udg_A[24]!=null))then
return false
endif
if(not(MG(udg_A[24],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function cg4 takes nothing returns boolean
if(not cf4())then
return false
endif
return true
endfunction
function ch4 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])==true)
endfunction
function ci4 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]!=null)
endfunction
function cj4 takes nothing returns boolean
return GetBooleanAnd(ch4(),ci4())
endfunction
function ck4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function cm4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function cn4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function co4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function cp4 takes nothing returns boolean
return(udg_z==false)
endfunction
function cq4 takes nothing returns boolean
return(udg_d4==false)
endfunction
function cr4 takes nothing returns boolean
return(udg_Q7==false)
endfunction
function cs4 takes nothing returns boolean
return GetBooleanAnd(cq4(),cr4())
endfunction
function ct4 takes nothing returns boolean
return GetBooleanAnd(cp4(),cs4())
endfunction
function cu4 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function cv4 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function cw4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(GetDyingUnit()!=udg_x))then
return false
endif
if(not(GetDyingUnit()!=udg_y))then
return false
endif
return true
endfunction
function cx4 takes nothing returns boolean
if(not cw4())then
return false
endif
return true
endfunction
function cy4 takes nothing returns boolean
return(udg_d4==true)
endfunction
function cz4 takes nothing returns boolean
return(udg_Q7==true)
endfunction
function cA4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_e)==true)
endfunction
function ca4 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetDyingUnit()),udg_f)==true)
endfunction
function cB4 takes nothing returns boolean
if((GetDyingUnit()==udg_x))then
return true
endif
if((GetDyingUnit()==udg_y))then
return true
endif
return false
endfunction
function cb4 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not cB4())then
return false
endif
return true
endfunction
function cC4 takes nothing returns boolean
if(not cb4())then
return false
endif
return true
endfunction
function cc4 takes nothing returns boolean
if(not(GetPlayerController(GetOwningPlayer(GetDyingUnit()))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function cD4 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function cE4 takes nothing returns boolean
return(udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function c34 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true)
endfunction
function cF4 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677132,GetDyingUnit())==0))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,GetDyingUnit())==0))then
return false
endif
return true
endfunction
function cG4 takes nothing returns boolean
if(not cF4())then
return false
endif
return true
endfunction
function c64 takes nothing returns nothing
set udg_d[12]=(udg_d[12]+1)
set udg_T4[12]=(udg_T4[12]+(25*GetHeroLevel(GetDyingUnit())))
if(Cl4())then
set udg_W4[12]=(udg_W4[12]+1)
set udg_L[1]=false
set udg_l[1]=false
set udg_J[1]=false
else
call DoNothing()
endif
if(C14())then
set udg_X4[12]=(udg_X4[12]+1)
set udg_L[2]=false
set udg_l[2]=false
set udg_J[2]=false
else
call DoNothing()
endif
if(CJ4())then
set udg_j7[12]=(udg_j7[12]+1)
set udg_L[3]=false
set udg_l[3]=false
set udg_J[3]=false
else
call DoNothing()
endif
if(CK4())then
set udg_k7[12]=(udg_k7[12]+1)
set udg_L[4]=false
set udg_l[4]=false
set udg_J[4]=false
else
call DoNothing()
endif
if(CL4())then
set udg_Y4[12]=(udg_Y4[12]+1)
set udg_L[5]=false
set udg_l[5]=false
set udg_J[5]=false
else
call DoNothing()
endif
if(CM4())then
set udg_Z4[12]=(udg_Z4[12]+1)
set udg_L[6]=false
set udg_l[6]=false
set udg_J[6]=false
else
call DoNothing()
endif
set udg_j=(udg_j+1)
if(CN4())then
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]=false
else
call DoNothing()
endif
if(CO4())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_C4)
else
call DoNothing()
endif
if(CS4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" defeat "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])))
else
call DoNothing()
endif
if(CU4())then
call TriggerExecute(udg_ev)
else
call DoNothing()
endif
if(CV4())then
set udg_e4[2]=(udg_e4[2]+1)
else
call DoNothing()
endif
if(CW4())then
set udg_R7[2]=(udg_R7[2]+1)
else
call DoNothing()
endif
call TriggerExecute(udg_Ct)
call ConditionalTriggerExecute(udg_Dt)
call ConditionalTriggerExecute(udg_Et)
call AdjustPlayerStateBJ((25*GetHeroLevel(GetDyingUnit())),GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagUnitBJ(("+"+I2S((25*GetHeroLevel(GetDyingUnit())))),GetDyingUnit(),0,12.00,100,58.00,0.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function CX4)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
if(CZ4())then
if(C24())then
call AddHeroXPSwapped(200,udg_m[12],true)
else
call DoNothing()
endif
call AdjustPlayerStateBJ(1,GetOwningPlayer(udg_m[12]),PLAYER_STATE_RESOURCE_LUMBER)
else
if(CY4())then
call AddHeroXPSwapped(50,udg_m[12],true)
else
call DoNothing()
endif
endif
if(c74())then
call AddHeroXPSwapped(400,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],true)
call AdjustPlayerStateBJ(800,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(3,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_jt)
if(c44())then
set udg_z=false
else
call DoNothing()
endif
else
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
endif
if(c94())then
set udg_d4=false
call TriggerExecute(udg_et)
else
call DoNothing()
endif
if(ce4())then
set udg_Q7=false
call TriggerExecute(udg_gt)
else
call DoNothing()
endif
if(cg4())then
call KillUnit(udg_A[24])
set udg_A[24]=null
else
call DoNothing()
endif
if(cj4())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))])
else
call DoNothing()
endif
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869834349),function ck4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869836407),function cm4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1869898354),function cn4)
call ForGroupBJ(k6(GetOwningPlayer(GetDyingUnit()),1868853091),function co4)
call TriggerSleepAction(2.00)
if(ct4())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_uo),0.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call ReviveHeroLoc(GetDyingUnit(),GetUnitLoc(GetDyingUnit()),true)
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
call SetUnitManaPercentBJ(GetDyingUnit(),100)
if(cu4())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetDyingUnit()),GetDyingUnit(),0,0,false)
else
call DoNothing()
endif
if(cv4())then
call TriggerExecute(udg_Us)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(GetDyingUnit(),100)
call SetUnitVertexColorBJ(GetDyingUnit(),100,100,100,0)
call SelectUnitForPlayerSingle(GetDyingUnit(),GetOwningPlayer(GetDyingUnit()))
if(cx4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(cy4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(cz4())then
call PauseUnitBJ(true,GetDyingUnit())
else
call DoNothing()
endif
if(cC4())then
call PauseUnitBJ(true,GetDyingUnit())
if(cA4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_uo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
if(ca4())then
call SetUnitPositionLocFacingLocBJ(GetDyingUnit(),GetRectCenter(udg_wo),GetUnitLoc(udg_mG))
else
call DoNothing()
endif
else
call DoNothing()
endif
if(cc4())then
call TriggerExecute(udg_Os)
else
call DoNothing()
endif
if(cG4())then
if(cD4())then
call UnitAddAbilityBJ(1093677913,GetDyingUnit())
else
call DoNothing()
endif
if(cE4())then
call UnitAddAbilityBJ(1093677132,GetDyingUnit())
else
call DoNothing()
endif
if(c34())then
call UnitAddAbilityBJ(1093677624,GetDyingUnit())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function cH4 takes nothing returns nothing
set udg_Ou=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ou,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Ou,Condition(function CI4))
call TriggerAddAction(udg_Ou,function c64)
endfunction
function cI4 takes nothing returns boolean
if((GetDyingUnit()==udg_Ie[1]))then
return true
endif
if((GetDyingUnit()==udg_Ie[2]))then
return true
endif
if((GetDyingUnit()==udg_Ie[3]))then
return true
endif
if((GetDyingUnit()==udg_Ie[4]))then
return true
endif
if((GetDyingUnit()==udg_Ie[5]))then
return true
endif
if((GetDyingUnit()==udg_Ie[6]))then
return true
endif
if((GetDyingUnit()==udg_Ie[7]))then
return true
endif
if((GetDyingUnit()==udg_Ie[8]))then
return true
endif
if((GetDyingUnit()==udg_Ie[9]))then
return true
endif
if((GetDyingUnit()==udg_Ie[10]))then
return true
endif
if((GetDyingUnit()==udg_Ie[11]))then
return true
endif
if((GetDyingUnit()==udg_Ie[12]))then
return true
endif
return false
endfunction
function cl4 takes nothing returns boolean
if(not cI4())then
return false
endif
return true
endfunction
function c14 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[1]))then
return false
endif
return true
endfunction
function cJ4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[2]))then
return false
endif
return true
endfunction
function cK4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[3]))then
return false
endif
return true
endfunction
function cL4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[4]))then
return false
endif
return true
endfunction
function cM4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[5]))then
return false
endif
return true
endfunction
function cN4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[6]))then
return false
endif
return true
endfunction
function cO4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[7]))then
return false
endif
return true
endfunction
function c04 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[8]))then
return false
endif
return true
endfunction
function cP4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[9]))then
return false
endif
return true
endfunction
function cQ4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[10]))then
return false
endif
return true
endfunction
function cR4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[11]))then
return false
endif
return true
endfunction
function cS4 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Ie[12]))then
return false
endif
return true
endfunction
function c54 takes nothing returns nothing
if(c14())then
set udg_c4[1]=0
set udg_Ie[1]=null
else
call DoNothing()
endif
if(cJ4())then
set udg_c4[2]=0
set udg_Ie[2]=null
else
call DoNothing()
endif
if(cK4())then
set udg_c4[3]=0
set udg_Ie[3]=null
else
call DoNothing()
endif
if(cL4())then
set udg_c4[4]=0
set udg_Ie[4]=null
else
call DoNothing()
endif
if(cM4())then
set udg_c4[5]=0
set udg_Ie[5]=null
else
call DoNothing()
endif
if(cN4())then
set udg_c4[6]=0
set udg_Ie[6]=null
else
call DoNothing()
endif
if(cO4())then
set udg_c4[7]=0
set udg_Ie[7]=null
else
call DoNothing()
endif
if(c04())then
set udg_c4[8]=0
set udg_Ie[8]=null
else
call DoNothing()
endif
if(cP4())then
set udg_c4[9]=0
set udg_Ie[9]=null
else
call DoNothing()
endif
if(cQ4())then
set udg_c4[10]=0
set udg_Ie[10]=null
else
call DoNothing()
endif
if(cR4())then
set udg_c4[11]=0
set udg_Ie[11]=null
else
call DoNothing()
endif
if(cS4())then
set udg_c4[12]=0
set udg_Ie[12]=null
else
call DoNothing()
endif
endfunction
function cT4 takes nothing returns nothing
set udg_Pu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Pu,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Pu,Condition(function cl4))
call TriggerAddAction(udg_Pu,function c54)
endfunction
function cU4 takes nothing returns boolean
if(not(udg_c4[1]==2))then
return false
endif
return true
endfunction
function cV4 takes nothing returns boolean
if(not(udg_c4[1]==3))then
return false
endif
return true
endfunction
function cW4 takes nothing returns boolean
if(not(udg_c4[1]==4))then
return false
endif
return true
endfunction
function cX4 takes nothing returns boolean
if(not(udg_c4[1]==5))then
return false
endif
return true
endfunction
function cY4 takes nothing returns boolean
if(not(udg_c4[1]>=6))then
return false
endif
return true
endfunction
function c24 takes nothing returns boolean
if(not(udg_Ie[1]==null))then
return false
endif
return true
endfunction
function cZ4 takes nothing returns nothing
set udg_c4[1]=(udg_c4[1]+1)
if(cU4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(cV4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(cW4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(cX4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(cY4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(c24())then
set udg_le[1]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(0),udg_le[1],bj_UNIT_FACING)
set udg_Ie[1]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[1])
call RemoveLocation(udg_le[1])
set udg_le[1]=null
else
call RemoveUnit(udg_Ie[1])
set udg_Ie[1]=null
set udg_le[1]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(0),udg_le[1],bj_UNIT_FACING)
set udg_Ie[1]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[1])
call RemoveLocation(udg_le[1])
set udg_le[1]=null
endif
endfunction
function c_4 takes nothing returns nothing
set udg_Qu=CreateTrigger()
call TriggerAddAction(udg_Qu,function cZ4)
endfunction
function D44 takes nothing returns boolean
if(not(udg_c4[2]==2))then
return false
endif
return true
endfunction
function D74 takes nothing returns boolean
if(not(udg_c4[2]==3))then
return false
endif
return true
endfunction
function D84 takes nothing returns boolean
if(not(udg_c4[2]==4))then
return false
endif
return true
endfunction
function D94 takes nothing returns boolean
if(not(udg_c4[2]==5))then
return false
endif
return true
endfunction
function Dd4 takes nothing returns boolean
if(not(udg_c4[2]>=6))then
return false
endif
return true
endfunction
function De4 takes nothing returns boolean
if(not(udg_Ie[2]==null))then
return false
endif
return true
endfunction
function Df4 takes nothing returns nothing
set udg_c4[2]=(udg_c4[2]+1)
if(D44())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(D74())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(D84())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(D94())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(Dd4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(De4())then
set udg_le[2]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(1),udg_le[2],bj_UNIT_FACING)
set udg_Ie[2]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[2])
call RemoveLocation(udg_le[2])
set udg_le[2]=null
else
call RemoveUnit(udg_Ie[2])
set udg_Ie[2]=null
set udg_le[2]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(1),udg_le[2],bj_UNIT_FACING)
set udg_Ie[2]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[2])
call RemoveLocation(udg_le[2])
set udg_le[2]=null
endif
endfunction
function Dg4 takes nothing returns nothing
set udg_Ru=CreateTrigger()
call TriggerAddAction(udg_Ru,function Df4)
endfunction
function Dh4 takes nothing returns boolean
if(not(udg_c4[3]==2))then
return false
endif
return true
endfunction
function Di4 takes nothing returns boolean
if(not(udg_c4[3]==3))then
return false
endif
return true
endfunction
function Dj4 takes nothing returns boolean
if(not(udg_c4[3]==4))then
return false
endif
return true
endfunction
function Dk4 takes nothing returns boolean
if(not(udg_c4[3]==5))then
return false
endif
return true
endfunction
function Dm4 takes nothing returns boolean
if(not(udg_c4[3]>=6))then
return false
endif
return true
endfunction
function Dn4 takes nothing returns boolean
if(not(udg_Ie[3]==null))then
return false
endif
return true
endfunction
function Do4 takes nothing returns nothing
set udg_c4[3]=(udg_c4[3]+1)
if(Dh4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(Di4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(Dj4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(Dk4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(Dm4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(Dn4())then
set udg_le[3]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(2),udg_le[3],bj_UNIT_FACING)
set udg_Ie[3]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[3])
call RemoveLocation(udg_le[3])
set udg_le[3]=null
else
call RemoveUnit(udg_Ie[3])
set udg_Ie[3]=null
set udg_le[3]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(2),udg_le[3],bj_UNIT_FACING)
set udg_Ie[3]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[3])
call RemoveLocation(udg_le[3])
set udg_le[3]=null
endif
endfunction
function Dp4 takes nothing returns nothing
set udg_Su=CreateTrigger()
call TriggerAddAction(udg_Su,function Do4)
endfunction
function Dq4 takes nothing returns boolean
if(not(udg_c4[4]==2))then
return false
endif
return true
endfunction
function Dr4 takes nothing returns boolean
if(not(udg_c4[4]==3))then
return false
endif
return true
endfunction
function Ds4 takes nothing returns boolean
if(not(udg_c4[4]==4))then
return false
endif
return true
endfunction
function Dt4 takes nothing returns boolean
if(not(udg_c4[4]==5))then
return false
endif
return true
endfunction
function Du4 takes nothing returns boolean
if(not(udg_c4[4]>=6))then
return false
endif
return true
endfunction
function Dv4 takes nothing returns boolean
if(not(udg_Ie[4]==null))then
return false
endif
return true
endfunction
function Dw4 takes nothing returns nothing
set udg_c4[4]=(udg_c4[4]+1)
if(Dq4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(Dr4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(Ds4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(Dt4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(Du4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(Dv4())then
set udg_le[4]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(3),udg_le[4],bj_UNIT_FACING)
set udg_Ie[4]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[4])
call RemoveLocation(udg_le[4])
set udg_le[4]=null
else
call RemoveUnit(udg_Ie[4])
set udg_Ie[4]=null
set udg_le[4]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(3),udg_le[4],bj_UNIT_FACING)
set udg_Ie[4]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[4])
call RemoveLocation(udg_le[4])
set udg_le[4]=null
endif
endfunction
function Dx4 takes nothing returns nothing
set udg_Tu=CreateTrigger()
call TriggerAddAction(udg_Tu,function Dw4)
endfunction
function Dy4 takes nothing returns boolean
if(not(udg_c4[5]==2))then
return false
endif
return true
endfunction
function Dz4 takes nothing returns boolean
if(not(udg_c4[5]==3))then
return false
endif
return true
endfunction
function DA4 takes nothing returns boolean
if(not(udg_c4[5]==4))then
return false
endif
return true
endfunction
function Da4 takes nothing returns boolean
if(not(udg_c4[5]==5))then
return false
endif
return true
endfunction
function DB4 takes nothing returns boolean
if(not(udg_c4[5]>=6))then
return false
endif
return true
endfunction
function Db4 takes nothing returns boolean
if(not(udg_Ie[5]==null))then
return false
endif
return true
endfunction
function DC4 takes nothing returns nothing
set udg_c4[5]=(udg_c4[5]+1)
if(Dy4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(Dz4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(DA4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(Da4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(DB4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(Db4())then
set udg_le[5]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(4),udg_le[5],bj_UNIT_FACING)
set udg_Ie[5]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[5])
call RemoveLocation(udg_le[5])
set udg_le[5]=null
else
call RemoveUnit(udg_Ie[5])
set udg_Ie[5]=null
set udg_le[5]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(4),udg_le[5],bj_UNIT_FACING)
set udg_Ie[5]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[5])
call RemoveLocation(udg_le[5])
set udg_le[5]=null
endif
endfunction
function Dc4 takes nothing returns nothing
set udg_Uu=CreateTrigger()
call TriggerAddAction(udg_Uu,function DC4)
endfunction
function DD4 takes nothing returns boolean
if(not(udg_c4[6]==2))then
return false
endif
return true
endfunction
function DE4 takes nothing returns boolean
if(not(udg_c4[6]==3))then
return false
endif
return true
endfunction
function D34 takes nothing returns boolean
if(not(udg_c4[6]==4))then
return false
endif
return true
endfunction
function DF4 takes nothing returns boolean
if(not(udg_c4[6]==5))then
return false
endif
return true
endfunction
function DG4 takes nothing returns boolean
if(not(udg_c4[6]>=6))then
return false
endif
return true
endfunction
function D64 takes nothing returns boolean
if(not(udg_Ie[6]==null))then
return false
endif
return true
endfunction
function DH4 takes nothing returns nothing
set udg_c4[6]=(udg_c4[6]+1)
if(DD4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(DE4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(D34())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(DF4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(DG4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(D64())then
set udg_le[6]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(5),udg_le[6],bj_UNIT_FACING)
set udg_Ie[6]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[6])
call RemoveLocation(udg_le[6])
set udg_le[6]=null
else
call RemoveUnit(udg_Ie[6])
set udg_Ie[6]=null
set udg_le[6]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(5),udg_le[6],bj_UNIT_FACING)
set udg_Ie[6]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[6])
call RemoveLocation(udg_le[6])
set udg_le[6]=null
endif
endfunction
function DI4 takes nothing returns nothing
set udg_Vu=CreateTrigger()
call TriggerAddAction(udg_Vu,function DH4)
endfunction
function Dl4 takes nothing returns boolean
if(not(udg_c4[7]==2))then
return false
endif
return true
endfunction
function D14 takes nothing returns boolean
if(not(udg_c4[7]==3))then
return false
endif
return true
endfunction
function DJ4 takes nothing returns boolean
if(not(udg_c4[7]==4))then
return false
endif
return true
endfunction
function DK4 takes nothing returns boolean
if(not(udg_c4[7]==5))then
return false
endif
return true
endfunction
function DL4 takes nothing returns boolean
if(not(udg_c4[7]>=6))then
return false
endif
return true
endfunction
function DM4 takes nothing returns boolean
if(not(udg_Ie[7]==null))then
return false
endif
return true
endfunction
function DN4 takes nothing returns nothing
set udg_c4[7]=(udg_c4[7]+1)
if(Dl4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(D14())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(DJ4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(DK4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(DL4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(DM4())then
set udg_le[7]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(6),udg_le[7],bj_UNIT_FACING)
set udg_Ie[7]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[7])
call RemoveLocation(udg_le[7])
set udg_le[7]=null
else
call RemoveUnit(udg_Ie[7])
set udg_Ie[7]=null
set udg_le[7]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(6),udg_le[7],bj_UNIT_FACING)
set udg_Ie[7]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[7])
call RemoveLocation(udg_le[7])
set udg_le[7]=null
endif
endfunction
function DO4 takes nothing returns nothing
set udg_Wu=CreateTrigger()
call TriggerAddAction(udg_Wu,function DN4)
endfunction
function D04 takes nothing returns boolean
if(not(udg_c4[8]==2))then
return false
endif
return true
endfunction
function DP4 takes nothing returns boolean
if(not(udg_c4[8]==3))then
return false
endif
return true
endfunction
function DQ4 takes nothing returns boolean
if(not(udg_c4[8]==4))then
return false
endif
return true
endfunction
function DR4 takes nothing returns boolean
if(not(udg_c4[8]==5))then
return false
endif
return true
endfunction
function DS4 takes nothing returns boolean
if(not(udg_c4[8]>=6))then
return false
endif
return true
endfunction
function D54 takes nothing returns boolean
if(not(udg_Ie[8]==null))then
return false
endif
return true
endfunction
function DT4 takes nothing returns nothing
set udg_c4[8]=(udg_c4[8]+1)
if(D04())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(DP4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(DQ4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(DR4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(DS4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(D54())then
set udg_le[8]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(7),udg_le[8],bj_UNIT_FACING)
set udg_Ie[8]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[8])
call RemoveLocation(udg_le[8])
set udg_le[8]=null
else
call RemoveUnit(udg_Ie[8])
set udg_Ie[8]=null
set udg_le[8]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(7),udg_le[8],bj_UNIT_FACING)
set udg_Ie[8]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[8])
call RemoveLocation(udg_le[8])
set udg_le[8]=null
endif
endfunction
function DU4 takes nothing returns nothing
set udg_Xu=CreateTrigger()
call TriggerAddAction(udg_Xu,function DT4)
endfunction
function DV4 takes nothing returns boolean
if(not(udg_c4[9]==2))then
return false
endif
return true
endfunction
function DW4 takes nothing returns boolean
if(not(udg_c4[9]==3))then
return false
endif
return true
endfunction
function DX4 takes nothing returns boolean
if(not(udg_c4[9]==4))then
return false
endif
return true
endfunction
function DY4 takes nothing returns boolean
if(not(udg_c4[9]==5))then
return false
endif
return true
endfunction
function D24 takes nothing returns boolean
if(not(udg_c4[9]>=6))then
return false
endif
return true
endfunction
function DZ4 takes nothing returns boolean
if(not(udg_Ie[9]==null))then
return false
endif
return true
endfunction
function D_4 takes nothing returns nothing
set udg_c4[9]=(udg_c4[9]+1)
if(DV4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(DW4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(DX4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(DY4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(D24())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(DZ4())then
set udg_le[9]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(8),udg_le[9],bj_UNIT_FACING)
set udg_Ie[9]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[9])
call RemoveLocation(udg_le[9])
set udg_le[9]=null
else
call RemoveUnit(udg_Ie[9])
set udg_Ie[9]=null
set udg_le[9]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(8),udg_le[9],bj_UNIT_FACING)
set udg_Ie[9]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[9])
call RemoveLocation(udg_le[9])
set udg_le[9]=null
endif
endfunction
function E44 takes nothing returns nothing
set udg_Yu=CreateTrigger()
call TriggerAddAction(udg_Yu,function D_4)
endfunction
function E74 takes nothing returns boolean
if(not(udg_c4[10]==2))then
return false
endif
return true
endfunction
function E84 takes nothing returns boolean
if(not(udg_c4[10]==3))then
return false
endif
return true
endfunction
function E94 takes nothing returns boolean
if(not(udg_c4[10]==4))then
return false
endif
return true
endfunction
function Ed4 takes nothing returns boolean
if(not(udg_c4[10]==5))then
return false
endif
return true
endfunction
function Ee4 takes nothing returns boolean
if(not(udg_c4[10]>=6))then
return false
endif
return true
endfunction
function Ef4 takes nothing returns boolean
if(not(udg_Ie[10]==null))then
return false
endif
return true
endfunction
function Eg4 takes nothing returns nothing
set udg_c4[10]=(udg_c4[10]+1)
if(E74())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(E84())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(E94())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(Ed4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(Ee4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(Ef4())then
set udg_le[10]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(9),udg_le[10],bj_UNIT_FACING)
set udg_Ie[10]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[10])
call RemoveLocation(udg_le[10])
set udg_le[10]=null
else
call RemoveUnit(udg_Ie[10])
set udg_Ie[10]=null
set udg_le[10]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(9),udg_le[10],bj_UNIT_FACING)
set udg_Ie[10]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[10])
call RemoveLocation(udg_le[10])
set udg_le[10]=null
endif
endfunction
function Eh4 takes nothing returns nothing
set udg_Zu=CreateTrigger()
call TriggerAddAction(udg_Zu,function Eg4)
endfunction
function Ei4 takes nothing returns boolean
if(not(udg_c4[11]==2))then
return false
endif
return true
endfunction
function Ej4 takes nothing returns boolean
if(not(udg_c4[11]==3))then
return false
endif
return true
endfunction
function Ek4 takes nothing returns boolean
if(not(udg_c4[11]==4))then
return false
endif
return true
endfunction
function Em4 takes nothing returns boolean
if(not(udg_c4[11]==5))then
return false
endif
return true
endfunction
function En4 takes nothing returns boolean
if(not(udg_c4[11]>=6))then
return false
endif
return true
endfunction
function Eo4 takes nothing returns boolean
if(not(udg_Ie[11]==null))then
return false
endif
return true
endfunction
function Ep4 takes nothing returns nothing
set udg_c4[11]=(udg_c4[11]+1)
if(Ei4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(Ej4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(Ek4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(Em4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(En4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(Eo4())then
set udg_le[11]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(10),udg_le[11],bj_UNIT_FACING)
set udg_Ie[11]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[11])
call RemoveLocation(udg_le[11])
set udg_le[11]=null
else
call RemoveUnit(udg_Ie[11])
set udg_Ie[11]=null
set udg_le[11]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(10),udg_le[11],bj_UNIT_FACING)
set udg_Ie[11]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[11])
call RemoveLocation(udg_le[11])
set udg_le[11]=null
endif
endfunction
function Eq4 takes nothing returns nothing
set udg_dv=CreateTrigger()
call TriggerAddAction(udg_dv,function Ep4)
endfunction
function Er4 takes nothing returns boolean
if(not(udg_c4[12]==2))then
return false
endif
return true
endfunction
function Es4 takes nothing returns boolean
if(not(udg_c4[12]==3))then
return false
endif
return true
endfunction
function Et4 takes nothing returns boolean
if(not(udg_c4[12]==4))then
return false
endif
return true
endfunction
function Eu4 takes nothing returns boolean
if(not(udg_c4[12]==5))then
return false
endif
return true
endfunction
function Ev4 takes nothing returns boolean
if(not(udg_c4[12]>=6))then
return false
endif
return true
endfunction
function Ew4 takes nothing returns boolean
if(not(udg_Ie[12]==null))then
return false
endif
return true
endfunction
function Ex4 takes nothing returns nothing
set udg_c4[12]=(udg_c4[12]+1)
if(Er4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c000042ffDouble Kill|r!"))
call PlaySoundBJ(udg_Kp)
else
call DoNothing()
endif
if(Es4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got a |c0020c000Triple Kill|r!!!"))
call PlaySoundBJ(udg_ds)
else
call DoNothing()
endif
if(Et4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just got an |c0000FFFFUltra Kill|r!!!"))
call PlaySoundBJ(udg_hs)
else
call DoNothing()
endif
if(Eu4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" is on a |c0000A8FCRampage|r!!!"))
call PlaySoundBJ(udg_rr)
else
call DoNothing()
endif
if(Ev4())then
call DisplayTimedTextToForce(GetPlayersAll(),2.60,(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just did a complete |c000070A6Humiliation|r!!!!"))
call PlaySoundBJ(udg_zq)
else
call DoNothing()
endif
if(Ew4())then
set udg_le[12]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(11),udg_le[12],bj_UNIT_FACING)
set udg_Ie[12]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[12])
call RemoveLocation(udg_le[12])
set udg_le[12]=null
else
call RemoveUnit(udg_Ie[12])
set udg_Ie[12]=null
set udg_le[12]=GetRectCenter(GetPlayableMapRect())
call CreateNUnitsAtLoc(1,1966092338,Player(11),udg_le[12],bj_UNIT_FACING)
set udg_Ie[12]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Ie[12])
call RemoveLocation(udg_le[12])
set udg_le[12]=null
endif
endfunction
function Ey4 takes nothing returns nothing
set udg_ev=CreateTrigger()
call TriggerAddAction(udg_ev,function Ex4)
endfunction
function Ez4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1734567276)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1650814070)==true))then
return false
endif
return true
endfunction
function EA4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1651732580))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1734567276))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1650814070))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetManipulatingUnit())
endfunction
function Ea4 takes nothing returns nothing
set udg_fv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_fv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_fv,Condition(function Ez4))
call TriggerAddAction(udg_fv,function EA4)
endfunction
function EB4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1734567276)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1650946932)==true))then
return false
endif
return true
endfunction
function Eb4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1651732580))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1734567276))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1650946932))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetManipulatingUnit())
endfunction
function EC4 takes nothing returns nothing
set udg_gv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_gv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_gv,Condition(function EB4))
call TriggerAddAction(udg_gv,function Eb4)
endfunction
function Ec4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1734567276)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1667854953)==true))then
return false
endif
return true
endfunction
function ED4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1651732580))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1734567276))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1667854953))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetManipulatingUnit())
endfunction
function EE4 takes nothing returns nothing
set udg_hv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_hv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_hv,Condition(function Ec4))
call TriggerAddAction(udg_hv,function ED4)
endfunction
function E34 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1668181858)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1920169009)==true))then
return false
endif
return true
endfunction
function EF4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1668181858))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1920169009))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894834,GetManipulatingUnit())
endfunction
function EG4 takes nothing returns nothing
set udg_iv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_iv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_iv,Condition(function E34))
call TriggerAddAction(udg_iv,function EF4)
endfunction
function E64 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1668181858)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1918986033)==true))then
return false
endif
return true
endfunction
function EH4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1668181858))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1918986033))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894835,GetManipulatingUnit())
endfunction
function EI4 takes nothing returns nothing
set udg_jv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_jv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_jv,Condition(function E64))
call TriggerAddAction(udg_jv,function EH4)
endfunction
function El4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1668181858)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1919512113)==true))then
return false
endif
return true
endfunction
function E14 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1668181858))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1919512113))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894837,GetManipulatingUnit())
endfunction
function EJ4 takes nothing returns nothing
set udg_kv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_kv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_kv,Condition(function El4))
call TriggerAddAction(udg_kv,function E14)
endfunction
function EK4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1920428410)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1919182130)==true))then
return false
endif
return true
endfunction
function EL4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1920428410))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1919182130))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895120,GetManipulatingUnit())
endfunction
function EM4 takes nothing returns nothing
set udg_mv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_mv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_mv,Condition(function EK4))
call TriggerAddAction(udg_mv,function EL4)
endfunction
function EN4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894863)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895350)==true))then
return false
endif
return true
endfunction
function EO4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894863))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894838))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895350))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894839,GetManipulatingUnit())
endfunction
function E04 takes nothing returns nothing
set udg_nv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_nv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_nv,Condition(function EN4))
call TriggerAddAction(udg_nv,function EO4)
endfunction
function EP4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894870)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895367)==true))then
return false
endif
return true
endfunction
function EQ4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894870))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894838))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895367))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895118,GetManipulatingUnit())
endfunction
function ER4 takes nothing returns nothing
set udg_ov=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ov,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_ov,Condition(function EP4))
call TriggerAddAction(udg_ov,function EQ4)
endfunction
function ES4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895606)==true))then
return false
endif
return true
endfunction
function E54 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894874))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894838))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895606))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895379,GetManipulatingUnit())
endfunction
function ET4 takes nothing returns nothing
set udg_pv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_pv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_pv,Condition(function ES4))
call TriggerAddAction(udg_pv,function E54)
endfunction
function EU4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895096)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1919182130)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895362)==true))then
return false
endif
return true
endfunction
function EV4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895096))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1919182130))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895362))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894871,GetManipulatingUnit())
endfunction
function EW4 takes nothing returns nothing
set udg_qv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_qv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_qv,Condition(function EU4))
call TriggerAddAction(udg_qv,function EV4)
endfunction
function EX4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894869)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1918989369)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895348)==true))then
return false
endif
return true
endfunction
function EY4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894869))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1918989369))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895348))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895106,GetManipulatingUnit())
endfunction
function E24 takes nothing returns nothing
set udg_rv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_rv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_rv,Condition(function EX4))
call TriggerAddAction(udg_rv,function EY4)
endfunction
function EZ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894869)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895885)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227896114)==true))then
return false
endif
return true
endfunction
function E_4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894869))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895885))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227896114))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895882,GetManipulatingUnit())
endfunction
function F44 takes nothing returns nothing
set udg_sv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_sv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_sv,Condition(function EZ4))
call TriggerAddAction(udg_sv,function E_4)
endfunction
function F74 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895096)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895105)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895097)==true))then
return false
endif
return true
endfunction
function F84 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895096))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895105))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895097))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895361,GetManipulatingUnit())
endfunction
function F94 takes nothing returns nothing
set udg_tv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_tv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_tv,Condition(function F74))
call TriggerAddAction(udg_tv,function F84)
endfunction
function Fd4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894864)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895105)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895089)==true))then
return false
endif
return true
endfunction
function Fe4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Ff4 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function Fg4 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function Fh4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894864))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895105))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895089))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895122,GetManipulatingUnit())
if(Fg4())then
call ForGroupBJ(d6(GetPlayableMapRect()),function Fe4)
call ForForce(GetPlayersAll(),function Ff4)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Fi4 takes nothing returns nothing
set udg_uv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_uv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_uv,Condition(function Fd4))
call TriggerAddAction(udg_uv,function Fh4)
endfunction
function Fj4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894872)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1650946932)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895351)==true))then
return false
endif
return true
endfunction
function Fk4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894872))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1650946932))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895351))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895111,GetManipulatingUnit())
endfunction
function Fm4 takes nothing returns nothing
set udg_vv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_vv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_vv,Condition(function Fj4))
call TriggerAddAction(udg_vv,function Fk4)
endfunction
function Fn4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894873)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1650814070)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895352)==true))then
return false
endif
return true
endfunction
function Fo4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894873))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1650814070))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895352))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895112,GetManipulatingUnit())
endfunction
function Fp4 takes nothing returns nothing
set udg_wv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_wv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_wv,Condition(function Fn4))
call TriggerAddAction(udg_wv,function Fo4)
endfunction
function Fq4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894873)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1667854953)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895368)==true))then
return false
endif
return true
endfunction
function Fr4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894873))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1667854953))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895368))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895347,GetManipulatingUnit())
endfunction
function Fs4 takes nothing returns nothing
set udg_xv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_xv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_xv,Condition(function Fq4))
call TriggerAddAction(udg_xv,function Fr4)
endfunction
function Ft4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895091)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1836016756)==true))then
return false
endif
return true
endfunction
function Fu4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895091))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1836016756))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895109,GetManipulatingUnit())
endfunction
function Fv4 takes nothing returns nothing
set udg_yv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_yv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_yv,Condition(function Ft4))
call TriggerAddAction(udg_yv,function Fu4)
endfunction
function Fw4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895353)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1836016756)==true))then
return false
endif
return true
endfunction
function Fx4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895353))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1836016756))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895119,GetManipulatingUnit())
endfunction
function Fy4 takes nothing returns nothing
set udg_zv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_zv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_zv,Condition(function Fw4))
call TriggerAddAction(udg_zv,function Fx4)
endfunction
function Fz4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895605)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1836016756)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895120)==true))then
return false
endif
return true
endfunction
function FA4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895605))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1836016756))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895120))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895128,GetManipulatingUnit())
endfunction
function Fa4 takes nothing returns nothing
set udg_Av=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Av,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Av,Condition(function Fz4))
call TriggerAddAction(udg_Av,function FA4)
endfunction
function FB4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895091)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894864)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1651663203)==true))then
return false
endif
return true
endfunction
function Fb4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895091))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894864))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1651663203))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895121,GetManipulatingUnit())
endfunction
function FC4 takes nothing returns nothing
set udg_av=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_av,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_av,Condition(function FB4))
call TriggerAddAction(udg_av,function Fb4)
endfunction
function Fc4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894864)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894865)==true))then
return false
endif
return true
endfunction
function FD4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894864))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894865))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894863,GetManipulatingUnit())
endfunction
function FE4 takes nothing returns nothing
set udg_Bv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Bv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Bv,Condition(function Fc4))
call TriggerAddAction(udg_Bv,function FD4)
endfunction
function F34 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894863)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894869)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894870)==true))then
return false
endif
return true
endfunction
function FF4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894863))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894869))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894870))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894862,GetManipulatingUnit())
endfunction
function FG4 takes nothing returns nothing
set udg_bv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_bv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_bv,Condition(function F34))
call TriggerAddAction(udg_bv,function FF4)
endfunction
function F64 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895111)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895112)==true))then
return false
endif
return true
endfunction
function FH4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895111))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895112))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895092,GetManipulatingUnit())
endfunction
function FI4 takes nothing returns nothing
set udg_Cv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Cv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Cv,Condition(function F64))
call TriggerAddAction(udg_Cv,function FH4)
endfunction
function Fl4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895106)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895094)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894858)==true))then
return false
endif
return true
endfunction
function F14 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895106))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895094))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894858))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895107,GetManipulatingUnit())
endfunction
function FJ4 takes nothing returns nothing
set udg_cv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_cv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_cv,Condition(function Fl4))
call TriggerAddAction(udg_cv,function F14)
endfunction
function FK4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894871)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895347)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895608)==true))then
return false
endif
return true
endfunction
function FL4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894871))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895347))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895608))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895607,GetManipulatingUnit())
endfunction
function FM4 takes nothing returns nothing
set udg_Dv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Dv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Dv,Condition(function FK4))
call TriggerAddAction(udg_Dv,function FL4)
endfunction
function FN4 takes nothing returns boolean
return(MG(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function FO4 takes nothing returns boolean
return(MG(GetAttackedUnitBJ(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function F04 takes nothing returns boolean
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not GetBooleanAnd(FN4(),FO4()))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttacker(),1227895607)==true))then
return false
endif
return true
endfunction
function FP4 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())>(0.85*(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetAttackedUnitBJ())-GetUnitStateSwap(UNIT_STATE_MANA,GetAttackedUnitBJ())))))then
return false
endif
return true
endfunction
function FQ4 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=6))then
return false
endif
return true
endfunction
function FR4 takes nothing returns nothing
if(FQ4())then
if(FP4())then
call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())-(0.85*(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetAttackedUnitBJ())-GetUnitStateSwap(UNIT_STATE_MANA,GetAttackedUnitBJ())))))
else
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endif
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endfunction
function FS4 takes nothing returns nothing
set udg_Ev=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ev,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_Ev,Condition(function F04))
call TriggerAddAction(udg_Ev,function FR4)
endfunction
function F54 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894860)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895129)==true))then
return false
endif
return true
endfunction
function FT4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894860))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895129))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894861,GetManipulatingUnit())
endfunction
function FU4 takes nothing returns nothing
set udg_Fv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Fv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Fv,Condition(function F54))
call TriggerAddAction(udg_Fv,function FT4)
endfunction
function FV4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895361)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895345)==true))then
return false
endif
return true
endfunction
function FW4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894838))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895361))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895345))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894836,GetManipulatingUnit())
endfunction
function FX4 takes nothing returns nothing
set udg_Gv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Gv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Gv,Condition(function FV4))
call TriggerAddAction(udg_Gv,function FW4)
endfunction
function FY4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894840)==true))then
return false
endif
if(not(MG(GetManipulatingUnit(),UNIT_TYPE_RANGED_ATTACKER)==true))then
return false
endif
return true
endfunction
function F24 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894840))
call UnitAddItemByIdSwapped(1227894836,GetManipulatingUnit())
endfunction
function FZ4 takes nothing returns nothing
set udg_Hv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Hv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Hv,Condition(function FY4))
call TriggerAddAction(udg_Hv,function F24)
endfunction
function F_4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894836)==true))then
return false
endif
if(not(MG(GetManipulatingUnit(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
return true
endfunction
function G44 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894836))
call UnitAddItemByIdSwapped(1227894840,GetManipulatingUnit())
endfunction
function G74 takes nothing returns nothing
set udg_Iv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Iv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Iv,Condition(function F_4))
call TriggerAddAction(udg_Iv,function G44)
endfunction
function G84 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894867)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895105)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895130)==true))then
return false
endif
return true
endfunction
function G94 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894867))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895105))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895130))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894832,GetManipulatingUnit())
endfunction
function Gd4 takes nothing returns nothing
set udg_lv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_lv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_lv,Condition(function G84))
call TriggerAddAction(udg_lv,function G94)
endfunction
function Ge4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894868)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895088)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895346)==true))then
return false
endif
return true
endfunction
function Gf4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894868))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895088))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895346))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895114,GetManipulatingUnit())
endfunction
function Gg4 takes nothing returns nothing
set udg_Jv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Jv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Jv,Condition(function Ge4))
call TriggerAddAction(udg_Jv,function Gf4)
endfunction
function Gh4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894868)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895094)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895604)==true))then
return false
endif
return true
endfunction
function Gi4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894868))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895094))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895604))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895376,GetManipulatingUnit())
endfunction
function Gj4 takes nothing returns nothing
set udg_Kv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Kv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Kv,Condition(function Gh4))
call TriggerAddAction(udg_Kv,function Gi4)
endfunction
function Gk4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894860)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895094)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895382)==true))then
return false
endif
return true
endfunction
function Gm4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894860))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895094))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895382))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895377,GetManipulatingUnit())
endfunction
function Gn4 takes nothing returns nothing
set udg_Lv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Lv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Lv,Condition(function Gk4))
call TriggerAddAction(udg_Lv,function Gm4)
endfunction
function Go4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894860)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895118)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895380)==true))then
return false
endif
return true
endfunction
function Gp4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894860))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895118))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895380))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895378,GetManipulatingUnit())
endfunction
function Gq4 takes nothing returns nothing
set udg_Mv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Mv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Mv,Condition(function Go4))
call TriggerAddAction(udg_Mv,function Gp4)
endfunction
function Gr4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895378)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895115)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895896)==true))then
return false
endif
return true
endfunction
function Gs4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895378))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895115))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895896))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895881,GetManipulatingUnit())
endfunction
function Gt4 takes nothing returns nothing
set udg_Nv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Nv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Nv,Condition(function Gr4))
call TriggerAddAction(udg_Nv,function Gs4)
endfunction
function Gu4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894868)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895371)==true))then
return false
endif
return true
endfunction
function Gv4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894868))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895371))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895370,GetManipulatingUnit())
endfunction
function Gw4 takes nothing returns nothing
set udg_Ov=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ov,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Ov,Condition(function Gu4))
call TriggerAddAction(udg_Ov,function Gv4)
endfunction
function Gx4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894867)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895109)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895344)==true))then
return false
endif
return true
endfunction
function Gy4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894867))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895109))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895344))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894850,GetManipulatingUnit())
endfunction
function Gz4 takes nothing returns nothing
set udg_Pv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Pv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Pv,Condition(function Gx4))
call TriggerAddAction(udg_Pv,function Gy4)
endfunction
function GA4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895121)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895109)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895363)==true))then
return false
endif
return true
endfunction
function Ga4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function GB4 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function Gb4 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function GC4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895121))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895109))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895363))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895124,GetManipulatingUnit())
if(Gb4())then
call ForGroupBJ(d6(GetPlayableMapRect()),function Ga4)
call ForForce(GetPlayersAll(),function GB4)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Gc4 takes nothing returns nothing
set udg_Qv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Qv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Qv,Condition(function GA4))
call TriggerAddAction(udg_Qv,function GC4)
endfunction
function GD4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895094)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895349)==true))then
return false
endif
return true
endfunction
function GE4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894874))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895094))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895349))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895115,GetManipulatingUnit())
endfunction
function G34 takes nothing returns nothing
set udg_Rv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Rv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Rv,Condition(function GD4))
call TriggerAddAction(udg_Rv,function GE4)
endfunction
function GF4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894832)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895093)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895364)==true))then
return false
endif
return true
endfunction
function GG4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894832))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895093))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895364))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895125,GetManipulatingUnit())
endfunction
function G64 takes nothing returns nothing
set udg_Sv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Sv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Sv,Condition(function GF4))
call TriggerAddAction(udg_Sv,function GG4)
endfunction
function GH4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894832)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895609)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895895)==true))then
return false
endif
return true
endfunction
function GI4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894832))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895609))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895895))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895883,GetManipulatingUnit())
endfunction
function Gl4 takes nothing returns nothing
set udg_Tv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Tv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Tv,Condition(function GH4))
call TriggerAddAction(udg_Tv,function GI4)
endfunction
function G14 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895609)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895361)==true))then
return false
endif
return true
endfunction
function GJ4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895609))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895361))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895618,GetManipulatingUnit())
endfunction
function GK4 takes nothing returns nothing
set udg_Uv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Uv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Uv,Condition(function G14))
call TriggerAddAction(udg_Uv,function GJ4)
endfunction
function GL4 takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895618)==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227896116)==true))then
return true
endif
return false
endfunction
function GM4 takes nothing returns boolean
if(not GL4())then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1160785972))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1160785968))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1160785970))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1160785969))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1311780952))then
return false
endif
return true
endfunction
function GN4 takes nothing returns boolean
if(not GM4())then
return false
endif
return true
endfunction
function GO4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227896116))then
return false
endif
return true
endfunction
function G04 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895618))then
return false
endif
return true
endfunction
function GP4 takes nothing returns nothing
if(G04())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895618))
else
if(GO4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227896116))
else
call DoNothing()
endif
endif
call UnitAddItemByIdSwapped(1227895620,GetManipulatingUnit())
endfunction
function GQ4 takes nothing returns nothing
set udg_Vv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Vv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Vv,Condition(function GN4))
call TriggerAddAction(udg_Vv,function GP4)
endfunction
function GR4 takes nothing returns boolean
if((GetUnitTypeId(GetManipulatingUnit())==1160785972))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785968))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785970))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785969))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780952))then
return true
endif
return false
endfunction
function GS4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895620)==true))then
return false
endif
if(not GR4())then
return false
endif
return true
endfunction
function G54 takes nothing returns boolean
if(not GS4())then
return false
endif
return true
endfunction
function GT4 takes nothing returns boolean
if(not(GetUnitTypeId(GetManipulatingUnit())==1311780952))then
return false
endif
return true
endfunction
function GU4 takes nothing returns boolean
if((GetUnitTypeId(GetManipulatingUnit())==1160785972))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785968))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785970))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785969))then
return true
endif
return false
endfunction
function GV4 takes nothing returns boolean
if(not GU4())then
return false
endif
return true
endfunction
function GW4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895620))
if(GV4())then
call UnitAddItemByIdSwapped(1227895618,GetManipulatingUnit())
else
if(GT4())then
call UnitAddItemByIdSwapped(1227896116,GetManipulatingUnit())
else
call DoNothing()
endif
endif
endfunction
function GX4 takes nothing returns nothing
set udg_Wv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Wv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Wv,Condition(function G54))
call TriggerAddAction(udg_Wv,function GW4)
endfunction
function GY4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895618)==true))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())==1311780952))then
return false
endif
return true
endfunction
function G24 takes nothing returns boolean
if((GetUnitTypeId(GetManipulatingUnit())==1160785972))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785968))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785970))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785969))then
return true
endif
return false
endfunction
function GZ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227896116)==true))then
return false
endif
if(not G24())then
return false
endif
return true
endfunction
function G_4 takes nothing returns boolean
if(GY4())then
return true
endif
if(GZ4())then
return true
endif
return false
endfunction
function H44 takes nothing returns boolean
if(not G_4())then
return false
endif
return true
endfunction
function H74 takes nothing returns boolean
if((GetUnitTypeId(GetManipulatingUnit())==1160785972))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785968))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785970))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785969))then
return true
endif
return false
endfunction
function H84 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227896116)==true))then
return false
endif
if(not H74())then
return false
endif
return true
endfunction
function H94 takes nothing returns boolean
if(not H84())then
return false
endif
return true
endfunction
function Hd4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895618)==true))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())==1311780952))then
return false
endif
return true
endfunction
function He4 takes nothing returns boolean
if(not Hd4())then
return false
endif
return true
endfunction
function Hf4 takes nothing returns nothing
if(He4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895618))
call UnitAddItemByIdSwapped(1227896116,GetManipulatingUnit())
else
if(H94())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227896116))
call UnitAddItemByIdSwapped(1227895618,GetManipulatingUnit())
else
call DoNothing()
endif
endif
endfunction
function Hg4 takes nothing returns nothing
set udg_Xv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Xv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Xv,Condition(function H44))
call TriggerAddAction(udg_Xv,function Hf4)
endfunction
function Hh4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895609)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895097)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894853)==true))then
return false
endif
return true
endfunction
function Hi4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895609))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894838))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895097))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894853))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894855,GetManipulatingUnit())
endfunction
function Hj4 takes nothing returns nothing
set udg_Yv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Yv,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Yv,Condition(function Hh4))
call TriggerAddAction(udg_Yv,function Hi4)
endfunction
function Hk4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
return true
endfunction
function Hm4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Hn4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Ho4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetManipulatingUnit()))==true)
endfunction
function Hp4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Hq4 takes nothing returns boolean
return(RectContainsUnit(udg_vo,GetFilterUnit())==false)
endfunction
function Hr4 takes nothing returns boolean
return(RectContainsUnit(udg_xo,GetFilterUnit())==false)
endfunction
function Hs4 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function Ht4 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function Hu4 takes nothing returns boolean
return GetBooleanAnd(Hs4(),Ht4())
endfunction
function Hv4 takes nothing returns boolean
return GetBooleanAnd(Hr4(),Hu4())
endfunction
function Hw4 takes nothing returns boolean
return GetBooleanAnd(Hq4(),Hv4())
endfunction
function Hx4 takes nothing returns boolean
return GetBooleanAnd(Hp4(),Hw4())
endfunction
function Hy4 takes nothing returns boolean
return GetBooleanAnd(Ho4(),Hx4())
endfunction
function Hz4 takes nothing returns boolean
return GetBooleanAnd(Hn4(),Hy4())
endfunction
function HA4 takes nothing returns boolean
return GetBooleanAnd(Hm4(),Hz4())
endfunction
function Ha4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1966092339,GetOwningPlayer(GetManipulatingUnit()),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678413,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"hex",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
endfunction
function HB4 takes nothing returns nothing
call ForGroupBJ(YG(GetPlayableMapRect(),Condition(function HA4)),function Ha4)
endfunction
function Hb4 takes nothing returns nothing
set udg_Zv=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Zv,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Zv,Condition(function Hk4))
call TriggerAddAction(udg_Zv,function HB4)
endfunction
function HC4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895114)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895095)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895365)==true))then
return false
endif
return true
endfunction
function Hc4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895114))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895095))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895365))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895126,GetManipulatingUnit())
endfunction
function HD4 takes nothing returns nothing
set udg_dw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_dw,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_dw,Condition(function HC4))
call TriggerAddAction(udg_dw,function Hc4)
endfunction
function HE4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895366)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895622)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895107)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894861)==true))then
return false
endif
return true
endfunction
function H34 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895366))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895622))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895107))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894861))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895123,GetManipulatingUnit())
endfunction
function HF4 takes nothing returns nothing
set udg_ew=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ew,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_ew,Condition(function HE4))
call TriggerAddAction(udg_ew,function H34)
endfunction
function HG4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895108)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895622)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894867)==true))then
return false
endif
return true
endfunction
function H64 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895108))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895622))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894867))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894859,GetManipulatingUnit())
endfunction
function HH4 takes nothing returns nothing
set udg_fw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_fw,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_fw,Condition(function HG4))
call TriggerAddAction(udg_fw,function H64)
endfunction
function HI4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895621)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895622)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895095)==true))then
return false
endif
return true
endfunction
function Hl4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895621))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895622))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895095))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895110,GetManipulatingUnit())
endfunction
function H14 takes nothing returns nothing
set udg_gw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_gw,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_gw,Condition(function HI4))
call TriggerAddAction(udg_gw,function Hl4)
endfunction
function HJ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895877)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894862)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894849)==true))then
return false
endif
return true
endfunction
function HK4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895877))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894862))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894849))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895875,GetManipulatingUnit())
endfunction
function HL4 takes nothing returns nothing
set udg_hw=CreateTrigger()
call DisableTrigger(udg_hw)
call TriggerRegisterAnyUnitEventBJ(udg_hw,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_hw,Condition(function HJ4))
call TriggerAddAction(udg_hw,function HK4)
endfunction
function HM4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895090)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894849)==true))then
return false
endif
return true
endfunction
function HN4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895090))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894849))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894866,GetManipulatingUnit())
endfunction
function HO4 takes nothing returns nothing
set udg_iw=CreateTrigger()
call DisableTrigger(udg_iw)
call TriggerRegisterAnyUnitEventBJ(udg_iw,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_iw,Condition(function HM4))
call TriggerAddAction(udg_iw,function HN4)
endfunction
function H04 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894852)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894849)==true))then
return false
endif
return true
endfunction
function HP4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894852))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894849))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894841,GetManipulatingUnit())
endfunction
function HQ4 takes nothing returns nothing
set udg_jw=CreateTrigger()
call DisableTrigger(udg_jw)
call TriggerRegisterAnyUnitEventBJ(udg_jw,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_jw,Condition(function H04))
call TriggerAddAction(udg_jw,function HP4)
endfunction
function HR4 takes nothing returns boolean
return(MG(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function HS4 takes nothing returns boolean
return(MG(GetAttackedUnitBJ(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function H54 takes nothing returns boolean
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not GetBooleanAnd(HR4(),HS4()))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttacker(),1227894841)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetAttacker(),1110454324)==false))then
return false
endif
return true
endfunction
function HT4 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttacker())>(0.09*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker()))))then
return false
endif
return true
endfunction
function HU4 takes nothing returns nothing
if(HT4())then
call SetUnitLifeBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttacker())-(0.09*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker()))))
else
call SetUnitLifeBJ(GetAttacker(),1.00)
endif
endfunction
function HV4 takes nothing returns nothing
set udg_kw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_kw,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_kw,Condition(function H54))
call TriggerAddAction(udg_kw,function HU4)
endfunction
function HW4 takes nothing returns boolean
return(MG(GetDyingUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function HX4 takes nothing returns boolean
return(MG(GetDyingUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function HY4 takes nothing returns boolean
if(not GetBooleanAnd(HW4(),HX4()))then
return false
endif
if(not(UnitHasItemOfTypeBJ(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],1227894841)==true))then
return false
endif
return true
endfunction
function H24 takes nothing returns nothing
call SetUnitLifeBJ(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])+(0.30*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetDyingUnit()))))
call AddSpecialEffectTargetUnitBJ("origin",udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function HZ4 takes nothing returns nothing
set udg_mw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_mw,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_mw,Condition(function HY4))
call TriggerAddAction(udg_mw,function H24)
endfunction
function H_4 takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894836)==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894840)==true))then
return true
endif
return false
endfunction
function I44 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895127)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1868984943)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894849)==true))then
return false
endif
if(not H_4())then
return false
endif
return true
endfunction
function I74 takes nothing returns boolean
if(not I44())then
return false
endif
return true
endfunction
function I84 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895127))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1868984943))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894849))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894836))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894840))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894857,GetManipulatingUnit())
endfunction
function I94 takes nothing returns nothing
set udg_nw=CreateTrigger()
call DisableTrigger(udg_nw)
call TriggerRegisterAnyUnitEventBJ(udg_nw,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_nw,Condition(function I74))
call TriggerAddAction(udg_nw,function I84)
endfunction
function Id4 takes nothing returns boolean
return(MG(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Ie4 takes nothing returns boolean
return(MG(GetAttackedUnitBJ(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function If4 takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetAttacker(),1227894857)==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetAttacker(),1868984943)==true))then
return true
endif
return false
endfunction
function Ig4 takes nothing returns boolean
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(MG(GetAttackedUnitBJ(),UNIT_TYPE_MAGIC_IMMUNE)==false))then
return false
endif
if(not GetBooleanAnd(Id4(),Ie4()))then
return false
endif
if(not If4())then
return false
endif
return true
endfunction
function Ih4 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=40))then
return false
endif
return true
endfunction
function Ii4 takes nothing returns nothing
if(Ih4())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call UnitAddAbilityBJ(1093677640,GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped(1093677640,GetLastCreatedUnit(),13)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"frostnova",GetAttackedUnitBJ())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
else
call DoNothing()
endif
endfunction
function Ij4 takes nothing returns nothing
set udg_ow=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ow,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_ow,Condition(function Ig4))
call TriggerAddAction(udg_ow,function Ii4)
endfunction
function Ik4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227895372)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894839)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),1227894833)==true))then
return false
endif
return true
endfunction
function Im4 takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227895372))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894839))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),1227894833))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895373,GetManipulatingUnit())
call DisableTrigger(GetTriggeringTrigger())
endfunction
function In4 takes nothing returns nothing
set udg_pw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_pw,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_pw,Condition(function Ik4))
call TriggerAddAction(udg_pw,function Im4)
endfunction
function Io4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1836019566))then
return false
endif
return true
endfunction
function Ip4 takes nothing returns nothing
call RemoveItem(GetManipulatedItem())
endfunction
function Iq4 takes nothing returns nothing
set udg_qw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_qw,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_qw,Condition(function Io4))
call TriggerAddAction(udg_qw,function Ip4)
endfunction
function Ir4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751216755))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896652))then
return false
endif
return true
endfunction
function Is4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1667854953)==true))then
return false
endif
return true
endfunction
function It4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650946932)==true))then
return false
endif
return true
endfunction
function Iu4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650814070)==true))then
return false
endif
return true
endfunction
function Iv4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650814070)==true))then
return false
endif
return true
endfunction
function Iw4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650946932)==true))then
return false
endif
return true
endfunction
function Ix4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1667854953)==true))then
return false
endif
return true
endfunction
function Iy4 takes nothing returns boolean
if(Iv4())then
return true
endif
if(Iw4())then
return true
endif
if(Ix4())then
return true
endif
return false
endfunction
function Iz4 takes nothing returns boolean
if(not Iy4())then
return false
endif
return true
endfunction
function IA4 takes nothing returns nothing
if(Iz4())then
if(Iu4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1651732580))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1650814070))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetBuyingUnit())
else
if(It4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1651732580))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1650946932))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetBuyingUnit())
else
if(Is4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1651732580))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1667854953))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1734567276,GetBuyingUnit())
endif
endfunction
function Ia4 takes nothing returns nothing
set udg_rw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_rw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_rw,Condition(function Ir4))
call TriggerAddAction(udg_rw,function IA4)
endfunction
function IB4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751216755))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896645))then
return false
endif
return true
endfunction
function Ib4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895353)==true))then
return false
endif
return true
endfunction
function IC4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895091)==true))then
return false
endif
return true
endfunction
function Ic4 takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895091)==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895353)==true))then
return true
endif
return false
endfunction
function ID4 takes nothing returns boolean
if(not Ic4())then
return false
endif
return true
endfunction
function IE4 takes nothing returns nothing
if(ID4())then
if(IC4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895091))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895109,GetBuyingUnit())
else
if(Ib4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895353))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895119,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1836016756,GetBuyingUnit())
endif
endfunction
function I34 takes nothing returns nothing
set udg_sw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_sw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_sw,Condition(function IB4))
call TriggerAddAction(udg_sw,function IE4)
endfunction
function IF4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751216755))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896651))then
return false
endif
return true
endfunction
function IG4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1919182130)==true))then
return false
endif
return true
endfunction
function I64 takes nothing returns nothing
if(IG4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1919182130))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895120,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1920428410,GetBuyingUnit())
endif
endfunction
function IH4 takes nothing returns nothing
set udg_tw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_tw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_tw,Condition(function IF4))
call TriggerAddAction(udg_tw,function I64)
endfunction
function II4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751216755))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896656))then
return false
endif
return true
endfunction
function Il4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1667854953)==true))then
return false
endif
return true
endfunction
function I14 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650946932)==true))then
return false
endif
return true
endfunction
function IJ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650814070)==true))then
return false
endif
return true
endfunction
function IK4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650814070)==true))then
return false
endif
return true
endfunction
function IL4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650946932)==true))then
return false
endif
return true
endfunction
function IM4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1667854953)==true))then
return false
endif
return true
endfunction
function IN4 takes nothing returns boolean
if(IK4())then
return true
endif
if(IL4())then
return true
endif
if(IM4())then
return true
endif
return false
endfunction
function IO4 takes nothing returns boolean
if(not IN4())then
return false
endif
return true
endfunction
function I04 takes nothing returns nothing
if(IO4())then
if(IJ4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1734567276))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1650814070))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetBuyingUnit())
else
if(I14())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1734567276))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1650946932))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetBuyingUnit())
else
if(Il4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1734567276))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1667854953))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1651732580,GetBuyingUnit())
endif
endfunction
function IP4 takes nothing returns nothing
set udg_uw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_uw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_uw,Condition(function II4))
call TriggerAddAction(udg_uw,function I04)
endfunction
function IQ4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751216755))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896647))then
return false
endif
return true
endfunction
function IR4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895091)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894864)==true))then
return false
endif
return true
endfunction
function IS4 takes nothing returns boolean
if(not IR4())then
return false
endif
return true
endfunction
function I54 takes nothing returns nothing
if(IS4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895091))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894864))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895121,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1651663203,GetBuyingUnit())
endif
endfunction
function IT4 takes nothing returns nothing
set udg_vw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_vw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_vw,Condition(function IQ4))
call TriggerAddAction(udg_vw,function I54)
endfunction
function IU4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896659))then
return false
endif
return true
endfunction
function IV4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1668181858)==true))then
return false
endif
return true
endfunction
function IW4 takes nothing returns nothing
if(IV4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1668181858))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894834,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1920169009,GetBuyingUnit())
endif
endfunction
function IX4 takes nothing returns nothing
set udg_ww=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ww,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_ww,Condition(function IU4))
call TriggerAddAction(udg_ww,function IW4)
endfunction
function IY4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896646))then
return false
endif
return true
endfunction
function I24 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1668181858)==true))then
return false
endif
return true
endfunction
function IZ4 takes nothing returns nothing
if(I24())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1668181858))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894835,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1918986033,GetBuyingUnit())
endif
endfunction
function I_4 takes nothing returns nothing
set udg_xw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_xw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_xw,Condition(function IY4))
call TriggerAddAction(udg_xw,function IZ4)
endfunction
function l44 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896649))then
return false
endif
return true
endfunction
function l74 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1668181858)==true))then
return false
endif
return true
endfunction
function l84 takes nothing returns nothing
if(l74())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1668181858))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894837,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1919512113,GetBuyingUnit())
endif
endfunction
function l94 takes nothing returns nothing
set udg_yw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_yw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_yw,Condition(function l44))
call TriggerAddAction(udg_yw,function l84)
endfunction
function ld4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896657))then
return false
endif
return true
endfunction
function le4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
return true
endfunction
function lf4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894872)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895351)==true))then
return false
endif
return true
endfunction
function lg4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894872)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895351)==true))then
return false
endif
return true
endfunction
function lh4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
return true
endfunction
function li4 takes nothing returns boolean
if(lg4())then
return true
endif
if(lh4())then
return true
endif
return false
endfunction
function lj4 takes nothing returns boolean
if(not li4())then
return false
endif
return true
endfunction
function lk4 takes nothing returns nothing
if(lj4())then
if(lf4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894872))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895351))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895111,GetBuyingUnit())
else
if(le4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1651732580))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1734567276))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1650946932,GetBuyingUnit())
endif
endfunction
function lm4 takes nothing returns nothing
set udg_zw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_zw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_zw,Condition(function ld4))
call TriggerAddAction(udg_zw,function lk4)
endfunction
function ln4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896655))then
return false
endif
return true
endfunction
function lo4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
return true
endfunction
function lp4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894873)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895352)==true))then
return false
endif
return true
endfunction
function lq4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894873)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895352)==true))then
return false
endif
return true
endfunction
function lr4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
return true
endfunction
function ls4 takes nothing returns boolean
if(lq4())then
return true
endif
if(lr4())then
return true
endif
return false
endfunction
function lt4 takes nothing returns boolean
if(not ls4())then
return false
endif
return true
endfunction
function lu4 takes nothing returns nothing
if(lt4())then
if(lp4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894873))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895352))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895112,GetBuyingUnit())
else
if(lo4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1651732580))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1734567276))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1650814070,GetBuyingUnit())
endif
endfunction
function lv4 takes nothing returns nothing
set udg_Aw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Aw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Aw,Condition(function ln4))
call TriggerAddAction(udg_Aw,function lu4)
endfunction
function lw4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896648))then
return false
endif
return true
endfunction
function lx4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894873)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895368)==true))then
return false
endif
return true
endfunction
function ly4 takes nothing returns boolean
if(not lx4())then
return false
endif
return true
endfunction
function lz4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
return true
endfunction
function lA4 takes nothing returns boolean
if(not lz4())then
return false
endif
return true
endfunction
function la4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651732580)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1734567276)==true))then
return false
endif
return true
endfunction
function lB4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894873)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895368)==true))then
return false
endif
return true
endfunction
function lb4 takes nothing returns boolean
if(la4())then
return true
endif
if(lB4())then
return true
endif
return false
endfunction
function lC4 takes nothing returns boolean
if(not lb4())then
return false
endif
return true
endfunction
function lc4 takes nothing returns nothing
if(lC4())then
if(lA4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1651732580))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1734567276))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894851,GetBuyingUnit())
else
if(ly4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894873))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895368))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895347,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1667854953,GetBuyingUnit())
endif
endfunction
function lD4 takes nothing returns nothing
set udg_aw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_aw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_aw,Condition(function lw4))
call TriggerAddAction(udg_aw,function lc4)
endfunction
function lE4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896654))then
return false
endif
return true
endfunction
function l34 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1919512113)==true))then
return false
endif
return true
endfunction
function lF4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1918986033)==true))then
return false
endif
return true
endfunction
function lG4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1920169009)==true))then
return false
endif
return true
endfunction
function l64 takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1918986033)==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1920169009)==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1919512113)==true))then
return true
endif
return false
endfunction
function lH4 takes nothing returns boolean
if(not l64())then
return false
endif
return true
endfunction
function lI4 takes nothing returns nothing
if(lH4())then
if(lG4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1920169009))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894834,GetBuyingUnit())
else
if(lF4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1918986033))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894835,GetBuyingUnit())
else
if(l34())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1919512113))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894837,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1668181858,GetBuyingUnit())
endif
endfunction
function ll4 takes nothing returns nothing
set udg_Bw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Bw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Bw,Condition(function lE4))
call TriggerAddAction(udg_Bw,function lI4)
endfunction
function l14 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896629))then
return false
endif
return true
endfunction
function lJ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650946932)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895351)==true))then
return false
endif
return true
endfunction
function lK4 takes nothing returns boolean
if(not lJ4())then
return false
endif
return true
endfunction
function lL4 takes nothing returns nothing
if(lK4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1650946932))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895351))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895111,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227894872,GetBuyingUnit())
endif
endfunction
function lM4 takes nothing returns nothing
set udg_bw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_bw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_bw,Condition(function l14))
call TriggerAddAction(udg_bw,function lL4)
endfunction
function lN4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896633))then
return false
endif
return true
endfunction
function lO4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895368)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1667854953)==true))then
return false
endif
return true
endfunction
function l04 takes nothing returns boolean
if(not lO4())then
return false
endif
return true
endfunction
function lP4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895352)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650814070)==true))then
return false
endif
return true
endfunction
function lQ4 takes nothing returns boolean
if(not lP4())then
return false
endif
return true
endfunction
function lR4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895352)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650814070)==true))then
return false
endif
return true
endfunction
function lS4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895368)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1667854953)==true))then
return false
endif
return true
endfunction
function l54 takes nothing returns boolean
if(lR4())then
return true
endif
if(lS4())then
return true
endif
return false
endfunction
function lT4 takes nothing returns boolean
if(not l54())then
return false
endif
return true
endfunction
function lU4 takes nothing returns nothing
if(lT4())then
if(lQ4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895352))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1650814070))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895112,GetBuyingUnit())
else
if(l04())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895368))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1667854953))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895347,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1227894873,GetBuyingUnit())
endif
endfunction
function lV4 takes nothing returns nothing
set udg_Cw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Cw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Cw,Condition(function lN4))
call TriggerAddAction(udg_Cw,function lU4)
endfunction
function lW4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896403))then
return false
endif
return true
endfunction
function lX4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895088)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895897)==true))then
return false
endif
return true
endfunction
function lY4 takes nothing returns boolean
if(not lX4())then
return false
endif
return true
endfunction
function l24 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895606)==true))then
return false
endif
return true
endfunction
function lZ4 takes nothing returns boolean
if(not l24())then
return false
endif
return true
endfunction
function l_4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895094)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895349)==true))then
return false
endif
return true
endfunction
function J44 takes nothing returns boolean
if(not l_4())then
return false
endif
return true
endfunction
function J74 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895094)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895349)==true))then
return false
endif
return true
endfunction
function J84 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895606)==true))then
return false
endif
return true
endfunction
function J94 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895088)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895897)==true))then
return false
endif
return true
endfunction
function Jd4 takes nothing returns boolean
if(J74())then
return true
endif
if(J84())then
return true
endif
if(J94())then
return true
endif
return false
endfunction
function Je4 takes nothing returns boolean
if(not Jd4())then
return false
endif
return true
endfunction
function Jf4 takes nothing returns nothing
if(Je4())then
if(J44())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895094))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895349))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895115,GetBuyingUnit())
else
if(lZ4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894838))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895606))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895379,GetBuyingUnit())
else
if(lY4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895088))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895897))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895880,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227894874,GetBuyingUnit())
endif
endfunction
function Jg4 takes nothing returns nothing
set udg_cw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_cw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_cw,Condition(function lW4))
call TriggerAddAction(udg_cw,function Jf4)
endfunction
function Jh4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1848651825))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896404))then
return false
endif
return true
endfunction
function Ji4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895097)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895609)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894853)==true))then
return false
endif
return true
endfunction
function Jj4 takes nothing returns boolean
if(not Ji4())then
return false
endif
return true
endfunction
function Jk4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894870)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895367)==true))then
return false
endif
return true
endfunction
function Jm4 takes nothing returns boolean
if(not Jk4())then
return false
endif
return true
endfunction
function Jn4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895606)==true))then
return false
endif
return true
endfunction
function Jo4 takes nothing returns boolean
if(not Jn4())then
return false
endif
return true
endfunction
function Jp4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894863)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895350)==true))then
return false
endif
return true
endfunction
function Jq4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895361)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895345)==true))then
return false
endif
return true
endfunction
function Jr4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895361)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895345)==true))then
return false
endif
return true
endfunction
function Js4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894863)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895350)==true))then
return false
endif
return true
endfunction
function Jt4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895606)==true))then
return false
endif
return true
endfunction
function Ju4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894870)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895367)==true))then
return false
endif
return true
endfunction
function Jv4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895097)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895609)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894853)==true))then
return false
endif
return true
endfunction
function Jw4 takes nothing returns boolean
if(Jr4())then
return true
endif
if(Js4())then
return true
endif
if(Jt4())then
return true
endif
if(Ju4())then
return true
endif
if(Jv4())then
return true
endif
return false
endfunction
function Jx4 takes nothing returns boolean
if(not Jw4())then
return false
endif
return true
endfunction
function Jy4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Jz4 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function JA4 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function Ja4 takes nothing returns nothing
if(Jx4())then
if(Jq4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895361))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895345))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894836,GetBuyingUnit())
else
if(Jp4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894863))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895350))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894839,GetBuyingUnit())
else
if(Jo4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894874))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895606))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895379,GetBuyingUnit())
else
if(Jm4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894870))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895367))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895118,GetBuyingUnit())
else
if(Jj4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895097))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895609))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894853))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894855,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227894838,GetBuyingUnit())
endif
if(JA4())then
call ForGroupBJ(d6(GetPlayableMapRect()),function Jy4)
call ForForce(GetPlayersAll(),function Jz4)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function JB4 takes nothing returns nothing
set udg_Dw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Dw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Dw,Condition(function Jh4))
call TriggerAddAction(udg_Dw,function Ja4)
endfunction
function Jb4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1752591476))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896650))then
return false
endif
return true
endfunction
function JC4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894869)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895348)==true))then
return false
endif
return true
endfunction
function Jc4 takes nothing returns nothing
if(JC4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894869))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895348))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895106,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1918989369,GetBuyingUnit())
endif
endfunction
function JD4 takes nothing returns nothing
set udg_Ew=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ew,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Ew,Condition(function Jb4))
call TriggerAddAction(udg_Ew,function Jc4)
endfunction
function JE4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1752591476))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896658))then
return false
endif
return true
endfunction
function J34 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895885)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227896114)==true))then
return false
endif
return true
endfunction
function JF4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894863)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894870)==true))then
return false
endif
return true
endfunction
function JG4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1918989369)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895348)==true))then
return false
endif
return true
endfunction
function J64 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1918989369)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895348)==true))then
return false
endif
return true
endfunction
function JH4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894863)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894870)==true))then
return false
endif
return true
endfunction
function JI4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895885)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227896114)==true))then
return false
endif
return true
endfunction
function Jl4 takes nothing returns boolean
if(J64())then
return true
endif
if(JH4())then
return true
endif
if(JI4())then
return true
endif
return false
endfunction
function J14 takes nothing returns boolean
if(not Jl4())then
return false
endif
return true
endfunction
function JJ4 takes nothing returns nothing
if(J14())then
if(JG4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1918989369))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895348))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895106,GetBuyingUnit())
else
if(JF4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894863))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894870))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894862,GetBuyingUnit())
else
if(J34())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895885))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227896114))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895882,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227894869,GetBuyingUnit())
endif
endfunction
function JK4 takes nothing returns nothing
set udg_Fw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Fw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Fw,Condition(function JE4))
call TriggerAddAction(udg_Fw,function JJ4)
endfunction
function JL4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1752591476))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896410))then
return false
endif
return true
endfunction
function JM4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894868)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895346)==true))then
return false
endif
return true
endfunction
function JN4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895897)==true))then
return false
endif
return true
endfunction
function JO4 takes nothing returns boolean
if(not JN4())then
return false
endif
return true
endfunction
function J04 takes nothing returns boolean
if(not JM4())then
return false
endif
return true
endfunction
function JP4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894868)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895346)==true))then
return false
endif
return true
endfunction
function JQ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895897)==true))then
return false
endif
return true
endfunction
function JR4 takes nothing returns boolean
if(JP4())then
return true
endif
if(JQ4())then
return true
endif
return false
endfunction
function JS4 takes nothing returns boolean
if(not JR4())then
return false
endif
return true
endfunction
function J54 takes nothing returns nothing
if(JS4())then
if(J04())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894868))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895346))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895114,GetBuyingUnit())
else
if(JO4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894874))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895897))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895880,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1227895088,GetBuyingUnit())
endif
endfunction
function JT4 takes nothing returns nothing
set udg_Gw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Gw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Gw,Condition(function JL4))
call TriggerAddAction(udg_Gw,function J54)
endfunction
function JU4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1752591476))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896626))then
return false
endif
return true
endfunction
function Trig_Jidanbous_Maul_Func001Func001Func001Func002Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895097)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895609)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894853)==true))then
return false
endif
return true
endfunction
function JV4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895367)==true))then
return false
endif
return true
endfunction
function JW4 takes nothing returns boolean
if(not JV4())then
return false
endif
return true
endfunction
function JX4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894863)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894869)==true))then
return false
endif
return true
endfunction
function JY4 takes nothing returns boolean
if(not JX4())then
return false
endif
return true
endfunction
function J24 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894863)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894869)==true))then
return false
endif
return true
endfunction
function JZ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895367)==true))then
return false
endif
return true
endfunction
function J_4 takes nothing returns boolean
if(J24())then
return true
endif
if(JZ4())then
return true
endif
return false
endfunction
function K44 takes nothing returns boolean
if(not J_4())then
return false
endif
return true
endfunction
function K74 takes nothing returns nothing
if(K44())then
if(JY4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894863))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894869))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894862,GetBuyingUnit())
else
if(JW4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894838))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895367))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895118,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1227894870,GetBuyingUnit())
endif
endfunction
function K84 takes nothing returns nothing
set udg_Hw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Hw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Hw,Condition(function JU4))
call TriggerAddAction(udg_Hw,function K74)
endfunction
function K94 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1752591476))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896653))then
return false
endif
return true
endfunction
function Kd4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1920428410)==true))then
return false
endif
return true
endfunction
function Ke4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895096)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895362)==true))then
return false
endif
return true
endfunction
function Kf4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895096)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895362)==true))then
return false
endif
return true
endfunction
function Kg4 takes nothing returns boolean
if(Kf4())then
return true
endif
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1920428410)==true))then
return true
endif
return false
endfunction
function Kh4 takes nothing returns boolean
if(not Kg4())then
return false
endif
return true
endfunction
function Ki4 takes nothing returns nothing
if(Kh4())then
if(Ke4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895096))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895362))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894871,GetBuyingUnit())
else
if(Kd4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1920428410))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895120,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1919182130,GetBuyingUnit())
endif
endfunction
function Kj4 takes nothing returns nothing
set udg_Iw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Iw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Iw,Condition(function K94))
call TriggerAddAction(udg_Iw,function Ki4)
endfunction
function Kk4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1752591476))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896627))then
return false
endif
return true
endfunction
function Km4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894864)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895105)==true))then
return false
endif
return true
endfunction
function Kn4 takes nothing returns boolean
if(not Km4())then
return false
endif
return true
endfunction
function Ko4 takes nothing returns nothing
if(Kn4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894864))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895105))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895122,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895089,GetBuyingUnit())
endif
endfunction
function Kp4 takes nothing returns nothing
set udg_lw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_lw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_lw,Condition(function Kk4))
call TriggerAddAction(udg_lw,function Ko4)
endfunction
function Kq4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1752591476))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896625))then
return false
endif
return true
endfunction
function Kr4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894864)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651663203)==true))then
return false
endif
return true
endfunction
function Ks4 takes nothing returns boolean
if(Kr4())then
return true
endif
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1836016756)==true))then
return true
endif
return false
endfunction
function Kt4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1836016756)==true))then
return false
endif
return true
endfunction
function Ku4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894864)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651663203)==true))then
return false
endif
return true
endfunction
function Kv4 takes nothing returns boolean
if(not Ks4())then
return false
endif
return true
endfunction
function Kw4 takes nothing returns nothing
if(Kv4())then
if(Ku4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894864))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1651663203))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895121,GetBuyingUnit())
else
if(Kt4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1836016756))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895109,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1227895091,GetBuyingUnit())
endif
endfunction
function Kx4 takes nothing returns nothing
set udg_Jw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Jw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Jw,Condition(function Kq4))
call TriggerAddAction(udg_Jw,function Kw4)
endfunction
function Ky4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1752591476))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895894))then
return false
endif
return true
endfunction
function Kz4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894869)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227896114)==true))then
return false
endif
return true
endfunction
function KA4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894869)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227896114)==true))then
return false
endif
return true
endfunction
function Ka4 takes nothing returns boolean
if(not KA4())then
return false
endif
return true
endfunction
function KB4 takes nothing returns nothing
if(Ka4())then
if(Kz4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894869))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227896114))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895882,GetBuyingUnit())
else
call DoNothing()
endif
else
call UnitAddItemByIdSwapped(1227895885,GetBuyingUnit())
endif
endfunction
function Kb4 takes nothing returns nothing
set udg_Kw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Kw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Kw,Condition(function Ky4))
call TriggerAddAction(udg_Kw,function KB4)
endfunction
function KC4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1752591476))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896631))then
return false
endif
return true
endfunction
function Kc4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894832)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895364)==true))then
return false
endif
return true
endfunction
function KD4 takes nothing returns boolean
if(not Kc4())then
return false
endif
return true
endfunction
function KE4 takes nothing returns nothing
if(KD4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894832))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895364))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895125,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895093,GetBuyingUnit())
endif
endfunction
function K34 takes nothing returns nothing
set udg_Lw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Lw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Lw,Condition(function KC4))
call TriggerAddAction(udg_Lw,function KE4)
endfunction
function KF4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896661))then
return false
endif
return true
endfunction
function KG4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895349)==true))then
return false
endif
return true
endfunction
function K64 takes nothing returns boolean
if(not KG4())then
return false
endif
return true
endfunction
function KH4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894868)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895604)==true))then
return false
endif
return true
endfunction
function KI4 takes nothing returns boolean
if(not KH4())then
return false
endif
return true
endfunction
function Kl4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894860)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895382)==true))then
return false
endif
return true
endfunction
function K14 takes nothing returns boolean
if(not Kl4())then
return false
endif
return true
endfunction
function KJ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895106)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894858)==true))then
return false
endif
return true
endfunction
function KK4 takes nothing returns boolean
if(not KJ4())then
return false
endif
return true
endfunction
function KL4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895106)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894858)==true))then
return false
endif
return true
endfunction
function KM4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894860)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895382)==true))then
return false
endif
return true
endfunction
function KN4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894868)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895604)==true))then
return false
endif
return true
endfunction
function KO4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895349)==true))then
return false
endif
return true
endfunction
function K04 takes nothing returns boolean
if(KL4())then
return true
endif
if(KM4())then
return true
endif
if(KN4())then
return true
endif
if(KO4())then
return true
endif
return false
endfunction
function KP4 takes nothing returns boolean
if(not K04())then
return false
endif
return true
endfunction
function KQ4 takes nothing returns nothing
if(KP4())then
if(KK4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895106))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894858))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895107,GetBuyingUnit())
else
if(K14())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894860))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895382))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895377,GetBuyingUnit())
else
if(KI4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894868))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895604))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895376,GetBuyingUnit())
else
if(K64())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894874))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895349))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895115,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227895094,GetBuyingUnit())
endif
endfunction
function KR4 takes nothing returns nothing
set udg_Mw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Mw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Mw,Condition(function KF4))
call TriggerAddAction(udg_Mw,function KQ4)
endfunction
function KS4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896660))then
return false
endif
return true
endfunction
function K54 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895088)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895346)==true))then
return false
endif
return true
endfunction
function KT4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895094)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895604)==true))then
return false
endif
return true
endfunction
function KU4 takes nothing returns boolean
if(K54())then
return true
endif
if(KT4())then
return true
endif
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895371)==true))then
return true
endif
return false
endfunction
function KV4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895371)==true))then
return false
endif
return true
endfunction
function KW4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895094)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895604)==true))then
return false
endif
return true
endfunction
function KX4 takes nothing returns boolean
if(not KW4())then
return false
endif
return true
endfunction
function KY4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895088)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895346)==true))then
return false
endif
return true
endfunction
function K24 takes nothing returns boolean
if(not KY4())then
return false
endif
return true
endfunction
function KZ4 takes nothing returns boolean
if(not KU4())then
return false
endif
return true
endfunction
function K_4 takes nothing returns nothing
if(KZ4())then
if(K24())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895088))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895346))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895114,GetBuyingUnit())
else
if(KX4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895094))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895604))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895376,GetBuyingUnit())
else
if(KV4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895371))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895370,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227894868,GetBuyingUnit())
endif
endfunction
function L44 takes nothing returns nothing
set udg_Nw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Nw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Nw,Condition(function KS4))
call TriggerAddAction(udg_Nw,function K_4)
endfunction
function L74 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896632))then
return false
endif
return true
endfunction
function L84 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895622)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895108)==true))then
return false
endif
return true
endfunction
function L94 takes nothing returns boolean
if(not L84())then
return false
endif
return true
endfunction
function Ld4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895109)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895344)==true))then
return false
endif
return true
endfunction
function Le4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895105)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895130)==true))then
return false
endif
return true
endfunction
function Lf4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895105)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895130)==true))then
return false
endif
return true
endfunction
function Lg4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895109)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895344)==true))then
return false
endif
return true
endfunction
function Lh4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895622)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895108)==true))then
return false
endif
return true
endfunction
function Li4 takes nothing returns boolean
if(Lf4())then
return true
endif
if(Lg4())then
return true
endif
if(Lh4())then
return true
endif
return false
endfunction
function Lj4 takes nothing returns boolean
if(not Li4())then
return false
endif
return true
endfunction
function Lk4 takes nothing returns nothing
if(Lj4())then
if(Le4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895105))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895130))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894832,GetBuyingUnit())
else
if(Ld4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895109))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895344))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894850,GetBuyingUnit())
else
if(L94())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895622))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895108))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894859,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227894867,GetBuyingUnit())
endif
endfunction
function Lm4 takes nothing returns nothing
set udg_Ow=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ow,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Ow,Condition(function L74))
call TriggerAddAction(udg_Ow,function Lk4)
endfunction
function Ln4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896409))then
return false
endif
return true
endfunction
function Lo4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895094)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895382)==true))then
return false
endif
return true
endfunction
function Lp4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895118)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895380)==true))then
return false
endif
return true
endfunction
function Lq4 takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895129)==true))then
return true
endif
if(Lo4())then
return true
endif
if(Lp4())then
return true
endif
return false
endfunction
function Lr4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895118)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895380)==true))then
return false
endif
return true
endfunction
function Ls4 takes nothing returns boolean
if(not Lr4())then
return false
endif
return true
endfunction
function Lt4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895094)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895382)==true))then
return false
endif
return true
endfunction
function Lu4 takes nothing returns boolean
if(not Lt4())then
return false
endif
return true
endfunction
function Lv4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895129)==true))then
return false
endif
return true
endfunction
function Lw4 takes nothing returns boolean
if(not Lq4())then
return false
endif
return true
endfunction
function Lx4 takes nothing returns nothing
if(Lw4())then
if(Lv4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895129))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894861,GetBuyingUnit())
else
if(Lu4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895094))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895382))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895377,GetBuyingUnit())
else
if(Ls4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895118))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895380))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895378,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227894860,GetBuyingUnit())
endif
endfunction
function Ly4 takes nothing returns nothing
set udg_Pw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Pw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Pw,Condition(function Ln4))
call TriggerAddAction(udg_Pw,function Lx4)
endfunction
function Lz4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896628))then
return false
endif
return true
endfunction
function LA4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895114)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895365)==true))then
return false
endif
return true
endfunction
function La4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895622)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895621)==true))then
return false
endif
return true
endfunction
function LB4 takes nothing returns boolean
if(LA4())then
return true
endif
if(La4())then
return true
endif
return false
endfunction
function Lb4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895622)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895621)==true))then
return false
endif
return true
endfunction
function LC4 takes nothing returns boolean
if(not Lb4())then
return false
endif
return true
endfunction
function Lc4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895114)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895365)==true))then
return false
endif
return true
endfunction
function LD4 takes nothing returns boolean
if(not Lc4())then
return false
endif
return true
endfunction
function LE4 takes nothing returns boolean
if(not LB4())then
return false
endif
return true
endfunction
function L34 takes nothing returns nothing
if(LE4())then
if(LD4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895114))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895365))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895126,GetBuyingUnit())
else
if(LC4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895622))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895621))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895110,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1227895095,GetBuyingUnit())
endif
endfunction
function LF4 takes nothing returns nothing
set udg_Qw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Qw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Qw,Condition(function Lz4))
call TriggerAddAction(udg_Qw,function L34)
endfunction
function LG4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896405))then
return false
endif
return true
endfunction
function L64 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895089)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895105)==true))then
return false
endif
return true
endfunction
function LH4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895091)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651663203)==true))then
return false
endif
return true
endfunction
function LI4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894865)==true))then
return false
endif
return true
endfunction
function Ll4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895091)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1651663203)==true))then
return false
endif
return true
endfunction
function L14 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895089)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895105)==true))then
return false
endif
return true
endfunction
function LJ4 takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894865)==true))then
return true
endif
if(Ll4())then
return true
endif
if(L14())then
return true
endif
return false
endfunction
function LK4 takes nothing returns boolean
if(not LJ4())then
return false
endif
return true
endfunction
function LL4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function LM4 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function LN4 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function LO4 takes nothing returns nothing
if(LK4())then
if(LI4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894865))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894863,GetBuyingUnit())
else
if(LH4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895091))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1651663203))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895121,GetBuyingUnit())
else
if(L64())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895089))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895105))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895122,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227894864,GetBuyingUnit())
endif
if(LN4())then
call ForGroupBJ(d6(GetPlayableMapRect()),function LL4)
call ForForce(GetPlayersAll(),function LM4)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function L04 takes nothing returns nothing
set udg_Rw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Rw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Rw,Condition(function LG4))
call TriggerAddAction(udg_Rw,function LO4)
endfunction
function LP4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896406))then
return false
endif
return true
endfunction
function LQ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894864)==true))then
return false
endif
return true
endfunction
function LR4 takes nothing returns nothing
if(LQ4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894864))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894863,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227894865,GetBuyingUnit())
endif
endfunction
function LS4 takes nothing returns nothing
set udg_Sw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Sw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Sw,Condition(function LP4))
call TriggerAddAction(udg_Sw,function LR4)
endfunction
function L54 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896624))then
return false
endif
return true
endfunction
function LT4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895097)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894853)==true))then
return false
endif
return true
endfunction
function LU4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894832)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895895)==true))then
return false
endif
return true
endfunction
function LV4 takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895361)==true))then
return true
endif
if(LT4())then
return true
endif
if(LU4())then
return true
endif
return false
endfunction
function LW4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894832)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895895)==true))then
return false
endif
return true
endfunction
function LX4 takes nothing returns boolean
if(not LW4())then
return false
endif
return true
endfunction
function LY4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895097)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894853)==true))then
return false
endif
return true
endfunction
function L24 takes nothing returns boolean
if(not LY4())then
return false
endif
return true
endfunction
function LZ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895361)==true))then
return false
endif
return true
endfunction
function L_4 takes nothing returns boolean
if(not LV4())then
return false
endif
return true
endfunction
function M44 takes nothing returns nothing
if(L_4())then
if(LZ4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895361))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895620,GetBuyingUnit())
else
if(L24())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895097))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894838))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894853))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894855,GetBuyingUnit())
else
if(LX4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894832))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895895))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895883,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227895609,GetBuyingUnit())
endif
endfunction
function M74 takes nothing returns nothing
set udg_Tw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Tw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Tw,Condition(function L54))
call TriggerAddAction(udg_Tw,function M44)
endfunction
function M84 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896407))then
return false
endif
return true
endfunction
function M94 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895105)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895097)==true))then
return false
endif
return true
endfunction
function Md4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1919182130)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895362)==true))then
return false
endif
return true
endfunction
function Me4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1919182130)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895362)==true))then
return false
endif
return true
endfunction
function Mf4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895105)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895097)==true))then
return false
endif
return true
endfunction
function Mg4 takes nothing returns boolean
if(Me4())then
return true
endif
if(Mf4())then
return true
endif
return false
endfunction
function Mh4 takes nothing returns boolean
if(not Mg4())then
return false
endif
return true
endfunction
function Mi4 takes nothing returns nothing
if(Mh4())then
if(Md4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1919182130))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895362))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894871,GetBuyingUnit())
else
if(M94())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895105))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895097))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895361,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1227895096,GetBuyingUnit())
endif
endfunction
function Mj4 takes nothing returns nothing
set udg_Uw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Uw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Uw,Condition(function M84))
call TriggerAddAction(udg_Uw,function Mi4)
endfunction
function Mk4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896408))then
return false
endif
return true
endfunction
function Mm4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895096)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895105)==true))then
return false
endif
return true
endfunction
function Mn4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895609)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894853)==true))then
return false
endif
return true
endfunction
function Mo4 takes nothing returns boolean
if(Mm4())then
return true
endif
if(Mn4())then
return true
endif
return false
endfunction
function Mp4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895096)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895105)==true))then
return false
endif
return true
endfunction
function Mq4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895609)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894853)==true))then
return false
endif
return true
endfunction
function Mr4 takes nothing returns boolean
if(not Mq4())then
return false
endif
return true
endfunction
function Ms4 takes nothing returns boolean
if(not Mp4())then
return false
endif
return true
endfunction
function Mt4 takes nothing returns boolean
if(not Mo4())then
return false
endif
return true
endfunction
function Mu4 takes nothing returns nothing
if(Mt4())then
if(Ms4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895096))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895105))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895361,GetBuyingUnit())
else
if(Mr4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895609))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894838))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894853))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894855,GetBuyingUnit())
else
call DoNothing()
endif
endif
else
call UnitAddItemByIdSwapped(1227895097,GetBuyingUnit())
endif
endfunction
function Mv4 takes nothing returns nothing
set udg_Vw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Vw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Vw,Condition(function Mk4))
call TriggerAddAction(udg_Vw,function Mu4)
endfunction
function Mw4 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896402))then
return false
endif
return true
endfunction
function Mx4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894867)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895130)==true))then
return false
endif
return true
endfunction
function My4 takes nothing returns boolean
if(not Mx4())then
return false
endif
return true
endfunction
function Mz4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895096)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895097)==true))then
return false
endif
return true
endfunction
function MA4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894864)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895089)==true))then
return false
endif
return true
endfunction
function Ma4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894864)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895089)==true))then
return false
endif
return true
endfunction
function MB4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895096)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895097)==true))then
return false
endif
return true
endfunction
function Mb4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894867)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895130)==true))then
return false
endif
return true
endfunction
function MC4 takes nothing returns boolean
if(Ma4())then
return true
endif
if(MB4())then
return true
endif
if(Mb4())then
return true
endif
return false
endfunction
function Mc4 takes nothing returns boolean
if(not MC4())then
return false
endif
return true
endfunction
function MD4 takes nothing returns nothing
if(Mc4())then
if(MA4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894864))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895089))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895122,GetBuyingUnit())
else
if(Mz4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895096))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895097))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895361,GetBuyingUnit())
else
if(My4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894867))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895130))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894832,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227895105,GetBuyingUnit())
endif
endfunction
function ME4 takes nothing returns nothing
set udg_Ww=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ww,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Ww,Condition(function Mw4))
call TriggerAddAction(udg_Ww,function MD4)
endfunction
function M34 takes nothing returns boolean
if(not(GetUnitTypeId(GetSellingUnit())==1751938413))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227896630))then
return false
endif
return true
endfunction
function MF4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895107)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894861)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895366)==true))then
return false
endif
return true
endfunction
function MG4 takes nothing returns boolean
if(not MF4())then
return false
endif
return true
endfunction
function M64 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894867)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895108)==true))then
return false
endif
return true
endfunction
function MH4 takes nothing returns boolean
if(not M64())then
return false
endif
return true
endfunction
function MI4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895095)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895621)==true))then
return false
endif
return true
endfunction
function Ml4 takes nothing returns boolean
if(not MI4())then
return false
endif
return true
endfunction
function M14 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895095)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895621)==true))then
return false
endif
return true
endfunction
function MJ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894867)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895108)==true))then
return false
endif
return true
endfunction
function MK4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895107)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894861)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895366)==true))then
return false
endif
return true
endfunction
function ML4 takes nothing returns boolean
if(M14())then
return true
endif
if(MJ4())then
return true
endif
if(MK4())then
return true
endif
return false
endfunction
function MM4 takes nothing returns boolean
if(not ML4())then
return false
endif
return true
endfunction
function MN4 takes nothing returns nothing
if(MM4())then
if(Ml4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895095))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895621))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895110,GetBuyingUnit())
else
if(MH4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894867))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895108))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894859,GetBuyingUnit())
else
if(MG4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895107))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894861))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895366))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895123,GetBuyingUnit())
else
call DoNothing()
endif
endif
endif
else
call UnitAddItemByIdSwapped(1227895622,GetBuyingUnit())
endif
endfunction
function MO4 takes nothing returns nothing
set udg_Xw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Xw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Xw,Condition(function M34))
call TriggerAddAction(udg_Xw,function MN4)
endfunction
function M04 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895625))then
return false
endif
return true
endfunction
function MP4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895096)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1919182130)==true))then
return false
endif
return true
endfunction
function MQ4 takes nothing returns boolean
if(not MP4())then
return false
endif
return true
endfunction
function MR4 takes nothing returns nothing
if(MQ4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895096))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1919182130))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894871,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895362,GetBuyingUnit())
endif
endfunction
function MS4 takes nothing returns nothing
set udg_Yw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Yw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Yw,Condition(function M04))
call TriggerAddAction(udg_Yw,function MR4)
endfunction
function M54 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895873))then
return false
endif
return true
endfunction
function MT4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895097)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895609)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
return true
endfunction
function MU4 takes nothing returns boolean
if(not MT4())then
return false
endif
return true
endfunction
function MV4 takes nothing returns nothing
if(MU4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895097))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895609))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894838))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894855,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227894853,GetBuyingUnit())
endif
endfunction
function MW4 takes nothing returns nothing
set udg_Zw=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Zw,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Zw,Condition(function M54))
call TriggerAddAction(udg_Zw,function MV4)
endfunction
function MX4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895629))then
return false
endif
return true
endfunction
function MY4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895106)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895094)==true))then
return false
endif
return true
endfunction
function M24 takes nothing returns boolean
if(not MY4())then
return false
endif
return true
endfunction
function MZ4 takes nothing returns nothing
if(M24())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895106))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895094))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895107,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227894858,GetBuyingUnit())
endif
endfunction
function M_4 takes nothing returns nothing
set udg_ex=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ex,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_ex,Condition(function MX4))
call TriggerAddAction(udg_ex,function MZ4)
endfunction
function N44 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895631))then
return false
endif
return true
endfunction
function N74 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894869)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1918989369)==true))then
return false
endif
return true
endfunction
function N84 takes nothing returns boolean
if(not N74())then
return false
endif
return true
endfunction
function N94 takes nothing returns nothing
if(N84())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894869))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1918989369))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895106,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895348,GetBuyingUnit())
endif
endfunction
function Nd4 takes nothing returns nothing
set udg_fx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_fx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_fx,Condition(function N44))
call TriggerAddAction(udg_fx,function N94)
endfunction
function Ne4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895892))then
return false
endif
return true
endfunction
function Nf4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894869)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895885)==true))then
return false
endif
return true
endfunction
function Ng4 takes nothing returns boolean
if(not Nf4())then
return false
endif
return true
endfunction
function Nh4 takes nothing returns nothing
if(Ng4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894869))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895885))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895882,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227896114,GetBuyingUnit())
endif
endfunction
function Ni4 takes nothing returns nothing
set udg_gx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_gx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_gx,Condition(function Ne4))
call TriggerAddAction(udg_gx,function Nh4)
endfunction
function Nj4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895876))then
return false
endif
return true
endfunction
function Nk4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894873)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1667854953)==true))then
return false
endif
return true
endfunction
function Nm4 takes nothing returns boolean
if(not Nk4())then
return false
endif
return true
endfunction
function Nn4 takes nothing returns nothing
if(Nm4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894873))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1667854953))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895347,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895368,GetBuyingUnit())
endif
endfunction
function No4 takes nothing returns nothing
set udg_hx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_hx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_hx,Condition(function Nj4))
call TriggerAddAction(udg_hx,function Nn4)
endfunction
function Np4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895630))then
return false
endif
return true
endfunction
function Nq4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895094)==true))then
return false
endif
return true
endfunction
function Nr4 takes nothing returns boolean
if(not Nq4())then
return false
endif
return true
endfunction
function Ns4 takes nothing returns nothing
if(Nr4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894874))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895094))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895115,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895349,GetBuyingUnit())
endif
endfunction
function Nt4 takes nothing returns nothing
set udg_ix=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ix,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_ix,Condition(function Np4))
call TriggerAddAction(udg_ix,function Ns4)
endfunction
function Nu4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895862))then
return false
endif
return true
endfunction
function Nv4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895361)==true))then
return false
endif
return true
endfunction
function Nw4 takes nothing returns boolean
if(not Nv4())then
return false
endif
return true
endfunction
function Nx4 takes nothing returns nothing
if(Nw4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894838))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895361))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894836,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895345,GetBuyingUnit())
endif
endfunction
function Ny4 takes nothing returns nothing
set udg_jx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_jx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_jx,Condition(function Nu4))
call TriggerAddAction(udg_jx,function Nx4)
endfunction
function Nz4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895381))then
return false
endif
return true
endfunction
function NA4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894867)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895105)==true))then
return false
endif
return true
endfunction
function Na4 takes nothing returns boolean
if(not NA4())then
return false
endif
return true
endfunction
function NB4 takes nothing returns nothing
if(Na4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894867))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895105))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894832,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895130,GetBuyingUnit())
endif
endfunction
function Nb4 takes nothing returns nothing
set udg_kx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_kx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_kx,Condition(function Nz4))
call TriggerAddAction(udg_kx,function NB4)
endfunction
function NC4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895864))then
return false
endif
return true
endfunction
function Nc4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894863)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
return true
endfunction
function ND4 takes nothing returns boolean
if(not Nc4())then
return false
endif
return true
endfunction
function NE4 takes nothing returns nothing
if(ND4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894863))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894838))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894839,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895350,GetBuyingUnit())
endif
endfunction
function N34 takes nothing returns nothing
set udg_mx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_mx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_mx,Condition(function NC4))
call TriggerAddAction(udg_mx,function NE4)
endfunction
function NF4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895889))then
return false
endif
return true
endfunction
function NG4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895088)==true))then
return false
endif
return true
endfunction
function N64 takes nothing returns boolean
if(not NG4())then
return false
endif
return true
endfunction
function NH4 takes nothing returns nothing
if(N64())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894874))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895088))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895880,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895897,GetBuyingUnit())
endif
endfunction
function NI4 takes nothing returns nothing
set udg_nx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_nx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_nx,Condition(function NF4))
call TriggerAddAction(udg_nx,function NH4)
endfunction
function Nl4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895879))then
return false
endif
return true
endfunction
function N14 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894874)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
return true
endfunction
function NJ4 takes nothing returns boolean
if(not N14())then
return false
endif
return true
endfunction
function NK4 takes nothing returns nothing
if(NJ4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894874))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894838))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895379,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895606,GetBuyingUnit())
endif
endfunction
function NL4 takes nothing returns nothing
set udg_ox=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ox,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_ox,Condition(function Nl4))
call TriggerAddAction(udg_ox,function NK4)
endfunction
function NM4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895117))then
return false
endif
return true
endfunction
function NN4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894870)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894838)==true))then
return false
endif
return true
endfunction
function NO4 takes nothing returns boolean
if(not NN4())then
return false
endif
return true
endfunction
function N04 takes nothing returns nothing
if(NO4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894870))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894838))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895118,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895367,GetBuyingUnit())
endif
endfunction
function NP4 takes nothing returns nothing
set udg_px=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_px,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_px,Condition(function NM4))
call TriggerAddAction(udg_px,function N04)
endfunction
function NQ4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895861))then
return false
endif
return true
endfunction
function NR4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1836016756)==true))then
return false
endif
return true
endfunction
function NS4 takes nothing returns nothing
if(NR4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1836016756))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895119,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895353,GetBuyingUnit())
endif
endfunction
function N54 takes nothing returns nothing
set udg_qx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_qx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_qx,Condition(function NQ4))
call TriggerAddAction(udg_qx,function NS4)
endfunction
function NT4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895633))then
return false
endif
return true
endfunction
function NU4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894832)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895093)==true))then
return false
endif
return true
endfunction
function NV4 takes nothing returns boolean
if(not NU4())then
return false
endif
return true
endfunction
function NW4 takes nothing returns nothing
if(NV4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894832))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895093))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895125,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895364,GetBuyingUnit())
endif
endfunction
function NX4 takes nothing returns nothing
set udg_rx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_rx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_rx,Condition(function NT4))
call TriggerAddAction(udg_rx,function NW4)
endfunction
function NY4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895893))then
return false
endif
return true
endfunction
function N24 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894832)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895609)==true))then
return false
endif
return true
endfunction
function NZ4 takes nothing returns boolean
if(not N24())then
return false
endif
return true
endfunction
function N_4 takes nothing returns nothing
if(NZ4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894832))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895609))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895883,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895895,GetBuyingUnit())
endif
endfunction
function O44 takes nothing returns nothing
set udg_sx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_sx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_sx,Condition(function NY4))
call TriggerAddAction(udg_sx,function N_4)
endfunction
function O74 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895624))then
return false
endif
return true
endfunction
function O84 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894860)==true))then
return false
endif
return true
endfunction
function O94 takes nothing returns nothing
if(O84())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894860))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894861,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895129,GetBuyingUnit())
endif
endfunction
function Od4 takes nothing returns nothing
set udg_tx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_tx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_tx,Condition(function O74))
call TriggerAddAction(udg_tx,function O94)
endfunction
function Oe4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895635))then
return false
endif
return true
endfunction
function Of4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894860)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895094)==true))then
return false
endif
return true
endfunction
function Og4 takes nothing returns nothing
if(Of4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894860))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895094))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895377,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895382,GetBuyingUnit())
endif
endfunction
function Oh4 takes nothing returns nothing
set udg_ux=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ux,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_ux,Condition(function Oe4))
call TriggerAddAction(udg_ux,function Og4)
endfunction
function Oi4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895874))then
return false
endif
return true
endfunction
function Oj4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894868)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895094)==true))then
return false
endif
return true
endfunction
function Ok4 takes nothing returns nothing
if(Oj4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894868))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895094))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895376,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895604,GetBuyingUnit())
endif
endfunction
function Om4 takes nothing returns nothing
set udg_vx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_vx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_vx,Condition(function Oi4))
call TriggerAddAction(udg_vx,function Ok4)
endfunction
function On4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895859))then
return false
endif
return true
endfunction
function Oo4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894860)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895118)==true))then
return false
endif
return true
endfunction
function Op4 takes nothing returns nothing
if(Oo4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894860))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895118))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895378,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895380,GetBuyingUnit())
endif
endfunction
function Oq4 takes nothing returns nothing
set udg_wx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_wx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_wx,Condition(function On4))
call TriggerAddAction(udg_wx,function Op4)
endfunction
function Or4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895891))then
return false
endif
return true
endfunction
function Os4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895115)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895378)==true))then
return false
endif
return true
endfunction
function Ot4 takes nothing returns nothing
if(Os4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895115))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895378))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895881,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895896,GetBuyingUnit())
endif
endfunction
function Ou4 takes nothing returns nothing
set udg_xx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_xx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_xx,Condition(function Or4))
call TriggerAddAction(udg_xx,function Ot4)
endfunction
function Ov4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895878))then
return false
endif
return true
endfunction
function Ow4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895347)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894871)==true))then
return false
endif
return true
endfunction
function Ox4 takes nothing returns nothing
if(Ow4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895347))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894871))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895607,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895608,GetBuyingUnit())
endif
endfunction
function Oy4 takes nothing returns nothing
set udg_yx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_yx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_yx,Condition(function Ov4))
call TriggerAddAction(udg_yx,function Ox4)
endfunction
function Oz4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895863))then
return false
endif
return true
endfunction
function OA4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894872)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650946932)==true))then
return false
endif
return true
endfunction
function Oa4 takes nothing returns boolean
if(not OA4())then
return false
endif
return true
endfunction
function OB4 takes nothing returns nothing
if(Oa4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894872))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1650946932))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895111,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895351,GetBuyingUnit())
endif
endfunction
function Ob4 takes nothing returns nothing
set udg_zx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_zx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_zx,Condition(function Oz4))
call TriggerAddAction(udg_zx,function OB4)
endfunction
function OC4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895865))then
return false
endif
return true
endfunction
function Oc4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894867)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895109)==true))then
return false
endif
return true
endfunction
function OD4 takes nothing returns boolean
if(not Oc4())then
return false
endif
return true
endfunction
function OE4 takes nothing returns nothing
if(OD4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894867))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895109))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894850,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895344,GetBuyingUnit())
endif
endfunction
function O34 takes nothing returns nothing
set udg_Ax=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ax,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Ax,Condition(function OC4))
call TriggerAddAction(udg_Ax,function OE4)
endfunction
function OF4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895628))then
return false
endif
return true
endfunction
function OG4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895121)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895109)==true))then
return false
endif
return true
endfunction
function O64 takes nothing returns boolean
if(not OG4())then
return false
endif
return true
endfunction
function OH4 takes nothing returns nothing
if(O64())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895121))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895109))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895124,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895363,GetBuyingUnit())
endif
endfunction
function OI4 takes nothing returns nothing
set udg_ax=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ax,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_ax,Condition(function OF4))
call TriggerAddAction(udg_ax,function OH4)
endfunction
function Ol4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895637))then
return false
endif
return true
endfunction
function O14 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894868)==true))then
return false
endif
return true
endfunction
function OJ4 takes nothing returns nothing
if(O14())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894868))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895370,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895371,GetBuyingUnit())
endif
endfunction
function OK4 takes nothing returns nothing
set udg_Bx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Bx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Bx,Condition(function Ol4))
call TriggerAddAction(udg_Bx,function OJ4)
endfunction
function OL4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895626))then
return false
endif
return true
endfunction
function OM4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894868)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895088)==true))then
return false
endif
return true
endfunction
function ON4 takes nothing returns boolean
if(not OM4())then
return false
endif
return true
endfunction
function OO4 takes nothing returns nothing
if(ON4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894868))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895088))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895114,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895346,GetBuyingUnit())
endif
endfunction
function O04 takes nothing returns nothing
set udg_bx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_bx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_bx,Condition(function OL4))
call TriggerAddAction(udg_bx,function OO4)
endfunction
function OP4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895634))then
return false
endif
return true
endfunction
function OQ4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895114)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895095)==true))then
return false
endif
return true
endfunction
function OR4 takes nothing returns boolean
if(not OQ4())then
return false
endif
return true
endfunction
function OS4 takes nothing returns nothing
if(OR4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895114))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895095))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895126,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895365,GetBuyingUnit())
endif
endfunction
function O54 takes nothing returns nothing
set udg_Cx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Cx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Cx,Condition(function OP4))
call TriggerAddAction(udg_Cx,function OS4)
endfunction
function OT4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895860))then
return false
endif
return true
endfunction
function OU4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895622)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895095)==true))then
return false
endif
return true
endfunction
function OV4 takes nothing returns boolean
if(not OU4())then
return false
endif
return true
endfunction
function OW4 takes nothing returns nothing
if(OV4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895622))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895095))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895110,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895621,GetBuyingUnit())
endif
endfunction
function OX4 takes nothing returns nothing
set udg_cx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_cx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_cx,Condition(function OT4))
call TriggerAddAction(udg_cx,function OW4)
endfunction
function OY4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895856))then
return false
endif
return true
endfunction
function O24 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895622)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894867)==true))then
return false
endif
return true
endfunction
function OZ4 takes nothing returns boolean
if(not O24())then
return false
endif
return true
endfunction
function O_4 takes nothing returns nothing
if(OZ4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895622))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894867))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894859,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895108,GetBuyingUnit())
endif
endfunction
function P44 takes nothing returns nothing
set udg_Dx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Dx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Dx,Condition(function OY4))
call TriggerAddAction(udg_Dx,function O_4)
endfunction
function P74 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895636))then
return false
endif
return true
endfunction
function P84 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1836016756)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895120)==true))then
return false
endif
return true
endfunction
function P94 takes nothing returns boolean
if(not P84())then
return false
endif
return true
endfunction
function Pd4 takes nothing returns nothing
if(P94())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1836016756))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895120))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895128,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895605,GetBuyingUnit())
endif
endfunction
function Pe4 takes nothing returns nothing
set udg_Ex=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ex,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Ex,Condition(function P74))
call TriggerAddAction(udg_Ex,function Pd4)
endfunction
function Pf4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895627))then
return false
endif
return true
endfunction
function Pg4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894873)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1650814070)==true))then
return false
endif
return true
endfunction
function Ph4 takes nothing returns boolean
if(not Pg4())then
return false
endif
return true
endfunction
function Pi4 takes nothing returns nothing
if(Ph4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894873))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1650814070))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895112,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895352,GetBuyingUnit())
endif
endfunction
function Pj4 takes nothing returns nothing
set udg_Fx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Fx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Fx,Condition(function Pf4))
call TriggerAddAction(udg_Fx,function Pi4)
endfunction
function Pk4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895641))then
return false
endif
return true
endfunction
function Pm4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895622)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227895107)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894861)==true))then
return false
endif
return true
endfunction
function Pn4 takes nothing returns boolean
if(not Pm4())then
return false
endif
return true
endfunction
function Po4 takes nothing returns nothing
if(Pn4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895622))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227895107))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894861))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895123,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895366,GetBuyingUnit())
endif
endfunction
function Pp4 takes nothing returns nothing
set udg_Gx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Gx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Gx,Condition(function Pk4))
call TriggerAddAction(udg_Gx,function Po4)
endfunction
function Pq4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895638))then
return false
endif
return true
endfunction
function Pr4 takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894840)==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894836)==true))then
return true
endif
return false
endfunction
function Ps4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1868984943)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894849)==true))then
return false
endif
if(not Pr4())then
return false
endif
return true
endfunction
function Pt4 takes nothing returns boolean
if(not Ps4())then
return false
endif
return true
endfunction
function Pu4 takes nothing returns nothing
if(Pt4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1868984943))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894849))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894836))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894840))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894857,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895127,GetBuyingUnit())
endif
endfunction
function Pv4 takes nothing returns nothing
set udg_Hx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Hx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Hx,Condition(function Pq4))
call TriggerAddAction(udg_Hx,function Pu4)
endfunction
function Pw4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895857))then
return false
endif
return true
endfunction
function Px4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894862)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894849)==true))then
return false
endif
return true
endfunction
function Py4 takes nothing returns boolean
if(not Px4())then
return false
endif
return true
endfunction
function Pz4 takes nothing returns nothing
if(Py4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894862))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894849))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895875,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895877,GetBuyingUnit())
endif
endfunction
function PA4 takes nothing returns nothing
set udg_Ix=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ix,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Ix,Condition(function Pw4))
call TriggerAddAction(udg_Ix,function Pz4)
endfunction
function Pa4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895639))then
return false
endif
return true
endfunction
function PB4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894849)==true))then
return false
endif
return true
endfunction
function Pb4 takes nothing returns nothing
if(PB4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894849))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894841,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227894852,GetBuyingUnit())
endif
endfunction
function PC4 takes nothing returns nothing
set udg_lx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_lx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_lx,Condition(function Pa4))
call TriggerAddAction(udg_lx,function Pb4)
endfunction
function Pc4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895642))then
return false
endif
return true
endfunction
function PD4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894849)==true))then
return false
endif
return true
endfunction
function PE4 takes nothing returns nothing
if(PD4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894849))
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetBuyingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227894866,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895090,GetBuyingUnit())
endif
endfunction
function P34 takes nothing returns nothing
set udg_Jx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Jx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Jx,Condition(function Pc4))
call TriggerAddAction(udg_Jx,function PE4)
endfunction
function PF4 takes nothing returns boolean
if(not(MG(GetBuyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetSoldItem())==1227895640))then
return false
endif
return true
endfunction
function PG4 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894833)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetBuyingUnit(),1227894839)==true))then
return false
endif
return true
endfunction
function P64 takes nothing returns nothing
if(PG4())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894833))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),1227894839))
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped(1227895373,GetBuyingUnit())
else
call UnitAddItemByIdSwapped(1227895372,GetBuyingUnit())
endif
endfunction
function PH4 takes nothing returns nothing
set udg_Kx=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Kx,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_Kx,Condition(function PF4))
call TriggerAddAction(udg_Kx,function P64)
endfunction
function PI4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function Pl4 takes nothing returns boolean
if(not PI4())then
return false
endif
return true
endfunction
function P14 takes nothing returns boolean
return(udg_n7[1]!=null)
endfunction
function PJ4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[1]))==true)
endfunction
function PK4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function PL4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function PM4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function PN4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function PO4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function P04 takes nothing returns boolean
return GetBooleanAnd(PN4(),PO4())
endfunction
function PP4 takes nothing returns boolean
return GetBooleanAnd(PM4(),P04())
endfunction
function PQ4 takes nothing returns boolean
return GetBooleanAnd(PL4(),PP4())
endfunction
function PR4 takes nothing returns boolean
return GetBooleanAnd(PK4(),PQ4())
endfunction
function PS4 takes nothing returns boolean
return GetBooleanAnd(PJ4(),PR4())
endfunction
function P54 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[1],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function PT4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function PU4 takes nothing returns boolean
if(not(udg_r7[1]==9))then
return false
endif
return true
endfunction
function PV4 takes nothing returns boolean
if(not(udg_n7[1]!=null))then
return false
endif
return true
endfunction
function PW4 takes nothing returns nothing
call RemoveLocation(udg_v7[1])
set udg_v7[1]=null
call RemoveLocation(udg_s7[1])
set udg_s7[1]=null
if(P14())then
call KillUnit(udg_n7[1])
else
call DoNothing()
endif
set udg_o7[1]=null
set udg_n7[1]=null
set udg_q7[1]=0.00
set udg_r7[1]=0
set udg_o7[1]=GetManipulatingUnit()
set udg_v7[1]=GetUnitLoc(udg_o7[1])
set udg_s7[1]=PG(udg_v7[1],325.00,GetUnitFacing(udg_o7[1]))
set udg_q7[1]=AngleBetweenPoints(udg_v7[1],udg_s7[1])
call TriggerExecute(udg_Xx)
call TriggerSleepAction(1.81)
set udg_p7[1]=1
loop
exitwhen udg_p7[1]>10
if(PV4())then
set udg_r7[1]=(udg_r7[1]+1)
set udg_t7[1]=PG(GetUnitLoc(udg_n7[1]),60.00,udg_q7[1])
call AddSpecialEffectLocBJ(udg_t7[1],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[1]=e6(390.00,udg_t7[1],Condition(function PS4))
set udg_u7[1]=PG(udg_s7[1],(550.00+(100.00*I2R(udg_p7[1]))),udg_q7[1])
call IssuePointOrderLocBJ(udg_n7[1],"smart",udg_u7[1])
call ForGroupBJ(udg_w7[1],function P54)
call AddSpecialEffectLocBJ(udg_t7[1],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[1],function PT4)
if(PU4())then
call KillUnit(udg_n7[1])
set udg_n7[1]=null
set udg_q7[1]=0.00
call RemoveLocation(udg_u7[1])
set udg_u7[1]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[1])
set udg_t7[1]=null
call DestroyGroup(udg_w7[1])
set udg_w7[1]=null
call RemoveLocation(udg_u7[1])
set udg_u7[1]=null
call TriggerSleepAction(0.25)
set udg_p7[1]=udg_p7[1]+1
endloop
endfunction
function PX4 takes nothing returns nothing
set udg_Lx=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Lx,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Lx,Condition(function Pl4))
call TriggerAddAction(udg_Lx,function PW4)
endfunction
function PY4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function P24 takes nothing returns boolean
if(not PY4())then
return false
endif
return true
endfunction
function PZ4 takes nothing returns boolean
return(udg_n7[2]!=null)
endfunction
function P_4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[2]))==true)
endfunction
function Q44 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function Q74 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function Q84 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Q94 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Qd4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Qe4 takes nothing returns boolean
return GetBooleanAnd(Q94(),Qd4())
endfunction
function Qf4 takes nothing returns boolean
return GetBooleanAnd(Q84(),Qe4())
endfunction
function Qg4 takes nothing returns boolean
return GetBooleanAnd(Q74(),Qf4())
endfunction
function Qh4 takes nothing returns boolean
return GetBooleanAnd(Q44(),Qg4())
endfunction
function Qi4 takes nothing returns boolean
return GetBooleanAnd(P_4(),Qh4())
endfunction
function Qj4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[2],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[2],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Qk4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Qm4 takes nothing returns boolean
if(not(udg_r7[2]==9))then
return false
endif
return true
endfunction
function Qn4 takes nothing returns boolean
if(not(udg_n7[2]!=null))then
return false
endif
return true
endfunction
function Qo4 takes nothing returns nothing
call RemoveLocation(udg_v7[2])
set udg_v7[2]=null
call RemoveLocation(udg_s7[2])
set udg_s7[2]=null
if(PZ4())then
call KillUnit(udg_n7[2])
else
call DoNothing()
endif
set udg_o7[2]=null
set udg_n7[2]=null
set udg_q7[2]=0.00
set udg_r7[2]=0
set udg_o7[2]=GetManipulatingUnit()
set udg_v7[2]=GetUnitLoc(udg_o7[2])
set udg_s7[2]=PG(udg_v7[2],325.00,GetUnitFacing(udg_o7[2]))
set udg_q7[2]=AngleBetweenPoints(udg_v7[2],udg_s7[2])
call TriggerExecute(udg_Yx)
call TriggerSleepAction(1.81)
set udg_p7[2]=1
loop
exitwhen udg_p7[2]>10
if(Qn4())then
set udg_r7[2]=(udg_r7[2]+1)
set udg_t7[2]=PG(GetUnitLoc(udg_n7[2]),60.00,udg_q7[2])
call AddSpecialEffectLocBJ(udg_t7[2],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[2]=e6(390.00,udg_t7[2],Condition(function Qi4))
set udg_u7[2]=PG(udg_s7[2],(550.00+(100.00*I2R(udg_p7[2]))),udg_q7[2])
call IssuePointOrderLocBJ(udg_n7[2],"smart",udg_u7[2])
call ForGroupBJ(udg_w7[2],function Qj4)
call AddSpecialEffectLocBJ(udg_t7[2],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[2],function Qk4)
if(Qm4())then
call KillUnit(udg_n7[2])
set udg_n7[2]=null
set udg_q7[2]=0.00
call RemoveLocation(udg_u7[2])
set udg_u7[2]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[2])
set udg_t7[2]=null
call DestroyGroup(udg_w7[2])
set udg_w7[2]=null
call RemoveLocation(udg_u7[2])
set udg_u7[2]=null
call TriggerSleepAction(0.25)
set udg_p7[2]=udg_p7[2]+1
endloop
endfunction
function Qp4 takes nothing returns nothing
set udg_Mx=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Mx,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Mx,Condition(function P24))
call TriggerAddAction(udg_Mx,function Qo4)
endfunction
function Qq4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function Qr4 takes nothing returns boolean
if(not Qq4())then
return false
endif
return true
endfunction
function Qs4 takes nothing returns boolean
return(udg_n7[3]!=null)
endfunction
function Qt4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[3]))==true)
endfunction
function Qu4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function Qv4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function Qw4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Qx4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Qy4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Qz4 takes nothing returns boolean
return GetBooleanAnd(Qx4(),Qy4())
endfunction
function QA4 takes nothing returns boolean
return GetBooleanAnd(Qw4(),Qz4())
endfunction
function Qa4 takes nothing returns boolean
return GetBooleanAnd(Qv4(),QA4())
endfunction
function QB4 takes nothing returns boolean
return GetBooleanAnd(Qu4(),Qa4())
endfunction
function Qb4 takes nothing returns boolean
return GetBooleanAnd(Qt4(),QB4())
endfunction
function QC4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[3],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[3],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Qc4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function QD4 takes nothing returns boolean
if(not(udg_r7[3]==9))then
return false
endif
return true
endfunction
function QE4 takes nothing returns boolean
if(not(udg_n7[3]!=null))then
return false
endif
return true
endfunction
function Q34 takes nothing returns nothing
call RemoveLocation(udg_v7[3])
set udg_v7[3]=null
call RemoveLocation(udg_s7[3])
set udg_s7[3]=null
if(Qs4())then
call KillUnit(udg_n7[3])
else
call DoNothing()
endif
set udg_o7[3]=null
set udg_n7[3]=null
set udg_q7[3]=0.00
set udg_r7[3]=0
set udg_o7[3]=GetManipulatingUnit()
set udg_v7[3]=GetUnitLoc(udg_o7[3])
set udg_s7[3]=PG(udg_v7[3],325.00,GetUnitFacing(udg_o7[3]))
set udg_q7[3]=AngleBetweenPoints(udg_v7[3],udg_s7[3])
call TriggerExecute(udg_Zx)
call TriggerSleepAction(1.81)
set udg_p7[3]=1
loop
exitwhen udg_p7[3]>10
if(QE4())then
set udg_r7[3]=(udg_r7[3]+1)
set udg_t7[3]=PG(GetUnitLoc(udg_n7[3]),60.00,udg_q7[3])
call AddSpecialEffectLocBJ(udg_t7[3],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[3]=e6(390.00,udg_t7[3],Condition(function Qb4))
set udg_u7[3]=PG(udg_s7[3],(550.00+(100.00*I2R(udg_p7[3]))),udg_q7[3])
call IssuePointOrderLocBJ(udg_n7[3],"smart",udg_u7[3])
call ForGroupBJ(udg_w7[3],function QC4)
call AddSpecialEffectLocBJ(udg_t7[3],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[3],function Qc4)
if(QD4())then
call KillUnit(udg_n7[3])
set udg_n7[3]=null
set udg_q7[3]=0.00
call RemoveLocation(udg_u7[3])
set udg_u7[3]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[3])
set udg_t7[3]=null
call DestroyGroup(udg_w7[3])
set udg_w7[3]=null
call RemoveLocation(udg_u7[3])
set udg_u7[3]=null
call TriggerSleepAction(0.25)
set udg_p7[3]=udg_p7[3]+1
endloop
endfunction
function QF4 takes nothing returns nothing
set udg_Nx=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Nx,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Nx,Condition(function Qr4))
call TriggerAddAction(udg_Nx,function Q34)
endfunction
function QG4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function Q64 takes nothing returns boolean
if(not QG4())then
return false
endif
return true
endfunction
function QH4 takes nothing returns boolean
return(udg_n7[4]!=null)
endfunction
function QI4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[4]))==true)
endfunction
function Ql4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function Q14 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function QJ4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function QK4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function QL4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function QM4 takes nothing returns boolean
return GetBooleanAnd(QK4(),QL4())
endfunction
function QN4 takes nothing returns boolean
return GetBooleanAnd(QJ4(),QM4())
endfunction
function QO4 takes nothing returns boolean
return GetBooleanAnd(Q14(),QN4())
endfunction
function Q04 takes nothing returns boolean
return GetBooleanAnd(Ql4(),QO4())
endfunction
function QP4 takes nothing returns boolean
return GetBooleanAnd(QI4(),Q04())
endfunction
function QQ4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[4],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[4],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function QR4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function QS4 takes nothing returns boolean
if(not(udg_r7[4]==9))then
return false
endif
return true
endfunction
function Q54 takes nothing returns boolean
if(not(udg_n7[4]!=null))then
return false
endif
return true
endfunction
function QT4 takes nothing returns nothing
call RemoveLocation(udg_v7[4])
set udg_v7[4]=null
call RemoveLocation(udg_s7[4])
set udg_s7[4]=null
if(QH4())then
call KillUnit(udg_n7[4])
else
call DoNothing()
endif
set udg_o7[4]=null
set udg_n7[4]=null
set udg_q7[4]=0.00
set udg_r7[4]=0
set udg_o7[4]=GetManipulatingUnit()
set udg_v7[4]=GetUnitLoc(udg_o7[4])
set udg_s7[4]=PG(udg_v7[4],325.00,GetUnitFacing(udg_o7[4]))
set udg_q7[4]=AngleBetweenPoints(udg_v7[4],udg_s7[4])
call TriggerExecute(udg_ey)
call TriggerSleepAction(1.81)
set udg_p7[4]=1
loop
exitwhen udg_p7[4]>10
if(Q54())then
set udg_r7[4]=(udg_r7[4]+1)
set udg_t7[4]=PG(GetUnitLoc(udg_n7[4]),60.00,udg_q7[4])
call AddSpecialEffectLocBJ(udg_t7[4],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[4]=e6(390.00,udg_t7[4],Condition(function QP4))
set udg_u7[4]=PG(udg_s7[4],(550.00+(100.00*I2R(udg_p7[4]))),udg_q7[4])
call IssuePointOrderLocBJ(udg_n7[4],"smart",udg_u7[4])
call ForGroupBJ(udg_w7[4],function QQ4)
call AddSpecialEffectLocBJ(udg_t7[4],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[4],function QR4)
if(QS4())then
call KillUnit(udg_n7[4])
set udg_n7[4]=null
set udg_q7[4]=0.00
call RemoveLocation(udg_u7[4])
set udg_u7[4]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[4])
set udg_t7[4]=null
call DestroyGroup(udg_w7[4])
set udg_w7[4]=null
call RemoveLocation(udg_u7[4])
set udg_u7[4]=null
call TriggerSleepAction(0.25)
set udg_p7[4]=udg_p7[4]+1
endloop
endfunction
function QU4 takes nothing returns nothing
set udg_Ox=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Ox,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Ox,Condition(function Q64))
call TriggerAddAction(udg_Ox,function QT4)
endfunction
function QV4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function QW4 takes nothing returns boolean
if(not QV4())then
return false
endif
return true
endfunction
function QX4 takes nothing returns boolean
return(udg_n7[5]!=null)
endfunction
function QY4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[5]))==true)
endfunction
function Q24 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function QZ4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function Q_4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function R44 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function R74 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function R84 takes nothing returns boolean
return GetBooleanAnd(R44(),R74())
endfunction
function R94 takes nothing returns boolean
return GetBooleanAnd(Q_4(),R84())
endfunction
function Rd4 takes nothing returns boolean
return GetBooleanAnd(QZ4(),R94())
endfunction
function Re4 takes nothing returns boolean
return GetBooleanAnd(Q24(),Rd4())
endfunction
function Rf4 takes nothing returns boolean
return GetBooleanAnd(QY4(),Re4())
endfunction
function Rg4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[5],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[5],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Rh4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Ri4 takes nothing returns boolean
if(not(udg_r7[5]==9))then
return false
endif
return true
endfunction
function Rj4 takes nothing returns boolean
if(not(udg_n7[5]!=null))then
return false
endif
return true
endfunction
function Rk4 takes nothing returns nothing
call RemoveLocation(udg_v7[5])
set udg_v7[5]=null
call RemoveLocation(udg_s7[5])
set udg_s7[5]=null
if(QX4())then
call KillUnit(udg_n7[5])
else
call DoNothing()
endif
set udg_o7[5]=null
set udg_n7[5]=null
set udg_q7[5]=0.00
set udg_r7[5]=0
set udg_o7[5]=GetManipulatingUnit()
set udg_v7[5]=GetUnitLoc(udg_o7[5])
set udg_s7[5]=PG(udg_v7[5],325.00,GetUnitFacing(udg_o7[5]))
set udg_q7[5]=AngleBetweenPoints(udg_v7[5],udg_s7[5])
call TriggerExecute(udg_fy)
call TriggerSleepAction(1.81)
set udg_p7[5]=1
loop
exitwhen udg_p7[5]>10
if(Rj4())then
set udg_r7[5]=(udg_r7[5]+1)
set udg_t7[5]=PG(GetUnitLoc(udg_n7[5]),60.00,udg_q7[5])
call AddSpecialEffectLocBJ(udg_t7[5],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[5]=e6(390.00,udg_t7[5],Condition(function Rf4))
set udg_u7[5]=PG(udg_s7[5],(550.00+(100.00*I2R(udg_p7[5]))),udg_q7[5])
call IssuePointOrderLocBJ(udg_n7[5],"smart",udg_u7[5])
call ForGroupBJ(udg_w7[5],function Rg4)
call AddSpecialEffectLocBJ(udg_t7[5],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[5],function Rh4)
if(Ri4())then
call KillUnit(udg_n7[5])
set udg_n7[5]=null
set udg_q7[5]=0.00
call RemoveLocation(udg_u7[5])
set udg_u7[5]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[5])
set udg_t7[5]=null
call DestroyGroup(udg_w7[5])
set udg_w7[5]=null
call RemoveLocation(udg_u7[5])
set udg_u7[5]=null
call TriggerSleepAction(0.25)
set udg_p7[5]=udg_p7[5]+1
endloop
endfunction
function Rm4 takes nothing returns nothing
set udg_Px=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Px,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Px,Condition(function QW4))
call TriggerAddAction(udg_Px,function Rk4)
endfunction
function Rn4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function Ro4 takes nothing returns boolean
if(not Rn4())then
return false
endif
return true
endfunction
function Rp4 takes nothing returns boolean
return(udg_n7[6]!=null)
endfunction
function Rq4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[6]))==true)
endfunction
function Rr4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function Rs4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function Rt4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Ru4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Rv4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Rw4 takes nothing returns boolean
return GetBooleanAnd(Ru4(),Rv4())
endfunction
function Rx4 takes nothing returns boolean
return GetBooleanAnd(Rt4(),Rw4())
endfunction
function Ry4 takes nothing returns boolean
return GetBooleanAnd(Rs4(),Rx4())
endfunction
function Rz4 takes nothing returns boolean
return GetBooleanAnd(Rr4(),Ry4())
endfunction
function RA4 takes nothing returns boolean
return GetBooleanAnd(Rq4(),Rz4())
endfunction
function Ra4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[6],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[6],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function RB4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Rb4 takes nothing returns boolean
if(not(udg_r7[6]==9))then
return false
endif
return true
endfunction
function RC4 takes nothing returns boolean
if(not(udg_n7[6]!=null))then
return false
endif
return true
endfunction
function Rc4 takes nothing returns nothing
call RemoveLocation(udg_v7[6])
set udg_v7[6]=null
call RemoveLocation(udg_s7[6])
set udg_s7[6]=null
if(Rp4())then
call KillUnit(udg_n7[6])
else
call DoNothing()
endif
set udg_o7[6]=null
set udg_n7[6]=null
set udg_q7[6]=0.00
set udg_r7[6]=0
set udg_o7[6]=GetManipulatingUnit()
set udg_v7[6]=GetUnitLoc(udg_o7[6])
set udg_s7[6]=PG(udg_v7[6],325.00,GetUnitFacing(udg_o7[6]))
set udg_q7[6]=AngleBetweenPoints(udg_v7[6],udg_s7[6])
call TriggerExecute(udg_gy)
call TriggerSleepAction(1.81)
set udg_p7[6]=1
loop
exitwhen udg_p7[6]>10
if(RC4())then
set udg_r7[6]=(udg_r7[6]+1)
set udg_t7[6]=PG(GetUnitLoc(udg_n7[6]),60.00,udg_q7[6])
call AddSpecialEffectLocBJ(udg_t7[6],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[6]=e6(390.00,udg_t7[6],Condition(function RA4))
set udg_u7[6]=PG(udg_s7[6],(550.00+(100.00*I2R(udg_p7[6]))),udg_q7[6])
call IssuePointOrderLocBJ(udg_n7[6],"smart",udg_u7[6])
call ForGroupBJ(udg_w7[6],function Ra4)
call AddSpecialEffectLocBJ(udg_t7[6],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[6],function RB4)
if(Rb4())then
call KillUnit(udg_n7[6])
set udg_n7[6]=null
set udg_q7[6]=0.00
call RemoveLocation(udg_u7[6])
set udg_u7[6]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[6])
set udg_t7[6]=null
call DestroyGroup(udg_w7[6])
set udg_w7[6]=null
call RemoveLocation(udg_u7[6])
set udg_u7[6]=null
call TriggerSleepAction(0.25)
set udg_p7[6]=udg_p7[6]+1
endloop
endfunction
function RD4 takes nothing returns nothing
set udg_Qx=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Qx,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Qx,Condition(function Ro4))
call TriggerAddAction(udg_Qx,function Rc4)
endfunction
function RE4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function R34 takes nothing returns boolean
if(not RE4())then
return false
endif
return true
endfunction
function RF4 takes nothing returns boolean
return(udg_n7[7]!=null)
endfunction
function RG4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[7]))==true)
endfunction
function R64 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function RH4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function RI4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Rl4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function R14 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function RJ4 takes nothing returns boolean
return GetBooleanAnd(Rl4(),R14())
endfunction
function RK4 takes nothing returns boolean
return GetBooleanAnd(RI4(),RJ4())
endfunction
function RL4 takes nothing returns boolean
return GetBooleanAnd(RH4(),RK4())
endfunction
function RM4 takes nothing returns boolean
return GetBooleanAnd(R64(),RL4())
endfunction
function RN4 takes nothing returns boolean
return GetBooleanAnd(RG4(),RM4())
endfunction
function RO4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[7],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[7],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function R04 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function RP4 takes nothing returns boolean
if(not(udg_r7[7]==9))then
return false
endif
return true
endfunction
function RQ4 takes nothing returns boolean
if(not(udg_n7[7]!=null))then
return false
endif
return true
endfunction
function RR4 takes nothing returns nothing
call RemoveLocation(udg_v7[7])
set udg_v7[7]=null
call RemoveLocation(udg_s7[7])
set udg_s7[7]=null
if(RF4())then
call KillUnit(udg_n7[7])
else
call DoNothing()
endif
set udg_o7[7]=null
set udg_n7[7]=null
set udg_q7[7]=0.00
set udg_r7[7]=0
set udg_o7[7]=GetManipulatingUnit()
set udg_v7[7]=GetUnitLoc(udg_o7[7])
set udg_s7[7]=PG(udg_v7[7],325.00,GetUnitFacing(udg_o7[7]))
set udg_q7[7]=AngleBetweenPoints(udg_v7[7],udg_s7[7])
call TriggerExecute(udg_hy)
call TriggerSleepAction(1.81)
set udg_p7[7]=1
loop
exitwhen udg_p7[7]>10
if(RQ4())then
set udg_r7[7]=(udg_r7[7]+1)
set udg_t7[7]=PG(GetUnitLoc(udg_n7[7]),60.00,udg_q7[7])
call AddSpecialEffectLocBJ(udg_t7[7],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[7]=e6(390.00,udg_t7[7],Condition(function RN4))
set udg_u7[7]=PG(udg_s7[7],(550.00+(100.00*I2R(udg_p7[7]))),udg_q7[7])
call IssuePointOrderLocBJ(udg_n7[7],"smart",udg_u7[7])
call ForGroupBJ(udg_w7[7],function RO4)
call AddSpecialEffectLocBJ(udg_t7[7],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[7],function R04)
if(RP4())then
call KillUnit(udg_n7[7])
set udg_n7[7]=null
set udg_q7[7]=0.00
call RemoveLocation(udg_u7[7])
set udg_u7[7]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[7])
set udg_t7[7]=null
call DestroyGroup(udg_w7[7])
set udg_w7[7]=null
call RemoveLocation(udg_u7[7])
set udg_u7[7]=null
call TriggerSleepAction(0.25)
set udg_p7[7]=udg_p7[7]+1
endloop
endfunction
function RS4 takes nothing returns nothing
set udg_Rx=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Rx,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Rx,Condition(function R34))
call TriggerAddAction(udg_Rx,function RR4)
endfunction
function R54 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function RT4 takes nothing returns boolean
if(not R54())then
return false
endif
return true
endfunction
function RU4 takes nothing returns boolean
return(udg_n7[8]!=null)
endfunction
function RV4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[8]))==true)
endfunction
function RW4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function RX4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function RY4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function R24 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function RZ4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function R_4 takes nothing returns boolean
return GetBooleanAnd(R24(),RZ4())
endfunction
function S44 takes nothing returns boolean
return GetBooleanAnd(RY4(),R_4())
endfunction
function S74 takes nothing returns boolean
return GetBooleanAnd(RX4(),S44())
endfunction
function S84 takes nothing returns boolean
return GetBooleanAnd(RW4(),S74())
endfunction
function S94 takes nothing returns boolean
return GetBooleanAnd(RV4(),S84())
endfunction
function Sd4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[8],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[8],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Se4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Sf4 takes nothing returns boolean
if(not(udg_r7[8]==9))then
return false
endif
return true
endfunction
function Sg4 takes nothing returns boolean
if(not(udg_n7[8]!=null))then
return false
endif
return true
endfunction
function Sh4 takes nothing returns nothing
call RemoveLocation(udg_v7[8])
set udg_v7[8]=null
call RemoveLocation(udg_s7[8])
set udg_s7[8]=null
if(RU4())then
call KillUnit(udg_n7[8])
else
call DoNothing()
endif
set udg_o7[8]=null
set udg_n7[8]=null
set udg_q7[8]=0.00
set udg_r7[8]=0
set udg_o7[8]=GetManipulatingUnit()
set udg_v7[8]=GetUnitLoc(udg_o7[8])
set udg_s7[8]=PG(udg_v7[8],325.00,GetUnitFacing(udg_o7[8]))
set udg_q7[8]=AngleBetweenPoints(udg_v7[8],udg_s7[8])
call TriggerExecute(udg_iy)
call TriggerSleepAction(1.81)
set udg_p7[8]=1
loop
exitwhen udg_p7[8]>10
if(Sg4())then
set udg_r7[8]=(udg_r7[8]+1)
set udg_t7[8]=PG(GetUnitLoc(udg_n7[8]),60.00,udg_q7[8])
call AddSpecialEffectLocBJ(udg_t7[8],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[8]=e6(390.00,udg_t7[8],Condition(function S94))
set udg_u7[8]=PG(udg_s7[8],(550.00+(100.00*I2R(udg_p7[8]))),udg_q7[8])
call IssuePointOrderLocBJ(udg_n7[8],"smart",udg_u7[8])
call ForGroupBJ(udg_w7[8],function Sd4)
call AddSpecialEffectLocBJ(udg_t7[8],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[8],function Se4)
if(Sf4())then
call KillUnit(udg_n7[8])
set udg_n7[8]=null
set udg_q7[8]=0.00
call RemoveLocation(udg_u7[8])
set udg_u7[8]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[8])
set udg_t7[8]=null
call DestroyGroup(udg_w7[8])
set udg_w7[8]=null
call RemoveLocation(udg_u7[8])
set udg_u7[8]=null
call TriggerSleepAction(0.25)
set udg_p7[8]=udg_p7[8]+1
endloop
endfunction
function Si4 takes nothing returns nothing
set udg_Sx=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Sx,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Sx,Condition(function RT4))
call TriggerAddAction(udg_Sx,function Sh4)
endfunction
function Sj4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function Sk4 takes nothing returns boolean
if(not Sj4())then
return false
endif
return true
endfunction
function Sm4 takes nothing returns boolean
return(udg_n7[9]!=null)
endfunction
function Sn4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[9]))==true)
endfunction
function So4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function Sp4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function Sq4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Sr4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Ss4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function St4 takes nothing returns boolean
return GetBooleanAnd(Sr4(),Ss4())
endfunction
function Su4 takes nothing returns boolean
return GetBooleanAnd(Sq4(),St4())
endfunction
function Sv4 takes nothing returns boolean
return GetBooleanAnd(Sp4(),Su4())
endfunction
function Sw4 takes nothing returns boolean
return GetBooleanAnd(So4(),Sv4())
endfunction
function Sx4 takes nothing returns boolean
return GetBooleanAnd(Sn4(),Sw4())
endfunction
function Sy4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[9],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[9],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Sz4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function SA4 takes nothing returns boolean
if(not(udg_r7[9]==9))then
return false
endif
return true
endfunction
function Sa4 takes nothing returns boolean
if(not(udg_n7[9]!=null))then
return false
endif
return true
endfunction
function SB4 takes nothing returns nothing
call RemoveLocation(udg_v7[9])
set udg_v7[9]=null
call RemoveLocation(udg_s7[9])
set udg_s7[9]=null
if(Sm4())then
call KillUnit(udg_n7[9])
else
call DoNothing()
endif
set udg_o7[9]=null
set udg_n7[9]=null
set udg_q7[9]=0.00
set udg_r7[9]=0
set udg_o7[9]=GetManipulatingUnit()
set udg_v7[9]=GetUnitLoc(udg_o7[9])
set udg_s7[9]=PG(udg_v7[9],325.00,GetUnitFacing(udg_o7[9]))
set udg_q7[9]=AngleBetweenPoints(udg_v7[9],udg_s7[9])
call TriggerExecute(udg_jy)
call TriggerSleepAction(1.81)
set udg_p7[9]=1
loop
exitwhen udg_p7[9]>10
if(Sa4())then
set udg_r7[9]=(udg_r7[9]+1)
set udg_t7[9]=PG(GetUnitLoc(udg_n7[9]),60.00,udg_q7[9])
call AddSpecialEffectLocBJ(udg_t7[9],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[9]=e6(390.00,udg_t7[9],Condition(function Sx4))
set udg_u7[9]=PG(udg_s7[9],(550.00+(100.00*I2R(udg_p7[9]))),udg_q7[9])
call IssuePointOrderLocBJ(udg_n7[9],"smart",udg_u7[9])
call ForGroupBJ(udg_w7[9],function Sy4)
call AddSpecialEffectLocBJ(udg_t7[9],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[9],function Sz4)
if(SA4())then
call KillUnit(udg_n7[9])
set udg_n7[9]=null
set udg_q7[9]=0.00
call RemoveLocation(udg_u7[9])
set udg_u7[9]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[9])
set udg_t7[9]=null
call DestroyGroup(udg_w7[9])
set udg_w7[9]=null
call RemoveLocation(udg_u7[9])
set udg_u7[9]=null
call TriggerSleepAction(0.25)
set udg_p7[9]=udg_p7[9]+1
endloop
endfunction
function Sb4 takes nothing returns nothing
set udg_Tx=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Tx,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Tx,Condition(function Sk4))
call TriggerAddAction(udg_Tx,function SB4)
endfunction
function SC4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function Sc4 takes nothing returns boolean
if(not SC4())then
return false
endif
return true
endfunction
function SD4 takes nothing returns boolean
return(udg_n7[10]!=null)
endfunction
function SE4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[10]))==true)
endfunction
function S34 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function SF4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function SG4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function S64 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function SH4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function SI4 takes nothing returns boolean
return GetBooleanAnd(S64(),SH4())
endfunction
function Sl4 takes nothing returns boolean
return GetBooleanAnd(SG4(),SI4())
endfunction
function S14 takes nothing returns boolean
return GetBooleanAnd(SF4(),Sl4())
endfunction
function SJ4 takes nothing returns boolean
return GetBooleanAnd(S34(),S14())
endfunction
function SK4 takes nothing returns boolean
return GetBooleanAnd(SE4(),SJ4())
endfunction
function SL4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[10],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[10],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function SM4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function SN4 takes nothing returns boolean
if(not(udg_r7[10]==9))then
return false
endif
return true
endfunction
function SO4 takes nothing returns boolean
if(not(udg_n7[10]!=null))then
return false
endif
return true
endfunction
function S04 takes nothing returns nothing
call RemoveLocation(udg_v7[10])
set udg_v7[10]=null
call RemoveLocation(udg_s7[10])
set udg_s7[10]=null
if(SD4())then
call KillUnit(udg_n7[10])
else
call DoNothing()
endif
set udg_o7[10]=null
set udg_n7[10]=null
set udg_q7[10]=0.00
set udg_r7[10]=0
set udg_o7[10]=GetManipulatingUnit()
set udg_v7[10]=GetUnitLoc(udg_o7[10])
set udg_s7[10]=PG(udg_v7[10],325.00,GetUnitFacing(udg_o7[10]))
set udg_q7[10]=AngleBetweenPoints(udg_v7[10],udg_s7[10])
call TriggerExecute(udg_ky)
call TriggerSleepAction(1.81)
set udg_p7[10]=1
loop
exitwhen udg_p7[10]>10
if(SO4())then
set udg_r7[10]=(udg_r7[10]+1)
set udg_t7[10]=PG(GetUnitLoc(udg_n7[10]),60.00,udg_q7[10])
call AddSpecialEffectLocBJ(udg_t7[10],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[10]=e6(390.00,udg_t7[10],Condition(function SK4))
set udg_u7[10]=PG(udg_s7[10],(550.00+(100.00*I2R(udg_p7[10]))),udg_q7[10])
call IssuePointOrderLocBJ(udg_n7[10],"smart",udg_u7[10])
call ForGroupBJ(udg_w7[10],function SL4)
call AddSpecialEffectLocBJ(udg_t7[10],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[10],function SM4)
if(SN4())then
call KillUnit(udg_n7[10])
set udg_n7[10]=null
set udg_q7[10]=0.00
call RemoveLocation(udg_u7[10])
set udg_u7[10]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[10])
set udg_t7[10]=null
call DestroyGroup(udg_w7[10])
set udg_w7[10]=null
call RemoveLocation(udg_u7[10])
set udg_u7[10]=null
call TriggerSleepAction(0.25)
set udg_p7[10]=udg_p7[10]+1
endloop
endfunction
function SP4 takes nothing returns nothing
set udg_Ux=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Ux,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Ux,Condition(function Sc4))
call TriggerAddAction(udg_Ux,function S04)
endfunction
function SQ4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function SR4 takes nothing returns boolean
if(not SQ4())then
return false
endif
return true
endfunction
function SS4 takes nothing returns boolean
return(udg_n7[11]!=null)
endfunction
function S54 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[11]))==true)
endfunction
function ST4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function SU4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function SV4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function SW4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function SX4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function SY4 takes nothing returns boolean
return GetBooleanAnd(SW4(),SX4())
endfunction
function S24 takes nothing returns boolean
return GetBooleanAnd(SV4(),SY4())
endfunction
function SZ4 takes nothing returns boolean
return GetBooleanAnd(SU4(),S24())
endfunction
function S_4 takes nothing returns boolean
return GetBooleanAnd(ST4(),SZ4())
endfunction
function T44 takes nothing returns boolean
return GetBooleanAnd(S54(),S_4())
endfunction
function T74 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[11],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function T84 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function T94 takes nothing returns boolean
if(not(udg_r7[11]==9))then
return false
endif
return true
endfunction
function Td4 takes nothing returns boolean
if(not(udg_n7[11]!=null))then
return false
endif
return true
endfunction
function Te4 takes nothing returns nothing
call RemoveLocation(udg_v7[11])
set udg_v7[11]=null
call RemoveLocation(udg_s7[11])
set udg_s7[11]=null
if(SS4())then
call KillUnit(udg_n7[11])
else
call DoNothing()
endif
set udg_o7[11]=null
set udg_n7[11]=null
set udg_q7[11]=0.00
set udg_r7[11]=0
set udg_o7[11]=GetManipulatingUnit()
set udg_v7[11]=GetUnitLoc(udg_o7[11])
set udg_s7[11]=PG(udg_v7[11],325.00,GetUnitFacing(udg_o7[11]))
set udg_q7[11]=AngleBetweenPoints(udg_v7[11],udg_s7[11])
call TriggerExecute(udg_my)
call TriggerSleepAction(1.81)
set udg_p7[11]=1
loop
exitwhen udg_p7[11]>10
if(Td4())then
set udg_r7[11]=(udg_r7[11]+1)
set udg_t7[11]=PG(GetUnitLoc(udg_n7[11]),60.00,udg_q7[11])
call AddSpecialEffectLocBJ(udg_t7[11],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[11]=e6(390.00,udg_t7[11],Condition(function T44))
set udg_u7[11]=PG(udg_s7[11],(550.00+(100.00*I2R(udg_p7[11]))),udg_q7[11])
call IssuePointOrderLocBJ(udg_n7[11],"smart",udg_u7[11])
call ForGroupBJ(udg_w7[11],function T74)
call AddSpecialEffectLocBJ(udg_t7[11],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[11],function T84)
if(T94())then
call KillUnit(udg_n7[11])
set udg_n7[11]=null
set udg_q7[11]=0.00
call RemoveLocation(udg_u7[11])
set udg_u7[11]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[11])
set udg_t7[11]=null
call DestroyGroup(udg_w7[11])
set udg_w7[11]=null
call RemoveLocation(udg_u7[11])
set udg_u7[11]=null
call TriggerSleepAction(0.25)
set udg_p7[11]=udg_p7[11]+1
endloop
endfunction
function Tf4 takes nothing returns nothing
set udg_Vx=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Vx,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Vx,Condition(function SR4))
call TriggerAddAction(udg_Vx,function Te4)
endfunction
function Tg4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function Th4 takes nothing returns boolean
if(not Tg4())then
return false
endif
return true
endfunction
function Ti4 takes nothing returns boolean
return(udg_n7[12]!=null)
endfunction
function Tj4 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_o7[12]))==true)
endfunction
function Tk4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function Tm4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function Tn4 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function To4 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Tp4 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Tq4 takes nothing returns boolean
return GetBooleanAnd(To4(),Tp4())
endfunction
function Tr4 takes nothing returns boolean
return GetBooleanAnd(Tn4(),Tq4())
endfunction
function Ts4 takes nothing returns boolean
return GetBooleanAnd(Tm4(),Tr4())
endfunction
function Tt4 takes nothing returns boolean
return GetBooleanAnd(Tk4(),Ts4())
endfunction
function Tu4 takes nothing returns boolean
return GetBooleanAnd(Tj4(),Tt4())
endfunction
function Tv4 takes nothing returns nothing
call UnitDamageTargetBJ(udg_o7[12],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_o7[12],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Tw4 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Tx4 takes nothing returns boolean
if(not(udg_r7[12]==9))then
return false
endif
return true
endfunction
function Ty4 takes nothing returns boolean
if(not(udg_n7[12]!=null))then
return false
endif
return true
endfunction
function Tz4 takes nothing returns nothing
call RemoveLocation(udg_v7[12])
set udg_v7[12]=null
call RemoveLocation(udg_s7[12])
set udg_s7[12]=null
if(Ti4())then
call KillUnit(udg_n7[12])
else
call DoNothing()
endif
set udg_o7[12]=null
set udg_n7[12]=null
set udg_q7[12]=0.00
set udg_r7[12]=0
set udg_o7[12]=GetManipulatingUnit()
set udg_v7[12]=GetUnitLoc(udg_o7[12])
set udg_s7[12]=PG(udg_v7[12],325.00,GetUnitFacing(udg_o7[12]))
set udg_q7[12]=AngleBetweenPoints(udg_v7[12],udg_s7[12])
call TriggerExecute(udg_ny)
call TriggerSleepAction(1.81)
set udg_p7[12]=1
loop
exitwhen udg_p7[12]>10
if(Ty4())then
set udg_r7[12]=(udg_r7[12]+1)
set udg_t7[12]=PG(GetUnitLoc(udg_n7[12]),60.00,udg_q7[12])
call AddSpecialEffectLocBJ(udg_t7[12],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_w7[12]=e6(390.00,udg_t7[12],Condition(function Tu4))
set udg_u7[12]=PG(udg_s7[12],(550.00+(100.00*I2R(udg_p7[12]))),udg_q7[12])
call IssuePointOrderLocBJ(udg_n7[12],"smart",udg_u7[12])
call ForGroupBJ(udg_w7[12],function Tv4)
call AddSpecialEffectLocBJ(udg_t7[12],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(390.00,udg_t7[12],function Tw4)
if(Tx4())then
call KillUnit(udg_n7[12])
set udg_n7[12]=null
set udg_q7[12]=0.00
call RemoveLocation(udg_u7[12])
set udg_u7[12]=null
else
endif
else
call DoNothing()
endif
call RemoveLocation(udg_t7[12])
set udg_t7[12]=null
call DestroyGroup(udg_w7[12])
set udg_w7[12]=null
call RemoveLocation(udg_u7[12])
set udg_u7[12]=null
call TriggerSleepAction(0.25)
set udg_p7[12]=udg_p7[12]+1
endloop
endfunction
function TA4 takes nothing returns nothing
set udg_Wx=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Wx,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Wx,Condition(function Th4))
call TriggerAddAction(udg_Wx,function Tz4)
endfunction
function Ta4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[1]),udg_s7[1],udg_q7[1])
set udg_n7[1]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[1],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[1])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[1],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[1]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[1]),udg_s7[1],udg_q7[1])
set udg_n7[1]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[1])
set udg_u7[1]=PG(udg_s7[1],(-100.00+(200.00*10.00)),udg_q7[1])
call IssuePointOrderLocBJ(udg_n7[1],"move",udg_u7[1])
call RemoveLocation(udg_u7[1])
set udg_u7[1]=null
endfunction
function TB4 takes nothing returns nothing
set udg_Xx=CreateTrigger()
call TriggerAddAction(udg_Xx,function Ta4)
endfunction
function Tb4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[2]),udg_s7[2],udg_q7[2])
set udg_n7[2]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[2],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[2])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[2],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[2]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[2]),udg_s7[2],udg_q7[2])
set udg_n7[2]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[2])
set udg_u7[2]=PG(udg_s7[2],(-100.00+(200.00*10.00)),udg_q7[2])
call IssuePointOrderLocBJ(udg_n7[2],"move",udg_u7[2])
call RemoveLocation(udg_u7[2])
set udg_u7[2]=null
endfunction
function TC4 takes nothing returns nothing
set udg_Yx=CreateTrigger()
call TriggerAddAction(udg_Yx,function Tb4)
endfunction
function Tc4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[3]),udg_s7[3],udg_q7[3])
set udg_n7[3]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[3],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[3])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[3],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[3]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[3]),udg_s7[3],udg_q7[3])
set udg_n7[3]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[3])
set udg_u7[3]=PG(udg_s7[3],(-100.00+(200.00*10.00)),udg_q7[3])
call IssuePointOrderLocBJ(udg_n7[3],"move",udg_u7[3])
call RemoveLocation(udg_u7[3])
set udg_u7[3]=null
endfunction
function TD4 takes nothing returns nothing
set udg_Zx=CreateTrigger()
call TriggerAddAction(udg_Zx,function Tc4)
endfunction
function TE4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[4]),udg_s7[4],udg_q7[4])
set udg_n7[4]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[4],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[4])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[4],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[4]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[4]),udg_s7[4],udg_q7[4])
set udg_n7[4]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[4])
set udg_u7[4]=PG(udg_s7[4],(-100.00+(200.00*10.00)),udg_q7[4])
call IssuePointOrderLocBJ(udg_n7[4],"move",udg_u7[4])
call RemoveLocation(udg_u7[4])
set udg_u7[4]=null
endfunction
function T34 takes nothing returns nothing
set udg_ey=CreateTrigger()
call TriggerAddAction(udg_ey,function TE4)
endfunction
function TF4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[5]),udg_s7[5],udg_q7[5])
set udg_n7[5]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[5],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[5])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[5],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[5]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[5]),udg_s7[5],udg_q7[5])
set udg_n7[5]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[5])
set udg_u7[5]=PG(udg_s7[5],(-100.00+(200.00*10.00)),udg_q7[5])
call IssuePointOrderLocBJ(udg_n7[5],"move",udg_u7[5])
call RemoveLocation(udg_u7[5])
set udg_u7[5]=null
endfunction
function TG4 takes nothing returns nothing
set udg_fy=CreateTrigger()
call TriggerAddAction(udg_fy,function TF4)
endfunction
function T64 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[6]),udg_s7[6],udg_q7[6])
set udg_n7[6]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[6],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[6])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[6],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[6]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[6]),udg_s7[6],udg_q7[6])
set udg_n7[6]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[6])
set udg_u7[6]=PG(udg_s7[6],(-100.00+(200.00*10.00)),udg_q7[6])
call IssuePointOrderLocBJ(udg_n7[6],"move",udg_u7[6])
call RemoveLocation(udg_u7[6])
set udg_u7[6]=null
endfunction
function TH4 takes nothing returns nothing
set udg_gy=CreateTrigger()
call TriggerAddAction(udg_gy,function T64)
endfunction
function TI4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[7]),udg_s7[7],udg_q7[7])
set udg_n7[7]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[7],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[7])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[7],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[7]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[7]),udg_s7[7],udg_q7[7])
set udg_n7[7]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[7])
set udg_u7[7]=PG(udg_s7[7],(-100.00+(200.00*10.00)),udg_q7[7])
call IssuePointOrderLocBJ(udg_n7[7],"move",udg_u7[7])
call RemoveLocation(udg_u7[7])
set udg_u7[7]=null
endfunction
function Tl4 takes nothing returns nothing
set udg_hy=CreateTrigger()
call TriggerAddAction(udg_hy,function TI4)
endfunction
function T14 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[8]),udg_s7[8],udg_q7[8])
set udg_n7[8]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[8],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[8])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[8],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[8]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[8]),udg_s7[8],udg_q7[8])
set udg_n7[8]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[8])
set udg_u7[8]=PG(udg_s7[8],(-100.00+(200.00*10.00)),udg_q7[8])
call IssuePointOrderLocBJ(udg_n7[8],"move",udg_u7[8])
call RemoveLocation(udg_u7[8])
set udg_u7[8]=null
endfunction
function TJ4 takes nothing returns nothing
set udg_iy=CreateTrigger()
call TriggerAddAction(udg_iy,function T14)
endfunction
function TK4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[9]),udg_s7[9],udg_q7[9])
set udg_n7[9]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[9],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[9])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[9],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[9]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[9]),udg_s7[9],udg_q7[9])
set udg_n7[9]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[9])
set udg_u7[9]=PG(udg_s7[9],(-100.00+(200.00*10.00)),udg_q7[9])
call IssuePointOrderLocBJ(udg_n7[9],"move",udg_u7[9])
call RemoveLocation(udg_u7[9])
set udg_u7[9]=null
endfunction
function TL4 takes nothing returns nothing
set udg_jy=CreateTrigger()
call TriggerAddAction(udg_jy,function TK4)
endfunction
function TM4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[10]),udg_s7[10],udg_q7[10])
set udg_n7[10]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[10],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[10])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[10],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[10]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[10]),udg_s7[10],udg_q7[10])
set udg_n7[10]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[10])
set udg_u7[10]=PG(udg_s7[10],(-100.00+(200.00*10.00)),udg_q7[10])
call IssuePointOrderLocBJ(udg_n7[10],"move",udg_u7[10])
call RemoveLocation(udg_u7[10])
set udg_u7[10]=null
endfunction
function TN4 takes nothing returns nothing
set udg_ky=CreateTrigger()
call TriggerAddAction(udg_ky,function TM4)
endfunction
function TO4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[11]),udg_s7[11],udg_q7[11])
set udg_n7[11]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[11],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[11])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[11],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[11]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[11]),udg_s7[11],udg_q7[11])
set udg_n7[11]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[11])
set udg_u7[11]=PG(udg_s7[11],(-100.00+(200.00*10.00)),udg_q7[11])
call IssuePointOrderLocBJ(udg_n7[11],"move",udg_u7[11])
call RemoveLocation(udg_u7[11])
set udg_u7[11]=null
endfunction
function T04 takes nothing returns nothing
set udg_my=CreateTrigger()
call TriggerAddAction(udg_my,function TO4)
endfunction
function TP4 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1747988561,GetOwningPlayer(udg_o7[12]),udg_s7[12],udg_q7[12])
set udg_n7[12]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_n7[12],40.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_n7[12])
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(udg_s7[12],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_n7[12]=null
call CreateNUnitsAtLoc(1,1747988562,GetOwningPlayer(udg_o7[12]),udg_s7[12],udg_q7[12])
set udg_n7[12]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_n7[12])
set udg_u7[12]=PG(udg_s7[12],(-100.00+(200.00*10.00)),udg_q7[12])
call IssuePointOrderLocBJ(udg_n7[12],"move",udg_u7[12])
call RemoveLocation(udg_u7[12])
set udg_u7[12]=null
endfunction
function TQ4 takes nothing returns nothing
set udg_ny=CreateTrigger()
call TriggerAddAction(udg_ny,function TP4)
endfunction
function TR4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
return true
endfunction
function TS4 takes nothing returns boolean
if(not(IsUnitInGroup(GetManipulatingUnit(),udg_dn)==false))then
return false
endif
return true
endfunction
function T54 takes nothing returns nothing
set udg_Ym[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=true
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Orc\\SpikeBarrier\\SpikeBarrier.mdl")
set udg_Zm[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=GetLastCreatedEffectBJ()
if(TS4())then
call TriggerRegisterUnitEvent(udg_py,GetManipulatingUnit(),EVENT_UNIT_DAMAGED)
call GroupAddUnitSimple(GetManipulatingUnit(),udg_dn)
else
call DoNothing()
endif
call TriggerSleepAction(5.00)
set udg_Ym[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=false
call DestroyEffectBJ(udg_Zm[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))])
endfunction
function TT4 takes nothing returns nothing
set udg_oy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_oy,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_oy,Condition(function TR4))
call TriggerAddAction(udg_oy,function T54)
endfunction
function TU4 takes nothing returns boolean
if(not(MG(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),1227895882)==true))then
return false
endif
if(not(udg_Ym[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
if(not(GetEventDamage()<5000.00))then
return false
endif
return true
endfunction
function TV4 takes nothing returns boolean
if(not TU4())then
return false
endif
return true
endfunction
function TW4 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_pn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])<=udg_qn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
endfunction
function TX4 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_pn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])>udg_qn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))then
return false
endif
return true
endfunction
function TY4 takes nothing returns nothing
set udg_rn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetTriggerUnit()
set udg_pn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetEventDamageSource()
set udg_qn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(GetEventDamage()*0.75)
if(TX4())then
call SetUnitLifeBJ(udg_pn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_pn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])-udg_qn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]))
else
if(TW4())then
call UnitDamageTargetBJ(udg_rn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],udg_pn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
set udg_rn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=null
set udg_pn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=null
set udg_qn[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=0.00
endfunction
function T24 takes nothing returns nothing
set udg_py=CreateTrigger()
call TriggerAddCondition(udg_py,Condition(function TV4))
call TriggerAddAction(udg_py,function TY4)
endfunction
function TZ4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function T_4 takes nothing returns nothing
set udg_en[1]=GetManipulatingUnit()
set udg_fn[1]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[1],false))))
set udg_gn[1]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[1],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[1],bj_MODIFYMETHOD_SUB,udg_fn[1])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[1],bj_MODIFYMETHOD_SUB,udg_gn[1])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[1],bj_MODIFYMETHOD_ADD,(udg_fn[1]+udg_gn[1]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[1],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[1],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[1]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[1],bj_MODIFYMETHOD_ADD,udg_fn[1])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[1],bj_MODIFYMETHOD_ADD,udg_gn[1])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[1],bj_MODIFYMETHOD_SUB,(udg_fn[1]+udg_gn[1]))
call DestroyEffectBJ(udg_hn[1])
set udg_fn[1]=0
set udg_gn[1]=0
set udg_en[1]=null
endfunction
function U44 takes nothing returns nothing
set udg_qy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_qy,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_qy,Condition(function TZ4))
call TriggerAddAction(udg_qy,function T_4)
endfunction
function U74 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function U84 takes nothing returns nothing
set udg_en[2]=GetManipulatingUnit()
set udg_fn[2]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[2],false))))
set udg_gn[2]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[2],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[2],bj_MODIFYMETHOD_SUB,udg_fn[2])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[2],bj_MODIFYMETHOD_SUB,udg_gn[2])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[2],bj_MODIFYMETHOD_ADD,(udg_fn[2]+udg_gn[2]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[2],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[2],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[2]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[2],bj_MODIFYMETHOD_ADD,udg_fn[2])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[2],bj_MODIFYMETHOD_ADD,udg_gn[2])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[2],bj_MODIFYMETHOD_SUB,(udg_fn[2]+udg_gn[2]))
call DestroyEffectBJ(udg_hn[2])
set udg_fn[2]=0
set udg_gn[2]=0
set udg_en[2]=null
endfunction
function U94 takes nothing returns nothing
set udg_ry=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ry,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ry,Condition(function U74))
call TriggerAddAction(udg_ry,function U84)
endfunction
function Ud4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function Ue4 takes nothing returns nothing
set udg_en[3]=GetManipulatingUnit()
set udg_fn[3]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[3],false))))
set udg_gn[3]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[3],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[3],bj_MODIFYMETHOD_SUB,udg_fn[3])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[3],bj_MODIFYMETHOD_SUB,udg_gn[3])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[3],bj_MODIFYMETHOD_ADD,(udg_fn[3]+udg_gn[3]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[3],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[3],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[3]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[3],bj_MODIFYMETHOD_ADD,udg_fn[3])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[3],bj_MODIFYMETHOD_ADD,udg_gn[3])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[3],bj_MODIFYMETHOD_SUB,(udg_fn[3]+udg_gn[3]))
call DestroyEffectBJ(udg_hn[3])
set udg_fn[3]=0
set udg_gn[3]=0
set udg_en[3]=null
endfunction
function Uf4 takes nothing returns nothing
set udg_sy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_sy,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_sy,Condition(function Ud4))
call TriggerAddAction(udg_sy,function Ue4)
endfunction
function Ug4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function Uh4 takes nothing returns nothing
set udg_en[4]=GetManipulatingUnit()
set udg_fn[4]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[4],false))))
set udg_gn[4]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[4],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[4],bj_MODIFYMETHOD_SUB,udg_fn[4])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[4],bj_MODIFYMETHOD_SUB,udg_gn[4])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[4],bj_MODIFYMETHOD_ADD,(udg_fn[4]+udg_gn[4]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[4],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[4],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[4]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[4],bj_MODIFYMETHOD_ADD,udg_fn[4])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[4],bj_MODIFYMETHOD_ADD,udg_gn[4])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[4],bj_MODIFYMETHOD_SUB,(udg_fn[4]+udg_gn[4]))
call DestroyEffectBJ(udg_hn[4])
set udg_fn[4]=0
set udg_gn[4]=0
set udg_en[4]=null
endfunction
function Ui4 takes nothing returns nothing
set udg_ty=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ty,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ty,Condition(function Ug4))
call TriggerAddAction(udg_ty,function Uh4)
endfunction
function Uj4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function Uk4 takes nothing returns nothing
set udg_en[5]=GetManipulatingUnit()
set udg_fn[5]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[5],false))))
set udg_gn[5]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[5],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[5],bj_MODIFYMETHOD_SUB,udg_fn[5])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[5],bj_MODIFYMETHOD_SUB,udg_gn[5])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[5],bj_MODIFYMETHOD_ADD,(udg_fn[5]+udg_gn[5]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[5],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[5],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[5]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[5],bj_MODIFYMETHOD_ADD,udg_fn[5])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[5],bj_MODIFYMETHOD_ADD,udg_gn[5])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[5],bj_MODIFYMETHOD_SUB,(udg_fn[5]+udg_gn[5]))
call DestroyEffectBJ(udg_hn[5])
set udg_fn[5]=0
set udg_gn[5]=0
set udg_en[5]=null
endfunction
function Um4 takes nothing returns nothing
set udg_uy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_uy,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_uy,Condition(function Uj4))
call TriggerAddAction(udg_uy,function Uk4)
endfunction
function Un4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function Uo4 takes nothing returns nothing
set udg_en[6]=GetManipulatingUnit()
set udg_fn[6]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[6],false))))
set udg_gn[6]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[6],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[6],bj_MODIFYMETHOD_SUB,udg_fn[6])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[6],bj_MODIFYMETHOD_SUB,udg_gn[6])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[6],bj_MODIFYMETHOD_ADD,(udg_fn[6]+udg_gn[6]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[6],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[6],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[6]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[6],bj_MODIFYMETHOD_ADD,udg_fn[6])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[6],bj_MODIFYMETHOD_ADD,udg_gn[6])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[6],bj_MODIFYMETHOD_SUB,(udg_fn[6]+udg_gn[6]))
call DestroyEffectBJ(udg_hn[6])
set udg_fn[6]=0
set udg_gn[6]=0
set udg_en[6]=null
endfunction
function Up4 takes nothing returns nothing
set udg_vy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_vy,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_vy,Condition(function Un4))
call TriggerAddAction(udg_vy,function Uo4)
endfunction
function Uq4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function Ur4 takes nothing returns nothing
set udg_en[7]=GetManipulatingUnit()
set udg_fn[7]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[7],false))))
set udg_gn[7]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[7],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[7],bj_MODIFYMETHOD_SUB,udg_fn[7])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[7],bj_MODIFYMETHOD_SUB,udg_gn[7])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[7],bj_MODIFYMETHOD_ADD,(udg_fn[7]+udg_gn[7]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[7],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[7],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[7]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[7],bj_MODIFYMETHOD_ADD,udg_fn[7])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[7],bj_MODIFYMETHOD_ADD,udg_gn[7])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[7],bj_MODIFYMETHOD_SUB,(udg_fn[7]+udg_gn[7]))
call DestroyEffectBJ(udg_hn[7])
set udg_fn[7]=0
set udg_gn[7]=0
set udg_en[7]=null
endfunction
function Us4 takes nothing returns nothing
set udg_wy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_wy,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_wy,Condition(function Uq4))
call TriggerAddAction(udg_wy,function Ur4)
endfunction
function Ut4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function Uu4 takes nothing returns nothing
set udg_en[8]=GetManipulatingUnit()
set udg_fn[8]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[8],false))))
set udg_gn[8]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[8],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[8],bj_MODIFYMETHOD_SUB,udg_fn[8])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[8],bj_MODIFYMETHOD_SUB,udg_gn[8])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[8],bj_MODIFYMETHOD_ADD,(udg_fn[8]+udg_gn[8]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[8],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[8],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[8]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[8],bj_MODIFYMETHOD_ADD,udg_fn[8])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[8],bj_MODIFYMETHOD_ADD,udg_gn[8])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[8],bj_MODIFYMETHOD_SUB,(udg_fn[8]+udg_gn[8]))
call DestroyEffectBJ(udg_hn[8])
set udg_fn[8]=0
set udg_gn[8]=0
set udg_en[8]=null
endfunction
function Uv4 takes nothing returns nothing
set udg_xy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_xy,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_xy,Condition(function Ut4))
call TriggerAddAction(udg_xy,function Uu4)
endfunction
function Uw4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function Ux4 takes nothing returns nothing
set udg_en[9]=GetManipulatingUnit()
set udg_fn[9]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[9],false))))
set udg_gn[9]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[9],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[9],bj_MODIFYMETHOD_SUB,udg_fn[9])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[9],bj_MODIFYMETHOD_SUB,udg_gn[9])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[9],bj_MODIFYMETHOD_ADD,(udg_fn[9]+udg_gn[9]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[9],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[9],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[9]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[9],bj_MODIFYMETHOD_ADD,udg_fn[9])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[9],bj_MODIFYMETHOD_ADD,udg_gn[9])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[9],bj_MODIFYMETHOD_SUB,(udg_fn[9]+udg_gn[9]))
call DestroyEffectBJ(udg_hn[9])
set udg_fn[9]=0
set udg_gn[9]=0
set udg_en[9]=null
endfunction
function Uy4 takes nothing returns nothing
set udg_yy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_yy,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_yy,Condition(function Uw4))
call TriggerAddAction(udg_yy,function Ux4)
endfunction
function Uz4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function UA4 takes nothing returns nothing
set udg_en[10]=GetManipulatingUnit()
set udg_fn[10]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[10],false))))
set udg_gn[10]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[10],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[10],bj_MODIFYMETHOD_SUB,udg_fn[10])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[10],bj_MODIFYMETHOD_SUB,udg_gn[10])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[10],bj_MODIFYMETHOD_ADD,(udg_fn[10]+udg_gn[10]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[10],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[10],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[10]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[10],bj_MODIFYMETHOD_ADD,udg_fn[10])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[10],bj_MODIFYMETHOD_ADD,udg_gn[10])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[10],bj_MODIFYMETHOD_SUB,(udg_fn[10]+udg_gn[10]))
call DestroyEffectBJ(udg_hn[10])
set udg_fn[10]=0
set udg_gn[10]=0
set udg_en[10]=null
endfunction
function Ua4 takes nothing returns nothing
set udg_zy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_zy,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_zy,Condition(function Uz4))
call TriggerAddAction(udg_zy,function UA4)
endfunction
function UB4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function Ub4 takes nothing returns nothing
set udg_en[11]=GetManipulatingUnit()
set udg_fn[11]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[11],false))))
set udg_gn[11]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[11],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[11],bj_MODIFYMETHOD_SUB,udg_fn[11])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[11],bj_MODIFYMETHOD_SUB,udg_gn[11])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[11],bj_MODIFYMETHOD_ADD,(udg_fn[11]+udg_gn[11]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[11],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[11],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[11]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[11],bj_MODIFYMETHOD_ADD,udg_fn[11])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[11],bj_MODIFYMETHOD_ADD,udg_gn[11])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[11],bj_MODIFYMETHOD_SUB,(udg_fn[11]+udg_gn[11]))
call DestroyEffectBJ(udg_hn[11])
set udg_fn[11]=0
set udg_gn[11]=0
set udg_en[11]=null
endfunction
function UC4 takes nothing returns nothing
set udg_Ay=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Ay,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Ay,Condition(function UB4))
call TriggerAddAction(udg_Ay,function Ub4)
endfunction
function Uc4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
return true
endfunction
function UD4 takes nothing returns nothing
set udg_en[12]=GetManipulatingUnit()
set udg_fn[12]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_en[12],false))))
set udg_gn[12]=R2I((0.90*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_en[12],false))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[12],bj_MODIFYMETHOD_SUB,udg_fn[12])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[12],bj_MODIFYMETHOD_SUB,udg_gn[12])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[12],bj_MODIFYMETHOD_ADD,(udg_fn[12]+udg_gn[12]))
call AddSpecialEffectTargetUnitBJ("origin",udg_en[12],"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_en[12],"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
set udg_hn[12]=GetLastCreatedEffectBJ()
call TriggerSleepAction(15.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_en[12],bj_MODIFYMETHOD_ADD,udg_fn[12])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_en[12],bj_MODIFYMETHOD_ADD,udg_gn[12])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_en[12],bj_MODIFYMETHOD_SUB,(udg_fn[12]+udg_gn[12]))
call DestroyEffectBJ(udg_hn[12])
set udg_fn[12]=0
set udg_gn[12]=0
set udg_en[12]=null
endfunction
function UE4 takes nothing returns nothing
set udg_ay=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ay,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ay,Condition(function Uc4))
call TriggerAddAction(udg_ay,function UD4)
endfunction
function U34 takes nothing returns boolean
if(not(GetHeroLevel(GetManipulatingUnit())>=50))then
return false
endif
if(not(GetHeroSkillPoints(GetManipulatingUnit())!=0))then
return false
endif
return true
endfunction
function UF4 takes nothing returns boolean
if((GetHeroLevel(GetManipulatingUnit())<50))then
return true
endif
if(U34())then
return true
endif
return false
endfunction
function UG4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895113))then
return false
endif
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]==false))then
return false
endif
if(not(MG(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not UF4())then
return false
endif
return true
endfunction
function U64 takes nothing returns boolean
if(not UG4())then
return false
endif
return true
endfunction
function UH4 takes nothing returns boolean
if(not(GetHeroLevel(GetManipulatingUnit())>=50))then
return false
endif
if(not(GetHeroSkillPoints(GetManipulatingUnit())!=0))then
return false
endif
return true
endfunction
function UI4 takes nothing returns boolean
if(not UH4())then
return false
endif
return true
endfunction
function Ul4 takes nothing returns boolean
if(not(GetHeroLevel(GetManipulatingUnit())<50))then
return false
endif
return true
endfunction
function U14 takes nothing returns nothing
if(Ul4())then
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetManipulatingUnit())),4.00," |cffffcc00Your level is too low|r")
call AdjustPlayerStateBJ(30,GetOwningPlayer(GetManipulatingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
else
if(UI4())then
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetManipulatingUnit())),4.00," |cffffcc00You still have unlearned ability|r")
call AdjustPlayerStateBJ(30,GetOwningPlayer(GetManipulatingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
else
call DoNothing()
endif
endif
endfunction
function UJ4 takes nothing returns nothing
set udg_By=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_By,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_By,Condition(function U64))
call TriggerAddAction(udg_By,function U14)
endfunction
function UK4 takes nothing returns boolean
if((GetUnitAbilityLevelSwapped(1093677913,GetManipulatingUnit())!=0))then
return true
endif
if((GetUnitAbilityLevelSwapped(1093677132,GetManipulatingUnit())!=0))then
return true
endif
if((GetUnitAbilityLevelSwapped(1093677624,GetManipulatingUnit())!=0))then
return true
endif
return false
endfunction
function UL4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895113))then
return false
endif
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]==true))then
return false
endif
if(not(MG(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not UK4())then
return false
endif
return true
endfunction
function UM4 takes nothing returns boolean
if(not UL4())then
return false
endif
return true
endfunction
function UN4 takes nothing returns nothing
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetManipulatingUnit())),4.00," |cffffcc00This item works only once|r")
call AdjustPlayerStateBJ(30,GetOwningPlayer(GetManipulatingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function UO4 takes nothing returns nothing
set udg_by=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_by,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_by,Condition(function UM4))
call TriggerAddAction(udg_by,function UN4)
endfunction
function U04 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895113))then
return false
endif
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]==false))then
return false
endif
if(not(MG(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetManipulatingUnit())>=50))then
return false
endif
if(not(GetHeroSkillPoints(GetManipulatingUnit())==0))then
return false
endif
return true
endfunction
function UP4 takes nothing returns boolean
if(not U04())then
return false
endif
return true
endfunction
function UQ4 takes nothing returns boolean
if((GetUnitTypeId(GetManipulatingUnit())==1311780952))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785972))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785968))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785970))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785969))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780947))then
return true
endif
return false
endfunction
function UR4 takes nothing returns boolean
if(not UQ4())then
return false
endif
return true
endfunction
function US4 takes nothing returns boolean
if((GetUnitTypeId(GetManipulatingUnit())==1311780949))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117905))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780921))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780946))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1429221459))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1429221460))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1429221429))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1429221430))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1429221431))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1429221432))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117620))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117653))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117619))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117637))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117890))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117891))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117892))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117893))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117894))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117641))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117642))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1430466865))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1429221428))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780915))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780920))then
return true
endif
return false
endfunction
function U54 takes nothing returns boolean
if(not US4())then
return false
endif
return true
endfunction
function UT4 takes nothing returns boolean
if((GetUnitTypeId(GetManipulatingUnit())==1429221433))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1328558132))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1328558133))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1429221441))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1328558129))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1162031160))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1162031410))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785971))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1329803568))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1328558128))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1328558130))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1328558131))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1313026099))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1430466867))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780914))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780931))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780919))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780916))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780912))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780917))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780918))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780951))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780948))then
return true
endif
return false
endfunction
function UU4 takes nothing returns boolean
if(not UT4())then
return false
endif
return true
endfunction
function UV4 takes nothing returns nothing
if(UU4())then
call UnitAddAbilityBJ(1093677913,GetManipulatingUnit())
set udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=true
set udg_s4[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=true
else
if(U54())then
call UnitAddAbilityBJ(1093677624,GetManipulatingUnit())
set udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=true
set udg_r4[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=true
else
if(UR4())then
call UnitAddAbilityBJ(1093677132,GetManipulatingUnit())
set udg_o4[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=true
set udg_t4[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=true
else
call DoNothing()
endif
endif
endif
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\NightElf\\Taunt\\TauntCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function UW4 takes nothing returns nothing
set udg_Cy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Cy,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Cy,Condition(function UP4))
call TriggerAddAction(udg_Cy,function UV4)
endfunction
function UX4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1953197679))then
return false
endif
if(not(MG(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetManipulatingUnit())>=30))then
return false
endif
return true
endfunction
function UY4 takes nothing returns boolean
if(not UX4())then
return false
endif
return true
endfunction
function U24 takes nothing returns nothing
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetManipulatingUnit())),4.00," |cffffcc00Your level is too high to use this item|r")
call AdjustPlayerStateBJ(7,GetOwningPlayer(GetManipulatingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function UZ4 takes nothing returns nothing
set udg_cy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_cy,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_cy,Condition(function UY4))
call TriggerAddAction(udg_cy,function U24)
endfunction
function U_4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1953197679))then
return false
endif
if(not(MG(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetHeroLevel(GetManipulatingUnit())<30))then
return false
endif
return true
endfunction
function V44 takes nothing returns boolean
if(not U_4())then
return false
endif
return true
endfunction
function V74 takes nothing returns nothing
call UnitAddItemByIdSwapped(1227895369,GetManipulatingUnit())
endfunction
function V84 takes nothing returns nothing
set udg_Dy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Dy,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Dy,Condition(function V44))
call TriggerAddAction(udg_Dy,function V74)
endfunction
function V94 takes nothing returns boolean
if((GetUnitTypeId(GetManipulatingUnit())==1162031160))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785973))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1162031410))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785971))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117641))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117642))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117619))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117637))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117890))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117891))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117892))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117893))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117894))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1211117905))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1328558130))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1328558131))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1329803568))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1328558128))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1430466867))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1430466865))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1429221441))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780914))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780931))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780918))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780951))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1311780952))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785968))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())==1160785970))then
return true
endif
return false
endfunction
function Vd4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895898))then
return false
endif
if(not(MG(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not V94())then
return false
endif
return true
endfunction
function Ve4 takes nothing returns boolean
if(not Vd4())then
return false
endif
return true
endfunction
function Vf4 takes nothing returns nothing
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetManipulatingUnit())),4.00," |cffffcc00Your hero cannot use this item|r")
call AdjustPlayerStateBJ(2500,GetOwningPlayer(GetManipulatingUnit()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Vg4 takes nothing returns nothing
set udg_Ey=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ey,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Ey,Condition(function Ve4))
call TriggerAddAction(udg_Ey,function Vf4)
endfunction
function Vh4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895898))then
return false
endif
if(not(MG(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1162031160))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1160785973))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1162031410))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1160785971))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1211117641))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1211117642))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1211117619))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1211117637))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1211117890))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1211117891))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1211117892))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1211117893))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1211117894))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1211117905))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1328558130))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1328558131))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1329803568))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1328558128))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1430466867))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1430466865))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1429221441))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1311780914))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1311780931))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1311780918))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1311780951))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1311780952))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1160785968))then
return false
endif
if(not(GetUnitTypeId(GetManipulatingUnit())!=1160785970))then
return false
endif
return true
endfunction
function Vi4 takes nothing returns boolean
if(not Vh4())then
return false
endif
return true
endfunction
function Vj4 takes nothing returns nothing
call UnitAddItemByIdSwapped(1684370275,GetManipulatingUnit())
endfunction
function Vk4 takes nothing returns nothing
set udg_Fy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Fy,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_Fy,Condition(function Vi4))
call TriggerAddAction(udg_Fy,function Vj4)
endfunction
function Vm4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function Vn4 takes nothing returns boolean
if(not Vm4())then
return false
endif
return true
endfunction
function Vo4 takes nothing returns nothing
set udg_b7[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[1],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[1],true)
set udg_b7[1]=null
endfunction
function Vp4 takes nothing returns nothing
set udg_Gy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Gy,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Gy,Condition(function Vn4))
call TriggerAddAction(udg_Gy,function Vo4)
endfunction
function Vq4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function Vr4 takes nothing returns boolean
if(not Vq4())then
return false
endif
return true
endfunction
function Vs4 takes nothing returns nothing
set udg_b7[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[2],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[2],true)
set udg_b7[2]=null
endfunction
function Vt4 takes nothing returns nothing
set udg_Hy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Hy,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Hy,Condition(function Vr4))
call TriggerAddAction(udg_Hy,function Vs4)
endfunction
function Vu4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function Vv4 takes nothing returns boolean
if(not Vu4())then
return false
endif
return true
endfunction
function Vw4 takes nothing returns nothing
set udg_b7[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[3],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[3],true)
set udg_b7[3]=null
endfunction
function Vx4 takes nothing returns nothing
set udg_Iy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Iy,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Iy,Condition(function Vv4))
call TriggerAddAction(udg_Iy,function Vw4)
endfunction
function Vy4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function Vz4 takes nothing returns boolean
if(not Vy4())then
return false
endif
return true
endfunction
function VA4 takes nothing returns nothing
set udg_b7[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[4],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[4],true)
set udg_b7[4]=null
endfunction
function Va4 takes nothing returns nothing
set udg_ly=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ly,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ly,Condition(function Vz4))
call TriggerAddAction(udg_ly,function VA4)
endfunction
function VB4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function Vb4 takes nothing returns boolean
if(not VB4())then
return false
endif
return true
endfunction
function VC4 takes nothing returns nothing
set udg_b7[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[5],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[5],true)
set udg_b7[5]=null
endfunction
function Vc4 takes nothing returns nothing
set udg_Jy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Jy,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Jy,Condition(function Vb4))
call TriggerAddAction(udg_Jy,function VC4)
endfunction
function VD4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function VE4 takes nothing returns boolean
if(not VD4())then
return false
endif
return true
endfunction
function V34 takes nothing returns nothing
set udg_b7[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[6],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[6],true)
set udg_b7[6]=null
endfunction
function VF4 takes nothing returns nothing
set udg_Ky=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Ky,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Ky,Condition(function VE4))
call TriggerAddAction(udg_Ky,function V34)
endfunction
function VG4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function V64 takes nothing returns boolean
if(not VG4())then
return false
endif
return true
endfunction
function VH4 takes nothing returns nothing
set udg_b7[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[7],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[7],true)
set udg_b7[7]=null
endfunction
function VI4 takes nothing returns nothing
set udg_Ly=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Ly,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Ly,Condition(function V64))
call TriggerAddAction(udg_Ly,function VH4)
endfunction
function Vl4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function V14 takes nothing returns boolean
if(not Vl4())then
return false
endif
return true
endfunction
function VJ4 takes nothing returns nothing
set udg_b7[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[8],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[8],true)
set udg_b7[8]=null
endfunction
function VK4 takes nothing returns nothing
set udg_My=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_My,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_My,Condition(function V14))
call TriggerAddAction(udg_My,function VJ4)
endfunction
function VL4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function VM4 takes nothing returns boolean
if(not VL4())then
return false
endif
return true
endfunction
function VN4 takes nothing returns nothing
set udg_b7[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[9],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[9],true)
set udg_b7[9]=null
endfunction
function VO4 takes nothing returns nothing
set udg_Ny=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Ny,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Ny,Condition(function VM4))
call TriggerAddAction(udg_Ny,function VN4)
endfunction
function V04 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function VP4 takes nothing returns boolean
if(not V04())then
return false
endif
return true
endfunction
function VQ4 takes nothing returns nothing
set udg_b7[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[10],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[10],true)
set udg_b7[10]=null
endfunction
function VR4 takes nothing returns nothing
set udg_Oy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Oy,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Oy,Condition(function VP4))
call TriggerAddAction(udg_Oy,function VQ4)
endfunction
function VS4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function V54 takes nothing returns boolean
if(not VS4())then
return false
endif
return true
endfunction
function VT4 takes nothing returns nothing
set udg_b7[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[11],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[11],true)
set udg_b7[11]=null
endfunction
function VU4 takes nothing returns nothing
set udg_Py=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Py,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Py,Condition(function V54))
call TriggerAddAction(udg_Py,function VT4)
endfunction
function VV4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894855))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function VW4 takes nothing returns boolean
if(not VV4())then
return false
endif
return true
endfunction
function VX4 takes nothing returns nothing
set udg_b7[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_b7[12],false)
call TriggerSleepAction(70.00)
call SetItemDroppableBJ(udg_b7[12],true)
set udg_b7[12]=null
endfunction
function VY4 takes nothing returns nothing
set udg_Qy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Qy,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Qy,Condition(function VW4))
call TriggerAddAction(udg_Qy,function VX4)
endfunction
function V24 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function VZ4 takes nothing returns boolean
if(not V24())then
return false
endif
return true
endfunction
function V_4 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function W44 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function W74 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function W84 takes nothing returns nothing
set udg_C7[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[1],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[1],true)
set udg_C7[1]=null
if(W74())then
call ForGroupBJ(d6(GetPlayableMapRect()),function V_4)
call ForForce(GetPlayersAll(),function W44)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function W94 takes nothing returns nothing
set udg_Ry=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Ry,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Ry,Condition(function VZ4))
call TriggerAddAction(udg_Ry,function W84)
endfunction
function Wd4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function We4 takes nothing returns boolean
if(not Wd4())then
return false
endif
return true
endfunction
function Wf4 takes nothing returns nothing
set udg_C7[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[2],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[2],true)
set udg_C7[2]=null
endfunction
function Wg4 takes nothing returns nothing
set udg_Sy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Sy,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Sy,Condition(function We4))
call TriggerAddAction(udg_Sy,function Wf4)
endfunction
function Wh4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function Wi4 takes nothing returns boolean
if(not Wh4())then
return false
endif
return true
endfunction
function Wj4 takes nothing returns nothing
set udg_C7[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[3],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[3],true)
set udg_C7[3]=null
endfunction
function Wk4 takes nothing returns nothing
set udg_Ty=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Ty,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Ty,Condition(function Wi4))
call TriggerAddAction(udg_Ty,function Wj4)
endfunction
function Wm4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function Wn4 takes nothing returns boolean
if(not Wm4())then
return false
endif
return true
endfunction
function Wo4 takes nothing returns nothing
set udg_C7[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[4],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[4],true)
set udg_C7[4]=null
endfunction
function Wp4 takes nothing returns nothing
set udg_Uy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Uy,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Uy,Condition(function Wn4))
call TriggerAddAction(udg_Uy,function Wo4)
endfunction
function Wq4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function Wr4 takes nothing returns boolean
if(not Wq4())then
return false
endif
return true
endfunction
function Ws4 takes nothing returns nothing
set udg_C7[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[5],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[5],true)
set udg_C7[5]=null
endfunction
function Wt4 takes nothing returns nothing
set udg_Vy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Vy,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Vy,Condition(function Wr4))
call TriggerAddAction(udg_Vy,function Ws4)
endfunction
function Wu4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function Wv4 takes nothing returns boolean
if(not Wu4())then
return false
endif
return true
endfunction
function Ww4 takes nothing returns nothing
set udg_C7[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[6],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[6],true)
set udg_C7[6]=null
endfunction
function Wx4 takes nothing returns nothing
set udg_Wy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Wy,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Wy,Condition(function Wv4))
call TriggerAddAction(udg_Wy,function Ww4)
endfunction
function Wy4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function Wz4 takes nothing returns boolean
if(not Wy4())then
return false
endif
return true
endfunction
function WA4 takes nothing returns nothing
set udg_C7[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[7],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[7],true)
set udg_C7[7]=null
endfunction
function Wa4 takes nothing returns nothing
set udg_Xy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Xy,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Xy,Condition(function Wz4))
call TriggerAddAction(udg_Xy,function WA4)
endfunction
function WB4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function Wb4 takes nothing returns boolean
if(not WB4())then
return false
endif
return true
endfunction
function WC4 takes nothing returns nothing
set udg_C7[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[8],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[8],true)
set udg_C7[8]=null
endfunction
function Wc4 takes nothing returns nothing
set udg_Yy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Yy,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Yy,Condition(function Wb4))
call TriggerAddAction(udg_Yy,function WC4)
endfunction
function WD4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function WE4 takes nothing returns boolean
if(not WD4())then
return false
endif
return true
endfunction
function W34 takes nothing returns nothing
set udg_C7[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[9],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[9],true)
set udg_C7[9]=null
endfunction
function WF4 takes nothing returns nothing
set udg_Zy=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Zy,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Zy,Condition(function WE4))
call TriggerAddAction(udg_Zy,function W34)
endfunction
function WG4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function W64 takes nothing returns boolean
if(not WG4())then
return false
endif
return true
endfunction
function WH4 takes nothing returns nothing
set udg_C7[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[10],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[10],true)
set udg_C7[10]=null
endfunction
function WI4 takes nothing returns nothing
set udg_dz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_dz,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_dz,Condition(function W64))
call TriggerAddAction(udg_dz,function WH4)
endfunction
function Wl4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function W14 takes nothing returns boolean
if(not Wl4())then
return false
endif
return true
endfunction
function WJ4 takes nothing returns nothing
set udg_C7[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[11],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[11],true)
set udg_C7[11]=null
endfunction
function WK4 takes nothing returns nothing
set udg_ez=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ez,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ez,Condition(function W14))
call TriggerAddAction(udg_ez,function WJ4)
endfunction
function WL4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895379))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function WM4 takes nothing returns boolean
if(not WL4())then
return false
endif
return true
endfunction
function WN4 takes nothing returns nothing
set udg_C7[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_C7[12],false)
call TriggerSleepAction(35.00)
call SetItemDroppableBJ(udg_C7[12],true)
set udg_C7[12]=null
endfunction
function WO4 takes nothing returns nothing
set udg_fz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_fz,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_fz,Condition(function WM4))
call TriggerAddAction(udg_fz,function WN4)
endfunction
function W04 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function WP4 takes nothing returns boolean
if(not W04())then
return false
endif
return true
endfunction
function WQ4 takes nothing returns nothing
set udg_c7[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[1],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[1],true)
set udg_c7[1]=null
endfunction
function WR4 takes nothing returns nothing
set udg_gz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_gz,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_gz,Condition(function WP4))
call TriggerAddAction(udg_gz,function WQ4)
endfunction
function WS4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function W54 takes nothing returns boolean
if(not WS4())then
return false
endif
return true
endfunction
function WT4 takes nothing returns nothing
set udg_c7[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[2],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[2],true)
set udg_c7[2]=null
endfunction
function WU4 takes nothing returns nothing
set udg_hz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_hz,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_hz,Condition(function W54))
call TriggerAddAction(udg_hz,function WT4)
endfunction
function WV4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function WW4 takes nothing returns boolean
if(not WV4())then
return false
endif
return true
endfunction
function WX4 takes nothing returns nothing
set udg_c7[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[3],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[3],true)
set udg_c7[3]=null
endfunction
function WY4 takes nothing returns nothing
set udg_iz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_iz,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_iz,Condition(function WW4))
call TriggerAddAction(udg_iz,function WX4)
endfunction
function W24 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function WZ4 takes nothing returns boolean
if(not W24())then
return false
endif
return true
endfunction
function W_4 takes nothing returns nothing
set udg_c7[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[4],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[4],true)
set udg_c7[4]=null
endfunction
function X44 takes nothing returns nothing
set udg_jz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_jz,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_jz,Condition(function WZ4))
call TriggerAddAction(udg_jz,function W_4)
endfunction
function X74 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function X84 takes nothing returns boolean
if(not X74())then
return false
endif
return true
endfunction
function X94 takes nothing returns nothing
set udg_c7[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[5],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[5],true)
set udg_c7[5]=null
endfunction
function Xd4 takes nothing returns nothing
set udg_kz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_kz,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_kz,Condition(function X84))
call TriggerAddAction(udg_kz,function X94)
endfunction
function Xe4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function Xf4 takes nothing returns boolean
if(not Xe4())then
return false
endif
return true
endfunction
function Xg4 takes nothing returns nothing
set udg_c7[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[6],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[6],true)
set udg_c7[6]=null
endfunction
function Xh4 takes nothing returns nothing
set udg_mz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_mz,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_mz,Condition(function Xf4))
call TriggerAddAction(udg_mz,function Xg4)
endfunction
function Xi4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function Xj4 takes nothing returns boolean
if(not Xi4())then
return false
endif
return true
endfunction
function Xk4 takes nothing returns nothing
set udg_c7[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[7],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[7],true)
set udg_c7[7]=null
endfunction
function Xm4 takes nothing returns nothing
set udg_nz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_nz,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_nz,Condition(function Xj4))
call TriggerAddAction(udg_nz,function Xk4)
endfunction
function Xn4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function Xo4 takes nothing returns boolean
if(not Xn4())then
return false
endif
return true
endfunction
function Xp4 takes nothing returns nothing
set udg_c7[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[8],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[8],true)
set udg_c7[8]=null
endfunction
function Xq4 takes nothing returns nothing
set udg_oz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_oz,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_oz,Condition(function Xo4))
call TriggerAddAction(udg_oz,function Xp4)
endfunction
function Xr4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function Xs4 takes nothing returns boolean
if(not Xr4())then
return false
endif
return true
endfunction
function Xt4 takes nothing returns nothing
set udg_c7[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[9],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[9],true)
set udg_c7[9]=null
endfunction
function Xu4 takes nothing returns nothing
set udg_pz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_pz,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_pz,Condition(function Xs4))
call TriggerAddAction(udg_pz,function Xt4)
endfunction
function Xv4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function Xw4 takes nothing returns boolean
if(not Xv4())then
return false
endif
return true
endfunction
function Xx4 takes nothing returns nothing
set udg_c7[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[10],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[10],true)
set udg_c7[10]=null
endfunction
function Xy4 takes nothing returns nothing
set udg_qz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_qz,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_qz,Condition(function Xw4))
call TriggerAddAction(udg_qz,function Xx4)
endfunction
function Xz4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function XA4 takes nothing returns boolean
if(not Xz4())then
return false
endif
return true
endfunction
function Xa4 takes nothing returns nothing
set udg_c7[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[11],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[11],true)
set udg_c7[11]=null
endfunction
function XB4 takes nothing returns nothing
set udg_rz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_rz,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_rz,Condition(function XA4))
call TriggerAddAction(udg_rz,function Xa4)
endfunction
function Xb4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895607))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function XC4 takes nothing returns boolean
if(not Xb4())then
return false
endif
return true
endfunction
function Xc4 takes nothing returns nothing
set udg_c7[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_c7[12],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_c7[12],true)
set udg_c7[12]=null
endfunction
function XD4 takes nothing returns nothing
set udg_sz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_sz,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_sz,Condition(function XC4))
call TriggerAddAction(udg_sz,function Xc4)
endfunction
function XE4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function X34 takes nothing returns boolean
if(not XE4())then
return false
endif
return true
endfunction
function XF4 takes nothing returns nothing
set udg_D7[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[1],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[1],true)
set udg_D7[1]=null
endfunction
function XG4 takes nothing returns nothing
set udg_tz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_tz,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_tz,Condition(function X34))
call TriggerAddAction(udg_tz,function XF4)
endfunction
function X64 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function XH4 takes nothing returns boolean
if(not X64())then
return false
endif
return true
endfunction
function XI4 takes nothing returns nothing
set udg_D7[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[2],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[2],true)
set udg_D7[2]=null
endfunction
function Xl4 takes nothing returns nothing
set udg_uz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_uz,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_uz,Condition(function XH4))
call TriggerAddAction(udg_uz,function XI4)
endfunction
function X14 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function XJ4 takes nothing returns boolean
if(not X14())then
return false
endif
return true
endfunction
function XK4 takes nothing returns nothing
set udg_D7[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[3],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[3],true)
set udg_D7[3]=null
endfunction
function XL4 takes nothing returns nothing
set udg_vz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_vz,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_vz,Condition(function XJ4))
call TriggerAddAction(udg_vz,function XK4)
endfunction
function XM4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function XN4 takes nothing returns boolean
if(not XM4())then
return false
endif
return true
endfunction
function XO4 takes nothing returns nothing
set udg_D7[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[4],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[4],true)
set udg_D7[4]=null
endfunction
function X04 takes nothing returns nothing
set udg_wz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_wz,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_wz,Condition(function XN4))
call TriggerAddAction(udg_wz,function XO4)
endfunction
function XP4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function XQ4 takes nothing returns boolean
if(not XP4())then
return false
endif
return true
endfunction
function XR4 takes nothing returns nothing
set udg_D7[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[5],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[5],true)
set udg_D7[5]=null
endfunction
function XS4 takes nothing returns nothing
set udg_xz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_xz,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_xz,Condition(function XQ4))
call TriggerAddAction(udg_xz,function XR4)
endfunction
function X54 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function XT4 takes nothing returns boolean
if(not X54())then
return false
endif
return true
endfunction
function XU4 takes nothing returns nothing
set udg_D7[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[6],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[6],true)
set udg_D7[6]=null
endfunction
function XV4 takes nothing returns nothing
set udg_yz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_yz,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_yz,Condition(function XT4))
call TriggerAddAction(udg_yz,function XU4)
endfunction
function XW4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function XX4 takes nothing returns boolean
if(not XW4())then
return false
endif
return true
endfunction
function XY4 takes nothing returns nothing
set udg_D7[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[7],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[7],true)
set udg_D7[7]=null
endfunction
function X24 takes nothing returns nothing
set udg_zz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_zz,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_zz,Condition(function XX4))
call TriggerAddAction(udg_zz,function XY4)
endfunction
function XZ4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function X_4 takes nothing returns boolean
if(not XZ4())then
return false
endif
return true
endfunction
function Y44 takes nothing returns nothing
set udg_D7[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[8],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[8],true)
set udg_D7[8]=null
endfunction
function Y74 takes nothing returns nothing
set udg_Az=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Az,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Az,Condition(function X_4))
call TriggerAddAction(udg_Az,function Y44)
endfunction
function Y84 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function Y94 takes nothing returns boolean
if(not Y84())then
return false
endif
return true
endfunction
function Yd4 takes nothing returns nothing
set udg_D7[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[9],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[9],true)
set udg_D7[9]=null
endfunction
function Ye4 takes nothing returns nothing
set udg_az=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_az,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_az,Condition(function Y94))
call TriggerAddAction(udg_az,function Yd4)
endfunction
function Yf4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function Yg4 takes nothing returns boolean
if(not Yf4())then
return false
endif
return true
endfunction
function Yh4 takes nothing returns nothing
set udg_D7[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[10],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[10],true)
set udg_D7[10]=null
endfunction
function Yi4 takes nothing returns nothing
set udg_Bz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Bz,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Bz,Condition(function Yg4))
call TriggerAddAction(udg_Bz,function Yh4)
endfunction
function Yj4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function Yk4 takes nothing returns boolean
if(not Yj4())then
return false
endif
return true
endfunction
function Ym4 takes nothing returns nothing
set udg_D7[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[11],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[11],true)
set udg_D7[11]=null
endfunction
function Yn4 takes nothing returns nothing
set udg_bz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_bz,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_bz,Condition(function Yk4))
call TriggerAddAction(udg_bz,function Ym4)
endfunction
function Yo4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227894871))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function Yp4 takes nothing returns boolean
if(not Yo4())then
return false
endif
return true
endfunction
function Yq4 takes nothing returns nothing
set udg_D7[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_D7[12],false)
call TriggerSleepAction(45.00)
call SetItemDroppableBJ(udg_D7[12],true)
set udg_D7[12]=null
endfunction
function Yr4 takes nothing returns nothing
set udg_Cz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Cz,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Cz,Condition(function Yp4))
call TriggerAddAction(udg_Cz,function Yq4)
endfunction
function Ys4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function Yt4 takes nothing returns boolean
if(not Ys4())then
return false
endif
return true
endfunction
function Yu4 takes nothing returns nothing
set udg_E7[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[1],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[1],true)
set udg_E7[1]=null
endfunction
function Yv4 takes nothing returns nothing
set udg_cz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_cz,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_cz,Condition(function Yt4))
call TriggerAddAction(udg_cz,function Yu4)
endfunction
function Yw4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function Yx4 takes nothing returns boolean
if(not Yw4())then
return false
endif
return true
endfunction
function Yy4 takes nothing returns nothing
set udg_E7[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[2],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[2],true)
set udg_E7[2]=null
endfunction
function Yz4 takes nothing returns nothing
set udg_Dz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Dz,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Dz,Condition(function Yx4))
call TriggerAddAction(udg_Dz,function Yy4)
endfunction
function YA4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function Ya4 takes nothing returns boolean
if(not YA4())then
return false
endif
return true
endfunction
function YB4 takes nothing returns nothing
set udg_E7[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[3],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[3],true)
set udg_E7[3]=null
endfunction
function Yb4 takes nothing returns nothing
set udg_Ez=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Ez,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Ez,Condition(function Ya4))
call TriggerAddAction(udg_Ez,function YB4)
endfunction
function YC4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function Yc4 takes nothing returns boolean
if(not YC4())then
return false
endif
return true
endfunction
function YD4 takes nothing returns nothing
set udg_E7[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[4],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[4],true)
set udg_E7[4]=null
endfunction
function YE4 takes nothing returns nothing
set udg_Fz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Fz,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Fz,Condition(function Yc4))
call TriggerAddAction(udg_Fz,function YD4)
endfunction
function Y34 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function YF4 takes nothing returns boolean
if(not Y34())then
return false
endif
return true
endfunction
function YG4 takes nothing returns nothing
set udg_E7[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[5],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[5],true)
set udg_E7[5]=null
endfunction
function Y64 takes nothing returns nothing
set udg_Gz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Gz,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Gz,Condition(function YF4))
call TriggerAddAction(udg_Gz,function YG4)
endfunction
function YH4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function YI4 takes nothing returns boolean
if(not YH4())then
return false
endif
return true
endfunction
function Yl4 takes nothing returns nothing
set udg_E7[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[6],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[6],true)
set udg_E7[6]=null
endfunction
function Y14 takes nothing returns nothing
set udg_Hz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Hz,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Hz,Condition(function YI4))
call TriggerAddAction(udg_Hz,function Yl4)
endfunction
function YJ4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function YK4 takes nothing returns boolean
if(not YJ4())then
return false
endif
return true
endfunction
function YL4 takes nothing returns nothing
set udg_E7[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[7],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[7],true)
set udg_E7[7]=null
endfunction
function YM4 takes nothing returns nothing
set udg_Iz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Iz,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Iz,Condition(function YK4))
call TriggerAddAction(udg_Iz,function YL4)
endfunction
function YN4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function YO4 takes nothing returns boolean
if(not YN4())then
return false
endif
return true
endfunction
function Y04 takes nothing returns nothing
set udg_E7[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[8],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[8],true)
set udg_E7[8]=null
endfunction
function YP4 takes nothing returns nothing
set udg_lz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_lz,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_lz,Condition(function YO4))
call TriggerAddAction(udg_lz,function Y04)
endfunction
function YQ4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function YR4 takes nothing returns boolean
if(not YQ4())then
return false
endif
return true
endfunction
function YS4 takes nothing returns nothing
set udg_E7[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[9],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[9],true)
set udg_E7[9]=null
endfunction
function Y54 takes nothing returns nothing
set udg_Jz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Jz,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Jz,Condition(function YR4))
call TriggerAddAction(udg_Jz,function YS4)
endfunction
function YT4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function YU4 takes nothing returns boolean
if(not YT4())then
return false
endif
return true
endfunction
function YV4 takes nothing returns nothing
set udg_E7[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[10],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[10],true)
set udg_E7[10]=null
endfunction
function YW4 takes nothing returns nothing
set udg_Kz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Kz,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Kz,Condition(function YU4))
call TriggerAddAction(udg_Kz,function YV4)
endfunction
function YX4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function YY4 takes nothing returns boolean
if(not YX4())then
return false
endif
return true
endfunction
function Y24 takes nothing returns nothing
set udg_E7[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[11],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[11],true)
set udg_E7[11]=null
endfunction
function YZ4 takes nothing returns nothing
set udg_Lz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Lz,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Lz,Condition(function YY4))
call TriggerAddAction(udg_Lz,function Y24)
endfunction
function Y_4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895115))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function Z44 takes nothing returns boolean
if(not Y_4())then
return false
endif
return true
endfunction
function Z74 takes nothing returns nothing
set udg_E7[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_E7[12],false)
call TriggerSleepAction(60.00)
call SetItemDroppableBJ(udg_E7[12],true)
set udg_E7[12]=null
endfunction
function Z84 takes nothing returns nothing
set udg_Mz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Mz,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Mz,Condition(function Z44))
call TriggerAddAction(udg_Mz,function Z74)
endfunction
function Z94 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function Zd4 takes nothing returns boolean
if(not Z94())then
return false
endif
return true
endfunction
function Ze4 takes nothing returns nothing
set udg_F7[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[1],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[1],true)
set udg_F7[1]=null
endfunction
function Zf4 takes nothing returns nothing
set udg_Nz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Nz,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Nz,Condition(function Zd4))
call TriggerAddAction(udg_Nz,function Ze4)
endfunction
function Zg4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function Zh4 takes nothing returns boolean
if(not Zg4())then
return false
endif
return true
endfunction
function Zi4 takes nothing returns nothing
set udg_F7[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[2],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[2],true)
set udg_F7[2]=null
endfunction
function Zj4 takes nothing returns nothing
set udg_Oz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Oz,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Oz,Condition(function Zh4))
call TriggerAddAction(udg_Oz,function Zi4)
endfunction
function Zk4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function Zm4 takes nothing returns boolean
if(not Zk4())then
return false
endif
return true
endfunction
function Zn4 takes nothing returns nothing
set udg_F7[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[3],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[3],true)
set udg_F7[3]=null
endfunction
function Zo4 takes nothing returns nothing
set udg_Pz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Pz,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Pz,Condition(function Zm4))
call TriggerAddAction(udg_Pz,function Zn4)
endfunction
function Zp4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function Zq4 takes nothing returns boolean
if(not Zp4())then
return false
endif
return true
endfunction
function Zr4 takes nothing returns nothing
set udg_F7[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[4],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[4],true)
set udg_F7[4]=null
endfunction
function Zs4 takes nothing returns nothing
set udg_Qz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Qz,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Qz,Condition(function Zq4))
call TriggerAddAction(udg_Qz,function Zr4)
endfunction
function Zt4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function Zu4 takes nothing returns boolean
if(not Zt4())then
return false
endif
return true
endfunction
function Zv4 takes nothing returns nothing
set udg_F7[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[5],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[5],true)
set udg_F7[5]=null
endfunction
function Zw4 takes nothing returns nothing
set udg_Rz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Rz,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Rz,Condition(function Zu4))
call TriggerAddAction(udg_Rz,function Zv4)
endfunction
function Zx4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function Zy4 takes nothing returns boolean
if(not Zx4())then
return false
endif
return true
endfunction
function Zz4 takes nothing returns nothing
set udg_F7[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[6],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[6],true)
set udg_F7[6]=null
endfunction
function ZA4 takes nothing returns nothing
set udg_Sz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Sz,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Sz,Condition(function Zy4))
call TriggerAddAction(udg_Sz,function Zz4)
endfunction
function Za4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function ZB4 takes nothing returns boolean
if(not Za4())then
return false
endif
return true
endfunction
function Zb4 takes nothing returns nothing
set udg_F7[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[7],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[7],true)
set udg_F7[7]=null
endfunction
function ZC4 takes nothing returns nothing
set udg_Tz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Tz,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Tz,Condition(function ZB4))
call TriggerAddAction(udg_Tz,function Zb4)
endfunction
function Zc4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function ZD4 takes nothing returns boolean
if(not Zc4())then
return false
endif
return true
endfunction
function ZE4 takes nothing returns nothing
set udg_F7[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[8],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[8],true)
set udg_F7[8]=null
endfunction
function Z34 takes nothing returns nothing
set udg_Uz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Uz,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Uz,Condition(function ZD4))
call TriggerAddAction(udg_Uz,function ZE4)
endfunction
function ZF4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function ZG4 takes nothing returns boolean
if(not ZF4())then
return false
endif
return true
endfunction
function Z64 takes nothing returns nothing
set udg_F7[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[9],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[9],true)
set udg_F7[9]=null
endfunction
function ZH4 takes nothing returns nothing
set udg_Vz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Vz,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Vz,Condition(function ZG4))
call TriggerAddAction(udg_Vz,function Z64)
endfunction
function ZI4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function Zl4 takes nothing returns boolean
if(not ZI4())then
return false
endif
return true
endfunction
function Z14 takes nothing returns nothing
set udg_F7[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[10],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[10],true)
set udg_F7[10]=null
endfunction
function ZJ4 takes nothing returns nothing
set udg_Wz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Wz,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Wz,Condition(function Zl4))
call TriggerAddAction(udg_Wz,function Z14)
endfunction
function ZK4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function ZL4 takes nothing returns boolean
if(not ZK4())then
return false
endif
return true
endfunction
function ZM4 takes nothing returns nothing
set udg_F7[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[11],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[11],true)
set udg_F7[11]=null
endfunction
function ZN4 takes nothing returns nothing
set udg_Xz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Xz,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Xz,Condition(function ZL4))
call TriggerAddAction(udg_Xz,function ZM4)
endfunction
function ZO4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895370))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function Z04 takes nothing returns boolean
if(not ZO4())then
return false
endif
return true
endfunction
function ZP4 takes nothing returns nothing
set udg_F7[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_F7[12],false)
call TriggerSleepAction(20.00)
call SetItemDroppableBJ(udg_F7[12],true)
set udg_F7[12]=null
endfunction
function ZQ4 takes nothing returns nothing
set udg_Yz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Yz,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Yz,Condition(function Z04))
call TriggerAddAction(udg_Yz,function ZP4)
endfunction
function ZR4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function ZS4 takes nothing returns boolean
if(not ZR4())then
return false
endif
return true
endfunction
function Z54 takes nothing returns nothing
set udg_N8[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[1],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[1],true)
set udg_N8[1]=null
endfunction
function ZT4 takes nothing returns nothing
set udg_Zz=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_Zz,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_Zz,Condition(function ZS4))
call TriggerAddAction(udg_Zz,function Z54)
endfunction
function ZU4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function ZV4 takes nothing returns boolean
if(not ZU4())then
return false
endif
return true
endfunction
function ZW4 takes nothing returns nothing
set udg_N8[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[2],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[2],true)
set udg_N8[2]=null
endfunction
function ZX4 takes nothing returns nothing
set udg_dA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_dA,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_dA,Condition(function ZV4))
call TriggerAddAction(udg_dA,function ZW4)
endfunction
function ZY4 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function Z24 takes nothing returns boolean
if(not ZY4())then
return false
endif
return true
endfunction
function ZZ4 takes nothing returns nothing
set udg_N8[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[3],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[3],true)
set udg_N8[3]=null
endfunction
function Z_4 takes nothing returns nothing
set udg_eA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_eA,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_eA,Condition(function Z24))
call TriggerAddAction(udg_eA,function ZZ4)
endfunction
function d47 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function d77 takes nothing returns boolean
if(not d47())then
return false
endif
return true
endfunction
function d87 takes nothing returns nothing
set udg_N8[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[4],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[4],true)
set udg_N8[4]=null
endfunction
function d97 takes nothing returns nothing
set udg_fA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_fA,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_fA,Condition(function d77))
call TriggerAddAction(udg_fA,function d87)
endfunction
function dd7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function de7 takes nothing returns boolean
if(not dd7())then
return false
endif
return true
endfunction
function df7 takes nothing returns nothing
set udg_N8[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[5],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[5],true)
set udg_N8[5]=null
endfunction
function dg7 takes nothing returns nothing
set udg_gA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_gA,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_gA,Condition(function de7))
call TriggerAddAction(udg_gA,function df7)
endfunction
function dh7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function di7 takes nothing returns boolean
if(not dh7())then
return false
endif
return true
endfunction
function dj7 takes nothing returns nothing
set udg_N8[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[6],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[6],true)
set udg_N8[6]=null
endfunction
function dk7 takes nothing returns nothing
set udg_hA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_hA,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_hA,Condition(function di7))
call TriggerAddAction(udg_hA,function dj7)
endfunction
function dm7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function dn7 takes nothing returns boolean
if(not dm7())then
return false
endif
return true
endfunction
function do7 takes nothing returns nothing
set udg_N8[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[7],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[7],true)
set udg_N8[7]=null
endfunction
function dp7 takes nothing returns nothing
set udg_iA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_iA,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_iA,Condition(function dn7))
call TriggerAddAction(udg_iA,function do7)
endfunction
function dq7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function dr7 takes nothing returns boolean
if(not dq7())then
return false
endif
return true
endfunction
function ds7 takes nothing returns nothing
set udg_N8[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[8],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[8],true)
set udg_N8[8]=null
endfunction
function dt7 takes nothing returns nothing
set udg_jA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_jA,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_jA,Condition(function dr7))
call TriggerAddAction(udg_jA,function ds7)
endfunction
function du7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function dv7 takes nothing returns boolean
if(not du7())then
return false
endif
return true
endfunction
function dw7 takes nothing returns nothing
set udg_N8[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[9],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[9],true)
set udg_N8[9]=null
endfunction
function dx7 takes nothing returns nothing
set udg_kA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_kA,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_kA,Condition(function dv7))
call TriggerAddAction(udg_kA,function dw7)
endfunction
function dy7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function dz7 takes nothing returns boolean
if(not dy7())then
return false
endif
return true
endfunction
function dA7 takes nothing returns nothing
set udg_N8[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[10],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[10],true)
set udg_N8[10]=null
endfunction
function da7 takes nothing returns nothing
set udg_mA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_mA,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_mA,Condition(function dz7))
call TriggerAddAction(udg_mA,function dA7)
endfunction
function dB7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function db7 takes nothing returns boolean
if(not dB7())then
return false
endif
return true
endfunction
function dC7 takes nothing returns nothing
set udg_N8[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[11],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[11],true)
set udg_N8[11]=null
endfunction
function dc7 takes nothing returns nothing
set udg_nA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_nA,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_nA,Condition(function db7))
call TriggerAddAction(udg_nA,function dC7)
endfunction
function dD7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895119))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function dE7 takes nothing returns boolean
if(not dD7())then
return false
endif
return true
endfunction
function d37 takes nothing returns nothing
set udg_N8[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_N8[12],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_N8[12],true)
set udg_N8[12]=null
endfunction
function dF7 takes nothing returns nothing
set udg_oA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_oA,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_oA,Condition(function dE7))
call TriggerAddAction(udg_oA,function d37)
endfunction
function dG7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function d67 takes nothing returns boolean
if(not dG7())then
return false
endif
return true
endfunction
function dH7 takes nothing returns nothing
set udg_Um[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[1],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[1],true)
set udg_Um[1]=null
endfunction
function dI7 takes nothing returns nothing
set udg_pA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_pA,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_pA,Condition(function d67))
call TriggerAddAction(udg_pA,function dH7)
endfunction
function dl7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function d17 takes nothing returns boolean
if(not dl7())then
return false
endif
return true
endfunction
function dJ7 takes nothing returns nothing
set udg_Um[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[2],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[2],true)
set udg_Um[2]=null
endfunction
function dK7 takes nothing returns nothing
set udg_qA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_qA,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_qA,Condition(function d17))
call TriggerAddAction(udg_qA,function dJ7)
endfunction
function dL7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function dM7 takes nothing returns boolean
if(not dL7())then
return false
endif
return true
endfunction
function dN7 takes nothing returns nothing
set udg_Um[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[3],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[3],true)
set udg_Um[3]=null
endfunction
function dO7 takes nothing returns nothing
set udg_rA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_rA,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_rA,Condition(function dM7))
call TriggerAddAction(udg_rA,function dN7)
endfunction
function d07 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function dP7 takes nothing returns boolean
if(not d07())then
return false
endif
return true
endfunction
function dQ7 takes nothing returns nothing
set udg_Um[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[4],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[4],true)
set udg_Um[4]=null
endfunction
function dR7 takes nothing returns nothing
set udg_sA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_sA,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_sA,Condition(function dP7))
call TriggerAddAction(udg_sA,function dQ7)
endfunction
function dS7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function d57 takes nothing returns boolean
if(not dS7())then
return false
endif
return true
endfunction
function dT7 takes nothing returns nothing
set udg_Um[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[5],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[5],true)
set udg_Um[5]=null
endfunction
function dU7 takes nothing returns nothing
set udg_tA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_tA,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_tA,Condition(function d57))
call TriggerAddAction(udg_tA,function dT7)
endfunction
function dV7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function dW7 takes nothing returns boolean
if(not dV7())then
return false
endif
return true
endfunction
function dX7 takes nothing returns nothing
set udg_Um[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[6],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[6],true)
set udg_Um[6]=null
endfunction
function dY7 takes nothing returns nothing
set udg_uA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_uA,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_uA,Condition(function dW7))
call TriggerAddAction(udg_uA,function dX7)
endfunction
function d27 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function dZ7 takes nothing returns boolean
if(not d27())then
return false
endif
return true
endfunction
function d_7 takes nothing returns nothing
set udg_Um[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[7],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[7],true)
set udg_Um[7]=null
endfunction
function e47 takes nothing returns nothing
set udg_vA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_vA,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_vA,Condition(function dZ7))
call TriggerAddAction(udg_vA,function d_7)
endfunction
function e77 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function e87 takes nothing returns boolean
if(not e77())then
return false
endif
return true
endfunction
function e97 takes nothing returns nothing
set udg_Um[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[8],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[8],true)
set udg_Um[8]=null
endfunction
function ed7 takes nothing returns nothing
set udg_wA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_wA,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_wA,Condition(function e87))
call TriggerAddAction(udg_wA,function e97)
endfunction
function ee7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function ef7 takes nothing returns boolean
if(not ee7())then
return false
endif
return true
endfunction
function eg7 takes nothing returns nothing
set udg_Um[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[9],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[9],true)
set udg_Um[9]=null
endfunction
function eh7 takes nothing returns nothing
set udg_xA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_xA,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_xA,Condition(function ef7))
call TriggerAddAction(udg_xA,function eg7)
endfunction
function ei7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function ej7 takes nothing returns boolean
if(not ei7())then
return false
endif
return true
endfunction
function ek7 takes nothing returns nothing
set udg_Um[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[10],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[10],true)
set udg_Um[10]=null
endfunction
function em7 takes nothing returns nothing
set udg_yA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_yA,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_yA,Condition(function ej7))
call TriggerAddAction(udg_yA,function ek7)
endfunction
function en7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function eo7 takes nothing returns boolean
if(not en7())then
return false
endif
return true
endfunction
function ep7 takes nothing returns nothing
set udg_Um[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[11],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[11],true)
set udg_Um[11]=null
endfunction
function eq7 takes nothing returns nothing
set udg_zA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_zA,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_zA,Condition(function eo7))
call TriggerAddAction(udg_zA,function ep7)
endfunction
function er7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1684370275))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function es7 takes nothing returns boolean
if(not er7())then
return false
endif
return true
endfunction
function et7 takes nothing returns nothing
set udg_Um[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Um[12],false)
call TriggerSleepAction(12.00)
call SetItemDroppableBJ(udg_Um[12],true)
set udg_Um[12]=null
endfunction
function eu7 takes nothing returns nothing
set udg_AA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_AA,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_AA,Condition(function es7))
call TriggerAddAction(udg_AA,function et7)
endfunction
function ev7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function ew7 takes nothing returns boolean
if(not ev7())then
return false
endif
return true
endfunction
function ex7 takes nothing returns nothing
set udg_Vm[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[1],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[1],true)
set udg_Vm[1]=null
endfunction
function ey7 takes nothing returns nothing
set udg_aA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_aA,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_aA,Condition(function ew7))
call TriggerAddAction(udg_aA,function ex7)
endfunction
function ez7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function eA7 takes nothing returns boolean
if(not ez7())then
return false
endif
return true
endfunction
function ea7 takes nothing returns nothing
set udg_Vm[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[2],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[2],true)
set udg_Vm[2]=null
endfunction
function eB7 takes nothing returns nothing
set udg_BA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_BA,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_BA,Condition(function eA7))
call TriggerAddAction(udg_BA,function ea7)
endfunction
function eb7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function eC7 takes nothing returns boolean
if(not eb7())then
return false
endif
return true
endfunction
function ec7 takes nothing returns nothing
set udg_Vm[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[3],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[3],true)
set udg_Vm[3]=null
endfunction
function eD7 takes nothing returns nothing
set udg_bA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_bA,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_bA,Condition(function eC7))
call TriggerAddAction(udg_bA,function ec7)
endfunction
function eE7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function e37 takes nothing returns boolean
if(not eE7())then
return false
endif
return true
endfunction
function eF7 takes nothing returns nothing
set udg_Vm[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[4],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[4],true)
set udg_Vm[4]=null
endfunction
function eG7 takes nothing returns nothing
set udg_CA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_CA,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_CA,Condition(function e37))
call TriggerAddAction(udg_CA,function eF7)
endfunction
function e67 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function eH7 takes nothing returns boolean
if(not e67())then
return false
endif
return true
endfunction
function eI7 takes nothing returns nothing
set udg_Vm[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[5],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[5],true)
set udg_Vm[5]=null
endfunction
function el7 takes nothing returns nothing
set udg_cA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_cA,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_cA,Condition(function eH7))
call TriggerAddAction(udg_cA,function eI7)
endfunction
function e17 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function eJ7 takes nothing returns boolean
if(not e17())then
return false
endif
return true
endfunction
function eK7 takes nothing returns nothing
set udg_Vm[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[6],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[6],true)
set udg_Vm[6]=null
endfunction
function eL7 takes nothing returns nothing
set udg_DA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_DA,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_DA,Condition(function eJ7))
call TriggerAddAction(udg_DA,function eK7)
endfunction
function eM7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function eN7 takes nothing returns boolean
if(not eM7())then
return false
endif
return true
endfunction
function eO7 takes nothing returns nothing
set udg_Vm[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[7],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[7],true)
set udg_Vm[7]=null
endfunction
function e07 takes nothing returns nothing
set udg_EA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_EA,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_EA,Condition(function eN7))
call TriggerAddAction(udg_EA,function eO7)
endfunction
function eP7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function eQ7 takes nothing returns boolean
if(not eP7())then
return false
endif
return true
endfunction
function eR7 takes nothing returns nothing
set udg_Vm[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[8],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[8],true)
set udg_Vm[8]=null
endfunction
function eS7 takes nothing returns nothing
set udg_FA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_FA,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_FA,Condition(function eQ7))
call TriggerAddAction(udg_FA,function eR7)
endfunction
function e57 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function eT7 takes nothing returns boolean
if(not e57())then
return false
endif
return true
endfunction
function eU7 takes nothing returns nothing
set udg_Vm[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[9],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[9],true)
set udg_Vm[9]=null
endfunction
function eV7 takes nothing returns nothing
set udg_GA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_GA,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_GA,Condition(function eT7))
call TriggerAddAction(udg_GA,function eU7)
endfunction
function eW7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function eX7 takes nothing returns boolean
if(not eW7())then
return false
endif
return true
endfunction
function eY7 takes nothing returns nothing
set udg_Vm[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[10],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[10],true)
set udg_Vm[10]=null
endfunction
function e27 takes nothing returns nothing
set udg_HA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_HA,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_HA,Condition(function eX7))
call TriggerAddAction(udg_HA,function eY7)
endfunction
function eZ7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function e_7 takes nothing returns boolean
if(not eZ7())then
return false
endif
return true
endfunction
function f47 takes nothing returns nothing
set udg_Vm[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[11],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[11],true)
set udg_Vm[11]=null
endfunction
function f77 takes nothing returns nothing
set udg_IA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_IA,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_IA,Condition(function e_7))
call TriggerAddAction(udg_IA,function f47)
endfunction
function f87 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895882))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function f97 takes nothing returns boolean
if(not f87())then
return false
endif
return true
endfunction
function fd7 takes nothing returns nothing
set udg_Vm[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Vm[12],false)
call TriggerSleepAction(30.00)
call SetItemDroppableBJ(udg_Vm[12],true)
set udg_Vm[12]=null
endfunction
function fe7 takes nothing returns nothing
set udg_lA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_lA,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_lA,Condition(function f97))
call TriggerAddAction(udg_lA,function fd7)
endfunction
function ff7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function fg7 takes nothing returns boolean
if(not ff7())then
return false
endif
return true
endfunction
function fh7 takes nothing returns nothing
set udg_Wm[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[1],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[1],true)
set udg_Wm[1]=null
endfunction
function fi7 takes nothing returns nothing
set udg_JA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_JA,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_JA,Condition(function fg7))
call TriggerAddAction(udg_JA,function fh7)
endfunction
function fj7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function fk7 takes nothing returns boolean
if(not fj7())then
return false
endif
return true
endfunction
function fm7 takes nothing returns nothing
set udg_Wm[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[2],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[2],true)
set udg_Wm[2]=null
endfunction
function fn7 takes nothing returns nothing
set udg_KA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_KA,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_KA,Condition(function fk7))
call TriggerAddAction(udg_KA,function fm7)
endfunction
function fo7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function fp7 takes nothing returns boolean
if(not fo7())then
return false
endif
return true
endfunction
function fq7 takes nothing returns nothing
set udg_Wm[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[3],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[3],true)
set udg_Wm[3]=null
endfunction
function fr7 takes nothing returns nothing
set udg_LA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_LA,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_LA,Condition(function fp7))
call TriggerAddAction(udg_LA,function fq7)
endfunction
function fs7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function ft7 takes nothing returns boolean
if(not fs7())then
return false
endif
return true
endfunction
function fu7 takes nothing returns nothing
set udg_Wm[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[4],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[4],true)
set udg_Wm[4]=null
endfunction
function fv7 takes nothing returns nothing
set udg_MA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_MA,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_MA,Condition(function ft7))
call TriggerAddAction(udg_MA,function fu7)
endfunction
function fw7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function fx7 takes nothing returns boolean
if(not fw7())then
return false
endif
return true
endfunction
function fy7 takes nothing returns nothing
set udg_Wm[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[5],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[5],true)
set udg_Wm[5]=null
endfunction
function fz7 takes nothing returns nothing
set udg_NA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_NA,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_NA,Condition(function fx7))
call TriggerAddAction(udg_NA,function fy7)
endfunction
function fA7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function fa7 takes nothing returns boolean
if(not fA7())then
return false
endif
return true
endfunction
function fB7 takes nothing returns nothing
set udg_Wm[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[6],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[6],true)
set udg_Wm[6]=null
endfunction
function fb7 takes nothing returns nothing
set udg_OA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_OA,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_OA,Condition(function fa7))
call TriggerAddAction(udg_OA,function fB7)
endfunction
function fC7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function fc7 takes nothing returns boolean
if(not fC7())then
return false
endif
return true
endfunction
function fD7 takes nothing returns nothing
set udg_Wm[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[7],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[7],true)
set udg_Wm[7]=null
endfunction
function fE7 takes nothing returns nothing
set udg_PA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_PA,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_PA,Condition(function fc7))
call TriggerAddAction(udg_PA,function fD7)
endfunction
function f37 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function fF7 takes nothing returns boolean
if(not f37())then
return false
endif
return true
endfunction
function fG7 takes nothing returns nothing
set udg_Wm[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[8],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[8],true)
set udg_Wm[8]=null
endfunction
function f67 takes nothing returns nothing
set udg_QA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_QA,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_QA,Condition(function fF7))
call TriggerAddAction(udg_QA,function fG7)
endfunction
function fH7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function fI7 takes nothing returns boolean
if(not fH7())then
return false
endif
return true
endfunction
function fl7 takes nothing returns nothing
set udg_Wm[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[9],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[9],true)
set udg_Wm[9]=null
endfunction
function f17 takes nothing returns nothing
set udg_RA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_RA,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_RA,Condition(function fI7))
call TriggerAddAction(udg_RA,function fl7)
endfunction
function fJ7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function fK7 takes nothing returns boolean
if(not fJ7())then
return false
endif
return true
endfunction
function fL7 takes nothing returns nothing
set udg_Wm[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[10],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[10],true)
set udg_Wm[10]=null
endfunction
function fM7 takes nothing returns nothing
set udg_SA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_SA,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_SA,Condition(function fK7))
call TriggerAddAction(udg_SA,function fL7)
endfunction
function fN7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function fO7 takes nothing returns boolean
if(not fN7())then
return false
endif
return true
endfunction
function f07 takes nothing returns nothing
set udg_Wm[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[11],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[11],true)
set udg_Wm[11]=null
endfunction
function fP7 takes nothing returns nothing
set udg_TA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_TA,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_TA,Condition(function fO7))
call TriggerAddAction(udg_TA,function f07)
endfunction
function fQ7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895883))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function fR7 takes nothing returns boolean
if(not fQ7())then
return false
endif
return true
endfunction
function fS7 takes nothing returns nothing
set udg_Wm[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_Wm[12],false)
call TriggerSleepAction(75.00)
call SetItemDroppableBJ(udg_Wm[12],true)
set udg_Wm[12]=null
endfunction
function f57 takes nothing returns nothing
set udg_UA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_UA,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_UA,Condition(function fR7))
call TriggerAddAction(udg_UA,function fS7)
endfunction
function fT7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(0)))then
return false
endif
return true
endfunction
function fU7 takes nothing returns boolean
if(not fT7())then
return false
endif
return true
endfunction
function fV7 takes nothing returns nothing
set udg_on[1]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[1],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[1],true)
set udg_on[1]=null
endfunction
function fW7 takes nothing returns nothing
set udg_VA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_VA,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_VA,Condition(function fU7))
call TriggerAddAction(udg_VA,function fV7)
endfunction
function fX7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(1)))then
return false
endif
return true
endfunction
function fY7 takes nothing returns boolean
if(not fX7())then
return false
endif
return true
endfunction
function f27 takes nothing returns nothing
set udg_on[2]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[2],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[2],true)
set udg_on[2]=null
endfunction
function fZ7 takes nothing returns nothing
set udg_WA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_WA,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_WA,Condition(function fY7))
call TriggerAddAction(udg_WA,function f27)
endfunction
function f_7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(2)))then
return false
endif
return true
endfunction
function g47 takes nothing returns boolean
if(not f_7())then
return false
endif
return true
endfunction
function g77 takes nothing returns nothing
set udg_on[3]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[3],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[3],true)
set udg_on[3]=null
endfunction
function g87 takes nothing returns nothing
set udg_XA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_XA,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_XA,Condition(function g47))
call TriggerAddAction(udg_XA,function g77)
endfunction
function g97 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(3)))then
return false
endif
return true
endfunction
function gd7 takes nothing returns boolean
if(not g97())then
return false
endif
return true
endfunction
function ge7 takes nothing returns nothing
set udg_on[4]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[4],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[4],true)
set udg_on[4]=null
endfunction
function gf7 takes nothing returns nothing
set udg_YA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_YA,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_YA,Condition(function gd7))
call TriggerAddAction(udg_YA,function ge7)
endfunction
function gg7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(4)))then
return false
endif
return true
endfunction
function gh7 takes nothing returns boolean
if(not gg7())then
return false
endif
return true
endfunction
function gi7 takes nothing returns nothing
set udg_on[5]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[5],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[5],true)
set udg_on[5]=null
endfunction
function gj7 takes nothing returns nothing
set udg_ZA=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ZA,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ZA,Condition(function gh7))
call TriggerAddAction(udg_ZA,function gi7)
endfunction
function gk7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(5)))then
return false
endif
return true
endfunction
function gm7 takes nothing returns boolean
if(not gk7())then
return false
endif
return true
endfunction
function gn7 takes nothing returns nothing
set udg_on[6]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[6],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[6],true)
set udg_on[6]=null
endfunction
function go7 takes nothing returns nothing
set udg_da=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_da,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_da,Condition(function gm7))
call TriggerAddAction(udg_da,function gn7)
endfunction
function gp7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(6)))then
return false
endif
return true
endfunction
function gq7 takes nothing returns boolean
if(not gp7())then
return false
endif
return true
endfunction
function gr7 takes nothing returns nothing
set udg_on[7]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[7],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[7],true)
set udg_on[7]=null
endfunction
function gs7 takes nothing returns nothing
set udg_ea=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ea,Player(6),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ea,Condition(function gq7))
call TriggerAddAction(udg_ea,function gr7)
endfunction
function gt7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(7)))then
return false
endif
return true
endfunction
function gu7 takes nothing returns boolean
if(not gt7())then
return false
endif
return true
endfunction
function gv7 takes nothing returns nothing
set udg_on[8]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[8],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[8],true)
set udg_on[8]=null
endfunction
function gw7 takes nothing returns nothing
set udg_fa=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_fa,Player(7),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_fa,Condition(function gu7))
call TriggerAddAction(udg_fa,function gv7)
endfunction
function gx7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(8)))then
return false
endif
return true
endfunction
function gy7 takes nothing returns boolean
if(not gx7())then
return false
endif
return true
endfunction
function gz7 takes nothing returns nothing
set udg_on[9]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[9],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[9],true)
set udg_on[9]=null
endfunction
function gA7 takes nothing returns nothing
set udg_ga=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ga,Player(8),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ga,Condition(function gy7))
call TriggerAddAction(udg_ga,function gz7)
endfunction
function ga7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(9)))then
return false
endif
return true
endfunction
function gB7 takes nothing returns boolean
if(not ga7())then
return false
endif
return true
endfunction
function gb7 takes nothing returns nothing
set udg_on[10]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[10],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[10],true)
set udg_on[10]=null
endfunction
function gC7 takes nothing returns nothing
set udg_ha=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ha,Player(9),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ha,Condition(function gB7))
call TriggerAddAction(udg_ha,function gb7)
endfunction
function gc7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(10)))then
return false
endif
return true
endfunction
function gD7 takes nothing returns boolean
if(not gc7())then
return false
endif
return true
endfunction
function gE7 takes nothing returns nothing
set udg_on[11]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[11],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[11],true)
set udg_on[11]=null
endfunction
function g37 takes nothing returns nothing
set udg_ia=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ia,Player(10),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ia,Condition(function gD7))
call TriggerAddAction(udg_ia,function gE7)
endfunction
function gF7 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1227895888))then
return false
endif
if(not(GetOwningPlayer(GetManipulatingUnit())==Player(11)))then
return false
endif
return true
endfunction
function gG7 takes nothing returns boolean
if(not gF7())then
return false
endif
return true
endfunction
function g67 takes nothing returns nothing
set udg_on[12]=GetManipulatedItem()
call SetItemDroppableBJ(udg_on[12],false)
call TriggerSleepAction(100.00)
call SetItemDroppableBJ(udg_on[12],true)
set udg_on[12]=null
endfunction
function gH7 takes nothing returns nothing
set udg_ja=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_ja,Player(11),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_ja,Condition(function gG7))
call TriggerAddAction(udg_ja,function g67)
endfunction
function gI7 takes nothing returns boolean
if(not(udg_hj==null))then
return false
endif
return true
endfunction
function gl7 takes nothing returns nothing
if(gI7())then
call DestroyTrigger(udg_ma)
call DestroyTrigger(udg_na)
call DestroyTrigger(udg_oa)
call DestroyTrigger(udg_pa)
call DestroyTrigger(udg_qa)
call DestroyTrigger(udg_ra)
call DestroyTrigger(udg_sa)
call DestroyTrigger(udg_ta)
call DestroyTrigger(udg_ua)
call DestroyTrigger(udg_wa)
call DestroyTrigger(udg_va)
call DestroyTrigger(udg_xa)
call DestroyTrigger(udg_ya)
call DestroyTrigger(udg_za)
else
call TriggerRegisterUnitEvent(udg_ma,udg_hj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_na,udg_hj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_pa,udg_hj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_qa,udg_hj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_sa,udg_hj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_va,udg_hj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_oa,udg_hj,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_ta,udg_hj,EVENT_UNIT_HERO_SKILL)
endif
endfunction
function g17 takes nothing returns nothing
set udg_ka=CreateTrigger()
call TriggerAddAction(udg_ka,function gl7)
endfunction
function gJ7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677112))then
return false
endif
return true
endfunction
function gK7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[1])!=1211117619))then
return false
endif
return true
endfunction
function gL7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function gM7 takes nothing returns nothing
set udg_A[1]=GetTriggerUnit()
set udg_B[1]=GetSpellTargetLoc()
set udg_c[1]=AngleBetweenPoints(GetUnitLoc(udg_A[1]),udg_B[1])
set udg_r9[1]=PG(GetUnitLoc(udg_A[1]),50.00,udg_c[1])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[1]),udg_r9[1],udg_c[1])
set udg_A[2]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_A[2],200.00,200.00,200.00)
call PlaySoundAtPointBJ(udg_Eq,100,udg_r9[1],0)
call RemoveLocation(udg_r9[1])
set udg_r9[1]=null
set udg_r9[1]=PG(GetUnitLoc(udg_A[1]),250.00,udg_c[1])
if(gK7())then
call UnitAddAbilityBJ(1093677105,udg_A[2])
call SetUnitAbilityLevelSwapped(1093677105,udg_A[2],GetUnitAbilityLevelSwapped(1093677112,udg_A[1]))
call IssuePointOrderLocBJ(udg_A[2],"shockwave",udg_r9[1])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[2])
else
call UnitAddAbilityBJ(1093679154,udg_A[2])
call SetUnitAbilityLevelSwapped(1093679154,udg_A[2],GetUnitAbilityLevelSwapped(1093677112,udg_A[1]))
call IssuePointOrderLocBJ(udg_A[2],"shockwave",udg_r9[1])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[2])
endif
call CreateTextTagUnitBJ("Getsuga Tensho",udg_A[1],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function gL7)))
call SetUnitFacingTimed(udg_A[1],udg_c[1],0)
set udg_A[1]=null
set udg_A[2]=null
set udg_c[1]=0.00
call RemoveLocation(udg_B[1])
set udg_B[1]=null
call RemoveLocation(udg_r9[1])
set udg_r9[1]=null
endfunction
function gN7 takes nothing returns nothing
set udg_ma=CreateTrigger()
call TriggerAddCondition(udg_ma,Condition(function gJ7))
call TriggerAddAction(udg_ma,function gM7)
endfunction
function gO7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681489))then
return false
endif
return true
endfunction
function g07 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681489,udg_Vg)<=2))then
return false
endif
return true
endfunction
function gP7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681489,udg_Vg)<=2))then
return false
endif
return true
endfunction
function gQ7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_Vg)==1211117619))then
return false
endif
return true
endfunction
function gR7 takes nothing returns boolean
if(not(udg_Ug==true))then
return false
endif
return true
endfunction
function gS7 takes nothing returns nothing
set udg_Vg=GetTriggerUnit()
set udg_Ug=true
if(gQ7())then
if(gP7())then
call SetUnitAbilityLevelSwapped(1093681481,udg_Vg,2)
else
call SetUnitAbilityLevelSwapped(1093681481,udg_Vg,(0+GetUnitAbilityLevelSwapped(1093681489,udg_Vg)))
endif
call AddSpecialEffectTargetUnitBJ("weapon",udg_Vg,"!BlueGetsugaBlade!.mdx")
set udg_Wg=GetLastCreatedEffectBJ()
else
if(g07())then
call SetUnitAbilityLevelSwapped(1093681481,udg_Vg,3)
else
call SetUnitAbilityLevelSwapped(1093681481,udg_Vg,(1+GetUnitAbilityLevelSwapped(1093681489,udg_Vg)))
endif
call AddSpecialEffectTargetUnitBJ("hand right",udg_Vg,"!BlackGetsugaBlade!.mdx")
set udg_Wg=GetLastCreatedEffectBJ()
endif
set udg_Km[1]=GetUnitLoc(udg_Vg)
call PlaySoundAtPointBJ(udg_sr,100,udg_Km[1],0)
call RemoveLocation(udg_Km[1])
set udg_Km[1]=null
call TriggerSleepAction(18.00)
if(gR7())then
call SetUnitAbilityLevelSwapped(1093681481,udg_Vg,1)
call DestroyEffectBJ(udg_Wg)
set udg_Vg=null
set udg_Ug=false
else
call DoNothing()
endif
endfunction
function g57 takes nothing returns nothing
set udg_na=CreateTrigger()
call TriggerAddCondition(udg_na,Condition(function gO7))
call TriggerAddAction(udg_na,function gS7)
endfunction
function gT7 takes nothing returns boolean
if((GetUnitTypeId(GetDyingUnit())==1211117619))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())==1211117637))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())==1211117890))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())==1211117891))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())==1211117892))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())==1211117893))then
return true
endif
return false
endfunction
function gU7 takes nothing returns boolean
if(not gT7())then
return false
endif
return true
endfunction
function gV7 takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_Xg,1110454582)==true))then
return false
endif
return true
endfunction
function gW7 takes nothing returns boolean
if(not(udg_Ug==true))then
return false
endif
if(not(udg_Zg==udg_Vg))then
return false
endif
return true
endfunction
function gX7 takes nothing returns boolean
if(not gW7())then
return false
endif
return true
endfunction
function gY7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093677898,udg_Zg)>=3))then
return false
endif
return true
endfunction
function g27 takes nothing returns nothing
set udg_Zg=GetDyingUnit()
if(gV7())then
call AddSpecialEffectTargetUnitBJ("origin",udg_Xg,"Abilities\\Spells\\Undead\\Unsummon\\UnsummonTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitMoveSpeed(udg_Xg,GetUnitDefaultMoveSpeed(udg_Xg))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Xg,bj_MODIFYMETHOD_SUB,50)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Xg,bj_MODIFYMETHOD_SUB,50)
else
call DoNothing()
endif
if(gX7())then
call SetUnitAbilityLevelSwapped(1093681481,udg_Vg,1)
call DestroyEffectBJ(udg_Wg)
set udg_Vg=null
set udg_Ug=false
else
call DoNothing()
endif
if(gY7())then
call DestroyEffectBJ(udg_Yg[1])
else
call DoNothing()
endif
set udg_Zg=null
endfunction
function gZ7 takes nothing returns nothing
set udg_oa=CreateTrigger()
call TriggerAddCondition(udg_oa,Condition(function gU7))
call TriggerAddAction(udg_oa,function g27)
endfunction
function g_7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677112))then
return false
endif
if(not(udg_Ug==true))then
return false
endif
return true
endfunction
function h47 takes nothing returns boolean
if(not g_7())then
return false
endif
return true
endfunction
function h77 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[3])!=1211117619))then
return false
endif
return true
endfunction
function h87 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=udg_N[1]))then
return false
endif
return true
endfunction
function h97 takes nothing returns nothing
set udg_A[3]=GetTriggerUnit()
set udg_B[2]=GetSpellTargetLoc()
set udg_c[2]=AngleBetweenPoints(GetUnitLoc(udg_A[3]),udg_B[2])
call TriggerSleepAction(0.20)
if(h77())then
set udg_M[1]=1093677105
set udg_N[1]=(8*GetUnitAbilityLevelSwapped(1093681489,udg_A[3]))
set udg_C[1]=1
else
set udg_M[1]=1093679154
set udg_N[1]=(6*GetUnitAbilityLevelSwapped(1093681489,udg_A[3]))
set udg_C[1]=1
endif
if(h87())then
set udg_b[1]=1
loop
exitwhen udg_b[1]>udg_C[1]
set udg_r9[2]=PG(GetUnitLoc(udg_A[3]),50.00,udg_c[2])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[3]),udg_r9[2],udg_c[2])
set udg_A[4]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_A[4],200.00,200.00,200.00)
call UnitAddAbilityBJ(udg_M[1],udg_A[4])
call SetUnitAbilityLevelSwapped(udg_M[1],udg_A[4],GetUnitAbilityLevelSwapped(1093677112,udg_A[3]))
call RemoveLocation(udg_r9[2])
set udg_r9[2]=null
set udg_r9[2]=PG(GetUnitLoc(udg_A[3]),250.00,udg_c[2])
call IssuePointOrderLocBJ(udg_A[4],"shockwave",udg_r9[2])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[4])
set udg_A[4]=null
call IssueImmediateOrderBJ(udg_A[3],"stop")
call SetUnitFacingTimed(udg_A[3],udg_c[2],0)
call SetUnitAnimation(udg_A[3],"attack")
call RemoveLocation(udg_r9[2])
set udg_r9[2]=null
call TriggerSleepAction(0.20)
call ResetUnitAnimation(udg_A[3])
set udg_b[1]=udg_b[1]+1
endloop
else
call DoNothing()
endif
set udg_A[3]=null
set udg_A[4]=null
set udg_c[2]=0.00
set udg_M[1]=1097688428
set udg_N[1]=0
set udg_C[1]=0
call RemoveLocation(udg_B[2])
set udg_B[2]=null
endfunction
function hd7 takes nothing returns nothing
set udg_pa=CreateTrigger()
call TriggerAddCondition(udg_pa,Condition(function h47))
call TriggerAddAction(udg_pa,function h97)
endfunction
function he7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677898))then
return false
endif
return true
endfunction
function hf7 takes nothing returns nothing
set udg_y9[1]=GetEnumUnit()
call RemoveUnit(udg_y9[1])
set udg_y9[1]=null
endfunction
function hg7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[1])==1211117619))then
return false
endif
return true
endfunction
function hh7 takes nothing returns boolean
return(GetUnitTypeId(udg_s9[1])==1211117619)
endfunction
function hi7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093677898,udg_s9[1])>=3))then
return false
endif
return true
endfunction
function hj7 takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_Xg,1110454582)==true))then
return false
endif
return true
endfunction
function hk7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function hm7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093677898,udg_s9[1])>=3))then
return false
endif
return true
endfunction
function hn7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_s9[1]))==true)
endfunction
function ho7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function hp7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function hq7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function hr7 takes nothing returns boolean
return(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function hs7 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function ht7 takes nothing returns boolean
return GetBooleanAnd(hr7(),hs7())
endfunction
function hu7 takes nothing returns boolean
return GetBooleanAnd(hq7(),ht7())
endfunction
function hv7 takes nothing returns boolean
return GetBooleanAnd(hp7(),hu7())
endfunction
function hw7 takes nothing returns boolean
return GetBooleanAnd(ho7(),hv7())
endfunction
function hx7 takes nothing returns boolean
return GetBooleanAnd(hn7(),hw7())
endfunction
function hy7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[3])))==true))then
return true
endif
return false
endfunction
function hz7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_y9[1])==1328558129))then
return false
endif
return true
endfunction
function hA7 takes nothing returns boolean
if(not hy7())then
return false
endif
return true
endfunction
function ha7 takes nothing returns nothing
if(hA7())then
set udg_y9[1]=GetEnumUnit()
set udg_r9[3]=PG(GetUnitLoc(udg_y9[1]),-100.00,AngleBetweenPoints(GetUnitLoc(udg_y9[1]),udg_B[3]))
call SetUnitPositionLoc(udg_y9[1],udg_r9[3])
call IssueImmediateOrderBJ(udg_y9[1],"stop")
call SetUnitFacingToFaceLocTimed(udg_y9[1],udg_B[3],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_y9[1],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(hz7())then
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
else
call DoNothing()
endif
set udg_y9[1]=null
else
call DoNothing()
endif
endfunction
function hB7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[1])==1211117619))then
return false
endif
return true
endfunction
function hb7 takes nothing returns boolean
if(not(udg_Ug==true))then
return false
endif
if(not(udg_Vg!=null))then
return false
endif
return true
endfunction
function hC7 takes nothing returns boolean
if(not hb7())then
return false
endif
return true
endfunction
function hc7 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[1]))]==true)
endfunction
function hD7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[1]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,udg_s9[1])==0))then
return false
endif
return true
endfunction
function hE7 takes nothing returns boolean
if(not hD7())then
return false
endif
return true
endfunction
function h37 takes nothing returns boolean
if(not(udg_Ug==true))then
return false
endif
if(not(udg_Vg!=null))then
return false
endif
return true
endfunction
function hF7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681489,udg_Vg)<=2))then
return false
endif
return true
endfunction
function hG7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681489,udg_Vg)<=2))then
return false
endif
return true
endfunction
function h67 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Vg))]==false))then
return false
endif
return true
endfunction
function hH7 takes nothing returns boolean
if(not h37())then
return false
endif
return true
endfunction
function hI7 takes nothing returns nothing
set udg_s9[1]=GetTriggerUnit()
if(hg7())then
set udg_r9[3]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869834349,GetOwningPlayer(udg_s9[1]),udg_r9[3],bj_UNIT_FACING)
call RemoveLocation(udg_r9[3])
set udg_r9[3]=null
else
set udg_G[1]=k6(GetOwningPlayer(udg_s9[1]),1869834349)
call ForGroupBJ(udg_G[1],function hf7)
call DestroyGroup(udg_G[1])
set udg_G[1]=null
endif
if(hh7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[1]))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[1]))]=false
endif
if(hB7())then
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[1],"war3mapImported\\DarkNova.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("Bankai",udg_s9[1],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function hk7)))
set udg_r9[3]=GetUnitLoc(udg_s9[1])
call PlaySoundAtPointBJ(udg_Dq,100,udg_r9[3],0)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_s9[1]),udg_r9[3],bj_UNIT_FACING)
set udg_t9[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677378,udg_t9[1])
call IssueImmediateOrderBJ(udg_t9[1],"thunderclap")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_t9[1])
call RemoveLocation(udg_r9[3])
set udg_r9[3]=null
if(hm7())then
call AddSpecialEffectTargetUnitBJ("head",udg_s9[1],"Hollow no Kamen.mdx")
set udg_Yg[1]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[1],"war3mapImported\\darkblast.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
set udg_t9[1]=null
set udg_G[1]=e6(460.00,GetUnitLoc(udg_s9[1]),Condition(function hx7))
set udg_B[3]=GetUnitLoc(udg_s9[1])
call ForGroupBJ(udg_G[1],function ha7)
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[1],"war3mapImported\\DarkLightningNova.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[3])
set udg_B[3]=null
call DestroyGroup(udg_G[1])
set udg_G[1]=null
call RemoveLocation(udg_r9[3])
set udg_r9[3]=null
else
if(hi7())then
call DestroyEffectBJ(udg_Yg[1])
else
call DoNothing()
endif
if(hj7())then
call UnitRemoveBuffBJ(1110454582,udg_Xg)
call AddSpecialEffectTargetUnitBJ("origin",udg_Xg,"Abilities\\Spells\\Undead\\Unsummon\\UnsummonTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitMoveSpeed(udg_Xg,GetUnitDefaultMoveSpeed(udg_Xg))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Xg,bj_MODIFYMETHOD_SUB,50)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Xg,bj_MODIFYMETHOD_SUB,50)
else
call DoNothing()
endif
endif
if(hC7())then
call DestroyEffectBJ(udg_Wg)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
if(hE7())then
if(hc7())then
call UnitAddAbilityBJ(1093677624,udg_s9[1])
else
call DoNothing()
endif
else
call DoNothing()
endif
if(hH7())then
call DestroyEffectBJ(udg_Wg)
if(h67())then
if(hG7())then
call SetUnitAbilityLevelSwapped(1093681481,udg_Vg,2)
else
call SetUnitAbilityLevelSwapped(1093681481,udg_Vg,(0+GetUnitAbilityLevelSwapped(1093681489,udg_Vg)))
endif
call AddSpecialEffectTargetUnitBJ("weapon",udg_Vg,"!BlueGetsugaBlade!.mdx")
set udg_Wg=GetLastCreatedEffectBJ()
else
if(hF7())then
call SetUnitAbilityLevelSwapped(1093681481,udg_Vg,3)
else
call SetUnitAbilityLevelSwapped(1093681481,udg_Vg,(1+GetUnitAbilityLevelSwapped(1093681489,udg_Vg)))
endif
call AddSpecialEffectTargetUnitBJ("hand right",udg_Vg,"!BlackGetsugaBlade!.mdx")
set udg_Wg=GetLastCreatedEffectBJ()
endif
else
call DoNothing()
endif
set udg_s9[1]=null
endfunction
function hl7 takes nothing returns nothing
set udg_qa=CreateTrigger()
call TriggerAddCondition(udg_qa,Condition(function he7))
call TriggerAddAction(udg_qa,function hI7)
endfunction
function h17 takes nothing returns boolean
if((GetUnitTypeId(GetAttacker())==1211117891))then
return true
endif
if((GetUnitTypeId(GetAttacker())==1211117892))then
return true
endif
if((GetUnitTypeId(GetAttacker())==1211117893))then
return true
endif
return false
endfunction
function hJ7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]==false))then
return false
endif
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]==true))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(GetUnitTypeId(GetAttackedUnitBJ())!=1852204911))then
return false
endif
if(not h17())then
return false
endif
return true
endfunction
function hK7 takes nothing returns boolean
if(not hJ7())then
return false
endif
return true
endfunction
function hL7 takes nothing returns nothing
set udg_u9[1]=GetAttacker()
set udg_u9[2]=GetAttackedUnitBJ()
set udg_r9[4]=PG(GetUnitLoc(udg_u9[2]),80.00,GetRandomDirectionDeg())
set udg_r9[5]=GetUnitLoc(udg_u9[2])
call SetUnitPositionLocFacingLocBJ(udg_u9[1],udg_r9[4],udg_r9[5])
call IssueTargetOrderBJ(udg_u9[1],"attack",udg_u9[2])
call SetUnitAnimation(udg_u9[1],"attack")
call RemoveLocation(udg_r9[4])
set udg_r9[4]=null
call RemoveLocation(udg_r9[5])
set udg_r9[5]=null
set udg_u9[1]=null
set udg_u9[2]=null
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.35)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function hM7 takes nothing returns nothing
set udg_ra=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ra,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_ra,Condition(function hK7))
call TriggerAddAction(udg_ra,function hL7)
endfunction
function hN7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677123))then
return false
endif
return true
endfunction
function hO7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677123,udg_A[7])==1)
endfunction
function h07 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677123,udg_A[7])==2)
endfunction
function hP7 takes nothing returns boolean
return GetBooleanOr(hO7(),h07())
endfunction
function hQ7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677123,udg_A[7])==3)
endfunction
function hR7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677123,udg_A[7])==4)
endfunction
function hS7 takes nothing returns boolean
return GetBooleanOr(hQ7(),hR7())
endfunction
function h57 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677123,udg_A[7])==5)
endfunction
function hT7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093677898,udg_A[7])>=3))then
return false
endif
return true
endfunction
function hU7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[7],1110454354)==true)
endfunction
function hV7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function hW7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function hX7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[7]))==true)
endfunction
function hY7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function h27 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function hZ7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function h_7 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),GetOwningPlayer(udg_A[7]))==true)
endfunction
function i47 takes nothing returns boolean
return GetBooleanAnd(hZ7(),h_7())
endfunction
function i77 takes nothing returns boolean
return GetBooleanAnd(h27(),i47())
endfunction
function i87 takes nothing returns boolean
return GetBooleanAnd(hY7(),i77())
endfunction
function i97 takes nothing returns boolean
return GetBooleanAnd(hX7(),i87())
endfunction
function id7 takes nothing returns boolean
return GetBooleanAnd(hW7(),i97())
endfunction
function ie7 takes nothing returns boolean
return GetBooleanAnd(hV7(),id7())
endfunction
function if7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[7])==true))then
return false
endif
if(not(IsUnitInGroup(udg_A[7],udg_C4)==false))then
return false
endif
return true
endfunction
function ig7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[7])==true)
endfunction
function ih7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[7])==true)
endfunction
function ii7 takes nothing returns nothing
set udg_a[1]=GetEnumUnit()
set udg_B[6]=PG(GetUnitLoc(udg_a[1]),GetRandomReal(10.00,50.00),GetRandomDirectionDeg())
set udg_r9[2785]=GetUnitLoc(udg_a[1])
call SetUnitPositionLocFacingLocBJ(udg_A[7],udg_B[6],udg_r9[2785])
call RemoveLocation(udg_B[6])
set udg_B[6]=null
call RemoveLocation(udg_r9[2785])
set udg_r9[2785]=null
if(ih7())then
call PauseUnitBJ(false,udg_A[7])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[7],100.00)
call SetUnitAnimation(udg_A[7],"attack")
call UnitDamageTargetBJ(udg_A[7],udg_a[1],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[7],true))*2.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("chest",udg_A[7],"units\\nightelf\\SpiritOfVengeance\\SpiritOfVengeance.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_a[1],"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_r9[7]=PG(GetUnitLoc(udg_A[7]),50.00,AngleBetweenPoints(GetUnitLoc(udg_A[7]),GetUnitLoc(udg_a[1])))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[7]),udg_r9[7],AngleBetweenPoints(GetUnitLoc(udg_A[7]),GetUnitLoc(udg_a[1])))
set udg_A[8]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677105,udg_A[8])
call SetUnitAbilityLevelSwapped(1093677105,udg_A[8],(6+GetUnitAbilityLevelSwapped(1093677123,udg_A[7])))
call RemoveLocation(udg_r9[7])
set udg_r9[7]=null
set udg_r9[7]=PG(GetUnitLoc(udg_A[7]),250.00,AngleBetweenPoints(GetUnitLoc(udg_A[7]),GetUnitLoc(udg_a[1])))
call IssuePointOrderLocBJ(udg_A[8],"shockwave",udg_r9[7])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[8])
call RemoveLocation(udg_r9[7])
set udg_r9[7]=null
set udg_A[8]=null
set udg_a[1]=null
endfunction
function ij7 takes nothing returns boolean
if(not if7())then
return false
endif
return true
endfunction
function ik7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[7])==true)
endfunction
function im7 takes nothing returns boolean
if(not(IsUnitInGroup(udg_A[7],udg_C4)==true))then
return false
endif
return true
endfunction
function in7 takes nothing returns nothing
set udg_A[7]=GetTriggerUnit()
set udg_a[1]=GetSpellTargetUnit()
if(hP7())then
set udg_C[2]=3
else
call DoNothing()
endif
if(hS7())then
set udg_C[2]=4
else
call DoNothing()
endif
if(h57())then
set udg_C[2]=5
else
call DoNothing()
endif
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[7]))]=true
call ResetUnitAnimation(udg_A[7])
call SetUnitTimeScalePercent(udg_A[7],100.00)
call SetUnitVertexColorBJ(udg_A[7],100,100,100,50.00)
call TriggerSleepAction(0.01)
set udg_r9[7]=GetUnitLoc(udg_a[1])
call SetUnitPositionLoc(udg_A[7],udg_r9[7])
call RemoveLocation(udg_r9[7])
set udg_r9[7]=null
call SetUnitAnimation(udg_A[7],"attack")
call UnitDamageTargetBJ(udg_A[7],udg_a[1],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[7],true))*2.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("chest",udg_A[7],"units\\nightelf\\SpiritOfVengeance\\SpiritOfVengeance.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_r9[7]=PG(GetUnitLoc(udg_A[7]),50.00,AngleBetweenPoints(GetUnitLoc(udg_A[7]),GetUnitLoc(udg_a[1])))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[7]),udg_r9[7],AngleBetweenPoints(GetUnitLoc(udg_A[7]),GetUnitLoc(udg_a[1])))
set udg_A[8]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677105,udg_A[8])
call SetUnitAbilityLevelSwapped(1093677105,udg_A[8],(6+GetUnitAbilityLevelSwapped(1093677123,udg_A[7])))
call RemoveLocation(udg_r9[7])
set udg_r9[7]=null
set udg_r9[7]=PG(GetUnitLoc(udg_A[7]),250.00,AngleBetweenPoints(GetUnitLoc(udg_A[7]),GetUnitLoc(udg_a[1])))
call IssuePointOrderLocBJ(udg_A[8],"shockwave",udg_r9[7])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[8])
call RemoveLocation(udg_r9[7])
set udg_r9[7]=null
set udg_A[8]=null
set udg_a[1]=null
if(hT7())then
set udg_Sg[6]=GetUnitLoc(udg_A[7])
call PlaySoundAtPointBJ(udg_Fq,100,udg_Sg[6],0)
call RemoveLocation(udg_Sg[6])
set udg_Sg[6]=null
else
call DoNothing()
endif
set udg_b[3]=1
loop
exitwhen udg_b[3]>udg_C[2]
if(hU7())then
call UnitRemoveBuffBJ(1110454354,udg_A[7])
else
call DoNothing()
endif
call TriggerSleepAction(0.30)
set udg_B[5]=GetUnitLoc(udg_A[7])
set udg_G[1]=e6(720.00,udg_B[5],Condition(function ie7))
set udg_G[2]=u6(1,udg_G[1])
call RemoveLocation(udg_B[5])
set udg_B[5]=null
if(ij7())then
call ForGroupBJ(udg_G[2],function ii7)
call DestroyGroup(udg_G[1])
call DestroyGroup(udg_G[2])
set udg_G[1]=null
set udg_G[2]=null
else
call SelectUnitAddForPlayer(udg_A[7],GetOwningPlayer(udg_A[7]))
if(ig7())then
call PauseUnitBJ(false,udg_A[7])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[7],100.00)
call SetUnitVertexColorBJ(udg_A[7],100,100,100,0)
call RemoveLocation(udg_B[5])
set udg_B[5]=null
call RemoveLocation(udg_B[6])
set udg_B[6]=null
call ResetUnitAnimation(udg_A[7])
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[7]))]=false
set udg_A[7]=null
set udg_A[8]=null
set udg_a[1]=null
set udg_C[2]=0
endif
set udg_b[3]=udg_b[3]+1
endloop
call SelectUnitAddForPlayer(udg_A[7],GetOwningPlayer(udg_A[7]))
if(ik7())then
call PauseUnitBJ(false,udg_A[7])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[7],100.00)
call SetUnitVertexColorBJ(udg_A[7],100,100,100,0)
call RemoveLocation(udg_B[5])
set udg_B[5]=null
call RemoveLocation(udg_B[6])
set udg_B[6]=null
call ResetUnitAnimation(udg_A[7])
if(im7())then
call SetUnitTimeScalePercent(udg_A[7],0.00)
call PauseUnitBJ(true,udg_A[7])
else
call DoNothing()
endif
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[7]))]=false
set udg_A[7]=null
set udg_A[8]=null
set udg_a[1]=null
set udg_C[2]=0
endfunction
function io7 takes nothing returns nothing
set udg_sa=CreateTrigger()
call TriggerAddCondition(udg_sa,Condition(function hN7))
call TriggerAddAction(udg_sa,function in7)
endfunction
function ip7 takes nothing returns boolean
if(not(GetLearnedSkillBJ()==1093678145))then
return false
endif
return true
endfunction
function iq7 takes nothing returns nothing
set udg_dh=GetLearningUnit()
set udg_Sd=GetRectCenter(udg_io)
call CreateNUnitsAtLoc(1,1211117894,Player(PLAYER_NEUTRAL_PASSIVE),udg_Sd,bj_UNIT_FACING)
set udg_Ck=GetLastCreatedUnit()
call UnitAddAbilityBJ(1097295983,udg_Ck)
call PauseUnitBJ(true,udg_Ck)
call SetUnitInvulnerable(udg_Ck,true)
call RemoveLocation(udg_Sd)
set udg_Sd=null
call EnableTrigger(udg_ua)
call TriggerRegisterUnitEvent(udg_wa,udg_Ck,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_xa,udg_Ck,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_za,udg_Ck,EVENT_UNIT_SPELL_EFFECT)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function ir7 takes nothing returns nothing
set udg_ta=CreateTrigger()
call TriggerAddCondition(udg_ta,Condition(function ip7))
call TriggerAddAction(udg_ta,function iq7)
endfunction
function is7 takes nothing returns boolean
if(not(udg_eh==false))then
return false
endif
if(not(IsUnitAliveBJ(udg_dh)==true))then
return false
endif
return true
endfunction
function it7 takes nothing returns boolean
if(not is7())then
return false
endif
return true
endfunction
function iu7 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_G[0])==true))then
return false
endif
if(not(RectContainsUnit(udg_zn,udg_dh)==false))then
return false
endif
return true
endfunction
function iv7 takes nothing returns boolean
if(not iu7())then
return false
endif
return true
endfunction
function iw7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ix7 takes nothing returns boolean
if(not(CountUnitsInGroup(udg_G[0])>0))then
return false
endif
return true
endfunction
function iy7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_dh)<=(0.40*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_dh))))then
return false
endif
return true
endfunction
function iz7 takes nothing returns nothing
set udg_G[0]=k6(GetOwningPlayer(udg_dh),1869767017)
if(iy7())then
if(iv7())then
set udg_r9[1876]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869767017,GetOwningPlayer(udg_dh),udg_r9[1876],bj_UNIT_FACING)
call RemoveLocation(udg_r9[1876])
set udg_r9[3]=null
else
call DoNothing()
endif
else
if(ix7())then
call ForGroupBJ(udg_G[0],function iw7)
else
call DoNothing()
endif
endif
call DestroyGroup(udg_G[0])
set udg_G[0]=null
endfunction
function iA7 takes nothing returns nothing
set udg_ua=CreateTrigger()
call DisableTrigger(udg_ua)
call TriggerRegisterTimerEventPeriodic(udg_ua,0.50)
call TriggerAddCondition(udg_ua,Condition(function it7))
call TriggerAddAction(udg_ua,function iz7)
endfunction
function ia7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678145))then
return false
endif
return true
endfunction
function iB7 takes nothing returns boolean
if(not(UnitItemInSlotBJ(udg_Xg,udg_Cj[70])==udg_oG))then
return false
endif
if(not(udg_Xg==udg_T))then
return false
endif
return true
endfunction
function ib7 takes nothing returns boolean
if(not iB7())then
return false
endif
return true
endfunction
function iC7 takes nothing returns boolean
return(udg_Xg==udg_Y[udg_Cj[70]])
endfunction
function ic7 takes nothing returns boolean
return(udg_Xg==udg_Z[udg_Cj[70]])
endfunction
function iD7 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(udg_Ck))]==true)
endfunction
function iE7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_Ck))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,udg_Ck)==0))then
return false
endif
return true
endfunction
function i37 takes nothing returns boolean
if(not iE7())then
return false
endif
return true
endfunction
function iF7 takes nothing returns boolean
return(udg_Xg==udg_x)
endfunction
function iG7 takes nothing returns boolean
return(udg_Xg==udg_y)
endfunction
function i67 takes nothing returns boolean
return(udg_Xg==udg_a[401])
endfunction
function iH7 takes nothing returns boolean
return(udg_Xg==udg_a[16])
endfunction
function iI7 takes nothing returns boolean
return(udg_Xg==udg_sk[11])
endfunction
function il7 takes nothing returns boolean
return(udg_Xg==udg_sk[21])
endfunction
function i17 takes nothing returns boolean
return(udg_Xg==udg_rh)
endfunction
function iJ7 takes nothing returns boolean
return(udg_Xg==udg_xe)
endfunction
function iK7 takes nothing returns boolean
return(udg_Xg==udg_be)
endfunction
function iL7 takes nothing returns boolean
return(udg_Xg==udg_a[8])
endfunction
function iM7 takes nothing returns boolean
return(udg_Xg==udg_a[801])
endfunction
function iN7 takes nothing returns boolean
return(udg_Xg==udg_a[800])
endfunction
function iO7 takes nothing returns boolean
return(udg_Xg==udg_Ok[5])
endfunction
function i07 takes nothing returns boolean
return(udg_Xg==udg_a[870])
endfunction
function iP7 takes nothing returns boolean
return(udg_Xg==udg_a[880])
endfunction
function iQ7 takes nothing returns boolean
return(udg_Xg==udg_ej)
endfunction
function iR7 takes nothing returns boolean
return(udg_Xg==udg_Hm[2])
endfunction
function iS7 takes nothing returns boolean
return(udg_Xg==udg_hk[36])
endfunction
function i57 takes nothing returns boolean
return(udg_Xg==udg_a[3])
endfunction
function iT7 takes nothing returns boolean
return(udg_Xg==udg_a[9])
endfunction
function iU7 takes nothing returns boolean
return(udg_Xg==udg_a[10])
endfunction
function iV7 takes nothing returns boolean
return(udg_Xg==udg_h8)
endfunction
function iW7 takes nothing returns boolean
return(udg_Xg==udg_a[1006])
endfunction
function iX7 takes nothing returns boolean
return(udg_Xg==udg_a[1008])
endfunction
function iY7 takes nothing returns boolean
return(udg_Xg==udg_a[404])
endfunction
function i27 takes nothing returns boolean
return(udg_Xg==udg_a[406])
endfunction
function iZ7 takes nothing returns boolean
return(udg_Xg==udg_jm[4])
endfunction
function i_7 takes nothing returns boolean
return(udg_Xg==udg_jm[10])
endfunction
function j47 takes nothing returns boolean
return(udg_Xg==udg_a[66])
endfunction
function j77 takes nothing returns boolean
return(udg_Xg==udg_a[67])
endfunction
function j87 takes nothing returns boolean
return(udg_Xg==udg_jf[15])
endfunction
function j97 takes nothing returns boolean
return(udg_Xg==udg_Y[udg_nn])
endfunction
function jd7 takes nothing returns boolean
return(udg_Xg==udg_Z[udg_nn])
endfunction
function je7 takes nothing returns boolean
return(udg_Xg==udg_O7[udg_nn])
endfunction
function jf7 takes nothing returns boolean
return(udg_Xg==udg_P7[udg_nn])
endfunction
function jg7 takes nothing returns boolean
if(not(udg_Xg==udg_a4))then
return false
endif
return true
endfunction
function jh7 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_Ck))]==true))then
return false
endif
return true
endfunction
function ji7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function jj7 takes nothing returns boolean
if(not(UnitItemInSlotBJ(udg_Ck,udg_Cj[70])==udg_oG))then
return false
endif
if(not(udg_Ck==udg_T))then
return false
endif
return true
endfunction
function jk7 takes nothing returns boolean
if(not jj7())then
return false
endif
return true
endfunction
function jm7 takes nothing returns boolean
return(udg_Ck==udg_Y[udg_Cj[70]])
endfunction
function jn7 takes nothing returns boolean
return(udg_Ck==udg_Z[udg_Cj[70]])
endfunction
function jo7 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(udg_Xg))]==true)
endfunction
function jp7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_Xg))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,udg_Xg)==0))then
return false
endif
return true
endfunction
function jq7 takes nothing returns boolean
if(not jp7())then
return false
endif
return true
endfunction
function jr7 takes nothing returns boolean
return(udg_Ck==udg_x)
endfunction
function js7 takes nothing returns boolean
return(udg_Ck==udg_y)
endfunction
function jt7 takes nothing returns boolean
return(udg_Ck==udg_a[401])
endfunction
function ju7 takes nothing returns boolean
return(udg_Ck==udg_a[16])
endfunction
function jv7 takes nothing returns boolean
return(udg_Ck==udg_sk[11])
endfunction
function jw7 takes nothing returns boolean
return(udg_Ck==udg_sk[21])
endfunction
function jx7 takes nothing returns boolean
return(udg_Ck==udg_rh)
endfunction
function jy7 takes nothing returns boolean
return(udg_Ck==udg_xe)
endfunction
function jz7 takes nothing returns boolean
return(udg_Ck==udg_be)
endfunction
function jA7 takes nothing returns boolean
return(udg_Ck==udg_a[8])
endfunction
function ja7 takes nothing returns boolean
return(udg_Ck==udg_a[801])
endfunction
function jB7 takes nothing returns boolean
return(udg_Ck==udg_a[800])
endfunction
function jb7 takes nothing returns boolean
return(udg_Ck==udg_Ok[5])
endfunction
function jC7 takes nothing returns boolean
return(udg_Ck==udg_a[870])
endfunction
function jc7 takes nothing returns boolean
return(udg_Ck==udg_a[880])
endfunction
function jD7 takes nothing returns boolean
return(udg_Ck==udg_ej)
endfunction
function jE7 takes nothing returns boolean
return(udg_Ck==udg_Hm[2])
endfunction
function j37 takes nothing returns boolean
return(udg_Ck==udg_hk[36])
endfunction
function jF7 takes nothing returns boolean
return(udg_Ck==udg_a[3])
endfunction
function jG7 takes nothing returns boolean
return(udg_Ck==udg_a[9])
endfunction
function j67 takes nothing returns boolean
return(udg_Ck==udg_a[10])
endfunction
function jH7 takes nothing returns boolean
return(udg_Ck==udg_h8)
endfunction
function jI7 takes nothing returns boolean
return(udg_Ck==udg_a[1006])
endfunction
function jl7 takes nothing returns boolean
return(udg_Ck==udg_a[1008])
endfunction
function j17 takes nothing returns boolean
return(udg_Ck==udg_a[404])
endfunction
function jJ7 takes nothing returns boolean
return(udg_Ck==udg_a[406])
endfunction
function jK7 takes nothing returns boolean
return(udg_Ck==udg_jm[4])
endfunction
function jL7 takes nothing returns boolean
return(udg_Ck==udg_jm[10])
endfunction
function jM7 takes nothing returns boolean
return(udg_Ck==udg_a[66])
endfunction
function jN7 takes nothing returns boolean
return(udg_Ck==udg_a[67])
endfunction
function jO7 takes nothing returns boolean
return(udg_Ck==udg_jf[15])
endfunction
function j07 takes nothing returns boolean
return(udg_Ck==udg_Y[udg_nn])
endfunction
function jP7 takes nothing returns boolean
return(udg_Ck==udg_Z[udg_nn])
endfunction
function jQ7 takes nothing returns boolean
return(udg_Ck==udg_O7[udg_nn])
endfunction
function jR7 takes nothing returns boolean
return(udg_Ck==udg_P7[udg_nn])
endfunction
function jS7 takes nothing returns boolean
if(not(udg_Ck==udg_a4))then
return false
endif
return true
endfunction
function j57 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_Xg))]==true))then
return false
endif
return true
endfunction
function jT7 takes nothing returns boolean
if(not(udg_ck==true))then
return false
endif
return true
endfunction
function jU7 takes nothing returns nothing
set udg_Xg=GetTriggerUnit()
set udg_fh=(160.00-(10.00*I2R(GetUnitAbilityLevelSwapped(1093678145,udg_Xg))))
set udg_r9[1000]=GetUnitLoc(udg_Xg)
set udg_r9[1001]=GetRectCenter(udg_io)
set udg_Cj[70]=1
loop
exitwhen udg_Cj[70]>6
if(ib7())then
call UnitRemoveItemFromSlotSwapped(udg_Cj[70],udg_Xg)
else
set udg_Dk[udg_Cj[70]]=GetItemTypeId(UnitItemInSlotBJ(udg_Xg,udg_Cj[70]))
call RemoveItem(UnitItemInSlotBJ(udg_Xg,udg_Cj[70]))
endif
set udg_Cj[70]=udg_Cj[70]+1
endloop
set udg_Ek[0]=R2I(GetUnitFacing(udg_Xg))
set udg_Ek[1]=GetHeroStatBJ(bj_HEROSTAT_STR,udg_Xg,false)
set udg_Ek[2]=GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Xg,false)
set udg_Ek[3]=GetHeroStatBJ(bj_HEROSTAT_INT,udg_Xg,false)
set udg_Ek[4]=GetHeroXP(udg_Xg)
set udg_Ek[5]=GetHeroLevel(udg_Xg)
set udg_Ek[6]=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Xg))
set udg_m[GetConvertedPlayerId(GetOwningPlayer(udg_Xg))]=null
set udg_Km[2]=GetUnitLoc(udg_Xg)
call PlaySoundAtPointBJ(udg_fs,100,udg_Km[2],0)
call RemoveLocation(udg_Km[2])
set udg_Km[2]=null
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_Xg)
call SetUnitInvulnerable(udg_Xg,true)
call SetUnitOwner(udg_Ck,GetOwningPlayer(udg_Xg),true)
call SetUnitOwner(udg_Xg,Player(PLAYER_NEUTRAL_PASSIVE),true)
call UnitAddAbilityBJ(1097295983,udg_Xg)
call SetUnitPositionLocFacingBJ(udg_Xg,udg_r9[1001],bj_UNIT_FACING)
call SetUnitLifePercentBJ(udg_Xg,100)
call PauseUnitBJ(true,udg_Xg)
call SelectUnitRemove(udg_Xg)
call AddSpecialEffectLocBJ(udg_r9[1000],"Abilities\\Spells\\Undead\\Unsummon\\UnsummonTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_m[GetConvertedPlayerId(GetOwningPlayer(udg_Ck))]=udg_Ck
call SetUnitPositionLocFacingBJ(udg_Ck,udg_r9[1000],I2R(udg_Ek[0]))
call SetHeroXP(udg_Ck,udg_Ek[4],false)
call SetHeroLevelBJ(udg_Ck,udg_Ek[5],false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Ck,bj_MODIFYMETHOD_SET,(udg_Ek[1]+50))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Ck,bj_MODIFYMETHOD_SET,(udg_Ek[2]+50))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_Ck,bj_MODIFYMETHOD_SET,udg_Ek[3])
call PauseUnitBJ(false,udg_Ck)
call SetUnitInvulnerable(udg_Ck,false)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_Ck)
call SetUnitLifeBJ(udg_Ck,I2R(udg_Ek[6]))
call SetUnitManaBJ(udg_Ck,0)
call UnitRemoveAbilityBJ(1097295983,udg_Ck)
set udg_Cj[70]=1
loop
exitwhen udg_Cj[70]>6
call UnitAddItemByIdSwapped(udg_Dk[udg_Cj[70]],udg_Ck)
set udg_Dk[udg_Cj[70]]=1836019566
set udg_Ek[udg_Cj[70]]=0
if(iC7())then
set udg_Y[udg_Cj[70]]=udg_Ck
else
call DoNothing()
endif
if(ic7())then
set udg_Z[udg_Cj[70]]=udg_Ck
else
call DoNothing()
endif
set udg_Cj[70]=udg_Cj[70]+1
endloop
if(i37())then
if(iD7())then
call UnitAddAbilityBJ(1093677624,udg_Ck)
else
call DoNothing()
endif
else
call DoNothing()
endif
call SelectUnitForPlayerSingle(udg_Ck,GetOwningPlayer(udg_Ck))
if(iF7())then
set udg_x=udg_Ck
else
call DoNothing()
endif
if(iG7())then
set udg_y=udg_Ck
else
call DoNothing()
endif
if(i67())then
set udg_a[401]=udg_Ck
else
call DoNothing()
endif
if(iH7())then
set udg_a[16]=udg_Ck
else
call DoNothing()
endif
if(iI7())then
set udg_sk[11]=udg_Ck
else
call DoNothing()
endif
if(il7())then
set udg_sk[21]=udg_Ck
else
call DoNothing()
endif
if(i17())then
set udg_rh=udg_Ck
else
call DoNothing()
endif
if(iJ7())then
set udg_xe=udg_Ck
else
call DoNothing()
endif
if(iK7())then
set udg_be=udg_Ck
else
call DoNothing()
endif
if(iL7())then
set udg_a[8]=udg_Ck
else
call DoNothing()
endif
if(iM7())then
set udg_a[801]=udg_Ck
else
call DoNothing()
endif
if(iN7())then
set udg_a[800]=udg_Ck
else
call DoNothing()
endif
if(iO7())then
set udg_Ok[5]=udg_Ck
else
call DoNothing()
endif
if(i07())then
set udg_a[870]=udg_Ck
else
call DoNothing()
endif
if(iP7())then
set udg_a[880]=udg_Ck
else
call DoNothing()
endif
if(iQ7())then
set udg_ej=udg_Ck
else
call DoNothing()
endif
if(iR7())then
set udg_Hm[2]=udg_Ck
else
call DoNothing()
endif
if(iS7())then
set udg_hk[36]=udg_Ck
else
call DoNothing()
endif
if(i57())then
set udg_a[3]=udg_Ck
else
call DoNothing()
endif
if(iT7())then
set udg_a[9]=udg_Ck
else
call DoNothing()
endif
if(iU7())then
set udg_a[10]=udg_Ck
else
call DoNothing()
endif
if(iV7())then
set udg_h8=udg_Ck
else
call DoNothing()
endif
if(iW7())then
set udg_a[1006]=udg_Ck
else
call DoNothing()
endif
if(iX7())then
set udg_a[1008]=udg_Ck
else
call DoNothing()
endif
if(iY7())then
set udg_a[404]=udg_Ck
else
call DoNothing()
endif
if(i27())then
set udg_a[406]=udg_Ck
else
call DoNothing()
endif
if(iZ7())then
set udg_jm[4]=udg_Ck
else
call DoNothing()
endif
if(i_7())then
set udg_jm[10]=udg_Ck
else
call DoNothing()
endif
if(j47())then
set udg_a[66]=udg_Ck
else
call DoNothing()
endif
if(j77())then
set udg_a[67]=udg_Ck
else
call DoNothing()
endif
if(j87())then
set udg_jf[15]=udg_Ck
else
call DoNothing()
endif
set udg_nn=1
loop
exitwhen udg_nn>5
if(j97())then
set udg_Y[udg_nn]=udg_Ck
else
call DoNothing()
endif
if(jd7())then
set udg_Z[udg_nn]=udg_Ck
else
call DoNothing()
endif
if(je7())then
set udg_O7[udg_nn]=udg_Ck
else
call DoNothing()
endif
if(jf7())then
set udg_P7[udg_nn]=udg_Ck
else
call DoNothing()
endif
set udg_nn=udg_nn+1
endloop
if(jg7())then
call DestroyEffectBJ(udg_B4)
set udg_a4=udg_Ck
call AddSpecialEffectTargetUnitBJ("overhead",udg_a4,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")
set udg_B4=GetLastCreatedEffectBJ()
else
call DoNothing()
endif
if(jh7())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_Ck),udg_Ck,0,0,false)
else
call DoNothing()
endif
call SetPlayerHandicapXPBJ(GetOwningPlayer(udg_Ck),0.00)
call RemoveLocation(udg_r9[1000])
set udg_r9[1000]=null
call RemoveLocation(udg_r9[1001])
set udg_r9[1001]=null
set udg_eh=true
set udg_ck=true
call DisableTrigger(udg_ua)
set udg_G[0]=k6(GetOwningPlayer(udg_Ck),1869767017)
call ForGroupBJ(udg_G[0],function ji7)
call DestroyGroup(udg_G[0])
set udg_G[0]=null
call TriggerSleepAction(15.00)
if(jT7())then
set udg_ck=false
set udg_r9[1000]=GetUnitLoc(udg_Ck)
set udg_r9[1001]=GetRectCenter(udg_io)
set udg_Cj[70]=1
loop
exitwhen udg_Cj[70]>6
if(jk7())then
call UnitRemoveItemFromSlotSwapped(udg_Cj[70],udg_Ck)
else
set udg_Dk[udg_Cj[70]]=GetItemTypeId(UnitItemInSlotBJ(udg_Ck,udg_Cj[70]))
call RemoveItem(UnitItemInSlotBJ(udg_Ck,udg_Cj[70]))
endif
set udg_Cj[70]=udg_Cj[70]+1
endloop
set udg_Ek[0]=R2I(GetUnitFacing(udg_Ck))
set udg_Ek[1]=GetHeroStatBJ(bj_HEROSTAT_STR,udg_Ck,false)
set udg_Ek[2]=GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Ck,false)
set udg_Ek[3]=GetHeroStatBJ(bj_HEROSTAT_INT,udg_Ck,false)
set udg_Ek[4]=GetHeroXP(udg_Ck)
set udg_Ek[5]=GetHeroLevel(udg_Ck)
set udg_Ek[6]=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ck))
set udg_m[GetConvertedPlayerId(GetOwningPlayer(udg_Ck))]=null
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_Ck)
call SetUnitOwner(udg_Xg,GetOwningPlayer(udg_Ck),true)
call SetUnitOwner(udg_Ck,Player(PLAYER_NEUTRAL_PASSIVE),true)
call UnitAddAbilityBJ(1097295983,udg_Ck)
call SetUnitPositionLocFacingBJ(udg_Ck,udg_r9[1001],bj_UNIT_FACING)
call SetUnitLifePercentBJ(udg_Ck,100)
call PauseUnitBJ(true,udg_Ck)
call SetUnitInvulnerable(udg_Ck,true)
call SelectUnitRemove(udg_Ck)
call AddSpecialEffectLocBJ(udg_r9[1000],"Abilities\\Spells\\Undead\\Unsummon\\UnsummonTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_m[GetConvertedPlayerId(GetOwningPlayer(udg_Xg))]=udg_Xg
call SetUnitPositionLocFacingBJ(udg_Xg,udg_r9[1000],I2R(udg_Ek[0]))
call SetHeroXP(udg_Xg,udg_Ek[4],false)
call SetHeroLevelBJ(udg_Xg,udg_Ek[5],false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Xg,bj_MODIFYMETHOD_SET,(udg_Ek[1]-50))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Xg,bj_MODIFYMETHOD_SET,(udg_Ek[2]-50))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_Xg,bj_MODIFYMETHOD_SET,udg_Ek[3])
call PauseUnitBJ(false,udg_Xg)
call SetUnitInvulnerable(udg_Xg,false)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_Xg)
call SetUnitLifeBJ(udg_Xg,I2R(udg_Ek[6]))
call SetUnitManaBJ(udg_Xg,0)
call UnitRemoveAbilityBJ(1097295983,udg_Xg)
set udg_Cj[70]=1
loop
exitwhen udg_Cj[70]>6
call UnitAddItemByIdSwapped(udg_Dk[udg_Cj[70]],udg_Xg)
set udg_Dk[udg_Cj[70]]=1836019566
set udg_Ek[udg_Cj[70]]=0
if(jm7())then
set udg_Y[udg_Cj[70]]=udg_Xg
else
call DoNothing()
endif
if(jn7())then
set udg_Z[udg_Cj[70]]=udg_Xg
else
call DoNothing()
endif
set udg_Cj[70]=udg_Cj[70]+1
endloop
if(jq7())then
if(jo7())then
call UnitAddAbilityBJ(1093677624,udg_Xg)
else
call DoNothing()
endif
else
call DoNothing()
endif
call SelectUnitForPlayerSingle(udg_Xg,GetOwningPlayer(udg_Xg))
if(jr7())then
set udg_x=udg_Xg
else
call DoNothing()
endif
if(js7())then
set udg_y=udg_Xg
else
call DoNothing()
endif
if(jt7())then
set udg_a[401]=udg_Xg
else
call DoNothing()
endif
if(ju7())then
set udg_a[16]=udg_Xg
else
call DoNothing()
endif
if(jv7())then
set udg_sk[11]=udg_Xg
else
call DoNothing()
endif
if(jw7())then
set udg_sk[21]=udg_Xg
else
call DoNothing()
endif
if(jx7())then
set udg_rh=udg_Xg
else
call DoNothing()
endif
if(jy7())then
set udg_xe=udg_Xg
else
call DoNothing()
endif
if(jz7())then
set udg_be=udg_Xg
else
call DoNothing()
endif
if(jA7())then
set udg_a[8]=udg_Xg
else
call DoNothing()
endif
if(ja7())then
set udg_a[801]=udg_Xg
else
call DoNothing()
endif
if(jB7())then
set udg_a[800]=udg_Xg
else
call DoNothing()
endif
if(jb7())then
set udg_Ok[5]=udg_Xg
else
call DoNothing()
endif
if(jC7())then
set udg_a[870]=udg_Xg
else
call DoNothing()
endif
if(jc7())then
set udg_a[880]=udg_Xg
else
call DoNothing()
endif
if(jD7())then
set udg_ej=udg_Xg
else
call DoNothing()
endif
if(jE7())then
set udg_Hm[2]=udg_Xg
else
call DoNothing()
endif
if(j37())then
set udg_hk[36]=udg_Xg
else
call DoNothing()
endif
if(jF7())then
set udg_a[3]=udg_Xg
else
call DoNothing()
endif
if(jG7())then
set udg_a[9]=udg_Xg
else
call DoNothing()
endif
if(j67())then
set udg_a[10]=udg_Xg
else
call DoNothing()
endif
if(jH7())then
set udg_h8=udg_Xg
else
call DoNothing()
endif
if(jI7())then
set udg_a[1006]=udg_Xg
else
call DoNothing()
endif
if(jl7())then
set udg_a[1008]=udg_Xg
else
call DoNothing()
endif
if(j17())then
set udg_a[404]=udg_Xg
else
call DoNothing()
endif
if(jJ7())then
set udg_a[406]=udg_Xg
else
call DoNothing()
endif
if(jK7())then
set udg_jm[4]=udg_Xg
else
call DoNothing()
endif
if(jL7())then
set udg_jm[10]=udg_Xg
else
call DoNothing()
endif
if(jM7())then
set udg_a[66]=udg_Xg
else
call DoNothing()
endif
if(jN7())then
set udg_a[67]=udg_Xg
else
call DoNothing()
endif
if(jO7())then
set udg_jf[15]=udg_Xg
else
call DoNothing()
endif
set udg_nn=1
loop
exitwhen udg_nn>5
if(j07())then
set udg_Y[udg_nn]=udg_Xg
else
call DoNothing()
endif
if(jP7())then
set udg_Z[udg_nn]=udg_Xg
else
call DoNothing()
endif
if(jQ7())then
set udg_O7[udg_nn]=udg_Xg
else
call DoNothing()
endif
if(jR7())then
set udg_P7[udg_nn]=udg_Xg
else
call DoNothing()
endif
set udg_nn=udg_nn+1
endloop
if(jS7())then
call DestroyEffectBJ(udg_B4)
set udg_a4=udg_Xg
call AddSpecialEffectTargetUnitBJ("overhead",udg_a4,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")
set udg_B4=GetLastCreatedEffectBJ()
else
call DoNothing()
endif
if(j57())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_Xg),udg_Xg,0,0,false)
else
call DoNothing()
endif
call SetPlayerHandicapXPBJ(GetOwningPlayer(udg_Xg),100.00)
call RemoveLocation(udg_r9[1000])
set udg_r9[1000]=null
call RemoveLocation(udg_r9[1001])
set udg_r9[1001]=null
else
call DoNothing()
endif
set udg_Xg=null
call TriggerSleepAction((udg_fh-15.00))
call EnableTrigger(udg_ua)
set udg_eh=false
set udg_fh=0.00
endfunction
function jV7 takes nothing returns nothing
set udg_va=CreateTrigger()
call TriggerAddCondition(udg_va,Condition(function ia7))
call TriggerAddAction(udg_va,function jU7)
endfunction
function jW7 takes nothing returns boolean
if(not(udg_ck==true))then
return false
endif
return true
endfunction
function jX7 takes nothing returns boolean
if(not(UnitItemInSlotBJ(udg_Ck,udg_Cj[70])==udg_oG))then
return false
endif
if(not(udg_Ck==udg_T))then
return false
endif
return true
endfunction
function jY7 takes nothing returns boolean
if(not jX7())then
return false
endif
return true
endfunction
function j27 takes nothing returns boolean
return(udg_Ck==udg_Y[udg_Cj[70]])
endfunction
function jZ7 takes nothing returns boolean
return(udg_Ck==udg_Z[udg_Cj[70]])
endfunction
function j_7 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(udg_Xg))]==true)
endfunction
function k47 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_Xg))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,udg_Xg)==0))then
return false
endif
return true
endfunction
function k77 takes nothing returns boolean
if(not k47())then
return false
endif
return true
endfunction
function k87 takes nothing returns boolean
return(udg_Ck==udg_x)
endfunction
function k97 takes nothing returns boolean
return(udg_Ck==udg_y)
endfunction
function kd7 takes nothing returns boolean
return(udg_Ck==udg_a[401])
endfunction
function ke7 takes nothing returns boolean
return(udg_Ck==udg_a[16])
endfunction
function kf7 takes nothing returns boolean
return(udg_Ck==udg_sk[11])
endfunction
function kg7 takes nothing returns boolean
return(udg_Ck==udg_sk[21])
endfunction
function kh7 takes nothing returns boolean
return(udg_Ck==udg_rh)
endfunction
function ki7 takes nothing returns boolean
return(udg_Ck==udg_xe)
endfunction
function kj7 takes nothing returns boolean
return(udg_Ck==udg_be)
endfunction
function kk7 takes nothing returns boolean
return(udg_Ck==udg_a[8])
endfunction
function km7 takes nothing returns boolean
return(udg_Ck==udg_a[801])
endfunction
function kn7 takes nothing returns boolean
return(udg_Ck==udg_a[800])
endfunction
function ko7 takes nothing returns boolean
return(udg_Ck==udg_Ok[5])
endfunction
function kp7 takes nothing returns boolean
return(udg_Ck==udg_a[870])
endfunction
function kq7 takes nothing returns boolean
return(udg_Ck==udg_a[880])
endfunction
function kr7 takes nothing returns boolean
return(udg_Ck==udg_ej)
endfunction
function ks7 takes nothing returns boolean
return(udg_Ck==udg_Hm[2])
endfunction
function kt7 takes nothing returns boolean
return(udg_Ck==udg_hk[36])
endfunction
function ku7 takes nothing returns boolean
return(udg_Ck==udg_a[3])
endfunction
function kv7 takes nothing returns boolean
return(udg_Ck==udg_a[9])
endfunction
function kw7 takes nothing returns boolean
return(udg_Ck==udg_a[10])
endfunction
function kx7 takes nothing returns boolean
return(udg_Ck==udg_h8)
endfunction
function ky7 takes nothing returns boolean
return(udg_Ck==udg_a[1006])
endfunction
function kz7 takes nothing returns boolean
return(udg_Ck==udg_a[1008])
endfunction
function kA7 takes nothing returns boolean
return(udg_Ck==udg_a[404])
endfunction
function ka7 takes nothing returns boolean
return(udg_Ck==udg_a[406])
endfunction
function kB7 takes nothing returns boolean
return(udg_Ck==udg_jm[4])
endfunction
function kb7 takes nothing returns boolean
return(udg_Ck==udg_jm[10])
endfunction
function kC7 takes nothing returns boolean
return(udg_Ck==udg_a[66])
endfunction
function kc7 takes nothing returns boolean
return(udg_Ck==udg_a[67])
endfunction
function kD7 takes nothing returns boolean
return(udg_Ck==udg_jf[15])
endfunction
function kE7 takes nothing returns boolean
return(udg_Ck==udg_Y[udg_nn])
endfunction
function k37 takes nothing returns boolean
return(udg_Ck==udg_Z[udg_nn])
endfunction
function kF7 takes nothing returns boolean
return(udg_Ck==udg_O7[udg_nn])
endfunction
function kG7 takes nothing returns boolean
return(udg_Ck==udg_P7[udg_nn])
endfunction
function k67 takes nothing returns boolean
if(not(udg_Ck==udg_a4))then
return false
endif
return true
endfunction
function kH7 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_Xg))]==true))then
return false
endif
return true
endfunction
function kI7 takes nothing returns nothing
set udg_ck=false
set udg_Gk=GetKillingUnitBJ()
set udg_r9[1000]=GetUnitLoc(udg_Ck)
set udg_r9[1001]=GetRectCenter(udg_io)
set udg_Cj[70]=1
loop
exitwhen udg_Cj[70]>6
if(jY7())then
call UnitRemoveItemFromSlotSwapped(udg_Cj[70],udg_Ck)
else
set udg_Dk[udg_Cj[70]]=GetItemTypeId(UnitItemInSlotBJ(udg_Ck,udg_Cj[70]))
call RemoveItem(UnitItemInSlotBJ(udg_Ck,udg_Cj[70]))
endif
set udg_Cj[70]=udg_Cj[70]+1
endloop
set udg_Ek[0]=R2I(GetUnitFacing(udg_Ck))
set udg_Ek[1]=GetHeroStatBJ(bj_HEROSTAT_STR,udg_Ck,false)
set udg_Ek[2]=GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Ck,false)
set udg_Ek[3]=GetHeroStatBJ(bj_HEROSTAT_INT,udg_Ck,false)
set udg_Ek[4]=GetHeroXP(udg_Ck)
set udg_Ek[5]=GetHeroLevel(udg_Ck)
set udg_Ek[6]=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ck))
set udg_m[GetConvertedPlayerId(GetOwningPlayer(udg_Ck))]=null
call SetUnitOwner(udg_Xg,GetOwningPlayer(udg_Ck),true)
call SetUnitOwner(udg_Ck,Player(PLAYER_NEUTRAL_PASSIVE),true)
call SetUnitPositionLocFacingBJ(udg_Ck,udg_r9[1001],bj_UNIT_FACING)
call SelectUnitRemove(udg_Ck)
call AddSpecialEffectLocBJ(udg_r9[1000],"Abilities\\Spells\\Undead\\Unsummon\\UnsummonTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_m[GetConvertedPlayerId(GetOwningPlayer(udg_Xg))]=udg_Xg
call SetUnitPositionLocFacingBJ(udg_Xg,udg_r9[1000],I2R(udg_Ek[0]))
call SetHeroXP(udg_Xg,udg_Ek[4],false)
call SetHeroLevelBJ(udg_Xg,udg_Ek[5],false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Xg,bj_MODIFYMETHOD_SET,(udg_Ek[1]-50))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Xg,bj_MODIFYMETHOD_SET,(udg_Ek[2]-50))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_Xg,bj_MODIFYMETHOD_SET,udg_Ek[3])
call PauseUnitBJ(false,udg_Xg)
call SetUnitInvulnerable(udg_Xg,false)
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_Xg)
call UnitRemoveAbilityBJ(1097295983,udg_Xg)
set udg_Cj[70]=1
loop
exitwhen udg_Cj[70]>6
call UnitAddItemByIdSwapped(udg_Dk[udg_Cj[70]],udg_Xg)
set udg_Dk[udg_Cj[70]]=1836019566
set udg_Ek[udg_Cj[70]]=0
if(j27())then
set udg_Y[udg_Cj[70]]=udg_Xg
else
call DoNothing()
endif
if(jZ7())then
set udg_Z[udg_Cj[70]]=udg_Xg
else
call DoNothing()
endif
set udg_Cj[70]=udg_Cj[70]+1
endloop
if(k77())then
if(j_7())then
call UnitAddAbilityBJ(1093677624,udg_Xg)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(k87())then
set udg_x=udg_Xg
else
call DoNothing()
endif
if(k97())then
set udg_y=udg_Xg
else
call DoNothing()
endif
if(kd7())then
set udg_a[401]=udg_Xg
else
call DoNothing()
endif
if(ke7())then
set udg_a[16]=udg_Xg
else
call DoNothing()
endif
if(kf7())then
set udg_sk[11]=udg_Xg
else
call DoNothing()
endif
if(kg7())then
set udg_sk[21]=udg_Xg
else
call DoNothing()
endif
if(kh7())then
set udg_rh=udg_Xg
else
call DoNothing()
endif
if(ki7())then
set udg_xe=udg_Xg
else
call DoNothing()
endif
if(kj7())then
set udg_be=udg_Xg
else
call DoNothing()
endif
if(kk7())then
set udg_a[8]=udg_Xg
else
call DoNothing()
endif
if(km7())then
set udg_a[801]=udg_Xg
else
call DoNothing()
endif
if(kn7())then
set udg_a[800]=udg_Xg
else
call DoNothing()
endif
if(ko7())then
set udg_Ok[5]=udg_Xg
else
call DoNothing()
endif
if(kp7())then
set udg_a[870]=udg_Xg
else
call DoNothing()
endif
if(kq7())then
set udg_a[880]=udg_Xg
else
call DoNothing()
endif
if(kr7())then
set udg_ej=udg_Xg
else
call DoNothing()
endif
if(ks7())then
set udg_Hm[2]=udg_Xg
else
call DoNothing()
endif
if(kt7())then
set udg_hk[36]=udg_Xg
else
call DoNothing()
endif
if(ku7())then
set udg_a[3]=udg_Xg
else
call DoNothing()
endif
if(kv7())then
set udg_a[9]=udg_Xg
else
call DoNothing()
endif
if(kw7())then
set udg_a[10]=udg_Xg
else
call DoNothing()
endif
if(kx7())then
set udg_h8=udg_Xg
else
call DoNothing()
endif
if(ky7())then
set udg_a[1006]=udg_Xg
else
call DoNothing()
endif
if(kz7())then
set udg_a[1008]=udg_Xg
else
call DoNothing()
endif
if(kA7())then
set udg_a[404]=udg_Xg
else
call DoNothing()
endif
if(ka7())then
set udg_a[406]=udg_Xg
else
call DoNothing()
endif
if(kB7())then
set udg_jm[4]=udg_Xg
else
call DoNothing()
endif
if(kb7())then
set udg_jm[10]=udg_Xg
else
call DoNothing()
endif
if(kC7())then
set udg_a[66]=udg_Xg
else
call DoNothing()
endif
if(kc7())then
set udg_a[67]=udg_Xg
else
call DoNothing()
endif
if(kD7())then
set udg_jf[15]=udg_Xg
else
call DoNothing()
endif
set udg_nn=1
loop
exitwhen udg_nn>5
if(kE7())then
set udg_Y[udg_nn]=udg_Xg
else
call DoNothing()
endif
if(k37())then
set udg_Z[udg_nn]=udg_Xg
else
call DoNothing()
endif
if(kF7())then
set udg_O7[udg_nn]=udg_Xg
else
call DoNothing()
endif
if(kG7())then
set udg_P7[udg_nn]=udg_Xg
else
call DoNothing()
endif
set udg_nn=udg_nn+1
endloop
if(k67())then
call DestroyEffectBJ(udg_B4)
set udg_a4=udg_Xg
call AddSpecialEffectTargetUnitBJ("overhead",udg_a4,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")
set udg_B4=GetLastCreatedEffectBJ()
else
call DoNothing()
endif
if(kH7())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_Xg),udg_Xg,0,0,false)
else
call DoNothing()
endif
call SetPlayerHandicapXPBJ(GetOwningPlayer(udg_Xg),100.00)
call UnitDamageTargetBJ(udg_Gk,udg_Xg,9999999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call TriggerSleepAction(2)
call ReviveHeroLoc(udg_Ck,udg_r9[1001],false)
call TriggerSleepAction(0.01)
call UnitAddAbilityBJ(1097295983,udg_Ck)
call SetUnitLifePercentBJ(udg_Ck,100)
call PauseUnitBJ(true,udg_Ck)
call SetUnitInvulnerable(udg_Ck,true)
set udg_Gk=null
call RemoveLocation(udg_r9[1000])
set udg_r9[1000]=null
call RemoveLocation(udg_r9[1001])
set udg_r9[1001]=null
endfunction
function kl7 takes nothing returns nothing
set udg_wa=CreateTrigger()
call TriggerAddCondition(udg_wa,Condition(function jW7))
call TriggerAddAction(udg_wa,function kI7)
endfunction
function k17 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681747))then
return false
endif
return true
endfunction
function kJ7 takes nothing returns boolean
return(IsTriggerEnabled(udg_ya)==false)
endfunction
function kK7 takes nothing returns nothing
set udg_t9[100]=GetTriggerUnit()
set udg_r9[100]=GetUnitLoc(udg_t9[100])
set udg_r9[101]=GetSpellTargetLoc()
set udg_Ek[10]=R2I(AngleBetweenPoints(udg_r9[100],udg_r9[101]))
set udg_Ek[11]=0
call RemoveLocation(udg_r9[101])
set udg_r9[101]=null
call EnableTrigger(udg_ya)
set udg_Km[3]=GetUnitLoc(udg_t9[100])
call PlaySoundAtPointBJ(udg_yp,100,udg_Km[3],0)
call RemoveLocation(udg_Km[3])
set udg_Km[3]=null
loop
exitwhen(kJ7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
set udg_t9[100]=null
set udg_Ek[10]=0
set udg_Ek[11]=0
call RemoveLocation(udg_r9[100])
set udg_r9[100]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_Fk)
endfunction
function kL7 takes nothing returns nothing
set udg_xa=CreateTrigger()
call TriggerAddCondition(udg_xa,Condition(function k17))
call TriggerAddAction(udg_xa,function kK7)
endfunction
function kM7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Fk)==false)
endfunction
function kN7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_t9[100]))==true)
endfunction
function kO7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function k07 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function kP7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function kQ7 takes nothing returns boolean
return GetBooleanAnd(k07(),kP7())
endfunction
function kR7 takes nothing returns boolean
return GetBooleanAnd(kO7(),kQ7())
endfunction
function kS7 takes nothing returns boolean
return GetBooleanAnd(kN7(),kR7())
endfunction
function k57 takes nothing returns boolean
return GetBooleanAnd(kM7(),kS7())
endfunction
function kT7 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_Fk)
call UnitDamageTargetBJ(udg_t9[100],GetEnumUnit(),(1000.00+(10.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_t9[100],true)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function kU7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function kV7 takes nothing returns boolean
return(udg_Ek[11]>=1600)
endfunction
function kW7 takes nothing returns nothing
set udg_Ek[11]=(udg_Ek[11]+45)
set udg_r9[101]=PG(udg_r9[100],I2R(udg_Ek[11]),I2R(udg_Ek[10]))
call AddSpecialEffectLocBJ(udg_r9[101],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_yk[101]=e6(300.00,udg_r9[101],Condition(function k57))
call ForGroupBJ(udg_yk[101],function kT7)
call DestroyGroup(udg_yk[101])
set udg_yk[101]=null
call AddSpecialEffectLocBJ(udg_r9[101],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(300.00,udg_r9[101],function kU7)
call RemoveLocation(udg_r9[101])
set udg_r9[101]=null
if(kV7())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function kX7 takes nothing returns nothing
set udg_ya=CreateTrigger()
call DisableTrigger(udg_ya)
call TriggerRegisterTimerEventPeriodic(udg_ya,0.03)
call TriggerAddAction(udg_ya,function kW7)
endfunction
function kY7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681748))then
return false
endif
return true
endfunction
function k27 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_t9[102]))==true)
endfunction
function kZ7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function k_7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function m47 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function m77 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function m87 takes nothing returns boolean
return GetBooleanAnd(m47(),m77())
endfunction
function m97 takes nothing returns boolean
return GetBooleanAnd(k_7(),m87())
endfunction
function md7 takes nothing returns boolean
return GetBooleanAnd(kZ7(),m97())
endfunction
function me7 takes nothing returns boolean
return GetBooleanAnd(k27(),md7())
endfunction
function mf7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_t9[102],GetEnumUnit(),(2000.00+(20.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_t9[102],true)))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endfunction
function mg7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function mh7 takes nothing returns nothing
set udg_t9[102]=GetTriggerUnit()
set udg_Ek[12]=0
set udg_r9[102]=GetUnitLoc(udg_t9[102])
set udg_Cj[71]=1
loop
exitwhen udg_Cj[71]>30
set udg_Ek[12]=(udg_Ek[12]+12)
set udg_r9[103]=PG(udg_r9[102],300.00,I2R(udg_Ek[12]))
call CreateNUnitsAtLocFacingLocBJ(1,1966092338,GetOwningPlayer(udg_t9[102]),udg_r9[102],udg_r9[103])
set udg_t9[103]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681749,udg_t9[103])
call IssuePointOrderLocBJ(udg_t9[103],"carrionswarm",udg_r9[103])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_t9[103])
call RemoveLocation(udg_r9[103])
set udg_r9[103]=null
set udg_t9[103]=null
set udg_Cj[71]=udg_Cj[71]+1
endloop
set udg_yk[102]=e6(800.00,udg_r9[102],Condition(function me7))
call ForGroupBJ(udg_yk[102],function mf7)
call AddSpecialEffectTargetUnitBJ("origin",udg_t9[102],"war3mapImported\\DarkLightningNova.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_t9[102],"war3mapImported\\DarkNova.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(700.00,udg_uk[102],function mg7)
set udg_t9[102]=null
set udg_Ek[12]=0
set udg_Km[4]=GetUnitLoc(udg_t9[102])
call PlaySoundAtPointBJ(udg_hq,100,udg_Km[4],0)
call RemoveLocation(udg_Km[4])
set udg_Km[4]=null
call DestroyGroup(udg_yk[102])
set udg_yk[102]=null
call RemoveLocation(udg_r9[102])
set udg_r9[102]=null
endfunction
function mi7 takes nothing returns nothing
set udg_za=CreateTrigger()
call TriggerAddCondition(udg_za,Condition(function kY7))
call TriggerAddAction(udg_za,function mh7)
endfunction
function mj7 takes nothing returns boolean
if(not(udg_ij==null))then
return false
endif
return true
endfunction
function mk7 takes nothing returns nothing
if(mj7())then
call DestroyTrigger(udg_aa)
call DestroyTrigger(udg_Ba)
call DestroyTrigger(udg_ba)
call DestroyTrigger(udg_Ca)
call DestroyTrigger(udg_ca)
call DestroyTrigger(udg_Da)
call DestroyTrigger(udg_Ea)
call DestroyTrigger(udg_Fa)
call DestroyTrigger(udg_Ga)
call DestroyTrigger(udg_Ha)
call DestroyTrigger(udg_Ia)
else
call TriggerRegisterUnitEvent(udg_aa,udg_ij,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Ba,udg_ij,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_ba,udg_ij,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_ca,udg_ij,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_Da,udg_ij,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Ga,udg_ij,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_Ia,udg_ij,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function mm7 takes nothing returns nothing
set udg_Aa=CreateTrigger()
call TriggerAddAction(udg_Aa,function mk7)
endfunction
function mn7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678420))then
return false
endif
return true
endfunction
function mo7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[400])!=1211117641))then
return false
endif
return true
endfunction
function mp7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function mq7 takes nothing returns nothing
set udg_A[400]=GetTriggerUnit()
set udg_B[400]=GetSpellTargetLoc()
set udg_c[400]=AngleBetweenPoints(GetUnitLoc(udg_A[400]),udg_B[400])
set udg_v9[1]=PG(GetUnitLoc(udg_A[400]),50.00,udg_c[400])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[400]),udg_v9[1],udg_c[400])
set udg_A[401]=GetLastCreatedUnit()
call RemoveLocation(udg_v9[1])
set udg_v9[1]=null
set udg_v9[1]=PG(GetUnitLoc(udg_A[400]),250.00,udg_c[400])
if(mo7())then
call SetUnitScalePercent(udg_A[401],825.00,825.00,825.00)
call UnitAddAbilityBJ(1093678641,udg_A[401])
call SetUnitAbilityLevelSwapped(1093678641,udg_A[401],GetUnitAbilityLevelSwapped(1093678420,udg_A[400]))
call IssuePointOrderLocBJ(udg_A[401],"carrionswarm",udg_v9[1])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[401])
else
call SetUnitScalePercent(udg_A[401],200.00,200.00,200.00)
call UnitAddAbilityBJ(1093679154,udg_A[401])
call SetUnitAbilityLevelSwapped(1093679154,udg_A[401],GetUnitAbilityLevelSwapped(1093678420,udg_A[400]))
call IssuePointOrderLocBJ(udg_A[401],"shockwave",udg_v9[1])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[401])
endif
call CreateTextTagUnitBJ("Getsuga Tensho",udg_A[400],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function mp7)))
call SetUnitFacingTimed(udg_A[400],udg_c[400],0)
set udg_A[400]=null
set udg_A[401]=null
set udg_c[400]=0.00
call PlaySoundAtPointBJ(udg_Qp,100,udg_v9[1],0)
call RemoveLocation(udg_B[400])
set udg_B[400]=null
call RemoveLocation(udg_v9[1])
set udg_v9[1]=null
endfunction
function mr7 takes nothing returns nothing
set udg_aa=CreateTrigger()
call TriggerAddCondition(udg_aa,Condition(function mn7))
call TriggerAddAction(udg_aa,function mq7)
endfunction
function ms7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678421))then
return false
endif
return true
endfunction
function mt7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function mu7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_B[401])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_B[401])==true))then
return true
endif
return false
endfunction
function mv7 takes nothing returns boolean
if(not mu7())then
return false
endif
return true
endfunction
function mw7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[402])!=1211117641))then
return false
endif
return true
endfunction
function mx7 takes nothing returns nothing
set udg_A[402]=GetTriggerUnit()
set udg_a[401]=GetSpellTargetUnit()
set udg_B[401]=PG(GetUnitLoc(udg_a[401]),175.00,AngleBetweenPoints(GetUnitLoc(udg_A[402]),GetUnitLoc(udg_a[401])))
call AddSpecialEffectTargetUnitBJ("origin",udg_A[402],"Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl")
set udg_P[400]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.01)
if(mv7())then
call UG(300.00,udg_B[401],function mt7)
call SetUnitPositionLocFacingBJ(udg_A[402],udg_B[401],AngleBetweenPoints(GetUnitLoc(udg_A[402]),GetUnitLoc(udg_a[401])))
else
set udg_v9[2]=PG(GetUnitLoc(udg_a[401]),-80.00,AngleBetweenPoints(GetUnitLoc(udg_A[402]),GetUnitLoc(udg_a[401])))
call SetUnitPositionLocFacingBJ(udg_A[402],udg_v9[2],AngleBetweenPoints(GetUnitLoc(udg_A[402]),GetUnitLoc(udg_a[401])))
call RemoveLocation(udg_v9[2])
set udg_v9[2]=null
endif
if(mw7())then
call UnitDamageTargetBJ(udg_A[402],udg_a[401],(110.00*I2R(GetUnitAbilityLevelSwapped(1093678422,udg_A[402]))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
set udg_v9[2]=GetUnitLoc(udg_a[401])
call AddSpecialEffectLocBJ(udg_v9[2],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_v9[2])
set udg_v9[2]=null
call TriggerSleepAction(0.50)
call DestroyEffectBJ(udg_P[400])
call RemoveLocation(udg_B[401])
set udg_B[401]=null
set udg_A[402]=null
set udg_a[401]=null
endfunction
function my7 takes nothing returns nothing
set udg_Ba=CreateTrigger()
call TriggerAddCondition(udg_Ba,Condition(function ms7))
call TriggerAddAction(udg_Ba,function mx7)
endfunction
function mz7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678422))then
return false
endif
return true
endfunction
function mA7 takes nothing returns nothing
set udg_y9[2]=GetEnumUnit()
call RemoveUnit(udg_y9[2])
set udg_y9[2]=null
endfunction
function ma7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[2])==1211117641))then
return false
endif
return true
endfunction
function mB7 takes nothing returns boolean
return(GetUnitTypeId(udg_s9[2])==1211117641)
endfunction
function mb7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function mC7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function mc7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function mD7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function mE7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function m37 takes nothing returns boolean
return(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function mF7 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function mG7 takes nothing returns boolean
return GetBooleanAnd(m37(),mF7())
endfunction
function m67 takes nothing returns boolean
return GetBooleanAnd(mE7(),mG7())
endfunction
function mH7 takes nothing returns boolean
return GetBooleanAnd(mD7(),m67())
endfunction
function mI7 takes nothing returns boolean
return GetBooleanAnd(mc7(),mH7())
endfunction
function ml7 takes nothing returns boolean
return GetBooleanAnd(mC7(),mI7())
endfunction
function m17 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[402])))==true))then
return true
endif
return false
endfunction
function mJ7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_y9[2])==1328558129))then
return false
endif
return true
endfunction
function mK7 takes nothing returns boolean
if(not m17())then
return false
endif
return true
endfunction
function mL7 takes nothing returns nothing
if(mK7())then
set udg_y9[2]=GetEnumUnit()
set udg_v9[3]=PG(GetUnitLoc(udg_y9[2]),-100.00,AngleBetweenPoints(GetUnitLoc(udg_y9[2]),udg_B[402]))
call SetUnitPositionLoc(udg_y9[2],udg_v9[3])
call IssueImmediateOrderBJ(udg_y9[2],"stop")
call SetUnitFacingToFaceLocTimed(udg_y9[2],udg_B[402],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_y9[2],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(mJ7())then
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
else
call DoNothing()
endif
set udg_y9[2]=null
else
call DoNothing()
endif
endfunction
function mM7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[2])==1211117641))then
return false
endif
return true
endfunction
function mN7 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[2]))]==true)
endfunction
function mO7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[2]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,udg_s9[2])==0))then
return false
endif
return true
endfunction
function m07 takes nothing returns boolean
if(not mO7())then
return false
endif
return true
endfunction
function mP7 takes nothing returns nothing
set udg_s9[2]=GetTriggerUnit()
if(ma7())then
set udg_v9[3]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869834349,GetOwningPlayer(udg_s9[2]),udg_v9[3],bj_UNIT_FACING)
call RemoveLocation(udg_v9[3])
set udg_v9[3]=null
else
set udg_G[400]=k6(GetOwningPlayer(udg_s9[2]),1869834349)
call ForGroupBJ(udg_G[400],function mA7)
call DestroyGroup(udg_G[400])
set udg_G[400]=null
endif
if(mB7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[2]))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[2]))]=false
endif
if(mM7())then
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[2],"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[2],"war3mapImported\\FrostNova.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("Bankai",udg_s9[2],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function mb7)))
set udg_v9[3]=GetUnitLoc(udg_s9[2])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_s9[2]),udg_v9[3],bj_UNIT_FACING)
set udg_w9[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677378,udg_w9[1])
call IssueImmediateOrderBJ(udg_w9[1],"thunderclap")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_w9[1])
set udg_w9[1]=null
call RemoveLocation(udg_v9[3])
set udg_v9[3]=null
set udg_G[400]=e6(460.00,GetUnitLoc(GetTriggerUnit()),Condition(function ml7))
set udg_B[402]=GetUnitLoc(GetTriggerUnit())
call ForGroupBJ(udg_G[400],function mL7)
call RemoveLocation(udg_B[402])
set udg_B[402]=null
call DestroyGroup(udg_G[400])
set udg_G[400]=null
call RemoveLocation(udg_v9[3])
set udg_v9[3]=null
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
if(m07())then
if(mN7())then
call UnitAddAbilityBJ(1093677624,udg_s9[2])
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_s9[2]=null
endfunction
function mQ7 takes nothing returns nothing
set udg_ba=CreateTrigger()
call TriggerAddCondition(udg_ba,Condition(function mz7))
call TriggerAddAction(udg_ba,function mP7)
endfunction
function mR7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]==false))then
return false
endif
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]==true))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(GetUnitTypeId(GetAttackedUnitBJ())!=1852204911))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093678422,GetAttacker())>=3))then
return false
endif
return true
endfunction
function mS7 takes nothing returns boolean
if(not mR7())then
return false
endif
return true
endfunction
function m57 takes nothing returns nothing
set udg_u9[6]=GetAttacker()
set udg_u9[7]=GetAttackedUnitBJ()
set udg_v9[434]=PG(GetUnitLoc(udg_u9[7]),80.00,GetRandomDirectionDeg())
set udg_v9[435]=GetUnitLoc(udg_u9[7])
set udg_v9[436]=GetUnitLoc(udg_u9[6])
call SetUnitPositionLocFacingLocBJ(udg_u9[6],udg_v9[434],udg_v9[435])
call IssueTargetOrderBJ(udg_u9[6],"attack",udg_u9[7])
call SetUnitAnimation(udg_u9[6],"attack")
call AddSpecialEffectLocBJ(udg_v9[436],"!Sonido!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_v9[434],"!Sonido!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_v9[434])
set udg_v9[434]=null
call RemoveLocation(udg_v9[435])
set udg_v9[435]=null
call RemoveLocation(udg_v9[436])
set udg_v9[436]=null
set udg_u9[6]=null
set udg_u9[7]=null
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.35)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function mT7 takes nothing returns nothing
set udg_Ca=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Ca,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_Ca,Condition(function mS7))
call TriggerAddAction(udg_Ca,function m57)
endfunction
function mU7 takes nothing returns boolean
if(not(RectContainsUnit(udg_sn,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_An,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_jo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_ko,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_mo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_no,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_oo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_po,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_qo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_ro,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_so,GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function mV7 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return true
endif
if(mU7())then
return true
endif
return false
endfunction
function mW7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678424))then
return false
endif
if(not mV7())then
return false
endif
return true
endfunction
function mX7 takes nothing returns boolean
if(not mW7())then
return false
endif
return true
endfunction
function mY7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function m27 takes nothing returns nothing
set udg_ca=CreateTrigger()
call TriggerAddCondition(udg_ca,Condition(function mX7))
call TriggerAddAction(udg_ca,function mY7)
endfunction
function mZ7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678424))then
return false
endif
return true
endfunction
function m_7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[403]))]==false))then
return false
endif
return true
endfunction
function n47 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_A[403]))]==true))then
return false
endif
return true
endfunction
function n77 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function n87 takes nothing returns boolean
return(udg_z==false)
endfunction
function n97 takes nothing returns nothing
set udg_A[403]=GetSpellAbilityUnit()
set udg_B[403]=GetUnitLoc(udg_A[403])
set udg_B[404]=GetSpellTargetLoc()
set udg_c[401]=AngleBetweenPoints(udg_B[403],udg_B[404])
set udg_N[400]=0
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[403]))]=true
call PauseUnitBJ(true,udg_A[403])
call SetUnitInvulnerable(udg_A[403],true)
call SetUnitPathing(udg_A[403],false)
call TriggerSleepAction(0.01)
call EnableTrigger(udg_Ea)
call TriggerSleepAction(0.20)
call DisableTrigger(udg_Ea)
call ShowUnitHide(udg_A[403])
if(m_7())then
call CreateNUnitsAtLoc(1,1747988555,GetOwningPlayer(udg_A[403]),udg_B[404],(udg_c[401]+0.00))
set udg_A[404]=GetLastCreatedUnit()
else
call CreateNUnitsAtLoc(1,1747988556,GetOwningPlayer(udg_A[403]),udg_B[404],(udg_c[401]+0.00))
set udg_A[404]=GetLastCreatedUnit()
endif
call PauseUnitBJ(true,udg_A[404])
call SetUnitFlyHeightBJ(udg_A[404],500.00,0.00)
call SetUnitFlyHeightBJ(udg_A[404],500.00,500.00)
call SetUnitTimeScalePercent(udg_A[404],70.00)
call SetUnitInvulnerable(udg_A[404],true)
if(n47())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_A[403]),udg_A[404],0,0,false)
else
call DoNothing()
endif
call SetUnitPositionLocFacingBJ(udg_A[404],udg_B[404],(udg_c[401]+0.00))
call SetUnitAnimation(udg_A[404],"attack")
call AddSpecialEffectTargetUnitBJ("weapon",udg_A[404],"Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl")
call AddSpecialEffectTargetUnitBJ("origin",udg_A[404],"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call AddSpecialEffectTargetUnitBJ("origin",udg_A[404],"Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl")
call PlaySoundAtPointBJ(udg_uq,100,udg_B[404],0)
call EnableTrigger(udg_Fa)
call TriggerSleepAction(0.60)
call DisableTrigger(udg_Fa)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[403]),udg_B[404],bj_UNIT_FACING)
set udg_w9[2]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_w9[2])
call UnitAddAbilityBJ(1093677905,udg_w9[2])
call SetUnitAbilityLevelSwapped(1093677905,udg_w9[2],GetUnitAbilityLevelSwapped(1093678424,udg_A[403]))
call IssueImmediateOrderBJ(udg_w9[2],"stomp")
set udg_w9[2]=null
set udg_v9[4]=GetUnitLoc(udg_A[404])
call AddSpecialEffectLocBJ(udg_v9[4],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_v9[4],"war3mapImported\\explosion.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ShowUnitShow(udg_A[403])
call SetUnitPositionLocFacingBJ(udg_A[403],udg_v9[4],(udg_c[401]+0.00))
call SetUnitVertexColorBJ(udg_A[403],100,100,100,0)
call RemoveUnit(udg_A[404])
call PauseUnitBJ(false,udg_A[403])
call AddSpecialEffectTargetUnitBJ("origin",udg_A[403],"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SelectUnitForPlayerSingle(udg_A[403],GetOwningPlayer(udg_A[403]))
call SetUnitTimeScalePercent(udg_A[403],100.00)
call SetUnitInvulnerable(udg_A[403],false)
call SetUnitPathing(udg_A[403],true)
call UG(600.00,udg_v9[4],function n77)
if(n87())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_A[403]),udg_v9[4],0.00)
else
call DoNothing()
endif
call RemoveLocation(udg_v9[4])
set udg_v9[4]=null
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[403]))]=false
set udg_A[403]=null
set udg_A[404]=null
set udg_c[401]=0.00
set udg_N[400]=0
call RemoveLocation(udg_B[403])
set udg_B[403]=null
call RemoveLocation(udg_B[404])
set udg_B[404]=null
endfunction
function nd7 takes nothing returns nothing
set udg_Da=CreateTrigger()
call TriggerAddCondition(udg_Da,Condition(function mZ7))
call TriggerAddAction(udg_Da,function n97)
endfunction
function ne7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[403]))]==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[403])==true))then
return false
endif
return true
endfunction
function nf7 takes nothing returns boolean
if(not ne7())then
return false
endif
return true
endfunction
function ng7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_A[403])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_A[403])==true))then
return true
endif
return false
endfunction
function nh7 takes nothing returns boolean
if(not ng7())then
return false
endif
return true
endfunction
function ni7 takes nothing returns boolean
if(not(udg_N[400]==10))then
return false
endif
return true
endfunction
function nj7 takes nothing returns nothing
set udg_N[400]=(udg_N[400]+1)
if(nh7())then
set udg_v9[5]=PG(GetUnitLoc(udg_A[403]),-9.00,udg_c[401])
call SetUnitPositionLoc(udg_A[403],udg_v9[5])
call RemoveLocation(udg_v9[5])
set udg_v9[5]=null
call SetUnitVertexColorBJ(udg_A[403],100,100,100,(10.00*I2R(udg_N[400])))
else
call DisableTrigger(GetTriggeringTrigger())
endif
if(ni7())then
call DisableTrigger(GetTriggeringTrigger())
call ShowUnitHide(udg_A[403])
else
call DoNothing()
endif
endfunction
function nk7 takes nothing returns nothing
set udg_Ea=CreateTrigger()
call DisableTrigger(udg_Ea)
call TriggerRegisterTimerEventPeriodic(udg_Ea,0.05)
call TriggerAddCondition(udg_Ea,Condition(function nf7))
call TriggerAddAction(udg_Ea,function nj7)
endfunction
function nm7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[403]))]==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[403])==true))then
return false
endif
return true
endfunction
function nn7 takes nothing returns nothing
call SetUnitFlyHeightBJ(udg_A[404],(GetUnitFlyHeight(udg_A[404])-20.00),0.00)
call SetUnitPositionLocFacingBJ(udg_A[404],udg_B[404],(udg_c[401]+0.00))
endfunction
function no7 takes nothing returns nothing
set udg_Fa=CreateTrigger()
call DisableTrigger(udg_Fa)
call TriggerRegisterTimerEventPeriodic(udg_Fa,0.03)
call TriggerAddCondition(udg_Fa,Condition(function nm7))
call TriggerAddAction(udg_Fa,function nn7)
endfunction
function np7 takes nothing returns boolean
if((udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false))then
return true
endif
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function nq7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678640))then
return false
endif
if(not np7())then
return false
endif
return true
endfunction
function nr7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function ns7 takes nothing returns nothing
set udg_Ga=CreateTrigger()
call TriggerAddCondition(udg_Ga,Condition(function nq7))
call TriggerAddAction(udg_Ga,function nr7)
endfunction
function nt7 takes nothing returns nothing
set udg_v9[6]=PG(GetUnitLoc(udg_A[405]),50.00,AngleBetweenPoints(GetUnitLoc(udg_A[405]),GetUnitLoc(udg_a[402])))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[405]),udg_v9[6],AngleBetweenPoints(GetUnitLoc(udg_A[405]),GetUnitLoc(udg_a[402])))
set udg_A[406]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_A[406],500.00,500.00,500.00)
call UnitAddAbilityBJ(1093678641,udg_A[406])
call SetUnitAbilityLevelSwapped(1093678641,udg_A[406],(1+GetUnitAbilityLevelSwapped(1093678640,udg_A[405])))
call RemoveLocation(udg_v9[6])
set udg_v9[6]=null
set udg_v9[6]=PG(GetUnitLoc(udg_A[405]),250.00,AngleBetweenPoints(GetUnitLoc(udg_A[405]),GetUnitLoc(udg_a[402])))
call IssuePointOrderLocBJ(udg_A[406],"carrionswarm",udg_v9[6])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[406])
set udg_A[406]=null
call RemoveLocation(udg_v9[6])
set udg_v9[6]=null
endfunction
function nu7 takes nothing returns nothing
set udg_Ha=CreateTrigger()
call TriggerAddAction(udg_Ha,function nt7)
endfunction
function nv7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678640))then
return false
endif
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
return true
endfunction
function nw7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[405],1110454354)==true)
endfunction
function nx7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=true)
endfunction
function ny7 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function nz7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[405]))==true)
endfunction
function nA7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)!=true)
endfunction
function na7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function nB7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())!=true)
endfunction
function nb7 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),GetOwningPlayer(udg_A[405]))==true)
endfunction
function nC7 takes nothing returns boolean
return GetBooleanAnd(nB7(),nb7())
endfunction
function nc7 takes nothing returns boolean
return GetBooleanAnd(na7(),nC7())
endfunction
function nD7 takes nothing returns boolean
return GetBooleanAnd(nA7(),nc7())
endfunction
function nE7 takes nothing returns boolean
return GetBooleanAnd(nz7(),nD7())
endfunction
function n37 takes nothing returns boolean
return GetBooleanAnd(ny7(),nE7())
endfunction
function nF7 takes nothing returns boolean
return GetBooleanAnd(nx7(),n37())
endfunction
function nG7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[405])==true)
endfunction
function n67 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[405])==true)
endfunction
function nH7 takes nothing returns nothing
set udg_a[402]=GetEnumUnit()
set udg_v9[3531]=GetUnitLoc(udg_a[402])
set udg_B[406]=PG(udg_v9[3531],GetRandomReal(10.00,50.00),GetRandomDirectionDeg())
call SetUnitPositionLocFacingLocBJ(udg_A[405],udg_B[406],udg_v9[3531])
call AddSpecialEffectLocBJ(udg_B[406],"!Sonido!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[406])
set udg_B[406]=null
call RemoveLocation(udg_v9[3531])
set udg_v9[3531]=null
if(n67())then
call PauseUnitBJ(false,udg_A[405])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[405],100.00)
call SetUnitAnimation(udg_A[405],"attack")
call UnitDamageTargetBJ(udg_A[405],udg_a[402],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[405],true))*3.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_a[402],"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call TriggerExecute(udg_Ha)
set udg_a[402]=null
endfunction
function nI7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[405])==true))then
return false
endif
if(not(IsUnitInGroup(udg_A[405],udg_C4)==false))then
return false
endif
return true
endfunction
function nl7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[405])==true)
endfunction
function n17 takes nothing returns boolean
if(not(IsUnitInGroup(udg_A[405],udg_C4)==true))then
return false
endif
return true
endfunction
function nJ7 takes nothing returns nothing
set udg_A[405]=GetTriggerUnit()
set udg_a[402]=GetSpellTargetUnit()
set udg_C[400]=(2+GetUnitAbilityLevelSwapped(1093678640,udg_A[405]))
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[405]))]=true
call UnitAddTypeBJ(UNIT_TYPE_MAGIC_IMMUNE,udg_A[405])
call ResetUnitAnimation(udg_A[405])
call SetUnitTimeScalePercent(udg_A[405],100.00)
call SetUnitVertexColorBJ(udg_A[405],100,100,100,50.00)
call TriggerSleepAction(0.01)
set udg_v9[7]=GetUnitLoc(udg_a[402])
call SetUnitPositionLoc(udg_A[405],udg_v9[7])
call AddSpecialEffectLocBJ(udg_v9[7],"!Sonido!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_v9[7])
set udg_v9[7]=null
call SetUnitAnimation(udg_A[405],"attack")
call UnitDamageTargetBJ(udg_A[405],udg_a[402],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[405],true))*3.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call TriggerExecute(udg_Ha)
set udg_a[402]=null
set udg_b[400]=1
loop
exitwhen udg_b[400]>udg_C[400]
if(nw7())then
call UnitRemoveBuffBJ(1110454354,udg_A[405])
else
call DoNothing()
endif
call TriggerSleepAction(0.30)
set udg_B[405]=GetUnitLoc(udg_A[405])
set udg_G[401]=e6(700.00,udg_B[405],Condition(function nF7))
set udg_G[402]=u6(1,udg_G[401])
call RemoveLocation(udg_B[405])
set udg_B[405]=null
if(nI7())then
call ForGroupBJ(udg_G[402],function nH7)
call DestroyGroup(udg_G[401])
call DestroyGroup(udg_G[402])
set udg_G[401]=null
set udg_G[402]=null
else
call SelectUnitAddForPlayer(udg_A[405],GetOwningPlayer(udg_A[405]))
call UnitRemoveTypeBJ(UNIT_TYPE_MAGIC_IMMUNE,udg_A[405])
if(nG7())then
call PauseUnitBJ(false,udg_A[405])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[405],100.00)
call SetUnitVertexColorBJ(udg_A[405],100,100,100,0)
call RemoveLocation(udg_B[405])
set udg_B[405]=null
call RemoveLocation(udg_B[406])
set udg_B[406]=null
call ResetUnitAnimation(udg_A[405])
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[405]))]=false
set udg_A[405]=null
set udg_A[406]=null
set udg_a[402]=null
set udg_C[400]=0
endif
set udg_b[400]=udg_b[400]+1
endloop
call SelectUnitAddForPlayer(udg_A[405],GetOwningPlayer(udg_A[405]))
call UnitRemoveTypeBJ(UNIT_TYPE_MAGIC_IMMUNE,udg_A[405])
if(nl7())then
call PauseUnitBJ(false,udg_A[405])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[405],100.00)
call SetUnitVertexColorBJ(udg_A[405],100,100,100,0)
call RemoveLocation(udg_B[405])
set udg_B[405]=null
call RemoveLocation(udg_B[406])
set udg_B[406]=null
call ResetUnitAnimation(udg_A[405])
if(n17())then
call SetUnitTimeScalePercent(udg_A[405],0.00)
call PauseUnitBJ(true,udg_A[405])
else
call DoNothing()
endif
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[405]))]=false
set udg_A[405]=null
set udg_A[406]=null
set udg_a[402]=null
set udg_C[400]=0
endfunction
function nK7 takes nothing returns nothing
set udg_Ia=CreateTrigger()
call TriggerAddCondition(udg_Ia,Condition(function nv7))
call TriggerAddAction(udg_Ia,function nJ7)
endfunction
function nL7 takes nothing returns boolean
if(not(udg_jj==null))then
return false
endif
return true
endfunction
function nM7 takes nothing returns nothing
if(nL7())then
call DestroyTrigger(udg_Ja)
call DestroyTrigger(udg_Ka)
call DestroyTrigger(udg_La)
call DestroyTrigger(udg_Ma)
call DestroyTrigger(udg_Na)
call DestroyTrigger(udg_Oa)
call DestroyTrigger(udg_Pa)
call DestroyTrigger(udg_Qa)
call DestroyTrigger(udg_Ra)
call DestroyTrigger(udg_Sa)
call DestroyTrigger(udg_Ta)
call DestroyTrigger(udg_Ua)
call DestroyTrigger(udg_Va)
call DestroyTrigger(udg_Wa)
else
call TriggerRegisterUnitEvent(udg_Ja,udg_jj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_Ka,udg_jj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_La,udg_jj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Ma,udg_jj,EVENT_UNIT_SPELL_FINISH)
call TriggerRegisterUnitEvent(udg_Oa,udg_jj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Qa,udg_jj,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(udg_Sa,udg_jj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Ta,udg_jj,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_Ua,udg_jj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Wa,udg_jj,EVENT_UNIT_DEATH)
endif
endfunction
function nN7 takes nothing returns nothing
set udg_la=CreateTrigger()
call TriggerAddAction(udg_la,function nM7)
endfunction
function nO7 takes nothing returns boolean
if((GetSpellAbilityId()==1093678148))then
return true
endif
if((GetSpellAbilityId()==1093678644))then
return true
endif
return false
endfunction
function n07 takes nothing returns boolean
if(not nO7())then
return false
endif
return true
endfunction
function Trig_Rukia_Cast_Func001Func001Func001Func006003001 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function nP7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function nQ7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678644))then
return false
endif
return true
endfunction
function nR7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function nS7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678148))then
return false
endif
return true
endfunction
function n57 takes nothing returns nothing
if(nS7())then
call CreateTextTagUnitBJ("\"First dance..\"",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function nR7)))
else
if(nQ7())then
call CreateTextTagUnitBJ("\"Third dance..\"",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function nP7)))
else
call DoNothing()
endif
endif
endfunction
function nT7 takes nothing returns nothing
set udg_Ja=CreateTrigger()
call TriggerAddCondition(udg_Ja,Condition(function n07))
call TriggerAddAction(udg_Ja,function n57)
endfunction
function nU7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678148))then
return false
endif
return true
endfunction
function nV7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function nW7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function nX7 takes nothing returns nothing
set udg_s9[3]=GetTriggerUnit()
set udg_x9[1]=GetUnitLoc(udg_s9[3])
call PlaySoundAtPointBJ(udg_gs,100,udg_x9[1],0)
call AddSpecialEffectLocBJ(udg_x9[1],"Tsukishiro.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_x9[1],"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_x9[1],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("\"Tsukishiro\"",udg_s9[3],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function nV7)))
call UG(350.00,udg_x9[1],function nW7)
call RemoveLocation(udg_x9[1])
set udg_x9[1]=null
set udg_s9[3]=null
endfunction
function nY7 takes nothing returns nothing
set udg_Ka=CreateTrigger()
call TriggerAddCondition(udg_Ka,Condition(function nU7))
call TriggerAddAction(udg_Ka,function nX7)
endfunction
function n27 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681486))then
return false
endif
return true
endfunction
function nZ7 takes nothing returns nothing
set udg_Fg=GetTriggerUnit()
set udg_Ig[1]=GetSpellTargetLoc()
set udg_Ig[2]=GetUnitLoc(udg_Fg)
call TriggerSleepAction(4.00)
call RemoveLocation(udg_Ig[2])
set udg_Ig[2]=null
call RemoveLocation(udg_Ig[1])
set udg_Ig[1]=null
set udg_Fg=null
endfunction
function n_7 takes nothing returns nothing
set udg_La=CreateTrigger()
call TriggerAddCondition(udg_La,Condition(function n27))
call TriggerAddAction(udg_La,function nZ7)
endfunction
function o47 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681486))then
return false
endif
return true
endfunction
function o77 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function o87 takes nothing returns boolean
if(not(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==true))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454324)==false))then
return false
endif
return true
endfunction
function o97 takes nothing returns boolean
if(not(IsUnitDeadBJ(GetEnumUnit())==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_q4[690]))then
return false
endif
return true
endfunction
function od7 takes nothing returns boolean
if(not o97())then
return false
endif
return true
endfunction
function oe7 takes nothing returns boolean
if(not(IsUnitDeadBJ(GetEnumUnit())==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_q4[690]))then
return false
endif
return true
endfunction
function of7 takes nothing returns boolean
if(not oe7())then
return false
endif
return true
endfunction
function og7 takes nothing returns boolean
if(not o87())then
return false
endif
return true
endfunction
function Trig_Soukatsui_Func016Func001A takes nothing returns nothing
if(og7())then
if(of7())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_q4[690]))
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(od7())then
call UnitDamageTargetBJ(udg_A[87],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
endfunction
function Trig_Soukatsui_Func016Func003001 takes nothing returns boolean
return(IsTriggerEnabled(udg_FD)==true)
endfunction
function oh7 takes nothing returns boolean
return(IsUnitDeadBJ(udg_A[88])==false)
endfunction
function oi7 takes nothing returns boolean
return(MG(udg_A[88],UNIT_TYPE_HERO)==false)
endfunction
function oj7 takes nothing returns boolean
return(udg_A[88]!=null)
endfunction
function ok7 takes nothing returns boolean
return GetBooleanAnd(oi7(),oj7())
endfunction
function Trig_Soukatsui_Func016Func004001 takes nothing returns boolean
return GetBooleanAnd(oh7(),ok7())
endfunction
function om7 takes nothing returns boolean
return(udg_Gg!=null)
endfunction
function on7 takes nothing returns boolean
return(IsUnitDeadBJ(udg_Gg)==false)
endfunction
function oo7 takes nothing returns boolean
return GetBooleanAnd(om7(),on7())
endfunction
function op7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Fg))==true)
endfunction
function oq7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function or7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function os7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function ot7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ou7 takes nothing returns boolean
return GetBooleanAnd(os7(),ot7())
endfunction
function ov7 takes nothing returns boolean
return GetBooleanAnd(or7(),ou7())
endfunction
function ow7 takes nothing returns boolean
return GetBooleanAnd(oq7(),ov7())
endfunction
function ox7 takes nothing returns boolean
return GetBooleanAnd(op7(),ow7())
endfunction
function oy7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Fg,GetEnumUnit(),(20.00*I2R(GetHeroLevel(udg_Fg))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function oz7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function oA7 takes nothing returns boolean
return(IsTriggerEnabled(udg_Na)==true)
endfunction
function oa7 takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ(1,1747988801,GetOwningPlayer(udg_Fg),udg_Ig[2],udg_Ig[1])
set udg_Gg=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Gg)
call EnableTrigger(udg_Na)
call CreateTextTagUnitBJ("Hado #33: Sokatsui",udg_Fg,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function o77)))
call PlaySoundAtPointBJ(udg_wr,100,udg_Ig[2],0)
call TriggerSleepAction(0.01)
call ResetUnitAnimation(udg_Fg)
call AddSpecialEffectLocBJ(udg_Ig[1],"AncientExplode.mdx")
set udg_lg=GetLastCreatedEffectBJ()
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Fg),udg_Ig[1],bj_UNIT_FACING)
set udg_Hg=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681483,udg_Hg)
call SetUnitAbilityLevelSwapped(1093681483,udg_Hg,GetUnitAbilityLevelSwapped(1093681486,udg_Fg))
call IssueImmediateOrderBJ(udg_Hg,"stomp")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Hg)
if(oo7())then
call RemoveUnit(udg_Gg)
else
call DoNothing()
endif
set udg_yk[127]=e6(300.00,udg_Ig[1],Condition(function ox7))
call ForGroupBJ(udg_yk[127],function oy7)
call DestroyGroup(udg_yk[127])
set udg_yk[127]=null
set udg_Hg=null
set udg_Fg=null
set udg_Gg=null
call UG(300.00,udg_Ig[1],function oz7)
call TriggerSleepAction(1.00)
call DestroyEffectBJ(udg_lg)
if(oA7())then
call DisableTrigger(udg_Na)
else
call DoNothing()
endif
endfunction
function oB7 takes nothing returns nothing
set udg_Ma=CreateTrigger()
call TriggerAddCondition(udg_Ma,Condition(function o47))
call TriggerAddAction(udg_Ma,function oa7)
endfunction
function ob7 takes nothing returns boolean
if(not(udg_Gg!=null))then
return false
endif
return true
endfunction
function oC7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_Ig[1],GetUnitLoc(udg_Gg))<70.00))then
return false
endif
if(not(MG(udg_Gg,UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function oc7 takes nothing returns boolean
return(IsUnitDeadBJ(udg_Gg)==false)
endfunction
function oD7 takes nothing returns boolean
if(not oC7())then
return false
endif
return true
endfunction
function oE7 takes nothing returns nothing
set udg_Ig[3]=PG(GetUnitLoc(udg_Gg),47.00,AngleBetweenPoints(GetUnitLoc(udg_Gg),udg_Ig[1]))
call SetUnitPositionLocFacingLocBJ(udg_Gg,udg_Ig[3],udg_Ig[1])
call RemoveLocation(udg_Ig[3])
set udg_Ig[3]=null
if(oD7())then
call DisableTrigger(GetTriggeringTrigger())
if(oc7())then
call RemoveUnit(udg_Gg)
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function o37 takes nothing returns nothing
set udg_Na=CreateTrigger()
call DisableTrigger(udg_Na)
call TriggerRegisterTimerEventPeriodic(udg_Na,0.02)
call TriggerAddCondition(udg_Na,Condition(function ob7))
call TriggerAddAction(udg_Na,function oE7)
endfunction
function oF7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678642))then
return false
endif
return true
endfunction
function oG7 takes nothing returns nothing
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
set udg_A[408]=GetTriggerUnit()
set udg_B[407]=GetSpellTargetLoc()
set udg_x9[124]=GetUnitLoc(udg_A[408])
set udg_H[400]=AngleBetweenPoints(udg_x9[124],udg_B[407])
set udg_N[401]=0
call TriggerSleepAction(0.02)
call SetUnitTimeScalePercent(udg_A[408],0.00)
call EnableTrigger(udg_Pa)
call TriggerSleepAction(7.00)
call SetUnitTimeScalePercent(udg_A[408],100.00)
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
set udg_A[408]=null
set udg_A[409]=null
set udg_H[400]=0.00
set udg_N[401]=0
call RemoveLocation(udg_B[407])
set udg_B[407]=null
call RemoveLocation(udg_x9[124])
set udg_x9[124]=null
call RemoveLocation(udg_B[408])
set udg_B[408]=null
call RemoveLocation(udg_B[409])
set udg_B[409]=null
endfunction
function o67 takes nothing returns nothing
set udg_Oa=CreateTrigger()
call TriggerAddCondition(udg_Oa,Condition(function oF7))
call TriggerAddAction(udg_Oa,function oG7)
endfunction
function oH7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[408])==true))then
return false
endif
return true
endfunction
function oI7 takes nothing returns boolean
if(not(udg_N[401]<5))then
return false
endif
return true
endfunction
function ol7 takes nothing returns boolean
if(not(udg_N[401]==5))then
return false
endif
return true
endfunction
function o17 takes nothing returns boolean
if(not(udg_N[401]==4))then
return false
endif
return true
endfunction
function oJ7 takes nothing returns boolean
if(not(udg_N[401]==3))then
return false
endif
return true
endfunction
function oK7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function oL7 takes nothing returns boolean
if(not(udg_N[401]==2))then
return false
endif
return true
endfunction
function oM7 takes nothing returns boolean
if(not(udg_N[401]==1))then
return false
endif
return true
endfunction
function oN7 takes nothing returns boolean
if((IsUnitDeadBJ(udg_A[408])==true))then
return true
endif
if((IsUnitPausedBJ(udg_A[408])==true))then
return true
endif
return false
endfunction
function oO7 takes nothing returns boolean
if(not oN7())then
return false
endif
return true
endfunction
function o07 takes nothing returns boolean
if(not(udg_N[401]==5))then
return false
endif
return true
endfunction
function oP7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function oQ7 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function oR7 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function oS7 takes nothing returns nothing
if(oI7())then
set udg_N[401]=(udg_N[401]+1)
else
call DoNothing()
endif
if(oM7())then
set udg_x9[4]=PG(udg_x9[124],200.00,(udg_H[400]+45.00))
call AddSpecialEffectLocBJ(udg_x9[4],"Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl")
set udg_P[401]=GetLastCreatedEffectBJ()
call RemoveLocation(udg_x9[4])
set udg_x9[4]=null
else
if(oL7())then
set udg_x9[4]=PG(udg_x9[124],200.00,(udg_H[400]+22.50))
call AddSpecialEffectLocBJ(udg_x9[4],"Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl")
set udg_P[402]=GetLastCreatedEffectBJ()
call CreateTextTagUnitBJ("\"Next dance..\"",udg_A[408],0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function oK7)))
call RemoveLocation(udg_x9[4])
set udg_x9[4]=null
else
if(oJ7())then
set udg_x9[4]=PG(udg_x9[124],200.00,udg_H[400])
call AddSpecialEffectLocBJ(udg_x9[4],"Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl")
set udg_P[403]=GetLastCreatedEffectBJ()
call RemoveLocation(udg_x9[4])
set udg_x9[4]=null
else
if(o17())then
set udg_x9[4]=PG(udg_x9[124],200.00,(udg_H[400]-22.50))
call AddSpecialEffectLocBJ(udg_x9[4],"Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl")
set udg_P[404]=GetLastCreatedEffectBJ()
call RemoveLocation(udg_x9[4])
set udg_x9[4]=null
else
if(ol7())then
set udg_x9[4]=PG(udg_x9[124],200.00,(udg_H[400]-45.00))
call AddSpecialEffectLocBJ(udg_x9[4],"Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl")
set udg_P[405]=GetLastCreatedEffectBJ()
call RemoveLocation(udg_x9[4])
set udg_x9[4]=null
else
call DoNothing()
endif
endif
endif
endif
endif
if(oO7())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitTimeScalePercent(udg_A[408],100.00)
set udg_A[408]=null
set udg_H[400]=0.00
set udg_N[401]=0
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
call RemoveLocation(udg_B[407])
set udg_B[407]=null
call RemoveLocation(udg_x9[124])
set udg_x9[124]=null
else
call DoNothing()
endif
if(o07())then
call IssueImmediateOrderBJ(udg_A[408],"stop")
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
if(oR7())then
call ForGroupBJ(d6(GetPlayableMapRect()),function oP7)
call ForForce(GetPlayersAll(),function oQ7)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function o57 takes nothing returns nothing
set udg_Pa=CreateTrigger()
call DisableTrigger(udg_Pa)
call TriggerRegisterTimerEventPeriodic(udg_Pa,0.50)
call TriggerAddCondition(udg_Pa,Condition(function oH7))
call TriggerAddAction(udg_Pa,function oS7)
endfunction
function oT7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678642))then
return false
endif
return true
endfunction
function oU7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function oV7 takes nothing returns boolean
if(not(udg_N[401]==5))then
return false
endif
return true
endfunction
function oW7 takes nothing returns nothing
call DisableTrigger(udg_Pa)
call SetUnitTimeScalePercent(udg_A[408],100.00)
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
call RemoveLocation(udg_B[407])
set udg_B[407]=null
call RemoveLocation(udg_x9[124])
set udg_x9[124]=null
if(oV7())then
call SetUnitTimeScalePercent(udg_A[408],100.00)
call SetUnitAnimation(udg_A[408],"spell")
set udg_B[408]=GetUnitLoc(udg_A[408])
call PlaySoundAtPointBJ(udg_qq,100,udg_B[408],0)
call CreateTextTagUnitBJ("\"Hakuren\"",udg_A[408],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function oU7)))
call TriggerExecute(udg_Ra)
else
call DoNothing()
endif
endfunction
function oX7 takes nothing returns nothing
set udg_Qa=CreateTrigger()
call TriggerAddCondition(udg_Qa,Condition(function oT7))
call TriggerAddAction(udg_Qa,function oW7)
endfunction
function oY7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function o27 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[408]))==true)
endfunction
function oZ7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function o_7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function p47 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function p77 takes nothing returns boolean
return GetBooleanAnd(o_7(),p47())
endfunction
function p87 takes nothing returns boolean
return GetBooleanAnd(oZ7(),p77())
endfunction
function p97 takes nothing returns boolean
return GetBooleanAnd(o27(),p87())
endfunction
function pd7 takes nothing returns boolean
return GetBooleanAnd(oY7(),p97())
endfunction
function pe7 takes nothing returns nothing
set udg_y9[3]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[408],udg_y9[3],(150.00+(150.00*I2R(GetUnitAbilityLevelSwapped(1093678642,udg_A[408])))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set udg_x9[5]=GetUnitLoc(udg_y9[3])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[408]),udg_x9[5],bj_UNIT_FACING)
set udg_A[409]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678657,udg_A[409])
call IssueTargetOrderBJ(udg_A[409],"thunderbolt",udg_y9[3])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[409])
set udg_A[409]=null
set udg_y9[3]=null
call RemoveLocation(udg_x9[5])
set udg_x9[5]=null
endfunction
function pf7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function pg7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[408]))==true)
endfunction
function ph7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function pi7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function pj7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function pk7 takes nothing returns boolean
return GetBooleanAnd(pi7(),pj7())
endfunction
function pm7 takes nothing returns boolean
return GetBooleanAnd(ph7(),pk7())
endfunction
function pn7 takes nothing returns boolean
return GetBooleanAnd(pg7(),pm7())
endfunction
function po7 takes nothing returns boolean
return GetBooleanAnd(pf7(),pn7())
endfunction
function pp7 takes nothing returns nothing
set udg_y9[3]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[408],udg_y9[3],(150.00+(150.00*I2R(GetUnitAbilityLevelSwapped(1093678642,udg_A[408])))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set udg_x9[5]=GetUnitLoc(udg_y9[3])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[408]),udg_x9[5],bj_UNIT_FACING)
set udg_A[409]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678657,udg_A[409])
call IssueTargetOrderBJ(udg_A[409],"thunderbolt",udg_y9[3])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[409])
set udg_A[409]=null
set udg_y9[3]=null
call RemoveLocation(udg_x9[5])
set udg_x9[5]=null
endfunction
function pq7 takes nothing returns boolean
if(not(udg_b[401]>=2))then
return false
endif
return true
endfunction
function pr7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function ps7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[408]))==true)
endfunction
function pt7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function pu7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function pv7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function pw7 takes nothing returns boolean
return GetBooleanAnd(pu7(),pv7())
endfunction
function px7 takes nothing returns boolean
return GetBooleanAnd(pt7(),pw7())
endfunction
function py7 takes nothing returns boolean
return GetBooleanAnd(ps7(),px7())
endfunction
function pz7 takes nothing returns boolean
return GetBooleanAnd(pr7(),py7())
endfunction
function pA7 takes nothing returns nothing
set udg_y9[3]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[408],udg_y9[3],(150.00+(150.00*I2R(GetUnitAbilityLevelSwapped(1093678642,udg_A[408])))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set udg_x9[5]=GetUnitLoc(udg_y9[3])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[408]),udg_x9[5],bj_UNIT_FACING)
set udg_A[409]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678657,udg_A[409])
call IssueTargetOrderBJ(udg_A[409],"thunderbolt",udg_y9[3])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[409])
set udg_A[409]=null
set udg_y9[3]=null
call RemoveLocation(udg_x9[5])
set udg_x9[5]=null
endfunction
function pa7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function pB7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[408]))==true)
endfunction
function pb7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function pC7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function pc7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function pD7 takes nothing returns boolean
return GetBooleanAnd(pC7(),pc7())
endfunction
function pE7 takes nothing returns boolean
return GetBooleanAnd(pb7(),pD7())
endfunction
function p37 takes nothing returns boolean
return GetBooleanAnd(pB7(),pE7())
endfunction
function pF7 takes nothing returns boolean
return GetBooleanAnd(pa7(),p37())
endfunction
function pG7 takes nothing returns nothing
set udg_y9[3]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[408],udg_y9[3],(150.00+(150.00*I2R(GetUnitAbilityLevelSwapped(1093678642,udg_A[408])))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set udg_x9[5]=GetUnitLoc(udg_y9[3])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[408]),udg_x9[5],bj_UNIT_FACING)
set udg_A[409]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678657,udg_A[409])
call IssueTargetOrderBJ(udg_A[409],"thunderbolt",udg_y9[3])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[409])
set udg_A[409]=null
set udg_y9[3]=null
call RemoveLocation(udg_x9[5])
set udg_x9[5]=null
endfunction
function p67 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function pH7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[408]))==true)
endfunction
function pI7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function pl7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function p17 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function pJ7 takes nothing returns boolean
return GetBooleanAnd(pl7(),p17())
endfunction
function pK7 takes nothing returns boolean
return GetBooleanAnd(pI7(),pJ7())
endfunction
function pL7 takes nothing returns boolean
return GetBooleanAnd(pH7(),pK7())
endfunction
function pM7 takes nothing returns boolean
return GetBooleanAnd(p67(),pL7())
endfunction
function pN7 takes nothing returns nothing
set udg_y9[3]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[408],udg_y9[3],(150.00+(150.00*I2R(GetUnitAbilityLevelSwapped(1093678642,udg_A[408])))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set udg_x9[5]=GetUnitLoc(udg_y9[3])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[408]),udg_x9[5],bj_UNIT_FACING)
set udg_A[409]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678657,udg_A[409])
call IssueTargetOrderBJ(udg_A[409],"thunderbolt",udg_y9[3])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[409])
set udg_A[409]=null
set udg_y9[3]=null
call RemoveLocation(udg_x9[5])
set udg_x9[5]=null
endfunction
function pO7 takes nothing returns nothing
set udg_b[401]=0
loop
exitwhen udg_b[401]>7
call TriggerSleepAction(0.01)
set udg_B[409]=PG(udg_B[408],(200.00*I2R(udg_b[401])),udg_H[400])
call AddSpecialEffectLocBJ(udg_B[409],"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(pq7())then
set udg_x9[5]=PG(udg_B[409],400.00,(udg_H[400]+90.00))
call AddSpecialEffectLocBJ(udg_x9[5],"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_x9[5])
set udg_x9[5]=null
set udg_x9[5]=PG(udg_B[409],400.00,(udg_H[400]-90.00))
call AddSpecialEffectLocBJ(udg_x9[5],"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_x9[5])
set udg_x9[5]=null
set udg_z9=e6(200.00,PG(udg_B[409],400.00,(udg_H[400]+90.00)),Condition(function pd7))
call ForGroupBJ(udg_z9,function pe7)
call DestroyGroup(udg_z9)
set udg_z9=null
set udg_z9=e6(200.00,PG(udg_B[409],400.00,(udg_H[400]-90.00)),Condition(function po7))
call ForGroupBJ(udg_z9,function pp7)
call DestroyGroup(udg_z9)
set udg_z9=null
else
call DoNothing()
endif
set udg_x9[5]=PG(udg_B[409],200.00,(udg_H[400]+90.00))
call AddSpecialEffectLocBJ(udg_x9[5],"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_x9[5])
set udg_x9[5]=null
set udg_x9[5]=PG(udg_B[409],200.00,(udg_H[400]-90.00))
call AddSpecialEffectLocBJ(udg_x9[5],"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_x9[5])
set udg_x9[5]=null
set udg_z9=e6(200.00,udg_B[409],Condition(function pz7))
call ForGroupBJ(udg_z9,function pA7)
call DestroyGroup(udg_z9)
set udg_z9=null
set udg_z9=e6(200.00,PG(udg_B[409],200.00,(udg_H[400]+90.00)),Condition(function pF7))
call ForGroupBJ(udg_z9,function pG7)
call DestroyGroup(udg_z9)
set udg_z9=null
set udg_z9=e6(200.00,PG(udg_B[409],200.00,(udg_H[400]-90.00)),Condition(function pM7))
call ForGroupBJ(udg_z9,function pN7)
call DestroyGroup(udg_z9)
set udg_z9=null
call RemoveLocation(udg_B[409])
set udg_B[409]=null
set udg_b[401]=udg_b[401]+1
endloop
set udg_A[408]=null
set udg_A[409]=null
set udg_H[400]=0.00
set udg_N[401]=0
call RemoveLocation(udg_B[408])
set udg_B[408]=null
call RemoveLocation(udg_B[409])
set udg_B[409]=null
endfunction
function p07 takes nothing returns nothing
set udg_Ra=CreateTrigger()
call TriggerAddAction(udg_Ra,function pO7)
endfunction
function pP7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678644))then
return false
endif
return true
endfunction
function pQ7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function pR7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function pS7 takes nothing returns boolean
return(udg_Kg==true)
endfunction
function p57 takes nothing returns boolean
return(UnitHasBuffBJ(udg_Pg,1110454348)==true)
endfunction
function pT7 takes nothing returns boolean
if(not(udg_Pg!=null))then
return false
endif
return true
endfunction
function pU7 takes nothing returns nothing
set udg_Pg=GetTriggerUnit()
call CreateTextTagUnitBJ("\"Shirafune\"",udg_Pg,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function pQ7)))
set udg_Qg=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869898101,GetOwningPlayer(udg_Pg),udg_Qg,bj_UNIT_FACING)
call RemoveLocation(udg_Qg)
set udg_Qg=null
set udg_Km[5]=GetUnitLoc(udg_Pg)
call PlaySoundAtPointBJ(udg_Hr,100,udg_Km[5],0)
call RemoveLocation(udg_Km[5])
set udg_Km[5]=null
call TriggerSleepAction(30.00)
if(pT7())then
set udg_Rg=k6(GetOwningPlayer(udg_Pg),1869898101)
call ForGroupBJ(udg_Rg,function pR7)
call DestroyGroup(udg_Rg)
set udg_Rg=null
if(pS7())then
set udg_Kg=false
else
call DoNothing()
endif
call DestroyEffectBJ(udg_Mg)
set udg_Jg=null
set udg_Lg=null
set udg_Ng=0.00
if(p57())then
call UnitRemoveBuffBJ(1110454348,udg_Pg)
else
call DoNothing()
endif
set udg_Pg=null
else
call DoNothing()
endif
endfunction
function pV7 takes nothing returns nothing
set udg_Sa=CreateTrigger()
call TriggerAddCondition(udg_Sa,Condition(function pP7))
call TriggerAddAction(udg_Sa,function pU7)
endfunction
function pW7 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Pg))then
return false
endif
return true
endfunction
function pX7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function pY7 takes nothing returns boolean
return(udg_Kg==true)
endfunction
function p27 takes nothing returns nothing
set udg_Rg=k6(GetOwningPlayer(udg_Pg),1869898101)
call ForGroupBJ(udg_Rg,function pX7)
call DestroyGroup(udg_Rg)
set udg_Rg=null
if(pY7())then
set udg_Kg=false
else
call DoNothing()
endif
call DestroyEffectBJ(udg_Mg)
set udg_Jg=null
set udg_Lg=null
set udg_Ng=0.00
set udg_Pg=null
endfunction
function pZ7 takes nothing returns nothing
set udg_Ta=CreateTrigger()
call TriggerAddCondition(udg_Ta,Condition(function pW7))
call TriggerAddAction(udg_Ta,function p27)
endfunction
function p_7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678659))then
return false
endif
return true
endfunction
function q47 takes nothing returns nothing
set udg_Jg=GetTriggerUnit()
set udg_Lg=GetSpellTargetUnit()
set udg_Kg=true
call AddSpecialEffectTargetUnitBJ("chest",udg_Lg,"Abilities\\Spells\\Items\\AIso\\BIsvTarget.mdl")
set udg_Mg=GetLastCreatedEffectBJ()
set udg_Ng=((3.75+(0.25*I2R(GetUnitAbilityLevelSwapped(1093678659,udg_Jg))))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Jg,true)))
set udg_Km[6]=GetUnitLoc(udg_Jg)
call PlaySoundAtPointBJ(udg_ms,100,udg_Km[6],0)
call RemoveLocation(udg_Km[6])
set udg_Km[6]=null
call TriggerSleepAction(15.00)
call DestroyEffectBJ(udg_Mg)
set udg_Jg=null
set udg_Jg=null
set udg_Kg=false
set udg_Ng=0.00
endfunction
function q77 takes nothing returns nothing
set udg_Ua=CreateTrigger()
call TriggerAddCondition(udg_Ua,Condition(function p_7))
call TriggerAddAction(udg_Ua,function q47)
endfunction
function q87 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),1110454348)==true))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(MG(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
if(not(MG(GetAttackedUnitBJ(),UNIT_TYPE_MECHANICAL)==false))then
return false
endif
if(not(MG(GetAttackedUnitBJ(),UNIT_TYPE_MAGIC_IMMUNE)==false))then
return false
endif
if(not(udg_Kg==true))then
return false
endif
if(not(GetAttackedUnitBJ()==udg_Lg))then
return false
endif
return true
endfunction
function q97 takes nothing returns boolean
if(not q87())then
return false
endif
return true
endfunction
function qd7 takes nothing returns boolean
if(not(udg_Og==10))then
return false
endif
return true
endfunction
function qe7 takes nothing returns nothing
set udg_Og=(udg_Og+1)
set udg_A9[1]=GetAttacker()
set udg_A9[2]=GetAttackedUnitBJ()
set udg_x9[6]=GetUnitLoc(udg_A9[2])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A9[1]),udg_x9[6],bj_UNIT_FACING)
set udg_A[407]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678645,udg_A[407])
call SetUnitAbilityLevelSwapped(1093678645,udg_A[407],GetUnitAbilityLevelSwapped(1093678659,udg_A9[1]))
call IssueTargetOrderBJ(udg_A[407],"frostnova",udg_A9[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[407])
set udg_A[407]=null
call UnitDamageTargetBJ(udg_A9[1],udg_A9[2],udg_Ng,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
set udg_A9[1]=null
set udg_A9[2]=null
call RemoveLocation(udg_x9[6])
set udg_x9[6]=null
if(qd7())then
call DestroyEffectBJ(udg_Mg)
set udg_Jg=null
set udg_Lg=null
set udg_Kg=false
set udg_Ng=0.00
else
call DoNothing()
endif
endfunction
function qf7 takes nothing returns nothing
set udg_Va=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Va,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_Va,Condition(function q97))
call TriggerAddAction(udg_Va,function qe7)
endfunction
function qg7 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Lg))then
return false
endif
return true
endfunction
function qh7 takes nothing returns boolean
return(udg_Kg==true)
endfunction
function qi7 takes nothing returns nothing
if(qh7())then
set udg_Kg=false
else
call DoNothing()
endif
call DestroyEffectBJ(udg_Mg)
set udg_Jg=null
set udg_Lg=null
set udg_Ng=0.00
set udg_Pg=null
endfunction
function qj7 takes nothing returns nothing
set udg_Wa=CreateTrigger()
call TriggerAddCondition(udg_Wa,Condition(function qg7))
call TriggerAddAction(udg_Wa,function qi7)
endfunction
function qk7 takes nothing returns boolean
if(not(udg_kj==null))then
return false
endif
return true
endfunction
function qm7 takes nothing returns nothing
if(qk7())then
call DestroyTrigger(udg_Ya)
call DestroyTrigger(udg_Za)
call DestroyTrigger(udg_dB)
call DestroyTrigger(udg_eB)
call DestroyTrigger(udg_fB)
call DestroyTrigger(udg_gB)
call DestroyTrigger(udg_hB)
else
call TriggerRegisterUnitEvent(udg_Ya,udg_kj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Za,udg_kj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_dB,udg_kj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_eB,udg_kj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_fB,udg_kj,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function qn7 takes nothing returns nothing
set udg_Xa=CreateTrigger()
call TriggerAddAction(udg_Xa,function qm7)
endfunction
function qo7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677906))then
return false
endif
return true
endfunction
function qp7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function qq7 takes nothing returns nothing
set udg_A[83]=GetTriggerUnit()
set udg_a9[1]=PG(GetUnitLoc(udg_A[83]),50.00,AngleBetweenPoints(GetUnitLoc(udg_A[83]),GetSpellTargetLoc()))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[83]),udg_a9[1],AngleBetweenPoints(GetUnitLoc(udg_A[83]),GetSpellTargetLoc()))
set udg_B9[1]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_B9[1],(20.00+(40.00*I2R(GetUnitAbilityLevelSwapped(1093677906,udg_A[83])))),(20.00+(40.00*I2R(GetUnitAbilityLevelSwapped(1093677906,udg_A[83])))),(20.00+(40.00*I2R(GetUnitAbilityLevelSwapped(1093677906,udg_A[83])))))
call UnitAddAbilityBJ(1093677901,udg_B9[1])
call SetUnitAbilityLevelSwapped(1093677901,udg_B9[1],GetUnitAbilityLevelSwapped(1093677906,udg_A[83]))
call RemoveLocation(udg_a9[1])
set udg_a9[1]=null
set udg_a9[1]=PG(GetUnitLoc(udg_A[83]),250.00,AngleBetweenPoints(GetUnitLoc(udg_A[83]),GetSpellTargetLoc()))
call IssuePointOrderLocBJ(udg_B9[1],"shockwave",udg_a9[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_B9[1])
set udg_B9[1]=null
call RemoveLocation(udg_a9[1])
set udg_a9[1]=null
call CreateTextTagUnitBJ("El Directo",udg_A[83],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function qp7)))
set udg_Km[7]=GetUnitLoc(udg_A[83])
call PlaySoundAtPointBJ(udg_Np,100,udg_Km[7],0)
call RemoveLocation(udg_Km[7])
set udg_Km[7]=null
set udg_A[83]=null
endfunction
function qr7 takes nothing returns nothing
set udg_Ya=CreateTrigger()
call TriggerAddCondition(udg_Ya,Condition(function qo7))
call TriggerAddAction(udg_Ya,function qq7)
endfunction
function qs7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679178))then
return false
endif
return true
endfunction
function qt7 takes nothing returns nothing
set udg_y9[6]=GetEnumUnit()
call RemoveUnit(udg_y9[6])
set udg_y9[6]=null
endfunction
function qu7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[4])==1211117620))then
return false
endif
return true
endfunction
function qv7 takes nothing returns boolean
return(GetUnitTypeId(udg_s9[4])==1211117620)
endfunction
function qw7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function qx7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[4])==1211117620))then
return false
endif
return true
endfunction
function qy7 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[4]))]==true)
endfunction
function qz7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[4]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,udg_s9[4])==0))then
return false
endif
return true
endfunction
function qA7 takes nothing returns boolean
if(not qz7())then
return false
endif
return true
endfunction
function qa7 takes nothing returns nothing
set udg_s9[4]=GetTriggerUnit()
if(qu7())then
set udg_a9[3]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869836407,GetOwningPlayer(udg_s9[4]),udg_a9[3],bj_UNIT_FACING)
call RemoveLocation(udg_a9[3])
set udg_a9[3]=null
set udg_Km[8]=GetUnitLoc(udg_s9[4])
call PlaySoundAtPointBJ(udg_es,100,udg_Km[8],0)
call RemoveLocation(udg_Km[8])
set udg_Km[8]=null
else
set udg_C9=k6(GetOwningPlayer(udg_s9[4]),1869836407)
call ForGroupBJ(udg_C9,function qt7)
call DestroyGroup(udg_C9)
set udg_C9=null
endif
if(qv7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[4]))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[4]))]=false
endif
if(qx7())then
call CreateTextTagUnitBJ("Brazo Izquierdo del Diablo",udg_s9[4],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function qw7)))
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[4],"Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[4],"Abilities\\Spells\\Undead\\OrbOfDeath\\AnnihilationMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[4],"Abilities\\Spells\\NightElf\\MoonWell\\MoonWellCasterArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[4],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
if(qA7())then
if(qy7())then
call UnitAddAbilityBJ(1093677624,udg_s9[4])
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_s9[4]=null
endfunction
function qB7 takes nothing returns nothing
set udg_Za=CreateTrigger()
call TriggerAddCondition(udg_Za,Condition(function qs7))
call TriggerAddAction(udg_Za,function qa7)
endfunction
function qb7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677908))then
return false
endif
return true
endfunction
function qC7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function qc7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[84]))]==true))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[84],1112757326)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[84],1112560453)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[84],1110454360)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[84],1110454834)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[84],1110454835)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[84],1110454321)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[84],1112500344)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[84],1112896364)==false))then
return false
endif
if(not(IsUnitPausedBJ(udg_A[84])==false))then
return false
endif
if(not(IsUnitDeadBJ(udg_A[84])==false))then
return false
endif
if(not(udg_A[84]!=null))then
return false
endif
return true
endfunction
function qD7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function qE7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function q37 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[84]))==true)
endfunction
function qF7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function qG7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function q67 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function qH7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function qI7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function ql7 takes nothing returns boolean
return GetBooleanAnd(qH7(),qI7())
endfunction
function q17 takes nothing returns boolean
return GetBooleanAnd(q67(),ql7())
endfunction
function qJ7 takes nothing returns boolean
return GetBooleanAnd(qG7(),q17())
endfunction
function qK7 takes nothing returns boolean
return GetBooleanAnd(qF7(),qJ7())
endfunction
function qL7 takes nothing returns boolean
return GetBooleanAnd(q37(),qK7())
endfunction
function qM7 takes nothing returns boolean
return GetBooleanAnd(qE7(),qL7())
endfunction
function qN7 takes nothing returns nothing
set udg_y9[5]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[84],udg_y9[5],(4.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[84],true))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
set udg_y9[5]=null
endfunction
function qO7 takes nothing returns boolean
if(not qc7())then
return false
endif
return true
endfunction
function q07 takes nothing returns nothing
set udg_A[84]=GetTriggerUnit()
set udg_B[45]=GetUnitLoc(udg_A[84])
set udg_H[13]=0.00
set udg_b[26]=1
loop
exitwhen udg_b[26]>8
set udg_H[13]=(udg_H[13]+45.00)
set udg_a9[2]=PG(udg_B[45],300.00,udg_H[13])
call AddSpecialEffectLocBJ(udg_a9[2],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_a9[2])
set udg_a9[2]=null
set udg_a9[2]=PG(udg_B[45],500.00,udg_H[13])
call AddSpecialEffectLocBJ(udg_a9[2],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_a9[2])
set udg_a9[2]=null
set udg_a9[2]=PG(udg_B[45],700.00,udg_H[13])
call AddSpecialEffectLocBJ(udg_a9[2],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_a9[2])
set udg_a9[2]=null
set udg_b[26]=udg_b[26]+1
endloop
call UG(800.00,udg_B[45],function qC7)
call RemoveLocation(udg_B[45])
set udg_B[45]=null
set udg_Km[9]=GetUnitLoc(udg_A[84])
call PlaySoundAtPointBJ(udg_Mp,100,udg_Km[9],0)
call RemoveLocation(udg_Km[9])
set udg_Km[9]=null
call TriggerSleepAction(0.27)
if(qO7())then
set udg_B[45]=GetUnitLoc(udg_A[84])
set udg_H[13]=0.00
set udg_b[26]=1
loop
exitwhen udg_b[26]>8
set udg_H[13]=(udg_H[13]+45.00)
set udg_a9[2]=PG(udg_B[45],300.00,udg_H[13])
call AddSpecialEffectLocBJ(udg_a9[2],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_a9[2])
set udg_a9[2]=null
set udg_a9[2]=PG(udg_B[45],500.00,udg_H[13])
call AddSpecialEffectLocBJ(udg_a9[2],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_a9[2])
set udg_a9[2]=null
set udg_a9[2]=PG(udg_B[45],700.00,udg_H[13])
call AddSpecialEffectLocBJ(udg_a9[2],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_a9[2])
set udg_a9[2]=null
set udg_b[26]=udg_b[26]+1
endloop
call UG(800.00,udg_B[45],function qD7)
set udg_b9=e6(800.00,udg_B[45],Condition(function qM7))
call ForGroupBJ(udg_b9,function qN7)
call IssueImmediateOrderBJ(udg_A[84],"stop")
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[84]),udg_B[45],bj_UNIT_FACING)
set udg_B9[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677909,udg_B9[2])
call SetUnitAbilityLevelSwapped(1093677909,udg_B9[2],GetUnitAbilityLevelSwapped(1093677908,udg_A[84]))
call IssueImmediateOrderBJ(udg_B9[2],"stomp")
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_B9[2])
set udg_B9[2]=null
call RemoveLocation(udg_B[45])
set udg_B[45]=null
call IssueImmediateOrderBJ(udg_A[84],"stop")
call SetUnitAnimation(udg_A[84],"spell")
call SelectUnitRemoveForPlayer(udg_A[84],GetOwningPlayer(udg_A[84]))
call DestroyGroup(udg_b9)
set udg_b9=null
else
call DoNothing()
endif
call TriggerSleepAction(0.15)
call SelectUnitForPlayerSingle(udg_A[84],GetOwningPlayer(udg_A[84]))
set udg_A[84]=null
set udg_H[13]=0.00
endfunction
function qP7 takes nothing returns nothing
set udg_dB=CreateTrigger()
call TriggerAddCondition(udg_dB,Condition(function qb7))
call TriggerAddAction(udg_dB,function q07)
endfunction
function qQ7 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
if((udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false))then
return true
endif
return false
endfunction
function qR7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678131))then
return false
endif
if(not qQ7())then
return false
endif
return true
endfunction
function qS7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function q57 takes nothing returns nothing
set udg_eB=CreateTrigger()
call TriggerAddCondition(udg_eB,Condition(function qR7))
call TriggerAddAction(udg_eB,function qS7)
endfunction
function qT7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678131))then
return false
endif
return true
endfunction
function qU7 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_a[16],1227894839)==true))then
return false
endif
return true
endfunction
function qV7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function qW7 takes nothing returns boolean
if(not(udg_a[16]!=null))then
return false
endif
return true
endfunction
function qX7 takes nothing returns nothing
set udg_A[85]=GetTriggerUnit()
set udg_a[16]=GetSpellTargetUnit()
set udg_B[46]=GetUnitLoc(udg_A[85])
set udg_B[47]=GetUnitLoc(udg_a[16])
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[16]))]=true
call PauseUnitBJ(true,udg_A[85])
call PauseUnitBJ(true,udg_a[16])
call SetUnitInvulnerable(udg_A[85],true)
call SetUnitAnimation(udg_A[85],"attack")
call SetUnitTimeScalePercent(udg_A[85],40.00)
set udg_Km[10]=GetUnitLoc(udg_A[85])
call PlaySoundAtPointBJ(udg_Vq,100,udg_Km[10],0)
call RemoveLocation(udg_Km[10])
set udg_Km[10]=null
call TriggerSleepAction(0.01)
call AddSpecialEffectTargetUnitBJ("hand right",udg_A[85],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
set udg_P[13]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand left",udg_A[85],"Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl")
set udg_P[14]=GetLastCreatedEffectBJ()
set udg_a9[4]=GetUnitLoc(udg_a[16])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[85]),udg_a9[4],bj_UNIT_FACING)
set udg_B9[3]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_B9[3])
call IssueTargetOrderBJ(udg_B9[3],"thunderbolt",udg_a[16])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_B9[3])
set udg_B9[3]=null
if(qU7())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[85]),udg_a9[4],bj_UNIT_FACING)
set udg_B9[3]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_B9[3])
call IssueTargetOrderBJ(udg_B9[3],"thunderbolt",udg_a[16])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_B9[3])
set udg_B9[3]=null
else
call DoNothing()
endif
call RemoveLocation(udg_a9[4])
set udg_a9[4]=null
set udg_a9[4]=PG(GetUnitLoc(udg_a[16]),-75.00,AngleBetweenPoints(udg_B[46],udg_B[47]))
set udg_a9[5]=GetUnitLoc(udg_a[16])
call SetUnitPositionLocFacingLocBJ(udg_A[85],udg_a9[4],udg_a9[5])
call RemoveLocation(udg_a9[4])
set udg_a9[4]=null
call RemoveLocation(udg_a9[5])
set udg_a9[5]=null
call SetUnitPathing(udg_A[85],false)
call SetUnitPathing(udg_a[16],false)
call CreateTextTagUnitBJ("LA MUERTE",udg_A[85],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function qV7)))
call EnableTrigger(udg_gB)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_gB)
if(qW7())then
call TriggerExecute(udg_hB)
else
call DoNothing()
endif
endfunction
function qY7 takes nothing returns nothing
set udg_fB=CreateTrigger()
call TriggerAddCondition(udg_fB,Condition(function qT7))
call TriggerAddAction(udg_fB,function qX7)
endfunction
function q27 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[16]))]==true))then
return false
endif
if(not(udg_a[16]!=null))then
return false
endif
return true
endfunction
function qZ7 takes nothing returns boolean
if(not q27())then
return false
endif
return true
endfunction
function q_7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_a9[6])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_a9[6])==true))then
return true
endif
return false
endfunction
function r47 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function r77 takes nothing returns boolean
if(not(udg_a[16]!=null))then
return false
endif
return true
endfunction
function r87 takes nothing returns boolean
if(not q_7())then
return false
endif
return true
endfunction
function r97 takes nothing returns boolean
if(not(udg_a[16]!=null))then
return false
endif
return true
endfunction
function rd7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function re7 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function rf7 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function rg7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_a[16])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_a[16])==true))then
return true
endif
return false
endfunction
function rh7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_a[16])==true))then
return false
endif
if(not rg7())then
return false
endif
return true
endfunction
function ri7 takes nothing returns nothing
if(rh7())then
set udg_a9[6]=PG(GetUnitLoc(udg_a[16]),35.00,AngleBetweenPoints(udg_B[46],udg_B[47]))
if(r87())then
call SetUnitPositionLoc(udg_a[16],udg_a9[6])
call RemoveLocation(udg_a9[6])
set udg_a9[6]=null
set udg_a9[6]=PG(GetUnitLoc(udg_A[85]),35.00,AngleBetweenPoints(udg_B[46],udg_B[47]))
call SetUnitPositionLoc(udg_A[85],udg_a9[6])
call RemoveLocation(udg_a9[6])
set udg_a9[6]=null
set udg_a9[6]=GetUnitLoc(udg_a[16])
call AddSpecialEffectLocBJ(udg_a9[6],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_A[85],udg_a[16],(0.30*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[85],true))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call UG(300.00,udg_a9[6],function r47)
call RemoveLocation(udg_a9[6])
set udg_a9[6]=null
else
call RemoveLocation(udg_a9[6])
set udg_a9[6]=null
call DisableTrigger(GetTriggeringTrigger())
if(r77())then
call TriggerExecute(udg_hB)
else
call DoNothing()
endif
endif
if(rf7())then
call ForGroupBJ(d6(GetPlayableMapRect()),function rd7)
call ForForce(GetPlayersAll(),function re7)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call DisableTrigger(GetTriggeringTrigger())
if(r97())then
call TriggerExecute(udg_hB)
else
call DoNothing()
endif
endif
endfunction
function rj7 takes nothing returns nothing
set udg_gB=CreateTrigger()
call DisableTrigger(udg_gB)
call TriggerRegisterTimerEventPeriodic(udg_gB,0.03)
call TriggerAddCondition(udg_gB,Condition(function qZ7))
call TriggerAddAction(udg_gB,function ri7)
endfunction
function rk7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[85]!=udg_x))then
return false
endif
if(not(udg_A[85]!=udg_y))then
return false
endif
return true
endfunction
function rm7 takes nothing returns boolean
if(not rk7())then
return false
endif
return true
endfunction
function rn7 takes nothing returns nothing
set udg_a9[7]=GetUnitLoc(udg_a[16])
call AddSpecialEffectLocBJ(udg_a9[7],"war3mapImported\\explosion.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_a9[7],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_a9[7],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_a9[7],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_A[85],udg_a[16],(6.00*(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[85],true))*I2R(GetUnitAbilityLevelSwapped(1093678131,udg_A[85])))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call SetTerrainTypeBJ(udg_a9[7],1499755634,-1,4,0)
call PauseUnitBJ(false,udg_A[85])
call PauseUnitBJ(false,udg_a[16])
call SetUnitInvulnerable(udg_A[85],false)
call SetUnitInvulnerable(udg_a[85],false)
call SetUnitPathing(udg_A[85],true)
call SetUnitPathing(udg_a[16],true)
call DestroyEffectBJ(udg_P[13])
call DestroyEffectBJ(udg_P[14])
call SetUnitTimeScalePercent(udg_A[85],100)
call ResetUnitAnimation(udg_A[85])
call SetUnitAnimation(udg_a[85],"stand hit critical")
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[16]))]=false
if(rm7())then
call PauseUnitBJ(true,udg_A[85])
else
call DoNothing()
endif
call SelectUnitForPlayerSingle(udg_A[85],GetOwningPlayer(udg_A[85]))
set udg_A[85]=null
set udg_a[16]=null
call RemoveLocation(udg_B[46])
set udg_B[46]=null
call RemoveLocation(udg_B[47])
set udg_B[47]=null
call RemoveLocation(udg_a9[7])
set udg_a9[7]=null
endfunction
function ro7 takes nothing returns nothing
set udg_hB=CreateTrigger()
call TriggerAddAction(udg_hB,function rn7)
endfunction
function rp7 takes nothing returns boolean
if(not(udg_mj==null))then
return false
endif
return true
endfunction
function rq7 takes nothing returns nothing
if(rp7())then
call DestroyTrigger(udg_jB)
call DestroyTrigger(udg_kB)
call DestroyTrigger(udg_mB)
call DestroyTrigger(udg_nB)
call DestroyTrigger(udg_oB)
call DestroyTrigger(udg_pB)
call DestroyTrigger(udg_qB)
call DestroyTrigger(udg_rB)
else
call TriggerRegisterUnitEvent(udg_jB,udg_mj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_kB,udg_mj,EVENT_UNIT_HERO_SKILL)
call TriggerRegisterUnitEvent(udg_mB,udg_mj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_oB,udg_mj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_pB,udg_mj,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function rr7 takes nothing returns nothing
set udg_iB=CreateTrigger()
call TriggerAddAction(udg_iB,function rq7)
endfunction
function rs7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678923))then
return false
endif
return true
endfunction
function rt7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function ru7 takes nothing returns nothing
set udg_A[422]=GetTriggerUnit()
set udg_c9[1]=GetUnitLoc(udg_A[422])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[422]),udg_c9[1],AngleBetweenPoints(GetUnitLoc(udg_A[422]),GetSpellTargetLoc()))
set udg_D9[1]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_D9[1],300.00,300.00,300.00)
call UnitAddAbilityBJ(1093678922,udg_D9[1])
call SetUnitAbilityLevelSwapped(1093678922,udg_D9[1],GetUnitAbilityLevelSwapped(1093678923,udg_A[422]))
call PlaySoundAtPointBJ(udg_Tq,100,udg_c9[1],0)
call RemoveLocation(udg_c9[1])
set udg_c9[1]=null
set udg_c9[1]=PG(GetUnitLoc(udg_A[422]),256,AngleBetweenPoints(GetUnitLoc(udg_A[422]),GetSpellTargetLoc()))
call IssuePointOrderLocBJ(udg_D9[1],"carrionswarm",udg_c9[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_D9[1])
set udg_D9[1]=null
call RemoveLocation(udg_c9[1])
set udg_c9[1]=null
call CreateTextTagUnitBJ("Koten Zanshun",udg_A[422],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function rt7)))
set udg_A[422]=null
endfunction
function rv7 takes nothing returns nothing
set udg_jB=CreateTrigger()
call TriggerAddCondition(udg_jB,Condition(function rs7))
call TriggerAddAction(udg_jB,function ru7)
endfunction
function rw7 takes nothing returns boolean
if(not(GetLearnedSkillBJ()==1093678643))then
return false
endif
return true
endfunction
function rx7 takes nothing returns nothing
set udg_Hh=GetLearningUnit()
set udg_ah=GetLearningUnit()
call GroupAddUnitSimple(udg_ah,udg_Eh)
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_nB)
call TriggerRegisterUnitEvent(udg_nB,udg_ah,EVENT_UNIT_DAMAGED)
endfunction
function ry7 takes nothing returns nothing
set udg_kB=CreateTrigger()
call TriggerAddCondition(udg_kB,Condition(function rw7))
call TriggerAddAction(udg_kB,function rx7)
endfunction
function rz7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678643))then
return false
endif
return true
endfunction
function rA7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function ra7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function rB7 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_A[424]))==true)
endfunction
function rb7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function rC7 takes nothing returns boolean
return(GetFilterUnit()!=udg_a[1006])
endfunction
function rc7 takes nothing returns boolean
return GetBooleanAnd(rb7(),rC7())
endfunction
function rD7 takes nothing returns boolean
return GetBooleanAnd(rB7(),rc7())
endfunction
function rE7 takes nothing returns boolean
return GetBooleanAnd(ra7(),rD7())
endfunction
function r37 takes nothing returns boolean
return GetBooleanAnd(rA7(),rE7())
endfunction
function rF7 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_Dh)==false)
endfunction
function rG7 takes nothing returns nothing
set udg_ah=GetEnumUnit()
endfunction
function Trig_Santen_Kesshun_Func004Func001Func002Func001002 takes nothing returns nothing
set udg_zg=GetEnumUnit()
endfunction
function r67 takes nothing returns boolean
if(not(udg_ah==null))then
return false
endif
return true
endfunction
function rH7 takes nothing returns boolean
if(not(IsUnitInGroup(udg_ah,udg_Eh)==false))then
return false
endif
return true
endfunction
function rI7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function rl7 takes nothing returns boolean
if(not(udg_ah!=null))then
return false
endif
return true
endfunction
function r17 takes nothing returns boolean
return(UnitHasBuffBJ(udg_ah,1110454849)==true)
endfunction
function rJ7 takes nothing returns boolean
if(not(udg_ah!=null))then
return false
endif
return true
endfunction
function rK7 takes nothing returns nothing
set udg_A[424]=GetTriggerUnit()
set udg_ah=null
set udg_ch=GetSpellTargetLoc()
set udg_Fh=1
loop
exitwhen udg_Fh>32
if(r67())then
set udg_Dh=u6(1,e6((5.00*I2R(udg_Fh)),udg_ch,Condition(function r37)))
if(rF7())then
call ForGroupBJ(udg_Dh,function rG7)
else
call DoNothing()
endif
call DestroyGroup(udg_Dh)
set udg_Dh=null
else
call DoNothing()
endif
set udg_Fh=udg_Fh+1
endloop
if(rl7())then
if(rH7())then
call GroupAddUnitSimple(udg_ah,udg_Eh)
call DisableTrigger(udg_nB)
call EnableTrigger(udg_nB)
call TriggerRegisterUnitEvent(udg_nB,udg_ah,EVENT_UNIT_DAMAGED)
else
call DoNothing()
endif
set udg_c9[2]=GetUnitLoc(udg_ah)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_ah),udg_c9[2],bj_UNIT_FACING)
set udg_D9[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677388,udg_D9[2])
call UnitApplyTimedLifeBJ(3.00,1112820806,udg_D9[2])
call PlaySoundAtPointBJ(udg_zr,100,udg_c9[2],0)
call RemoveLocation(udg_c9[2])
set udg_c9[2]=null
call CreateTextTagUnitBJ("Santen Kesshun",udg_A[424],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function rI7)))
set udg_A[424]=null
set udg_D9[2]=null
else
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_A[424])),4.00," |cffffcc00No valid target found|r")
endif
call RemoveLocation(udg_ch)
set udg_ch=null
call TriggerSleepAction(4.00)
if(rJ7())then
if(r17())then
call UnitRemoveBuffBJ(1110454849,udg_ah)
else
call DoNothing()
endif
set udg_ah=null
else
call DoNothing()
endif
endfunction
function rL7 takes nothing returns nothing
set udg_mB=CreateTrigger()
call TriggerAddCondition(udg_mB,Condition(function rz7))
call TriggerAddAction(udg_mB,function rK7)
endfunction
function rM7 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1110454849)==true))then
return false
endif
if(not(GetEventDamage()<((10.00+(20.00*I2R(GetUnitAbilityLevelSwapped(1093678643,udg_Hh))))+I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Hh,true)))))then
return false
endif
return true
endfunction
function rN7 takes nothing returns boolean
if(not rM7())then
return false
endif
return true
endfunction
function rO7 takes nothing returns nothing
call SetUnitLifeBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+GetEventDamage()))
endfunction
function r07 takes nothing returns nothing
set udg_nB=CreateTrigger()
call DisableTrigger(udg_nB)
call TriggerAddCondition(udg_nB,Condition(function rN7))
call TriggerAddAction(udg_nB,function rO7)
endfunction
function rP7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681488))then
return false
endif
return true
endfunction
function rQ7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function rR7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function rS7 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_A[423]))==true)
endfunction
function r57 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function rT7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function rU7 takes nothing returns boolean
return(GetFilterUnit()!=udg_a[1006])
endfunction
function rV7 takes nothing returns boolean
return GetBooleanAnd(rT7(),rU7())
endfunction
function rW7 takes nothing returns boolean
return GetBooleanAnd(r57(),rV7())
endfunction
function rX7 takes nothing returns boolean
return GetBooleanAnd(rS7(),rW7())
endfunction
function rY7 takes nothing returns boolean
return GetBooleanAnd(rR7(),rX7())
endfunction
function r27 takes nothing returns boolean
return GetBooleanAnd(rQ7(),rY7())
endfunction
function rZ7 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_Ch)==false)
endfunction
function r_7 takes nothing returns nothing
set udg_Bh=GetEnumUnit()
endfunction
function Trig_Souten_Kishun_Func004Func001Func002Func001002 takes nothing returns nothing
set udg_zg=GetEnumUnit()
endfunction
function s47 takes nothing returns boolean
if(not(udg_Bh==null))then
return false
endif
return true
endfunction
function s77 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function s87 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[423])==false))then
return false
endif
if(not(IsUnitDeadBJ(udg_Bh)==false))then
return false
endif
if(not(udg_A[423]!=null))then
return false
endif
return true
endfunction
function s97 takes nothing returns boolean
if(not s87())then
return false
endif
return true
endfunction
function sd7 takes nothing returns boolean
if(not(udg_Bh!=null))then
return false
endif
return true
endfunction
function se7 takes nothing returns boolean
if(not(udg_Bh!=null))then
return false
endif
return true
endfunction
function sf7 takes nothing returns nothing
set udg_A[423]=GetTriggerUnit()
set udg_Bh=null
set udg_bh=GetSpellTargetLoc()
set udg_Fh=1
loop
exitwhen udg_Fh>32
if(s47())then
set udg_Ch=u6(1,e6((5.00*I2R(udg_Fh)),udg_bh,Condition(function r27)))
if(rZ7())then
call ForGroupBJ(udg_Ch,function r_7)
else
call DoNothing()
endif
call DestroyGroup(udg_Ch)
set udg_Ch=null
else
call DoNothing()
endif
set udg_Fh=udg_Fh+1
endloop
if(sd7())then
call AddSpecialEffectTargetUnitBJ("chest",udg_Bh,"Abilities\\Spells\\Items\\StaffOfSanctuary\\Staff_Sanctuary_Target.mdl")
set udg_P[410]=GetLastCreatedEffectBJ()
call CreateTextTagUnitBJ("Soten Kishun",udg_A[423],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function s77)))
set udg_Sg[10]=GetUnitLoc(udg_A[423])
call PlaySoundAtPointBJ(udg_Jr,100,udg_Sg[10],0)
call RemoveLocation(udg_Sg[10])
set udg_Sg[10]=null
set udg_b[403]=1
loop
exitwhen udg_b[403]>7
if(s97())then
call SetUnitLifeBJ(udg_Bh,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Bh)+(1.50*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_A[423],true)))))
call SetUnitManaBJ(udg_Bh,(GetUnitStateSwap(UNIT_STATE_MANA,udg_Bh)+(0.75*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_A[423],true)))))
call TriggerSleepAction(0.90)
else
set udg_A[423]=null
set udg_Bh=null
call DestroyEffectBJ(udg_P[410])
endif
set udg_b[403]=udg_b[403]+1
endloop
else
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_A[423])),4.00," |cffffcc00No valid target found|r")
endif
call RemoveLocation(udg_bh)
set udg_bh=null
set udg_A[423]=null
if(se7())then
set udg_Bh=null
call DestroyEffectBJ(udg_P[410])
else
call DoNothing()
endif
endfunction
function sg7 takes nothing returns nothing
set udg_oB=CreateTrigger()
call TriggerAddCondition(udg_oB,Condition(function rP7))
call TriggerAddAction(udg_oB,function sf7)
endfunction
function sh7 takes nothing returns boolean
if((GetSpellAbilityId()==1093678926))then
return true
endif
if((GetSpellAbilityId()==1093679172))then
return true
endif
return false
endfunction
function si7 takes nothing returns boolean
if(not sh7())then
return false
endif
return true
endfunction
function sj7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679172))then
return false
endif
return true
endfunction
function sk7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678926))then
return false
endif
return true
endfunction
function sm7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_C4)==false)
endfunction
function sn7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[425]))==true)
endfunction
function so7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function sp7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function sq7 takes nothing returns boolean
return(GetFilterUnit()!=udg_Hm[1])
endfunction
function sr7 takes nothing returns boolean
return(GetFilterUnit()!=udg_Hm[2])
endfunction
function ss7 takes nothing returns boolean
return GetBooleanAnd(sq7(),sr7())
endfunction
function st7 takes nothing returns boolean
return GetBooleanAnd(sp7(),ss7())
endfunction
function su7 takes nothing returns boolean
return GetBooleanAnd(so7(),st7())
endfunction
function sv7 takes nothing returns boolean
return GetBooleanAnd(sn7(),su7())
endfunction
function sw7 takes nothing returns boolean
return GetBooleanAnd(sm7(),sv7())
endfunction
function sx7 takes nothing returns nothing
set udg_R9=GetEnumUnit()
call SetUnitTimeScalePercent(udg_R9,0.00)
call PauseUnitBJ(true,udg_R9)
call GroupAddUnitSimple(udg_R9,udg_C4)
set udg_R9=null
endfunction
function sy7 takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
call SetUnitTimeScalePercent(GetEnumUnit(),100)
endfunction
function sz7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function sA7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[425]))==true)
endfunction
function sa7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function sB7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function sb7 takes nothing returns boolean
return GetBooleanAnd(sa7(),sB7())
endfunction
function sC7 takes nothing returns boolean
return GetBooleanAnd(sA7(),sb7())
endfunction
function sc7 takes nothing returns boolean
return GetBooleanAnd(sz7(),sC7())
endfunction
function sD7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_R9)==true)
endfunction
function sE7 takes nothing returns nothing
set udg_R9=GetEnumUnit()
if(sD7())then
call PauseUnitBJ(false,udg_R9)
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_R9,100.00)
set udg_R9=null
endfunction
function s37 takes nothing returns nothing
set udg_A[425]=GetTriggerUnit()
set udg_B[425]=GetSpellTargetLoc()
set udg_N[425]=GetHeroStatBJ(bj_HEROSTAT_INT,udg_A[425],true)
if(sk7())then
set udg_Ai=(4+GetUnitAbilityLevelSwapped(1093678926,udg_A[425]))
else
if(sj7())then
set udg_Ai=(4+GetUnitAbilityLevelSwapped(1093679172,udg_A[425]))
else
call DoNothing()
endif
endif
call CreateNUnitsAtLoc(1,1747988559,GetOwningPlayer(udg_A[425]),udg_B[425],bj_UNIT_FACING)
set udg_A[426]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_A[426],740.00,740.00,740.00)
set udg_Q9=e6(600.00,GetUnitLoc(udg_A[426]),Condition(function sw7))
call ForGroupBJ(udg_Q9,function sx7)
call DestroyGroup(udg_Q9)
set udg_Q9=null
set udg_Km[11]=GetUnitLoc(udg_A[425])
call PlaySoundAtPointBJ(udg_Yr,100,udg_Km[11],0)
call RemoveLocation(udg_Km[11])
set udg_Km[11]=null
call TriggerSleepAction(0.70)
call SetUnitTimeScalePercent(udg_A[426],0.00)
call EnableTrigger(udg_qB)
call EnableTrigger(udg_rB)
call TriggerSleepAction(I2R(udg_Ai))
call DisableTrigger(udg_qB)
call DisableTrigger(udg_rB)
call ForGroupBJ(udg_C4,function sy7)
set bj_wantDestroyGroup=true
call GroupClear(udg_C4)
call RemoveLocation(udg_B[425])
set udg_B[425]=null
set udg_Q9=e6(600.00,GetUnitLoc(udg_A[426]),Condition(function sc7))
call ForGroupBJ(udg_Q9,function sE7)
call DestroyGroup(udg_Q9)
set udg_Q9=null
call RemoveUnit(udg_A[426])
set udg_A[425]=null
set udg_A[426]=null
endfunction
function sF7 takes nothing returns nothing
set udg_pB=CreateTrigger()
call TriggerAddCondition(udg_pB,Condition(function si7))
call TriggerAddAction(udg_pB,function s37)
endfunction
function sG7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_C4)==false)
endfunction
function s67 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[425]))==true)
endfunction
function sH7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function sI7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function sl7 takes nothing returns boolean
return(GetFilterUnit()!=udg_Hm[1])
endfunction
function s17 takes nothing returns boolean
return(GetFilterUnit()!=udg_Hm[2])
endfunction
function sJ7 takes nothing returns boolean
return GetBooleanAnd(sl7(),s17())
endfunction
function sK7 takes nothing returns boolean
return GetBooleanAnd(sI7(),sJ7())
endfunction
function sL7 takes nothing returns boolean
return GetBooleanAnd(sH7(),sK7())
endfunction
function sM7 takes nothing returns boolean
return GetBooleanAnd(s67(),sL7())
endfunction
function sN7 takes nothing returns boolean
return GetBooleanAnd(sG7(),sM7())
endfunction
function sO7 takes nothing returns nothing
set udg_R9=GetEnumUnit()
call SetUnitTimeScalePercent(udg_R9,0.00)
call PauseUnitBJ(true,udg_R9)
call GroupAddUnitSimple(udg_R9,udg_C4)
set udg_R9=null
endfunction
function s07 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_C4)==true)
endfunction
function sP7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[425]))==true)
endfunction
function sQ7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function sR7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function sS7 takes nothing returns boolean
return GetBooleanAnd(sQ7(),sR7())
endfunction
function s57 takes nothing returns boolean
return GetBooleanAnd(sP7(),sS7())
endfunction
function sT7 takes nothing returns boolean
return GetBooleanAnd(s07(),s57())
endfunction
function sU7 takes nothing returns nothing
set udg_R9=GetEnumUnit()
call SetUnitTimeScalePercent(udg_R9,0.00)
call PauseUnitBJ(true,udg_R9)
set udg_R9=null
endfunction
function sV7 takes nothing returns nothing
set udg_Q9=e6(600.00,GetUnitLoc(udg_A[426]),Condition(function sN7))
call ForGroupBJ(udg_Q9,function sO7)
call DestroyGroup(udg_Q9)
set udg_Q9=null
set udg_Q9=e6(600.00,GetUnitLoc(udg_A[426]),Condition(function sT7))
call ForGroupBJ(udg_Q9,function sU7)
call DestroyGroup(udg_Q9)
set udg_Q9=null
endfunction
function sW7 takes nothing returns nothing
set udg_qB=CreateTrigger()
call DisableTrigger(udg_qB)
call TriggerRegisterTimerEventPeriodic(udg_qB,0.25)
call TriggerAddAction(udg_qB,function sV7)
endfunction
function sX7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_C4)==true)
endfunction
function sY7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[425]))==true)
endfunction
function s27 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function sZ7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function s_7 takes nothing returns boolean
return GetBooleanAnd(s27(),sZ7())
endfunction
function t47 takes nothing returns boolean
return GetBooleanAnd(sY7(),s_7())
endfunction
function t77 takes nothing returns boolean
return GetBooleanAnd(sX7(),t47())
endfunction
function t87 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_T9)==false))then
return false
endif
return true
endfunction
function t97 takes nothing returns nothing
set udg_T9=GetEnumUnit()
if(t87())then
call UnitDamageTargetBJ(udg_A[425],udg_T9,(3.00*I2R(udg_N[425])),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call SetUnitManaBJ(udg_T9,(GetUnitStateSwap(UNIT_STATE_MANA,udg_T9)-((3.00*I2R(udg_N[425]))/2.00)))
call AddSpecialEffectTargetUnitBJ("origin",udg_T9,"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
set udg_T9=null
endfunction
function td7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_G[426])==false)
endfunction
function te7 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_A[425]))==true)
endfunction
function tf7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function tg7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function th7 takes nothing returns boolean
return GetBooleanAnd(tf7(),tg7())
endfunction
function ti7 takes nothing returns boolean
return GetBooleanAnd(te7(),th7())
endfunction
function tj7 takes nothing returns boolean
return GetBooleanAnd(td7(),ti7())
endfunction
function tk7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_T9)==false))then
return false
endif
return true
endfunction
function tm7 takes nothing returns nothing
set udg_T9=GetEnumUnit()
if(tk7())then
call SetUnitLifeBJ(udg_T9,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_T9)+I2R(udg_N[425])))
call SetUnitManaBJ(udg_T9,(GetUnitStateSwap(UNIT_STATE_MANA,udg_T9)+(I2R(udg_N[425])/2.00)))
call AddSpecialEffectTargetUnitBJ("origin",udg_T9,"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
set udg_T9=null
endfunction
function tn7 takes nothing returns nothing
set udg_S9=e6(600.00,GetUnitLoc(udg_A[426]),Condition(function t77))
call ForGroupBJ(udg_S9,function t97)
call DestroyGroup(udg_S9)
set udg_S9=null
set udg_S9=e6(600.00,GetUnitLoc(udg_A[426]),Condition(function tj7))
call ForGroupBJ(udg_S9,function tm7)
call DestroyGroup(udg_S9)
set udg_S9=null
endfunction
function to7 takes nothing returns nothing
set udg_rB=CreateTrigger()
call DisableTrigger(udg_rB)
call TriggerRegisterTimerEventPeriodic(udg_rB,1.30)
call TriggerAddAction(udg_rB,function tn7)
endfunction
function tp7 takes nothing returns boolean
if(not(udg_nj==null))then
return false
endif
return true
endfunction
function tq7 takes nothing returns nothing
if(tp7())then
call DestroyTrigger(udg_tB)
call DestroyTrigger(udg_uB)
call DestroyTrigger(udg_vB)
call DestroyTrigger(udg_wB)
call DestroyTrigger(udg_xB)
call DestroyTrigger(udg_yB)
call DestroyTrigger(udg_zB)
call DestroyTrigger(udg_AB)
call DestroyTrigger(udg_aB)
call DestroyTrigger(udg_BB)
call DestroyTrigger(udg_bB)
call DestroyTrigger(udg_CB)
call DestroyTrigger(udg_cB)
else
call TriggerRegisterUnitEvent(udg_tB,udg_nj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_vB,udg_nj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_xB,udg_nj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_zB,udg_nj,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(udg_AB,udg_nj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_aB,udg_nj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_BB,udg_nj,EVENT_UNIT_DEATH)
endif
endfunction
function tr7 takes nothing returns nothing
set udg_sB=CreateTrigger()
call TriggerAddAction(udg_sB,function tq7)
endfunction
function ts7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681494))then
return false
endif
return true
endfunction
function tt7 takes nothing returns boolean
return(udg_A[100]!=null)
endfunction
function tu7 takes nothing returns boolean
return(udg_A[100]!=null)
endfunction
function tv7 takes nothing returns boolean
if(not(udg_A[98]!=null))then
return false
endif
return true
endfunction
function tw7 takes nothing returns nothing
set bj_wantDestroyGroup=true
call GroupClear(udg_Ph)
set udg_A[98]=GetTriggerUnit()
set udg_Sh=0
call AddSpecialEffectTargetUnitBJ("weapon",udg_A[98],"BlueRibbonMissile.mdx")
set udg_P[5779]=GetLastCreatedEffectBJ()
set udg_Km[12]=GetUnitLoc(udg_A[98])
call PlaySoundAtPointBJ(udg_jq,100,udg_Km[12],0)
call RemoveLocation(udg_Km[12])
set udg_Km[12]=null
call TriggerSleepAction(6.00)
if(tv7())then
set udg_A[98]=null
set udg_Sh=0
set udg_Rh=0.00
call DestroyEffectBJ(udg_P[5779])
if(tt7())then
call KillUnit(udg_A[100])
else
call DoNothing()
endif
set udg_A[100]=null
if(tu7())then
call KillUnit(udg_A[101])
else
call DoNothing()
endif
set udg_A[101]=null
else
call DoNothing()
endif
endfunction
function tx7 takes nothing returns nothing
set udg_tB=CreateTrigger()
call TriggerAddCondition(udg_tB,Condition(function ts7))
call TriggerAddAction(udg_tB,function tw7)
endfunction
function ty7 takes nothing returns boolean
if((GetUnitTypeId(GetAttacker())==1162031160))then
return true
endif
if((GetUnitTypeId(GetAttacker())==1160785973))then
return true
endif
return false
endfunction
function tz7 takes nothing returns boolean
if(not ty7())then
return false
endif
if(not(IsUnitHiddenBJ(GetAttacker())==false))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(MG(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
if(not(udg_A[98]!=null))then
return false
endif
if(not(GetAttackedUnitBJ()!=udg_gi))then
return false
endif
return true
endfunction
function tA7 takes nothing returns boolean
if(not tz7())then
return false
endif
return true
endfunction
function ta7 takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())==1160785973))then
return false
endif
return true
endfunction
function tB7 takes nothing returns boolean
return(udg_A[100]!=null)
endfunction
function tb7 takes nothing returns boolean
return(udg_A[100]!=null)
endfunction
function tC7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Ph)==false)
endfunction
function tc7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[98]))==true)
endfunction
function tD7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function tE7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function t37 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function tF7 takes nothing returns boolean
return GetBooleanAnd(tE7(),t37())
endfunction
function tG7 takes nothing returns boolean
return GetBooleanAnd(tD7(),tF7())
endfunction
function t67 takes nothing returns boolean
return GetBooleanAnd(tc7(),tG7())
endfunction
function tH7 takes nothing returns boolean
return GetBooleanAnd(tC7(),t67())
endfunction
function tI7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[98],GetEnumUnit(),udg_Rh,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(GetEnumUnit(),udg_Ph)
endfunction
function tl7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_MANA,udg_A[98])>=udg_Jh))then
return false
endif
return true
endfunction
function t17 takes nothing returns boolean
return(udg_A[100]!=null)
endfunction
function tJ7 takes nothing returns boolean
return(udg_A[100]!=null)
endfunction
function tK7 takes nothing returns boolean
if(not(udg_Sh==6))then
return false
endif
return true
endfunction
function tL7 takes nothing returns nothing
if(ta7())then
set udg_Rh=(2.10*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[98],false)))
set udg_Jh=140.00
else
set udg_Rh=(1.75*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[98],false)))
set udg_Jh=70.00
endif
set udg_Sh=(udg_Sh+1)
set udg_Th=GetAttackedUnitBJ()
if(tl7())then
call SetUnitManaBJ(udg_A[98],(GetUnitStateSwap(UNIT_STATE_MANA,udg_A[98])-udg_Jh))
set bj_wantDestroyGroup=true
call GroupClear(udg_Ph)
if(tB7())then
call KillUnit(udg_A[100])
else
call DoNothing()
endif
set udg_A[100]=null
set udg_E9[6]=GetUnitLoc(udg_A[98])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[98]),udg_E9[6],AngleBetweenPoints(udg_E9[6],GetUnitLoc(udg_Th)))
set udg_A[100]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678170,udg_A[100])
call RemoveLocation(udg_E9[6])
set udg_E9[6]=null
set udg_E9[6]=PG(GetUnitLoc(udg_A[98]),1000.00,AngleBetweenPoints(GetUnitLoc(udg_A[98]),GetUnitLoc(udg_Th)))
call IssuePointOrderLocBJ(udg_A[100],"clusterrockets",udg_E9[6])
call RemoveLocation(udg_E9[6])
set udg_E9[6]=null
call UnitApplyTimedLifeBJ(0.50,1112820806,udg_A[100])
if(tb7())then
call KillUnit(udg_A[101])
else
call DoNothing()
endif
set udg_A[101]=null
set udg_E9[6]=GetUnitLoc(udg_A[98])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[98]),udg_E9[6],AngleBetweenPoints(udg_E9[6],GetUnitLoc(udg_Th)))
set udg_A[101]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678170,udg_A[101])
call RemoveLocation(udg_E9[6])
set udg_E9[6]=null
set udg_E9[6]=PG(GetUnitLoc(udg_A[98]),1000.00,AngleBetweenPoints(GetUnitLoc(udg_A[98]),GetUnitLoc(udg_Th)))
call IssuePointOrderLocBJ(udg_A[101],"clusterrockets",udg_E9[6])
call RemoveLocation(udg_E9[6])
set udg_E9[6]=null
call UnitApplyTimedLifeBJ(0.50,1112820806,udg_A[101])
set udg_lh[1]=1
loop
exitwhen udg_lh[1]>6
set udg_E9[6]=PG(GetUnitLoc(udg_A[98]),(150.00*I2R(udg_lh[1])),AngleBetweenPoints(GetUnitLoc(udg_A[98]),GetUnitLoc(udg_Th)))
set udg_Ih=e6(300.00,udg_E9[6],Condition(function tH7))
call ForGroupBJ(udg_Ih,function tI7)
call DestroyGroup(udg_Ih)
set udg_Ih=null
call RemoveLocation(udg_E9[6])
set udg_E9[6]=null
set udg_lh[1]=udg_lh[1]+1
endloop
else
call DoNothing()
endif
if(tK7())then
set udg_A[98]=null
set udg_Sh=0
set udg_Rh=0.00
call DestroyEffectBJ(udg_P[5779])
if(t17())then
call KillUnit(udg_A[100])
else
call DoNothing()
endif
set udg_A[100]=null
if(tJ7())then
call KillUnit(udg_A[101])
else
call DoNothing()
endif
set udg_A[101]=null
else
call DoNothing()
endif
set udg_Th=null
set udg_Rh=0.00
set udg_Jh=0.00
endfunction
function tM7 takes nothing returns nothing
set udg_uB=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_uB,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_uB,Condition(function tA7))
call TriggerAddAction(udg_uB,function tL7)
endfunction
function tN7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678162))then
return false
endif
return true
endfunction
function tO7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Uh))]==true))then
return false
endif
return true
endfunction
function t07 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function tP7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Uh))]==true))then
return false
endif
return true
endfunction
function tQ7 takes nothing returns nothing
set udg_Uh=GetTriggerUnit()
set udg_Yh[1]=PG(GetUnitLoc(udg_Uh),120.00,GetUnitFacing(udg_Uh))
set udg_Yh[2]=GetSpellTargetLoc()
set udg_Zh=(10+(3*GetUnitAbilityLevelSwapped(1093678162,udg_Uh)))
if(tO7())then
set udg_di=(2.25*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Uh,false)))
else
set udg_di=(1.50*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Uh,false)))
endif
set udg_ei=false
call CreateNUnitsAtLocFacingLocBJ(1,1747988801,GetOwningPlayer(udg_Uh),udg_Yh[1],udg_Yh[2])
set udg_Vh[1]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Vh[1],190.00,190.00,190.00)
call SetUnitFlyHeightBJ(udg_Vh[1],900.00,2000.00)
call CreateTextTagUnitBJ("Licht Regen",udg_Uh,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function t07)))
set udg_Km[13]=GetUnitLoc(udg_Uh)
call PlaySoundAtPointBJ(udg_Wq,100,udg_Km[13],0)
call RemoveLocation(udg_Km[13])
set udg_Km[13]=null
call EnableTrigger(udg_wB)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_wB)
call RemoveUnit(udg_Vh[1])
set udg_Vh[1]=null
if(tP7())then
call TriggerSleepAction(1.00)
else
call TriggerSleepAction(2.00)
endif
set udg_ei=true
set udg_Xh=0
call EnableTrigger(udg_wB)
call TriggerSleepAction((1.50+(0.10*I2R(udg_Zh))))
call DisableTrigger(udg_wB)
set udg_Uh=null
set udg_Zh=0
set udg_di=0.00
set udg_Xh=0
set udg_ei=false
call RemoveLocation(udg_Yh[1])
set udg_Yh[1]=null
call RemoveLocation(udg_Yh[2])
set udg_Yh[2]=null
endfunction
function tR7 takes nothing returns nothing
set udg_vB=CreateTrigger()
call TriggerAddCondition(udg_vB,Condition(function tN7))
call TriggerAddAction(udg_vB,function tQ7)
endfunction
function tS7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function t57 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Uh))==true)
endfunction
function tT7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function tU7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function tV7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function tW7 takes nothing returns boolean
return GetBooleanAnd(tU7(),tV7())
endfunction
function tX7 takes nothing returns boolean
return GetBooleanAnd(tT7(),tW7())
endfunction
function tY7 takes nothing returns boolean
return GetBooleanAnd(t57(),tX7())
endfunction
function t27 takes nothing returns boolean
return GetBooleanAnd(tS7(),tY7())
endfunction
function tZ7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Uh,GetEnumUnit(),udg_di,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function t_7 takes nothing returns boolean
if(not(udg_Xh!=udg_Zh))then
return false
endif
return true
endfunction
function u47 takes nothing returns boolean
if(not(udg_ei==false))then
return false
endif
return true
endfunction
function u77 takes nothing returns nothing
if(u47())then
set udg_Yh[3]=PG(GetUnitLoc(udg_Vh[1]),(DistanceBetweenPoints(udg_Yh[1],udg_Yh[2])/12.50),GetUnitFacing(udg_Vh[1]))
call SetUnitPositionLoc(udg_Vh[1],udg_Yh[3])
call RemoveLocation(udg_Yh[3])
set udg_Yh[3]=null
else
if(t_7())then
set udg_Xh=(udg_Xh+1)
set udg_Yh[3]=PG(udg_Yh[2],GetRandomReal(0.00,225.00),GetRandomDirectionDeg())
call CreateNUnitsAtLoc(1,1747988809,GetOwningPlayer(udg_Uh),udg_Yh[3],GetRandomDirectionDeg())
set udg_Vh[1]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_Vh[1],300.00)
call UnitApplyTimedLifeBJ(0.60,1112820806,udg_Vh[1])
set udg_Wh=e6(220.00,udg_Yh[3],Condition(function t27))
call ForGroupBJ(udg_Wh,function tZ7)
call DestroyGroup(udg_Wh)
set udg_Wh=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Uh),udg_Yh[3],bj_UNIT_FACING)
set udg_Vh[20]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681483,udg_Vh[20])
call SetUnitAbilityLevelSwapped(1093681483,udg_Vh[20],6)
call IssueImmediateOrderBJ(udg_Vh[20],"stomp")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Vh[20])
set udg_Vh[20]=null
set udg_Vh[1]=null
call RemoveLocation(udg_Yh[3])
set udg_Yh[3]=null
else
call DisableTrigger(GetTriggeringTrigger())
endif
endif
endfunction
function u87 takes nothing returns nothing
set udg_wB=CreateTrigger()
call DisableTrigger(udg_wB)
call TriggerRegisterTimerEventPeriodic(udg_wB,0.08)
call TriggerAddAction(udg_wB,function u77)
endfunction
function u97 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678167))then
return false
endif
return true
endfunction
function ud7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[96]))]==true))then
return false
endif
return true
endfunction
function ue7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[96]))]==true))then
return false
endif
return true
endfunction
function uf7 takes nothing returns nothing
set udg_A[96]=GetTriggerUnit()
set udg_B[63]=GetSpellTargetLoc()
set udg_H[33]=AngleBetweenPoints(GetUnitLoc(udg_A[96]),udg_B[63])
set udg_N[23]=0
if(ud7())then
call DoNothing()
else
call AddSpecialEffectTargetUnitBJ("weapon",udg_A[96],"Abilities\\Spells\\Human\\Invisibility\\InvisibilityTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.02)
endif
if(ue7())then
set udg_N[23]=3
call TriggerExecute(udg_zB)
else
call SetUnitTimeScalePercent(udg_A[96],0.00)
call EnableTrigger(udg_yB)
endif
endfunction
function ug7 takes nothing returns nothing
set udg_xB=CreateTrigger()
call TriggerAddCondition(udg_xB,Condition(function u97))
call TriggerAddAction(udg_xB,function uf7)
endfunction
function uh7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[96])==true))then
return false
endif
return true
endfunction
function ui7 takes nothing returns boolean
if(not(udg_N[23]<3))then
return false
endif
return true
endfunction
function uj7 takes nothing returns boolean
if(not(udg_N[23]==3))then
return false
endif
return true
endfunction
function uk7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[96])==true))then
return false
endif
return true
endfunction
function um7 takes nothing returns nothing
if(ui7())then
set udg_N[23]=(udg_N[23]+1)
else
call DoNothing()
endif
if(uj7())then
call IssueImmediateOrderBJ(udg_A[96],"stop")
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
if(uk7())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitTimeScalePercent(udg_A[96],100.00)
set udg_A[96]=null
set udg_H[33]=0.00
set udg_N[23]=0
call RemoveLocation(udg_B[63])
set udg_B[63]=null
else
call DoNothing()
endif
endfunction
function un7 takes nothing returns nothing
set udg_yB=CreateTrigger()
call DisableTrigger(udg_yB)
call TriggerRegisterTimerEventPeriodic(udg_yB,0.50)
call TriggerAddCondition(udg_yB,Condition(function uh7))
call TriggerAddAction(udg_yB,function um7)
endfunction
function uo7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678167))then
return false
endif
return true
endfunction
function up7 takes nothing returns boolean
return(IsTriggerEnabled(udg_yB)==true)
endfunction
function uq7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function ur7 takes nothing returns boolean
if(not(udg_N[23]==3))then
return false
endif
return true
endfunction
function us7 takes nothing returns nothing
if(up7())then
call DisableTrigger(udg_yB)
else
call DoNothing()
endif
if(ur7())then
call SetUnitTimeScalePercent(udg_A[96],100.00)
call SetUnitAnimation(udg_A[96],"attack")
set udg_E9[3]=GetUnitLoc(udg_A[96])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[96]),udg_E9[3],bj_UNIT_FACING)
set udg_F9[3]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_F9[3],87.00,87.00,87.00)
call UnitAddAbilityBJ(1093678667,udg_F9[3])
call SetUnitAbilityLevelSwapped(1093678667,udg_F9[3],GetUnitAbilityLevelSwapped(1093678167,udg_A[96]))
call RemoveLocation(udg_E9[3])
set udg_E9[3]=null
set udg_E9[3]=PG(GetUnitLoc(udg_A[96]),256,udg_H[33])
call IssuePointOrderLocBJ(udg_F9[3],"carrionswarm",udg_E9[3])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_F9[3])
call RemoveLocation(udg_E9[3])
set udg_E9[3]=null
call CreateTextTagUnitBJ("Seele Schneider",udg_A[96],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function uq7)))
set udg_Km[14]=GetUnitLoc(udg_A[96])
call PlaySoundAtPointBJ(udg_Br,100,udg_Km[14],0)
call RemoveLocation(udg_Km[14])
set udg_Km[14]=null
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[96],100.00)
set udg_A[96]=null
set udg_H[33]=0.00
set udg_N[23]=0
call RemoveLocation(udg_B[63])
set udg_B[63]=null
endfunction
function ut7 takes nothing returns nothing
set udg_zB=CreateTrigger()
call TriggerAddCondition(udg_zB,Condition(function uo7))
call TriggerAddAction(udg_zB,function us7)
endfunction
function uu7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678168))then
return false
endif
return true
endfunction
function uv7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function uw7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_fg))==true)
endfunction
function ux7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function uy7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function uz7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function uA7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function ua7 takes nothing returns boolean
return GetBooleanAnd(uz7(),uA7())
endfunction
function uB7 takes nothing returns boolean
return GetBooleanAnd(uy7(),ua7())
endfunction
function ub7 takes nothing returns boolean
return GetBooleanAnd(ux7(),uB7())
endfunction
function uC7 takes nothing returns boolean
return GetBooleanAnd(uw7(),ub7())
endfunction
function uc7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_Qh)
endfunction
function uD7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_Qh))then
return false
endif
return true
endfunction
function uE7 takes nothing returns nothing
if(uD7())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_Qh))
else
if(uc7())then
call UnitDamageTargetBJ(udg_fg,GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
endfunction
function u37 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function uF7 takes nothing returns nothing
set udg_fg=GetTriggerUnit()
set udg_gg=0.00
set udg_hg=GetUnitLoc(udg_fg)
set udg_Qh=(500.00+(400.00*I2R(GetUnitAbilityLevelSwapped(1093678168,udg_fg))))
set udg_ig=1
loop
exitwhen udg_ig>5
set udg_gg=(udg_gg+72.00)
set udg_E9[4]=PG(udg_hg,600.00,udg_gg)
call AddSpecialEffectLocBJ(udg_E9[4],"Sprenger.MDX")
set udg_P[(50+udg_ig)]=GetLastCreatedEffectBJ()
call AddSpecialEffectLocBJ(udg_E9[4],"Doodads\\Cinematic\\TownBurningFireEmitterBlue\\TownBurningFireEmitterBlue.mdl")
set udg_P[(55+udg_ig)]=GetLastCreatedEffectBJ()
call AddLightningLoc("DRAM",udg_hg,udg_E9[4])
set udg_S[(0+udg_ig)]=GetLastCreatedLightningBJ()
call RemoveLocation(udg_E9[4])
set udg_E9[4]=null
set udg_ig=udg_ig+1
endloop
call CreateTextTagUnitBJ("Sprenger",udg_fg,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function uv7)))
call PlaySoundAtPointBJ(udg_Nr,100,udg_hg,0)
call TriggerSleepAction(2.30)
set udg_gg=0.00
set udg_ig=1
loop
exitwhen udg_ig>5
set udg_gg=(udg_gg+72.00)
set udg_E9[4]=PG(udg_hg,600.00,udg_gg)
set udg_E9[5]=PG(udg_hg,600.00,(udg_gg+72.00))
call AddLightningLoc("DRAM",udg_E9[4],udg_E9[5])
set udg_S[(5+udg_ig)]=GetLastCreatedLightningBJ()
call RemoveLocation(udg_E9[4])
set udg_E9[4]=null
call RemoveLocation(udg_E9[5])
set udg_E9[5]=null
set udg_ig=udg_ig+1
endloop
call TriggerSleepAction(0.70)
call CreateNUnitsAtLoc(1,1747988537,GetOwningPlayer(udg_fg),udg_hg,bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call UnitApplyTimedLifeBJ(4.00,1112820806,GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,1747988537,GetOwningPlayer(udg_fg),udg_hg,bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),120.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,GetLastCreatedUnit())
set udg_fi=e6(600.00,udg_hg,Condition(function uC7))
call ForGroupBJ(udg_fi,function uE7)
call UG(600.00,udg_hg,function u37)
call SetTerrainTypeBJ(udg_hg,1499755634,-1,5,0)
set udg_ig=1
loop
exitwhen udg_ig>5
set udg_gg=(udg_gg+72.00)
set udg_E9[4]=PG(udg_hg,600.00,udg_gg)
call AddSpecialEffectLocBJ(udg_E9[4],"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_E9[4])
set udg_E9[4]=null
call DestroyEffectBJ(udg_P[(50+udg_ig)])
call DestroyEffectBJ(udg_P[(55+udg_ig)])
call DestroyLightningBJ(udg_S[(0+udg_ig)])
call DestroyLightningBJ(udg_S[(5+udg_ig)])
set udg_ig=udg_ig+1
endloop
set udg_fg=null
set udg_gg=0.00
set udg_Qh=0.00
call DestroyGroup(udg_fi)
set udg_fi=null
call RemoveLocation(udg_hg)
set udg_hg=null
endfunction
function uG7 takes nothing returns nothing
set udg_AB=CreateTrigger()
call TriggerAddCondition(udg_AB,Condition(function uu7))
call TriggerAddAction(udg_AB,function uF7)
endfunction
function u67 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681492))then
return false
endif
return true
endfunction
function uH7 takes nothing returns boolean
return(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Kh))]==false)
endfunction
function uI7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Kh))==true)
endfunction
function ul7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function u17 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function uJ7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function uK7 takes nothing returns boolean
return(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function uL7 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function uM7 takes nothing returns boolean
return GetBooleanAnd(uK7(),uL7())
endfunction
function uN7 takes nothing returns boolean
return GetBooleanAnd(uJ7(),uM7())
endfunction
function uO7 takes nothing returns boolean
return GetBooleanAnd(u17(),uN7())
endfunction
function u07 takes nothing returns boolean
return GetBooleanAnd(ul7(),uO7())
endfunction
function uP7 takes nothing returns boolean
return GetBooleanAnd(uI7(),u07())
endfunction
function uQ7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_E9[1327])))==true))then
return true
endif
return false
endfunction
function uR7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_y9[1327])==1328558129))then
return false
endif
return true
endfunction
function uS7 takes nothing returns boolean
if(not uQ7())then
return false
endif
return true
endfunction
function u57 takes nothing returns nothing
if(uS7())then
set udg_y9[1327]=GetEnumUnit()
set udg_E9[1328]=PG(GetUnitLoc(udg_y9[1327]),-100.00,AngleBetweenPoints(GetUnitLoc(udg_y9[1327]),udg_E9[1327]))
call SetUnitPositionLoc(udg_y9[1327],udg_E9[1328])
call IssueImmediateOrderBJ(udg_y9[1327],"stop")
call SetUnitFacingToFaceLocTimed(udg_y9[1327],udg_E9[1327],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_y9[1327],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(uR7())then
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
else
call DoNothing()
endif
set udg_y9[1327]=null
else
call DoNothing()
endif
endfunction
function uT7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Kh))]==true))then
return false
endif
return true
endfunction
function uU7 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(udg_Kh))]==true)
endfunction
function uV7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_Kh))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,udg_Kh)==0))then
return false
endif
return true
endfunction
function uW7 takes nothing returns boolean
if(not uV7())then
return false
endif
return true
endfunction
function uX7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Kh))]==false))then
return false
endif
return true
endfunction
function uY7 takes nothing returns nothing
set udg_Kh=GetTriggerUnit()
if(uH7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Kh))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Kh))]=false
endif
if(uT7())then
set udg_E9[1327]=GetUnitLoc(udg_Kh)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Kh),udg_E9[1327],bj_UNIT_FACING)
set udg_F9[1327]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677378,udg_F9[1327])
call IssueImmediateOrderBJ(udg_F9[1327],"thunderclap")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_F9[1327])
call RemoveLocation(udg_E9[1327])
set udg_E9[1327]=null
set udg_F9[1327]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_Kh,"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_G[3327]=e6(460.00,GetUnitLoc(udg_Kh),Condition(function uP7))
set udg_E9[1327]=GetUnitLoc(udg_Kh)
call ForGroupBJ(udg_G[3327],function u57)
set udg_lh[5]=1
loop
exitwhen udg_lh[5]>3
call CreateNUnitsAtLoc(1,1747988537,GetOwningPlayer(udg_Kh),udg_E9[1327],bj_UNIT_FACING)
set udg_F9[1327]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_F9[1327],220.00,220.00,220.00)
call SetUnitTimeScalePercent(udg_F9[1327],(150.00*I2R(udg_lh[5])))
call UnitApplyTimedLifeBJ(3.00,1112820806,udg_F9[1327])
set udg_F9[1327]=null
set udg_lh[5]=udg_lh[5]+1
endloop
call AddSpecialEffectLocBJ(udg_E9[1327],"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_E9[1327])
set udg_E9[1327]=null
call DestroyGroup(udg_G[1327])
set udg_G[1327]=null
call RemoveLocation(udg_E9[1328])
set udg_E9[1328]=null
set udg_Lh=true
set udg_Mh=udg_Kh
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Mh,bj_MODIFYMETHOD_ADD,60)
set udg_Km[15]=GetUnitLoc(udg_Kh)
call PlaySoundAtPointBJ(udg_pr,100,udg_Km[15],0)
call RemoveLocation(udg_Km[15])
set udg_Km[15]=null
else
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Mh,bj_MODIFYMETHOD_SUB,60)
set udg_gi=udg_Mh
set udg_Lh=false
set udg_Mh=null
call TriggerExecute(udg_bB)
endif
call TriggerSleepAction(0.50)
if(uW7())then
if(uU7())then
call UnitAddAbilityBJ(1093677913,udg_Kh)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(uX7())then
call UnitRemoveAbilityBJ(1093681732,udg_Kh)
else
call DoNothing()
endif
set udg_Kh=null
endfunction
function u27 takes nothing returns nothing
set udg_aB=CreateTrigger()
call TriggerAddCondition(udg_aB,Condition(function u67))
call TriggerAddAction(udg_aB,function uY7)
endfunction
function uZ7 takes nothing returns boolean
if((GetDyingUnit()==udg_Mh))then
return true
endif
if((GetDyingUnit()==udg_A[98]))then
return true
endif
return false
endfunction
function u_7 takes nothing returns boolean
if(not uZ7())then
return false
endif
return true
endfunction
function v47 takes nothing returns boolean
return(udg_A[100]!=null)
endfunction
function v77 takes nothing returns boolean
return(udg_A[100]!=null)
endfunction
function v87 takes nothing returns boolean
if(not(GetDyingUnit()==udg_A[98]))then
return false
endif
return true
endfunction
function v97 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Mh))then
return false
endif
return true
endfunction
function vd7 takes nothing returns nothing
if(v87())then
set udg_A[98]=null
set udg_Sh=0
set udg_Rh=0.00
call DestroyEffectBJ(udg_P[5779])
if(v47())then
call KillUnit(udg_A[100])
else
call DoNothing()
endif
set udg_A[100]=null
if(v77())then
call KillUnit(udg_A[101])
else
call DoNothing()
endif
set udg_A[101]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_Ph)
else
call DoNothing()
endif
if(v97())then
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Mh,bj_MODIFYMETHOD_SUB,60)
set udg_gi=udg_Mh
set udg_Lh=false
set udg_Mh=null
call TriggerExecute(udg_bB)
else
call DoNothing()
endif
endfunction
function ve7 takes nothing returns nothing
set udg_BB=CreateTrigger()
call TriggerAddCondition(udg_BB,Condition(function u_7))
call TriggerAddAction(udg_BB,function vd7)
endfunction
function vf7 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function vg7 takes nothing returns nothing
set udg_hi[1]=(0.80*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_gi,false)))
set udg_hi[2]=(0.80*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_gi,false)))
set udg_hi[3]=(0.80*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_gi,false)))
set udg_ii[1]=R2I(udg_hi[1])
set udg_ii[2]=R2I(udg_hi[2])
set udg_ii[3]=R2I(udg_hi[3])
call ModifyHeroStat(bj_HEROSTAT_STR,udg_gi,bj_MODIFYMETHOD_SUB,udg_ii[1])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_gi,bj_MODIFYMETHOD_SUB,udg_ii[2])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_gi,bj_MODIFYMETHOD_SUB,udg_ii[3])
call AddSpecialEffectTargetUnitBJ("overhead",udg_gi,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")
set udg_ji=GetLastCreatedEffectBJ()
set udg_wi=k6(GetOwningPlayer(udg_gi),1869636975)
call ForGroupBJ(udg_wi,function vf7)
call DestroyGroup(udg_wi)
set udg_wi=null
call UnitRemoveAbilityBJ(1093681732,udg_gi)
call EnableTrigger(udg_CB)
call TriggerSleepAction(30.00)
call DisableTrigger(udg_CB)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_gi,bj_MODIFYMETHOD_ADD,udg_ii[1])
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_gi,bj_MODIFYMETHOD_ADD,udg_ii[2])
call ModifyHeroStat(bj_HEROSTAT_INT,udg_gi,bj_MODIFYMETHOD_ADD,udg_ii[3])
call UnitAddAbilityBJ(1093681732,udg_gi)
call DestroyEffectBJ(udg_ji)
set udg_hi[1]=0.00
set udg_hi[2]=0.00
set udg_hi[3]=0.00
set udg_ii[1]=0
set udg_ii[2]=0
set udg_ii[3]=0
call AddSpecialEffectTargetUnitBJ("origin",udg_gi,"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_E9[57]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869636975,GetOwningPlayer(udg_gi),udg_E9[57],bj_UNIT_FACING)
call RemoveLocation(udg_E9[57])
set udg_E9[57]=null
set udg_gi=null
endfunction
function vh7 takes nothing returns nothing
set udg_bB=CreateTrigger()
call TriggerAddAction(udg_bB,function vg7)
endfunction
function vi7 takes nothing returns boolean
if(not(udg_gi!=null))then
return false
endif
return true
endfunction
function vj7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681732,udg_gi)!=0))then
return false
endif
return true
endfunction
function vk7 takes nothing returns nothing
if(vj7())then
call UnitRemoveAbilityBJ(1093681732,udg_gi)
else
call DoNothing()
endif
endfunction
function vm7 takes nothing returns nothing
set udg_CB=CreateTrigger()
call DisableTrigger(udg_CB)
call TriggerRegisterTimerEventPeriodic(udg_CB,0.50)
call TriggerAddCondition(udg_CB,Condition(function vi7))
call TriggerAddAction(udg_CB,function vk7)
endfunction
function vn7 takes nothing returns boolean
if(not(GetAttacker()==udg_gi))then
return false
endif
return true
endfunction
function vo7 takes nothing returns nothing
call IssueImmediateOrderBJ(udg_gi,"stop")
endfunction
function vp7 takes nothing returns nothing
set udg_cB=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_cB,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_cB,Condition(function vn7))
call TriggerAddAction(udg_cB,function vo7)
endfunction
function vq7 takes nothing returns boolean
if(not(udg_Ak==null))then
return false
endif
return true
endfunction
function vr7 takes nothing returns nothing
if(vq7())then
call DestroyTrigger(udg_EB)
call DestroyTrigger(udg_FB)
call DestroyTrigger(udg_GB)
call DestroyTrigger(udg_HB)
call DestroyTrigger(udg_IB)
call DestroyTrigger(udg_lB)
call DestroyTrigger(udg_JB)
call DestroyTrigger(udg_KB)
call DestroyTrigger(udg_LB)
call DestroyTrigger(udg_MB)
call DestroyTrigger(udg_NB)
call DestroyTrigger(udg_OB)
call DestroyTrigger(udg_PB)
call DestroyTrigger(udg_QB)
call DestroyTrigger(udg_RB)
call DestroyTrigger(udg_SB)
call DestroyTrigger(udg_TB)
else
call TriggerRegisterUnitEvent(udg_EB,udg_Ak,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_FB,udg_Ak,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_HB,udg_Ak,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_lB,udg_Ak,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_JB,udg_Ak,EVENT_UNIT_SPELL_FINISH)
call TriggerRegisterUnitEvent(udg_LB,udg_Ak,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_NB,udg_Ak,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_QB,udg_Ak,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_RB,udg_Ak,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function vs7 takes nothing returns nothing
set udg_DB=CreateTrigger()
call TriggerAddAction(udg_DB,function vr7)
endfunction
function vt7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677363))then
return false
endif
return true
endfunction
function vu7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function vv7 takes nothing returns nothing
call CreateTextTagUnitBJ("Roar!",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function vu7)))
endfunction
function vw7 takes nothing returns nothing
set udg_EB=CreateTrigger()
call TriggerAddCondition(udg_EB,Condition(function vt7))
call TriggerAddAction(udg_EB,function vv7)
endfunction
function vx7 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1211117905))then
return false
endif
return true
endfunction
function vy7 takes nothing returns boolean
if(not(GetKillingUnitBJ()==udg_sk[6]))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677104,GetKillingUnitBJ())==0))then
return false
endif
return true
endfunction
function vz7 takes nothing returns boolean
if(not vy7())then
return false
endif
return true
endfunction
function vA7 takes nothing returns boolean
if(not(udg_sk[12]!=null))then
return false
endif
if(not(udg_Bk==false))then
return false
endif
return true
endfunction
function va7 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function vB7 takes nothing returns boolean
if(not vA7())then
return false
endif
return true
endfunction
function vb7 takes nothing returns nothing
if(vz7())then
call DisplayTimedTextToForce(GetPlayersAll(),3.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))]+" has killed himself!"))
set udg_sk[6]=null
else
call DoNothing()
endif
if(vB7())then
set udg_Cj[59]=1
loop
exitwhen udg_Cj[59]>19
set udg_uk[200]=GetUnitLoc(udg_tk[(26+udg_Cj[59])])
call RemoveUnit(udg_tk[(26+udg_Cj[59])])
set udg_tk[(26+udg_Cj[59])]=null
call AddSpecialEffectLocBJ(udg_uk[200],"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_uk[200])
set udg_uk[200]=null
set udg_Cj[59]=udg_Cj[59]+1
endloop
call UnitAddAbilityBJ(1093681741,udg_sk[12])
set udg_zk=false
set udg_uk[12]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1701080931,GetOwningPlayer(udg_sk[12]),udg_uk[12],bj_UNIT_FACING)
call RemoveLocation(udg_uk[12])
set udg_uk[12]=null
set udg_yk[12]=k6(GetOwningPlayer(udg_sk[12]),1869834349)
call ForGroupBJ(udg_yk[12],function va7)
call DestroyGroup(udg_yk[12])
set udg_yk[12]=null
set udg_sk[12]=null
else
call DoNothing()
endif
endfunction
function vC7 takes nothing returns nothing
set udg_FB=CreateTrigger()
call TriggerAddCondition(udg_FB,Condition(function vx7))
call TriggerAddAction(udg_FB,function vb7)
endfunction
function vc7 takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())==1211117905))then
return false
endif
if(not(udg_zk==true))then
return false
endif
return true
endfunction
function vD7 takes nothing returns boolean
if(not vc7())then
return false
endif
return true
endfunction
function vE7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetAttacker(),"stop")
endfunction
function v37 takes nothing returns nothing
set udg_GB=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_GB,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_GB,Condition(function vD7))
call TriggerAddAction(udg_GB,function vE7)
endfunction
function vF7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677363))then
return false
endif
return true
endfunction
function vG7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function v67 takes nothing returns boolean
return(IsTriggerEnabled(udg_IB)==false)
endfunction
function vH7 takes nothing returns nothing
set udg_sk[0]=GetTriggerUnit()
set udg_uk[0]=GetUnitLoc(udg_sk[0])
set udg_vk[0]=((100.00+(100.00*I2R(GetUnitAbilityLevelSwapped(1093677363,udg_sk[0]))))+((2.00+(0.50*I2R(GetUnitAbilityLevelSwapped(1093677363,udg_sk[0]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_sk[0],true))))
call PauseUnitBJ(true,udg_sk[0])
call SetUnitAnimation(udg_sk[0],"attack slam")
call UnitRemoveAbilityBJ(1093681741,udg_sk[0])
set udg_Km[16]=GetUnitLoc(udg_sk[0])
call PlaySoundAtPointBJ(udg_rs,100,udg_Km[16],0)
call RemoveLocation(udg_Km[16])
set udg_Km[16]=null
call TriggerSleepAction(0.06)
call SetUnitTimeScalePercent(udg_sk[0],27.00)
set udg_Cj[50]=1
loop
exitwhen udg_Cj[50]>18
set udg_vk[1]=(30.00+(4.00*I2R(udg_Cj[50])))
call CreateNUnitsAtLoc(1,1747988818,GetOwningPlayer(udg_sk[0]),udg_uk[0],GetUnitFacing(udg_sk[0]))
set udg_tk[udg_Cj[50]]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_tk[udg_Cj[50]],udg_vk[1],udg_vk[1],udg_vk[1])
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_tk[udg_Cj[50]])
set udg_vk[1]=0.00
set udg_Cj[50]=udg_Cj[50]+1
endloop
call CreateTextTagUnitBJ("Zabimaru",udg_sk[0],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function vG7)))
call EnableTrigger(udg_IB)
loop
exitwhen(v67())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call PauseUnitBJ(false,udg_sk[0])
call SetUnitTimeScalePercent(udg_sk[0],100.00)
call ResetUnitAnimation(udg_sk[0])
set udg_sk[0]=null
set udg_vk[0]=0.00
set udg_vk[1]=0.00
set udg_xk[0]=0
call RemoveLocation(udg_uk[0])
set udg_uk[0]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_wk)
endfunction
function vI7 takes nothing returns nothing
set udg_HB=CreateTrigger()
call TriggerAddCondition(udg_HB,Condition(function vF7))
call TriggerAddAction(udg_HB,function vH7)
endfunction
function vl7 takes nothing returns boolean
if(not(udg_xk[0]>=6))then
return false
endif
return true
endfunction
function v17 takes nothing returns boolean
if(not(udg_xk[0]<=5))then
return false
endif
return true
endfunction
function vJ7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_sk[0]))==true)
endfunction
function vK7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function vL7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function vM7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function vN7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_wk)==false)
endfunction
function vO7 takes nothing returns boolean
return GetBooleanAnd(vM7(),vN7())
endfunction
function v07 takes nothing returns boolean
return GetBooleanAnd(vL7(),vO7())
endfunction
function vP7 takes nothing returns boolean
return GetBooleanAnd(vK7(),v07())
endfunction
function vQ7 takes nothing returns boolean
return GetBooleanAnd(vJ7(),vP7())
endfunction
function vR7 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_wk)
call UnitDamageTargetBJ(udg_sk[0],GetEnumUnit(),udg_vk[0],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function vS7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function v57 takes nothing returns boolean
if(not(udg_xk[0]>=10))then
return false
endif
return true
endfunction
function vT7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_sk[0])==true))then
return false
endif
return true
endfunction
function vU7 takes nothing returns nothing
if(vT7())then
set udg_vk[1]=((GetUnitFacing(udg_sk[0])+90.00)-(18.00*I2R(udg_xk[0])))
set udg_Cj[51]=1
loop
exitwhen udg_Cj[51]>18
if(v17())then
set udg_uk[1]=PG(udg_uk[0],((8.00*I2R(udg_xk[0]))*I2R(udg_Cj[51])),udg_vk[1])
else
if(vl7())then
set udg_uk[1]=PG(udg_uk[0],((8.00*(11.00-I2R(udg_xk[0])))*I2R(udg_Cj[51])),udg_vk[1])
else
call DoNothing()
endif
endif
call SetUnitPositionLoc(udg_tk[udg_Cj[51]],udg_uk[1])
set udg_yk[0]=e6(100.00,udg_uk[1],Condition(function vQ7))
call ForGroupBJ(udg_yk[0],function vR7)
call DestroyGroup(udg_yk[0])
set udg_yk[0]=null
call UG(100.00,udg_uk[1],function vS7)
call RemoveLocation(udg_uk[1])
set udg_uk[1]=null
call SetUnitFacingTimed(udg_tk[udg_Cj[51]],(udg_vk[1]+0.00),0)
set udg_Cj[51]=udg_Cj[51]+1
endloop
if(v57())then
set udg_Cj[52]=1
loop
exitwhen udg_Cj[52]>18
call RemoveUnit(udg_tk[udg_Cj[52]])
set udg_tk[udg_Cj[52]]=null
set udg_Cj[52]=udg_Cj[52]+1
endloop
call UnitAddAbilityBJ(1093681741,udg_sk[0])
call DisableTrigger(GetTriggeringTrigger())
else
set udg_xk[0]=(udg_xk[0]+1)
endif
else
set udg_Cj[52]=1
loop
exitwhen udg_Cj[52]>18
call RemoveUnit(udg_tk[udg_Cj[52]])
set udg_tk[udg_Cj[52]]=null
set udg_Cj[52]=udg_Cj[52]+1
endloop
call UnitAddAbilityBJ(1093681741,udg_sk[0])
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function vV7 takes nothing returns nothing
set udg_IB=CreateTrigger()
call DisableTrigger(udg_IB)
call TriggerRegisterTimerEventPeriodic(udg_IB,0.06)
call TriggerAddAction(udg_IB,function vU7)
endfunction
function vW7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677364))then
return false
endif
return true
endfunction
function vX7 takes nothing returns nothing
set udg_sk[4]=GetTriggerUnit()
set udg_uk[4]=GetSpellTargetLoc()
set udg_uk[5]=GetUnitLoc(udg_sk[4])
call TriggerSleepAction(4.00)
call RemoveLocation(udg_uk[4])
set udg_uk[4]=null
call RemoveLocation(udg_uk[5])
set udg_uk[5]=null
set udg_sk[4]=null
endfunction
function vY7 takes nothing returns nothing
set udg_lB=CreateTrigger()
call TriggerAddCondition(udg_lB,Condition(function vW7))
call TriggerAddAction(udg_lB,function vX7)
endfunction
function v27 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677364))then
return false
endif
return true
endfunction
function vZ7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function v_7 takes nothing returns boolean
if(not(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==true))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454324)==false))then
return false
endif
return true
endfunction
function w47 takes nothing returns boolean
if(not(IsUnitDeadBJ(GetEnumUnit())==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_q4[690]))then
return false
endif
return true
endfunction
function w77 takes nothing returns boolean
if(not w47())then
return false
endif
return true
endfunction
function w87 takes nothing returns boolean
if(not(IsUnitDeadBJ(GetEnumUnit())==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_q4[690]))then
return false
endif
return true
endfunction
function w97 takes nothing returns boolean
if(not w87())then
return false
endif
return true
endfunction
function wd7 takes nothing returns boolean
if(not v_7())then
return false
endif
return true
endfunction
function Trig_Shakkahou_Func021Func001A takes nothing returns nothing
if(wd7())then
if(w97())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_q4[690]))
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(w77())then
call UnitDamageTargetBJ(udg_A[87],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
endfunction
function Trig_Shakkahou_Func021Func003001 takes nothing returns boolean
return(IsTriggerEnabled(udg_FD)==true)
endfunction
function we7 takes nothing returns boolean
return(IsUnitDeadBJ(udg_A[88])==false)
endfunction
function wf7 takes nothing returns boolean
return(MG(udg_A[88],UNIT_TYPE_HERO)==false)
endfunction
function wg7 takes nothing returns boolean
return(udg_A[88]!=null)
endfunction
function wh7 takes nothing returns boolean
return GetBooleanAnd(wf7(),wg7())
endfunction
function Trig_Shakkahou_Func021Func004001 takes nothing returns boolean
return GetBooleanAnd(we7(),wh7())
endfunction
function wi7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_sk[4]))==true)
endfunction
function wj7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function wk7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function wm7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function wn7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function wo7 takes nothing returns boolean
return GetBooleanAnd(wm7(),wn7())
endfunction
function wp7 takes nothing returns boolean
return GetBooleanAnd(wk7(),wo7())
endfunction
function wq7 takes nothing returns boolean
return GetBooleanAnd(wj7(),wp7())
endfunction
function wr7 takes nothing returns boolean
return GetBooleanAnd(wi7(),wq7())
endfunction
function ws7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_sk[4],GetEnumUnit(),(20.00*I2R(GetHeroLevel(udg_sk[4]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function wt7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function wu7 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_sk[4]))
endfunction
function wv7 takes nothing returns boolean
return GetBooleanAnd(wt7(),wu7())
endfunction
function ww7 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_yk[1])==false))then
return false
endif
return true
endfunction
function wx7 takes nothing returns boolean
return(udg_sk[5]!=null)
endfunction
function wy7 takes nothing returns boolean
return(IsUnitDeadBJ(udg_sk[5])==false)
endfunction
function wz7 takes nothing returns boolean
return GetBooleanAnd(wx7(),wy7())
endfunction
function wA7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function wa7 takes nothing returns boolean
return(IsTriggerEnabled(udg_KB)==true)
endfunction
function wB7 takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ(1,1747988529,GetOwningPlayer(udg_sk[4]),udg_uk[5],udg_uk[4])
set udg_sk[5]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_sk[5])
call EnableTrigger(udg_KB)
call CreateTextTagUnitBJ("Hado #31: Shakkaho",udg_sk[4],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function vZ7)))
set udg_Km[17]=GetUnitLoc(udg_sk[5])
call PlaySoundAtPointBJ(udg_Fr,100,udg_Km[17],0)
call RemoveLocation(udg_Km[17])
set udg_Km[17]=null
call TriggerSleepAction(0.01)
call ResetUnitAnimation(udg_sk[4])
call AddSpecialEffectLocBJ(udg_uk[4],"war3mapImported\\explosion.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_uk[4],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_sk[4]),udg_uk[4],bj_UNIT_FACING)
set udg_sk[6]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681738,udg_sk[6])
call SetUnitAbilityLevelSwapped(1093681738,udg_sk[6],GetUnitAbilityLevelSwapped(1093677364,udg_sk[4]))
call IssueImmediateOrderBJ(udg_sk[6],"stomp")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_sk[6])
set udg_sk[6]=null
set udg_yk[1]=e6(300.00,udg_uk[4],Condition(function wr7))
call ForGroupBJ(udg_yk[1],function ws7)
call DestroyGroup(udg_yk[1])
set udg_yk[1]=null
set udg_yk[1]=e6(300.00,udg_uk[4],Condition(function wv7))
if(ww7())then
call CreateNUnitsAtLoc(1,1966092338,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_uk[4],bj_UNIT_FACING)
set udg_sk[6]=GetLastCreatedUnit()
call UnitDamageTargetBJ(udg_sk[6],udg_sk[4],((500.00+(20.00*I2R(GetHeroLevel(udg_sk[4]))))+(100.00*I2R(GetUnitAbilityLevelSwapped(1093677364,udg_sk[4])))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_sk[6])
set udg_sk[6]=null
else
call DoNothing()
endif
call DestroyGroup(udg_yk[1])
set udg_yk[1]=null
if(wz7())then
call RemoveUnit(udg_sk[5])
else
call DoNothing()
endif
set udg_sk[4]=null
set udg_sk[5]=null
call UG(300.00,udg_uk[4],function wA7)
call TriggerSleepAction(1.00)
if(wa7())then
call DisableTrigger(udg_KB)
else
call DoNothing()
endif
endfunction
function wb7 takes nothing returns nothing
set udg_JB=CreateTrigger()
call TriggerAddCondition(udg_JB,Condition(function v27))
call TriggerAddAction(udg_JB,function wB7)
endfunction
function wC7 takes nothing returns boolean
if(not(udg_sk[5]!=null))then
return false
endif
return true
endfunction
function wc7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_uk[4],udg_uk[6])<70.00))then
return false
endif
if(not(MG(udg_sk[5],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function wD7 takes nothing returns boolean
return(IsUnitDeadBJ(udg_sk[5])==false)
endfunction
function wE7 takes nothing returns boolean
if(not wc7())then
return false
endif
return true
endfunction
function w37 takes nothing returns nothing
set udg_uk[6]=PG(GetUnitLoc(udg_sk[5]),47.00,AngleBetweenPoints(GetUnitLoc(udg_sk[5]),udg_uk[4]))
call SetUnitPositionLocFacingLocBJ(udg_sk[5],udg_uk[6],udg_uk[4])
if(wE7())then
if(wD7())then
call RemoveUnit(udg_sk[5])
else
call DoNothing()
endif
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call RemoveLocation(udg_uk[6])
set udg_uk[6]=null
endfunction
function wF7 takes nothing returns nothing
set udg_KB=CreateTrigger()
call DisableTrigger(udg_KB)
call TriggerRegisterTimerEventPeriodic(udg_KB,0.02)
call TriggerAddCondition(udg_KB,Condition(function wC7))
call TriggerAddAction(udg_KB,function w37)
endfunction
function wG7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681742))then
return false
endif
return true
endfunction
function w67 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function wH7 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=50))then
return false
endif
return true
endfunction
function wI7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function wl7 takes nothing returns boolean
return(IsTriggerEnabled(udg_MB)==false)
endfunction
function w17 takes nothing returns nothing
set udg_sk[10]=GetTriggerUnit()
set udg_sk[11]=GetSpellTargetUnit()
set udg_uk[10]=GetUnitLoc(udg_sk[10])
set udg_xk[10]=0
set udg_vk[10]=(((5.00+I2R(GetUnitAbilityLevelSwapped(1093681742,udg_sk[10])))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_sk[10],true)))+((18.00+(2.00*I2R(GetUnitAbilityLevelSwapped(1093681742,udg_sk[10]))))*I2R(GetHeroLevel(udg_sk[10]))))
call UnitRemoveAbilityBJ(1093681741,udg_sk[10])
set udg_zk=true
set udg_yk[10]=k6(GetOwningPlayer(udg_sk[10]),1701080931)
call ForGroupBJ(udg_yk[10],function w67)
call DestroyGroup(udg_yk[10])
set udg_yk[10]=null
set udg_Cj[55]=1
loop
exitwhen udg_Cj[55]>8
if(wH7())then
call CreateNUnitsAtLoc(1,1747988819,GetOwningPlayer(udg_sk[10]),udg_uk[10],(I2R(udg_Cj[55])*45.00))
set udg_tk[(18+udg_Cj[55])]=GetLastCreatedUnit()
else
call CreateNUnitsAtLoc(1,1747988820,GetOwningPlayer(udg_sk[10]),udg_uk[10],(I2R(udg_Cj[55])*45.00))
set udg_tk[(18+udg_Cj[55])]=GetLastCreatedUnit()
endif
call SetUnitFlyHeightBJ(udg_tk[(18+udg_Cj[55])],GetRandomReal(100.00,600.00),500.00)
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_tk[(18+udg_Cj[55])])
set udg_Cj[55]=udg_Cj[55]+1
endloop
call RemoveLocation(udg_uk[10])
set udg_uk[10]=null
call CreateTextTagUnitBJ("Higa Zekko",udg_sk[10],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function wI7)))
call EnableTrigger(udg_MB)
set udg_Km[18]=GetUnitLoc(udg_sk[10])
call PlaySoundAtPointBJ(udg_tq,100,udg_Km[18],0)
call RemoveLocation(udg_Km[18])
set udg_Km[18]=null
call TriggerSleepAction(0.60)
set udg_Cj[55]=1
loop
exitwhen udg_Cj[55]>8
call SetUnitFlyHeightBJ(udg_tk[(18+udg_Cj[55])],0.00,1200.00)
set udg_Cj[55]=udg_Cj[55]+1
endloop
set udg_xk[10]=1
loop
exitwhen(wl7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
set udg_xk[10]=0
set udg_vk[10]=0.00
set udg_sk[11]=null
call TriggerSleepAction(2)
call UnitAddAbilityBJ(1093681741,udg_sk[10])
set udg_zk=false
set udg_uk[10]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1701080931,GetOwningPlayer(udg_sk[10]),udg_uk[10],bj_UNIT_FACING)
call RemoveLocation(udg_uk[10])
set udg_uk[10]=null
set udg_sk[10]=null
endfunction
function wJ7 takes nothing returns nothing
set udg_LB=CreateTrigger()
call TriggerAddCondition(udg_LB,Condition(function wG7))
call TriggerAddAction(udg_LB,function w17)
endfunction
function wK7 takes nothing returns boolean
if(not(udg_xk[10]==0))then
return false
endif
return true
endfunction
function wL7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_sk[10])==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_sk[11])==true))then
return false
endif
if(not(IsUnitHiddenBJ(udg_sk[11])==false))then
return false
endif
return true
endfunction
function Trig_HZ_move_Func002Func001Func006Func005Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Uj[1])<=udg_Mj[8])
endfunction
function wM7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_uk[11],udg_uk[10])<=120.00))then
return false
endif
return true
endfunction
function wN7 takes nothing returns boolean
if(not wL7())then
return false
endif
return true
endfunction
function wO7 takes nothing returns boolean
if(not(udg_xk[10]==1))then
return false
endif
return true
endfunction
function w07 takes nothing returns nothing
if(wK7())then
set udg_Cj[56]=1
loop
exitwhen udg_Cj[56]>8
set udg_uk[10]=PG(GetUnitLoc(udg_tk[(18+udg_Cj[56])]),20.00,GetUnitFacing(udg_tk[(18+udg_Cj[56])]))
call SetUnitPositionLoc(udg_tk[(18+udg_Cj[56])],udg_uk[10])
call RemoveLocation(udg_uk[10])
set udg_uk[10]=null
set udg_Cj[56]=udg_Cj[56]+1
endloop
else
call DoNothing()
endif
if(wO7())then
if(wN7())then
set udg_Cj[56]=1
loop
exitwhen udg_Cj[56]>8
set udg_uk[10]=PG(GetUnitLoc(udg_tk[(18+udg_Cj[56])]),25.00,AngleBetweenPoints(GetUnitLoc(udg_tk[(18+udg_Cj[56])]),GetUnitLoc(udg_sk[11])))
call SetUnitPositionLoc(udg_tk[(18+udg_Cj[56])],udg_uk[10])
call RemoveLocation(udg_uk[10])
set udg_uk[10]=null
set udg_Cj[56]=udg_Cj[56]+1
endloop
set udg_uk[10]=GetUnitLoc(udg_tk[20])
set udg_uk[11]=GetUnitLoc(udg_sk[11])
if(wM7())then
call UnitDamageTargetBJ(udg_sk[10],udg_sk[11],udg_vk[10],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectLocBJ(udg_uk[11],"NewDirtEXNofire.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_sk[10]),udg_uk[11],bj_UNIT_FACING)
set udg_sk[12]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_sk[12])
call IssueTargetOrderBJ(udg_sk[12],"thunderbolt",udg_sk[11])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_sk[12])
set udg_sk[12]=null
set udg_sk[11]=null
set udg_Cj[57]=1
loop
exitwhen udg_Cj[57]>8
call SetUnitFlyHeightBJ(udg_tk[(18+udg_Cj[57])],0.00,0.00)
call SetUnitPositionLocFacingLocBJ(udg_tk[(18+udg_Cj[57])],udg_uk[11],udg_uk[11])
set udg_Cj[57]=udg_Cj[57]+1
endloop
call RemoveLocation(udg_uk[10])
set udg_uk[10]=null
call RemoveLocation(udg_uk[11])
set udg_uk[11]=null
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.02)
set udg_Cj[57]=1
loop
exitwhen udg_Cj[57]>8
call RemoveUnit(udg_tk[(18+udg_Cj[57])])
set udg_tk[(18+udg_Cj[57])]=null
set udg_Cj[57]=udg_Cj[57]+1
endloop
else
call RemoveLocation(udg_uk[10])
set udg_uk[10]=null
call RemoveLocation(udg_uk[11])
set udg_uk[11]=null
endif
else
set udg_Cj[57]=1
loop
exitwhen udg_Cj[57]>8
call RemoveUnit(udg_tk[(18+udg_Cj[57])])
set udg_tk[(18+udg_Cj[57])]=null
set udg_Cj[57]=udg_Cj[57]+1
endloop
call DisableTrigger(GetTriggeringTrigger())
endif
else
call DoNothing()
endif
endfunction
function wP7 takes nothing returns nothing
set udg_MB=CreateTrigger()
call DisableTrigger(udg_MB)
call TriggerRegisterTimerEventPeriodic(udg_MB,0.03)
call TriggerAddAction(udg_MB,function w07)
endfunction
function wQ7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681744))then
return false
endif
return true
endfunction
function wR7 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function wS7 takes nothing returns boolean
if(not(udg_Cj[58]<=5))then
return false
endif
return true
endfunction
function w57 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function wT7 takes nothing returns boolean
return(IsTriggerEnabled(udg_OB)==false)
endfunction
function wU7 takes nothing returns boolean
if(not(udg_sk[12]!=null))then
return false
endif
return true
endfunction
function wV7 takes nothing returns boolean
return(IsTriggerEnabled(udg_PB)==false)
endfunction
function wW7 takes nothing returns boolean
if(not(udg_sk[12]!=null))then
return false
endif
if(not(udg_Bk==false))then
return false
endif
return true
endfunction
function wX7 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function wY7 takes nothing returns boolean
if(not wW7())then
return false
endif
return true
endfunction
function w27 takes nothing returns nothing
set udg_sk[12]=GetTriggerUnit()
set udg_uk[12]=GetUnitLoc(udg_sk[12])
set udg_vk[12]=(((7.00+I2R(GetUnitAbilityLevelSwapped(1093681744,udg_sk[12])))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_sk[12],true)))+((25.00+(5.00*I2R(GetUnitAbilityLevelSwapped(1093681744,udg_sk[12]))))*I2R(GetHeroLevel(udg_sk[12]))))
set udg_vk[14]=GetUnitFacing(udg_sk[12])
call PauseUnitBJ(true,udg_sk[12])
call SetUnitAnimation(udg_sk[12],"attack slam")
call UnitRemoveAbilityBJ(1093681741,udg_sk[12])
set udg_zk=true
set udg_yk[12]=k6(GetOwningPlayer(udg_sk[12]),1701080931)
call ForGroupBJ(udg_yk[12],function wR7)
call DestroyGroup(udg_yk[12])
set udg_yk[12]=null
set udg_Km[19]=GetUnitLoc(udg_sk[12])
call PlaySoundAtPointBJ(udg_qp,100,udg_Km[19],0)
call RemoveLocation(udg_Km[19])
set udg_Km[19]=null
call TriggerSleepAction(0.06)
call SetUnitTimeScalePercent(udg_sk[12],27.00)
call CreateNUnitsAtLoc(1,1747988822,GetOwningPlayer(udg_sk[12]),udg_uk[12],GetUnitFacing(udg_sk[12]))
set udg_tk[45]=GetLastCreatedUnit()
call SetUnitFlyHeightBJ(udg_tk[45],60.00,0.00)
call UnitApplyTimedLifeBJ(30.00,1112820806,udg_tk[45])
set udg_Cj[58]=1
loop
exitwhen udg_Cj[58]>18
call CreateNUnitsAtLoc(1,1747988821,GetOwningPlayer(udg_sk[12]),udg_uk[12],GetUnitFacing(udg_sk[12]))
set udg_tk[(26+udg_Cj[58])]=GetLastCreatedUnit()
if(wS7())then
set udg_vk[13]=(20.00+(16.00*I2R(udg_Cj[58])))
call SetUnitScalePercent(udg_tk[(26+udg_Cj[58])],udg_vk[13],udg_vk[13],udg_vk[13])
set udg_vk[13]=0.00
else
call SetUnitScalePercent(udg_tk[(26+udg_Cj[58])],100.00,100.00,100.00)
endif
call SetUnitFlyHeightBJ(udg_tk[(26+udg_Cj[58])],60.00,0.00)
call UnitApplyTimedLifeBJ(30.00,1112820806,udg_tk[(26+udg_Cj[58])])
set udg_Cj[58]=udg_Cj[58]+1
endloop
call CreateTextTagUnitBJ("Bankai",udg_sk[12],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function w57)))
call EnableTrigger(udg_OB)
loop
exitwhen(wT7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call PauseUnitBJ(false,udg_sk[12])
call SetUnitTimeScalePercent(udg_sk[12],100.00)
call ResetUnitAnimation(udg_sk[12])
set udg_vk[12]=0.00
set udg_vk[13]=0.00
set udg_vk[14]=0.00
set udg_xk[12]=0
set udg_xk[13]=0
set bj_wantDestroyGroup=true
call GroupClear(udg_ak)
call RemoveLocation(udg_uk[12])
set udg_uk[12]=null
set udg_uk[12]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869834349,GetOwningPlayer(udg_sk[12]),udg_uk[12],bj_UNIT_FACING)
call RemoveLocation(udg_uk[12])
set udg_uk[12]=null
if(wU7())then
set udg_Cj[60]=1
loop
exitwhen udg_Cj[60]>19
call SetUnitFlyHeightBJ(udg_tk[(26+udg_Cj[60])],GetRandomReal(400.00,800.00),500.00)
call SetUnitFacingTimed(udg_tk[(26+udg_Cj[60])],GetRandomReal(0,360.00),GetRandomReal(0.00,4.00))
set udg_Cj[60]=udg_Cj[60]+1
endloop
else
call DoNothing()
endif
call EnableTrigger(udg_PB)
loop
exitwhen(wV7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call TriggerSleepAction(6.00)
if(wY7())then
set udg_Cj[59]=1
loop
exitwhen udg_Cj[59]>19
set udg_uk[200]=GetUnitLoc(udg_tk[(26+udg_Cj[59])])
call RemoveUnit(udg_tk[(26+udg_Cj[59])])
set udg_tk[(26+udg_Cj[59])]=null
call AddSpecialEffectLocBJ(udg_uk[200],"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_uk[200])
set udg_uk[200]=null
set udg_Cj[59]=udg_Cj[59]+1
endloop
call UnitAddAbilityBJ(1093681741,udg_sk[12])
set udg_zk=false
set udg_uk[12]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1701080931,GetOwningPlayer(udg_sk[12]),udg_uk[12],bj_UNIT_FACING)
call RemoveLocation(udg_uk[12])
set udg_uk[12]=null
set udg_yk[12]=k6(GetOwningPlayer(udg_sk[12]),1869834349)
call ForGroupBJ(udg_yk[12],function wX7)
call DestroyGroup(udg_yk[12])
set udg_yk[12]=null
set udg_sk[12]=null
else
call DoNothing()
endif
endfunction
function wZ7 takes nothing returns nothing
set udg_NB=CreateTrigger()
call TriggerAddCondition(udg_NB,Condition(function wQ7))
call TriggerAddAction(udg_NB,function w27)
endfunction
function w_7 takes nothing returns boolean
if(not(udg_xk[12]<=5))then
return false
endif
return true
endfunction
function x47 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_sk[12]))==true)
endfunction
function x77 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function x87 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function x97 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function xd7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_ak)==false)
endfunction
function xe7 takes nothing returns boolean
return GetBooleanAnd(x97(),xd7())
endfunction
function xf7 takes nothing returns boolean
return GetBooleanAnd(x87(),xe7())
endfunction
function xg7 takes nothing returns boolean
return GetBooleanAnd(x77(),xf7())
endfunction
function xh7 takes nothing returns boolean
return GetBooleanAnd(x47(),xg7())
endfunction
function xi7 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_ak)
call UnitDamageTargetBJ(udg_sk[12],GetEnumUnit(),udg_vk[12],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function xj7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function xk7 takes nothing returns boolean
return(udg_xk[12]==10)
endfunction
function xm7 takes nothing returns boolean
if(not(udg_xk[12]>=10))then
return false
endif
return true
endfunction
function xn7 takes nothing returns boolean
if(not(udg_xk[12]>=20))then
return false
endif
return true
endfunction
function xo7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_sk[12])==true))then
return false
endif
return true
endfunction
function xp7 takes nothing returns nothing
if(xo7())then
set udg_vk[13]=((udg_vk[14]+90.00)-(18.00*I2R(udg_xk[12])))
set udg_Cj[59]=1
loop
exitwhen udg_Cj[59]>19
if(w_7())then
set udg_uk[13]=PG(udg_uk[12],((13.00*I2R(udg_xk[12]))*I2R(udg_Cj[59])),udg_vk[13])
else
set udg_uk[13]=PG(udg_uk[12],(65.00*I2R(udg_Cj[59])),udg_vk[13])
endif
call SetUnitPositionLoc(udg_tk[(26+udg_Cj[59])],udg_uk[13])
set udg_yk[13]=e6(200.00,udg_uk[13],Condition(function xh7))
call ForGroupBJ(udg_yk[13],function xi7)
call DestroyGroup(udg_yk[13])
set udg_yk[13]=null
call UG(200.00,udg_uk[13],function xj7)
call RemoveLocation(udg_uk[13])
set udg_uk[13]=null
call SetUnitFacingTimed(udg_tk[(26+udg_Cj[59])],(udg_vk[13]+0.00),0)
set udg_Cj[59]=udg_Cj[59]+1
endloop
if(xn7())then
call DisableTrigger(GetTriggeringTrigger())
else
set udg_xk[12]=(udg_xk[12]+1)
if(xk7())then
call SetUnitTimeScalePercent(udg_sk[12],0.00)
else
call DoNothing()
endif
if(xm7())then
call SetUnitPositionLocFacingBJ(udg_sk[12],udg_uk[12],(udg_vk[13]+45.00))
else
call DoNothing()
endif
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function xq7 takes nothing returns nothing
set udg_OB=CreateTrigger()
call DisableTrigger(udg_OB)
call TriggerRegisterTimerEventPeriodic(udg_OB,0.06)
call TriggerAddAction(udg_OB,function xp7)
endfunction
function xr7 takes nothing returns boolean
if(not(udg_xk[13]==30))then
return false
endif
return true
endfunction
function xs7 takes nothing returns boolean
if(not(udg_xk[13]>=60))then
return false
endif
return true
endfunction
function xt7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_sk[12])==true))then
return false
endif
return true
endfunction
function xu7 takes nothing returns nothing
if(xt7())then
set udg_xk[13]=(udg_xk[13]+1)
set udg_Cj[60]=1
loop
exitwhen udg_Cj[60]>19
set udg_uk[13]=PG(GetUnitLoc(udg_tk[(26+udg_Cj[60])]),20.00,GetUnitFacing(udg_tk[(26+udg_Cj[60])]))
if(xr7())then
call SetUnitFlyHeightBJ(udg_tk[(26+udg_Cj[60])],60.00,1000.00)
else
call DoNothing()
endif
call SetUnitPositionLocFacingBJ(udg_tk[(26+udg_Cj[60])],udg_uk[13],GetUnitFacing(udg_tk[(26+udg_Cj[60])]))
call RemoveLocation(udg_uk[13])
set udg_uk[13]=null
set udg_Cj[60]=udg_Cj[60]+1
endloop
if(xs7())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function xv7 takes nothing returns nothing
set udg_PB=CreateTrigger()
call DisableTrigger(udg_PB)
call TriggerRegisterTimerEventPeriodic(udg_PB,0.03)
call TriggerAddAction(udg_PB,function xu7)
endfunction
function xw7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681745))then
return false
endif
return true
endfunction
function xx7 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1747988821)
endfunction
function xy7 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1747988822)
endfunction
function xz7 takes nothing returns boolean
return GetBooleanOr(xx7(),xy7())
endfunction
function xA7 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_yk[41])==true))then
return false
endif
return true
endfunction
function xa7 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_yk[40])==true))then
return false
endif
return true
endfunction
function xB7 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function xb7 takes nothing returns boolean
if(not xB7())then
return false
endif
return true
endfunction
function xC7 takes nothing returns nothing
set udg_uk[205]=GetUnitLoc(GetTriggerUnit())
set udg_yk[40]=k6(GetOwningPlayer(GetTriggerUnit()),1869834349)
set udg_yk[41]=e6(2600.00,udg_uk[205],Condition(function xz7))
if(xb7())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability|r")
else
if(xa7())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00No Hihio Zabimaru segments found|r")
else
if(xA7())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00You're standing too far from your Bankai|r")
else
call DoNothing()
endif
endif
endif
call DestroyGroup(udg_yk[40])
set udg_yk[40]=null
call DestroyGroup(udg_yk[41])
set udg_yk[41]=null
call RemoveLocation(udg_uk[205])
set udg_uk[205]=null
endfunction
function xc7 takes nothing returns nothing
set udg_QB=CreateTrigger()
call TriggerAddCondition(udg_QB,Condition(function xw7))
call TriggerAddAction(udg_QB,function xC7)
endfunction
function xD7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681745))then
return false
endif
return true
endfunction
function xE7 takes nothing returns boolean
if(not(udg_Cj[62]<=5))then
return false
endif
return true
endfunction
function x37 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function xF7 takes nothing returns boolean
return(IsTriggerEnabled(udg_SB)==false)
endfunction
function xG7 takes nothing returns boolean
return(IsTriggerEnabled(udg_TB)==false)
endfunction
function x67 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_sk[20])==true))then
return false
endif
return true
endfunction
function xH7 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function xI7 takes nothing returns nothing
set udg_sk[20]=GetTriggerUnit()
set udg_sk[21]=GetSpellTargetUnit()
set udg_uk[20]=GetUnitLoc(udg_sk[20])
set udg_uk[21]=GetUnitLoc(udg_sk[21])
set udg_vk[20]=AngleBetweenPoints(udg_uk[20],udg_uk[21])
set udg_vk[21]=((10.00+(6.00*I2R(GetUnitAbilityLevelSwapped(1093681745,udg_sk[20]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_sk[20],true)))
set udg_xk[20]=1
set udg_xk[21]=100
set udg_Bk=true
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_sk[20]))]=true
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_sk[21]))]=true
call PauseUnitBJ(true,udg_sk[20])
call PauseUnitBJ(true,udg_sk[21])
call SetUnitInvulnerable(udg_sk[20],true)
call SetUnitInvulnerable(udg_sk[21],true)
call SetUnitPathing(udg_sk[21],false)
call SetUnitAnimation(udg_sk[20],"stand ready")
set udg_Cj[62]=1
loop
exitwhen udg_Cj[62]>19
call SetUnitFlyHeightBJ(udg_tk[(26+udg_Cj[62])],(16.00*I2R(udg_Cj[62])),1500.00)
if(xE7())then
set udg_uk[(26+udg_Cj[62])]=PG(udg_uk[20],(32.00*I2R(udg_Cj[62])),((udg_vk[20]+0.00)+I2R((20*udg_Cj[62]))))
else
set udg_uk[(26+udg_Cj[62])]=PG(udg_uk[20],160.00,((udg_vk[20]+0.00)+I2R((20*udg_Cj[62]))))
endif
set udg_xk[(50+udg_Cj[62])]=1
set udg_Cj[62]=udg_Cj[62]+1
endloop
call EnableTrigger(udg_SB)
call TriggerSleepAction(0.05)
call SetUnitTimeScalePercent(udg_sk[20],0.00)
call TriggerSleepAction(2.00)
set udg_Cj[62]=1
loop
exitwhen udg_Cj[62]>19
call RemoveLocation(udg_uk[(26+udg_Cj[62])])
set udg_uk[(26+udg_Cj[62])]=null
call SetUnitFlyHeightBJ(udg_tk[(26+udg_Cj[62])],60.00,(I2R(udg_Cj[62])*200.00))
set udg_Cj[62]=udg_Cj[62]+1
endloop
call SetUnitInvulnerable(udg_sk[20],false)
call SetUnitInvulnerable(udg_sk[21],false)
set udg_Cj[62]=1
loop
exitwhen udg_Cj[62]>18
call ResetUnitLookAt(udg_tk[(26+udg_Cj[62])])
set udg_vk[(udg_xk[21]-(19-udg_Cj[62]))]=udg_vk[20]
set udg_uk[(udg_xk[21]-(19-udg_Cj[62]))]=GetUnitLoc(udg_tk[(26+udg_Cj[62])])
set udg_Cj[62]=udg_Cj[62]+1
endloop
call ResetUnitLookAt(udg_tk[45])
set udg_xk[20]=2
call CreateTextTagUnitBJ("Hikotsu Taiho",udg_sk[20],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function x37)))
set udg_Km[20]=GetUnitLoc(udg_sk[20])
call PlaySoundAtPointBJ(udg_wq,100,udg_Km[20],0)
call RemoveLocation(udg_Km[20])
set udg_Km[20]=null
loop
exitwhen(xF7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call PauseUnitBJ(false,udg_sk[21])
call SetUnitPathing(udg_sk[21],true)
call SetUnitTimeScalePercent(udg_sk[20],100.00)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_sk[20]))]=false
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_sk[21]))]=false
if(x67())then
set udg_vk[20]=GetUnitFacing(udg_tk[45])
set udg_uk[26]=PG(GetUnitLoc(udg_tk[45]),100.00,udg_vk[20])
call CreateNUnitsAtLoc(1,1747988816,GetOwningPlayer(udg_sk[20]),udg_uk[26],udg_vk[20])
set udg_sk[22]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_sk[22],200.00,150.00,250.00)
call SetUnitFlyHeightBJ(udg_sk[22],200.00,0.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_sk[22])
call RemoveLocation(udg_uk[26])
set udg_uk[26]=null
set udg_uk[26]=PG(GetUnitLoc(udg_tk[45]),1000.00,udg_vk[20])
call EnableTrigger(udg_TB)
loop
exitwhen(xG7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call KillUnit(udg_sk[22])
set udg_sk[22]=null
call RemoveLocation(udg_uk[26])
set udg_uk[26]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_bk)
call PauseUnitBJ(false,udg_sk[20])
else
call DoNothing()
endif
set udg_sk[20]=null
set udg_sk[21]=null
call RemoveLocation(udg_uk[20])
set udg_uk[20]=null
call RemoveLocation(udg_uk[21])
set udg_uk[21]=null
set udg_vk[20]=0.00
set udg_vk[21]=0.00
set udg_xk[20]=0
set udg_Bk=false
set udg_Cj[63]=82
loop
exitwhen udg_Cj[63]>udg_xk[21]
call RemoveLocation(udg_uk[udg_Cj[63]])
set udg_uk[udg_Cj[63]]=null
set udg_xk[udg_Cj[63]]=0
set udg_Cj[63]=udg_Cj[63]+1
endloop
set udg_xk[21]=0
set udg_Cj[59]=1
loop
exitwhen udg_Cj[59]>19
set udg_uk[200]=GetUnitLoc(udg_tk[(26+udg_Cj[59])])
call RemoveUnit(udg_tk[(26+udg_Cj[59])])
set udg_tk[(26+udg_Cj[59])]=null
call AddSpecialEffectLocBJ(udg_uk[200],"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_uk[200])
set udg_uk[200]=null
set udg_Cj[59]=udg_Cj[59]+1
endloop
call UnitAddAbilityBJ(1093681741,udg_sk[12])
set udg_zk=false
set udg_uk[12]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1701080931,GetOwningPlayer(udg_sk[12]),udg_uk[12],bj_UNIT_FACING)
call RemoveLocation(udg_uk[12])
set udg_uk[12]=null
set udg_yk[12]=k6(GetOwningPlayer(udg_sk[12]),1869834349)
call ForGroupBJ(udg_yk[12],function xH7)
call DestroyGroup(udg_yk[12])
set udg_yk[12]=null
set udg_sk[12]=null
endfunction
function xl7 takes nothing returns nothing
set udg_RB=CreateTrigger()
call TriggerAddCondition(udg_RB,Condition(function xD7))
call TriggerAddAction(udg_RB,function xI7)
endfunction
function x17 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_sk[20])==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_sk[21])==true))then
return false
endif
return true
endfunction
function xJ7 takes nothing returns boolean
if(not(udg_Cj[63]==19))then
return false
endif
return true
endfunction
function xK7 takes nothing returns boolean
if(not(udg_xk[(50+udg_Cj[63])]==1))then
return false
endif
return true
endfunction
function xL7 takes nothing returns boolean
if(not(udg_Cj[63]==19))then
return false
endif
return true
endfunction
function xM7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_uk[22],udg_uk[(26+udg_Cj[63])])<=120.00))then
return false
endif
return true
endfunction
function xN7 takes nothing returns boolean
if(not(udg_xk[20]==1))then
return false
endif
return true
endfunction
function xO7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_sk[21])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_sk[21])==true))then
return true
endif
return false
endfunction
function x07 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_uk[20],udg_uk[25])<=800.00))then
return false
endif
if(not xO7())then
return false
endif
return true
endfunction
function xP7 takes nothing returns boolean
if((udg_xk[21]==120))then
return true
endif
if((udg_xk[21]==140))then
return true
endif
if((udg_xk[21]==160))then
return true
endif
return false
endfunction
function xQ7 takes nothing returns boolean
if(not xP7())then
return false
endif
return true
endfunction
function xR7 takes nothing returns boolean
if(not(RectContainsUnit(udg_sn,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_An,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_jo,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_ko,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_mo,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_no,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_oo,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_po,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_qo,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_ro,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_so,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_Ro,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_So,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_vo,udg_sk[21])==false))then
return false
endif
if(not(RectContainsUnit(udg_xo,udg_sk[21])==false))then
return false
endif
return true
endfunction
function xS7 takes nothing returns boolean
if(not xR7())then
return false
endif
return true
endfunction
function x57 takes nothing returns boolean
if(not x07())then
return false
endif
return true
endfunction
function xT7 takes nothing returns boolean
return(GetFilterUnit()!=udg_sk[21])
endfunction
function xU7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_sk[20]))==true)
endfunction
function xV7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function xW7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function xX7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function xY7 takes nothing returns boolean
return GetBooleanAnd(xW7(),xX7())
endfunction
function x27 takes nothing returns boolean
return GetBooleanAnd(xV7(),xY7())
endfunction
function xZ7 takes nothing returns boolean
return GetBooleanAnd(xU7(),x27())
endfunction
function x_7 takes nothing returns boolean
return GetBooleanAnd(xT7(),xZ7())
endfunction
function y47 takes nothing returns nothing
call UnitDamageTargetBJ(udg_sk[20],GetEnumUnit(),(0.45*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_sk[20],true))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endfunction
function y77 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function y87 takes nothing returns boolean
if(not(udg_xk[21]>=180))then
return false
endif
return true
endfunction
function y97 takes nothing returns boolean
if(not(udg_xk[20]==2))then
return false
endif
return true
endfunction
function yd7 takes nothing returns boolean
if(not x17())then
return false
endif
return true
endfunction
function ye7 takes nothing returns nothing
if(yd7())then
if(xN7())then
set udg_Cj[63]=1
loop
exitwhen udg_Cj[63]>19
set udg_uk[22]=GetUnitLoc(udg_tk[(26+udg_Cj[63])])
set udg_uk[23]=PG(udg_uk[22],100.00,AngleBetweenPoints(udg_uk[22],udg_uk[(26+udg_Cj[63])]))
if(xM7())then
if(xK7())then
call SetUnitPositionLoc(udg_tk[(26+udg_Cj[63])],udg_uk[(26+udg_Cj[63])])
set udg_xk[(50+udg_Cj[63])]=0
if(xJ7())then
call SetUnitFacingToFaceUnitTimed(udg_tk[(26+udg_Cj[63])],udg_sk[21],0)
call SetUnitLookAt(udg_tk[(26+udg_Cj[63])],"bone_chest",udg_sk[21],0,0,GetUnitFlyHeight(udg_sk[21]))
else
call SetUnitLookAt(udg_tk[(26+udg_Cj[63])],"bone_chest",udg_tk[(27+udg_Cj[63])],0,0,GetUnitFlyHeight(udg_tk[(27+udg_Cj[63])]))
endif
else
call DoNothing()
endif
else
call SetUnitPositionLoc(udg_tk[(26+udg_Cj[63])],udg_uk[23])
if(xL7())then
call SetUnitFacingToFaceUnitTimed(udg_tk[(26+udg_Cj[63])],udg_sk[21],0)
else
call SetUnitFacingToFaceUnitTimed(udg_tk[(26+udg_Cj[63])],udg_tk[(27+udg_Cj[63])],0)
endif
endif
call RemoveLocation(udg_uk[22])
set udg_uk[22]=null
call RemoveLocation(udg_uk[23])
set udg_uk[23]=null
set udg_Cj[63]=udg_Cj[63]+1
endloop
else
call DoNothing()
endif
if(y97())then
set udg_uk[25]=GetUnitLoc(udg_tk[45])
if(x57())then
if(xQ7())then
set udg_vk[25]=(udg_vk[25]+GetRandomReal(-60.00,60.00))
else
call DoNothing()
endif
else
if(xS7())then
set udg_vk[25]=(AngleBetweenPoints(udg_uk[25],udg_uk[20])+GetRandomReal(-30.00,30.00))
else
set udg_vk[25]=(udg_vk[25]-15.00)
endif
endif
set udg_vk[udg_xk[21]]=udg_vk[25]
set udg_uk[udg_xk[21]]=PG(udg_uk[25],70.00,udg_vk[25])
call RemoveLocation(udg_uk[25])
set udg_uk[25]=null
set udg_uk[25]=PG(udg_uk[udg_xk[21]],30.00,udg_vk[25])
call SetUnitPositionLocFacingBJ(udg_tk[45],udg_uk[udg_xk[21]],udg_vk[25])
set udg_uk[201]=GetUnitLoc(udg_tk[45])
set udg_Cj[63]=1
loop
exitwhen udg_Cj[63]>18
set udg_uk[202]=PG(udg_uk[20],((DistanceBetweenPoints(udg_uk[20],udg_uk[201])/18.00)*I2R((udg_Cj[63]*-1))),AngleBetweenPoints(udg_uk[(udg_xk[21]-(19-udg_Cj[63]))],udg_uk[20]))
call SetUnitPositionLocFacingBJ(udg_tk[(26+udg_Cj[63])],udg_uk[202],udg_vk[(udg_xk[21]-(19-udg_Cj[63]))])
call RemoveLocation(udg_uk[202])
set udg_uk[202]=null
set udg_Cj[63]=udg_Cj[63]+1
endloop
call SetUnitPositionLocFacingBJ(udg_sk[21],udg_uk[25],(udg_vk[25]-180.00))
call SetUnitPositionLocFacingLocBJ(udg_sk[20],udg_uk[20],udg_uk[25])
call AddSpecialEffectLocBJ(udg_uk[udg_xk[21]],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_sk[20],udg_sk[21],(0.45*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_sk[20],true))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
set udg_yk[21]=e6(250.00,udg_uk[udg_xk[21]],Condition(function x_7))
call ForGroupBJ(udg_yk[21],function y47)
call DestroyGroup(udg_yk[21])
set udg_yk[21]=null
call UG(250.00,udg_uk[udg_xk[21]],function y77)
call RemoveLocation(udg_uk[25])
set udg_uk[25]=null
call RemoveLocation(udg_uk[201])
set udg_uk[201]=null
if(y87())then
call DisableTrigger(GetTriggeringTrigger())
else
set udg_xk[21]=(udg_xk[21]+1)
endif
else
call DoNothing()
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function yf7 takes nothing returns nothing
set udg_SB=CreateTrigger()
call DisableTrigger(udg_SB)
call TriggerRegisterTimerEventPeriodic(udg_SB,0.06)
call TriggerAddAction(udg_SB,function ye7)
endfunction
function yg7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_bk)==false)
endfunction
function yh7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_sk[20]))==true)
endfunction
function yi7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function yj7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function yk7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ym7 takes nothing returns boolean
return GetBooleanAnd(yj7(),yk7())
endfunction
function yn7 takes nothing returns boolean
return GetBooleanAnd(yi7(),ym7())
endfunction
function yo7 takes nothing returns boolean
return GetBooleanAnd(yh7(),yn7())
endfunction
function yp7 takes nothing returns boolean
return GetBooleanAnd(yg7(),yo7())
endfunction
function Trig_HT_damage_Func001Func004Func004Func002Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=udg_ng)
endfunction
function yq7 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_bk)
call UnitDamageTargetBJ(udg_sk[20],GetEnumUnit(),udg_vk[21],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function yr7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function ys7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_uk[25],udg_uk[26])<=60.00))then
return false
endif
return true
endfunction
function yt7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_sk[20])==true))then
return false
endif
return true
endfunction
function yu7 takes nothing returns nothing
if(yt7())then
set udg_uk[25]=PG(GetUnitLoc(udg_sk[22]),50.00,udg_vk[20])
if(ys7())then
call DisableTrigger(GetTriggeringTrigger())
else
call SetUnitPositionLocFacingBJ(udg_sk[22],udg_uk[25],udg_vk[20])
set udg_yk[25]=e6(350.00,udg_uk[25],Condition(function yp7))
call ForGroupBJ(udg_yk[25],function yq7)
call DestroyGroup(udg_yk[25])
set udg_yk[25]=null
call UG(350.00,udg_uk[25],function yr7)
endif
call RemoveLocation(udg_uk[25])
set udg_uk[25]=null
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function yv7 takes nothing returns nothing
set udg_TB=CreateTrigger()
call DisableTrigger(udg_TB)
call TriggerRegisterTimerEventPeriodic(udg_TB,0.03)
call TriggerAddAction(udg_TB,function yu7)
endfunction
function yw7 takes nothing returns boolean
if(not(udg_oj==null))then
return false
endif
return true
endfunction
function yx7 takes nothing returns nothing
if(yw7())then
call DestroyTrigger(udg_VB)
call DestroyTrigger(udg_WB)
call DestroyTrigger(udg_XB)
call DestroyTrigger(udg_YB)
call DestroyTrigger(udg_ZB)
call DestroyTrigger(udg_db)
call DestroyTrigger(udg_eb)
call DestroyTrigger(udg_fb)
call DestroyTrigger(udg_gb)
call DestroyTrigger(udg_hb)
call DestroyTrigger(udg_ib)
else
call TriggerRegisterUnitEvent(udg_VB,udg_oj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_WB,udg_oj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_XB,udg_oj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_YB,udg_oj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_ZB,udg_oj,EVENT_UNIT_HERO_SKILL)
call TriggerRegisterUnitEvent(udg_db,udg_oj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_fb,udg_oj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_gb,udg_oj,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_hb,udg_oj,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function yy7 takes nothing returns nothing
set udg_UB=CreateTrigger()
call TriggerAddAction(udg_UB,function yx7)
endfunction
function yz7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677389))then
return true
endif
if((GetSpellAbilityId()==1093681485))then
return true
endif
return false
endfunction
function yA7 takes nothing returns boolean
if(not yz7())then
return false
endif
return true
endfunction
function ya7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function yB7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function yb7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681485))then
return false
endif
return true
endfunction
function yC7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677389))then
return false
endif
return true
endfunction
function yc7 takes nothing returns nothing
if(yC7())then
call CreateTextTagUnitBJ("\"scatter...\"",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function ya7)))
else
if(yb7())then
call CreateTextTagUnitBJ("Bakudo #61...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function yB7)))
else
call DoNothing()
endif
endif
endfunction
function yD7 takes nothing returns nothing
set udg_VB=CreateTrigger()
call TriggerAddCondition(udg_VB,Condition(function yA7))
call TriggerAddAction(udg_VB,function yc7)
endfunction
function yE7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677389))then
return true
endif
if((GetSpellAbilityId()==1093681484))then
return true
endif
return false
endfunction
function y37 takes nothing returns boolean
if(not yE7())then
return false
endif
return true
endfunction
function yF7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function yG7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681484))then
return false
endif
return true
endfunction
function y67 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function yH7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677389))then
return false
endif
return true
endfunction
function yI7 takes nothing returns nothing
if(yH7())then
call CreateTextTagUnitBJ("\"Senbonzakura!\"",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function y67)))
else
if(yG7())then
call CreateTextTagUnitBJ("SHUKEI HAKUTEIKEN",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function yF7)))
else
call DoNothing()
endif
endif
endfunction
function yl7 takes nothing returns nothing
set udg_WB=CreateTrigger()
call TriggerAddCondition(udg_WB,Condition(function y37))
call TriggerAddAction(udg_WB,function yI7)
endfunction
function y17 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677389))then
return false
endif
return true
endfunction
function yJ7 takes nothing returns nothing
set udg_A[399]=GetTriggerUnit()
set udg_B[399]=GetSpellTargetLoc()
set udg_U9[1]=GetUnitLoc(udg_A[399])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[399]),udg_U9[1],AngleBetweenPoints(GetUnitLoc(udg_A[399]),udg_B[399]))
set udg_V9[1]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_V9[1],300.00,300.00,300.00)
call UnitAddAbilityBJ(1093678418,udg_V9[1])
call SetUnitAbilityLevelSwapped(1093678418,udg_V9[1],GetUnitAbilityLevelSwapped(1093677389,udg_A[399]))
call RemoveLocation(udg_U9[1])
set udg_U9[1]=null
set udg_U9[1]=PG(GetUnitLoc(udg_A[399]),256,AngleBetweenPoints(GetUnitLoc(udg_A[399]),udg_B[399]))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"shockwave",udg_U9[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
call PlaySoundAtPointBJ(udg_br,100,udg_U9[1],0)
call RemoveLocation(udg_U9[1])
set udg_U9[1]=null
set udg_V9[1]=null
set udg_U9[1]=GetUnitLoc(udg_A[399])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[399]),udg_U9[1],AngleBetweenPoints(GetUnitLoc(udg_A[399]),udg_B[399]))
set udg_V9[1]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_V9[1],300.00,300.00,300.00)
call UnitAddAbilityBJ(1093679177,udg_V9[1])
call RemoveLocation(udg_U9[1])
set udg_U9[1]=null
set udg_U9[1]=PG(GetUnitLoc(udg_A[399]),256,AngleBetweenPoints(GetUnitLoc(udg_A[399]),udg_B[399]))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"shockwave",udg_U9[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_V9[1])
set udg_A[399]=null
call RemoveLocation(udg_B[399])
set udg_B[399]=null
set udg_V9[1]=null
call RemoveLocation(udg_U9[1])
set udg_U9[1]=null
endfunction
function yK7 takes nothing returns nothing
set udg_XB=CreateTrigger()
call TriggerAddCondition(udg_XB,Condition(function y17))
call TriggerAddAction(udg_XB,function yJ7)
endfunction
function yL7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681485))then
return false
endif
return true
endfunction
function yM7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function yN7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function yO7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_wg))==true)
endfunction
function y07 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function yP7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function yQ7 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),GetOwningPlayer(udg_wg))==true)
endfunction
function yR7 takes nothing returns boolean
return GetBooleanAnd(yP7(),yQ7())
endfunction
function yS7 takes nothing returns boolean
return GetBooleanAnd(y07(),yR7())
endfunction
function y57 takes nothing returns boolean
return GetBooleanAnd(yO7(),yS7())
endfunction
function yT7 takes nothing returns boolean
return GetBooleanAnd(yN7(),y57())
endfunction
function yU7 takes nothing returns boolean
return GetBooleanAnd(yM7(),yT7())
endfunction
function yV7 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_yg)==false)
endfunction
function yW7 takes nothing returns nothing
set udg_zg=GetEnumUnit()
endfunction
function Trig_Rikujou_Kourou_Func004Func001Func002Func001002 takes nothing returns nothing
set udg_zg=GetEnumUnit()
endfunction
function yX7 takes nothing returns boolean
if(not(udg_zg==null))then
return false
endif
return true
endfunction
function yY7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_zg,1112560453)==true)
endfunction
function y27 takes nothing returns boolean
return(UnitHasBuffBJ(udg_zg,1110454833)==true)
endfunction
function yZ7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_zg,1110454834)==true)
endfunction
function y_7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_zg,1110454360)==true)
endfunction
function z47 takes nothing returns boolean
return(UnitHasBuffBJ(udg_zg,1112757326)==true)
endfunction
function z77 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function z87 takes nothing returns boolean
if(not(udg_zg!=null))then
return false
endif
return true
endfunction
function z97 takes nothing returns nothing
set udg_wg=GetTriggerUnit()
set udg_zg=null
set udg_xg=GetSpellTargetLoc()
set udg_Gh=1
loop
exitwhen udg_Gh>24
if(yX7())then
set udg_yg=u6(1,e6((5.00*I2R(udg_Gh)),udg_xg,Condition(function yU7)))
if(yV7())then
call ForGroupBJ(udg_yg,function yW7)
else
call DoNothing()
endif
call DestroyGroup(udg_yg)
set udg_yg=null
else
call DoNothing()
endif
set udg_Gh=udg_Gh+1
endloop
if(z87())then
if(yY7())then
call UnitRemoveBuffBJ(1112560453,udg_zg)
else
call DoNothing()
endif
if(y27())then
call UnitRemoveBuffBJ(1110454833,udg_zg)
else
call DoNothing()
endif
if(yZ7())then
call UnitRemoveBuffBJ(1110454834,udg_zg)
else
call DoNothing()
endif
if(y_7())then
call UnitRemoveBuffBJ(1110454360,udg_zg)
else
call DoNothing()
endif
if(z47())then
call UnitRemoveBuffBJ(1112757326,udg_zg)
else
call DoNothing()
endif
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_wg),udg_xg,bj_UNIT_FACING)
set udg_Ag=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677391,udg_Ag)
call SetUnitAbilityLevelSwapped(1093677391,udg_Ag,GetUnitAbilityLevelSwapped(1093681485,udg_wg))
call IssueTargetOrderBJ(udg_Ag,"thunderbolt",udg_zg)
set udg_Ag=null
set udg_Sg[4]=GetUnitLoc(udg_wg)
call PlaySoundAtPointBJ(udg_xp,100,udg_Sg[4],0)
call CreateTextTagUnitBJ("Rikujo Koro",udg_wg,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function z77)))
call RemoveLocation(udg_Sg[4])
set udg_Sg[4]=null
else
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_wg)),4.00," |cffffcc00No valid target found|r")
endif
call RemoveLocation(udg_xg)
set udg_xg=null
set udg_wg=null
set udg_zg=null
endfunction
function zd7 takes nothing returns nothing
set udg_YB=CreateTrigger()
call TriggerAddCondition(udg_YB,Condition(function yL7))
call TriggerAddAction(udg_YB,function z97)
endfunction
function ze7 takes nothing returns boolean
if(not(GetLearnedSkillBJ()==1093678166))then
return false
endif
return true
endfunction
function zf7 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_eb)
call TriggerRegisterUnitEvent(udg_eb,GetLearningUnit(),EVENT_UNIT_DAMAGED)
endfunction
function zg7 takes nothing returns nothing
set udg_ZB=CreateTrigger()
call TriggerAddCondition(udg_ZB,Condition(function ze7))
call TriggerAddAction(udg_ZB,function zf7)
endfunction
function zh7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678166))then
return false
endif
return true
endfunction
function zi7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function zj7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[44],1110454839)==true)
endfunction
function zk7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function zm7 takes nothing returns boolean
if(not(udg_A[45]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_A[45])==false))then
return false
endif
return true
endfunction
function zn7 takes nothing returns boolean
if(not zm7())then
return false
endif
return true
endfunction
function zo7 takes nothing returns boolean
if(not(udg_sg==true))then
return false
endif
return true
endfunction
function zp7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function zq7 takes nothing returns boolean
if(not(udg_rg==true))then
return false
endif
return true
endfunction
function zr7 takes nothing returns nothing
set udg_s9[6]=GetTriggerUnit()
set udg_rg=true
set udg_og=(8.50+(1.50*I2R(GetUnitAbilityLevelSwapped(1093678166,udg_s9[6]))))
set udg_pg=k6(GetOwningPlayer(udg_s9[6]),1869311844)
call ForGroupBJ(udg_pg,function zi7)
call DestroyGroup(udg_pg)
set udg_pg=null
if(zo7())then
set udg_sg=false
set udg_ug=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869116782,GetOwningPlayer(udg_A[44]),udg_ug,bj_UNIT_FACING)
call RemoveLocation(udg_ug)
set udg_ug=null
if(zj7())then
call UnitRemoveBuffBJ(1110454839,udg_A[44])
else
call DoNothing()
endif
set udg_X9=k6(GetOwningPlayer(udg_A[44]),1747988534)
call ForGroupBJ(udg_X9,function zk7)
call DestroyGroup(udg_X9)
set udg_X9=null
call SetBlightRadiusLocBJ(false,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_B[23],1000.00)
call SetUnitAbilityLevelSwapped(1093681481,udg_A[44],1)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[44]),udg_B[23],bj_UNIT_FACING)
set udg_A[36]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_A[36],200.00,200.00,200.00)
call UnitAddAbilityBJ(1093681482,udg_A[36])
call SetUnitAbilityLevelSwapped(1093681482,udg_A[36],GetUnitAbilityLevelSwapped(1093677394,udg_A[44]))
call IssueImmediateOrderBJ(udg_A[36],"fanofknives")
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[36])
if(zn7())then
call KillUnit(udg_A[45])
set udg_A[45]=null
else
call DoNothing()
endif
set udg_A[36]=null
call CreateNUnitsAtLoc(1,1747988793,GetOwningPlayer(udg_A[44]),udg_B[23],bj_UNIT_FACING)
set udg_A[36]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_A[36],50.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_A[36])
set udg_A[36]=null
set udg_H[3]=0.00
set udg_A[44]=null
call RemoveLocation(udg_B[23])
set udg_B[23]=null
else
call DoNothing()
endif
call SetUnitAbilityLevelSwapped(1093681481,udg_s9[6],(GetUnitAbilityLevelSwapped(1093678166,udg_s9[6])+1))
call SetUnitAbilityLevelSwapped(1093678392,udg_s9[6],(GetUnitAbilityLevelSwapped(1093678166,udg_s9[6])+1))
call AddSpecialEffectTargetUnitBJ("chest",udg_s9[6],"!SenbonzakuraArmor!.mdx")
set udg_Dg[1]=GetLastCreatedEffectBJ()
set udg_W9=GetUnitFacing(udg_s9[6])
call CreateTextTagUnitBJ("Bankai",udg_s9[6],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function zp7)))
set udg_H[491]=GetUnitFacing(GetTriggerUnit())
set udg_U9[3]=PG(GetUnitLoc(udg_s9[6]),256,(udg_W9+90.00))
set udg_U9[2]=PG(udg_U9[3],75.00,udg_W9)
call CreateNUnitsAtLoc(1,1747988560,GetOwningPlayer(udg_s9[6]),udg_U9[2],udg_H[491])
set udg_A[36]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_A[36],100,100.00,100.00,35.00)
call SetUnitTimeScalePercent(udg_A[36],4.00)
call RemoveLocation(udg_U9[2])
set udg_U9[2]=null
set udg_U9[2]=PG(udg_U9[3],150.00,udg_W9)
call CreateNUnitsAtLoc(1,1747988560,GetOwningPlayer(udg_s9[6]),udg_U9[2],udg_H[491])
set udg_A[37]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_A[37],100,100.00,100.00,35.00)
call SetUnitTimeScalePercent(udg_A[37],4.00)
call RemoveLocation(udg_U9[2])
set udg_U9[2]=null
set udg_U9[2]=PG(udg_U9[3],-75.00,udg_W9)
call CreateNUnitsAtLoc(1,1747988560,GetOwningPlayer(udg_s9[6]),udg_U9[2],udg_H[491])
set udg_A[38]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_A[38],100,100.00,100.00,35.00)
call SetUnitTimeScalePercent(udg_A[38],4.00)
call RemoveLocation(udg_U9[2])
set udg_U9[2]=null
set udg_U9[2]=PG(udg_U9[3],-150.00,udg_W9)
call CreateNUnitsAtLoc(1,1747988560,GetOwningPlayer(udg_s9[6]),udg_U9[2],udg_H[491])
set udg_A[39]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_A[39],100,100.00,100.00,35.00)
call SetUnitTimeScalePercent(udg_A[39],4.00)
call RemoveLocation(udg_U9[2])
set udg_U9[2]=null
call CreateNUnitsAtLoc(1,1747988560,GetOwningPlayer(udg_s9[6]),udg_U9[3],udg_H[491])
set udg_A[492]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_A[492],100,100.00,100.00,35.00)
call SetUnitTimeScalePercent(udg_A[492],4.00)
call RemoveLocation(udg_U9[2])
set udg_U9[2]=null
call RemoveLocation(udg_U9[3])
set udg_U9[3]=null
set udg_U9[3]=PG(GetUnitLoc(udg_s9[6]),256,(udg_W9-90.00))
set udg_U9[2]=PG(udg_U9[3],75.00,udg_W9)
call CreateNUnitsAtLoc(1,1747988560,GetOwningPlayer(udg_s9[6]),udg_U9[2],udg_H[491])
set udg_A[40]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_A[40],100,100.00,100.00,35.00)
call SetUnitTimeScalePercent(udg_A[40],4.00)
call RemoveLocation(udg_U9[2])
set udg_U9[2]=null
set udg_U9[2]=PG(udg_U9[3],150.00,udg_W9)
call CreateNUnitsAtLoc(1,1747988560,GetOwningPlayer(udg_s9[6]),udg_U9[2],udg_H[491])
set udg_A[41]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_A[41],100,100.00,100.00,35.00)
call SetUnitTimeScalePercent(udg_A[41],4.00)
call RemoveLocation(udg_U9[2])
set udg_U9[2]=null
set udg_U9[2]=PG(udg_U9[3],-75.00,udg_W9)
call CreateNUnitsAtLoc(1,1747988560,GetOwningPlayer(udg_s9[6]),udg_U9[2],udg_H[491])
set udg_A[42]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_A[42],100,100.00,100.00,35.00)
call SetUnitTimeScalePercent(udg_A[42],4.00)
call RemoveLocation(udg_U9[2])
set udg_U9[2]=null
set udg_U9[2]=PG(udg_U9[3],-150.00,udg_W9)
call CreateNUnitsAtLoc(1,1747988560,GetOwningPlayer(udg_s9[6]),udg_U9[2],udg_H[491])
set udg_A[43]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_A[43],100,100.00,100.00,35.00)
call SetUnitTimeScalePercent(udg_A[43],4.00)
call RemoveLocation(udg_U9[2])
set udg_U9[2]=null
call CreateNUnitsAtLoc(1,1747988560,GetOwningPlayer(udg_s9[6]),udg_U9[3],udg_H[491])
set udg_A[491]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_A[491],100,100.00,100.00,35.00)
call SetUnitTimeScalePercent(udg_A[491],4.00)
call RemoveLocation(udg_U9[2])
set udg_U9[2]=null
call RemoveLocation(udg_U9[3])
set udg_U9[3]=null
set udg_H[491]=0.00
set udg_Sg[5]=GetUnitLoc(udg_s9[6])
call PlaySoundAtPointBJ(udg_wp,100,udg_Sg[5],0)
call RemoveLocation(udg_Sg[5])
set udg_Sg[5]=null
call TriggerSleepAction(1.00)
call RemoveUnit(udg_A[36])
call RemoveUnit(udg_A[37])
call RemoveUnit(udg_A[38])
call RemoveUnit(udg_A[39])
call RemoveUnit(udg_A[40])
call RemoveUnit(udg_A[41])
call RemoveUnit(udg_A[42])
call RemoveUnit(udg_A[43])
call RemoveUnit(udg_A[491])
call RemoveUnit(udg_A[492])
set udg_A[36]=null
set udg_A[37]=null
set udg_A[38]=null
set udg_A[39]=null
set udg_A[40]=null
set udg_A[41]=null
set udg_A[42]=null
set udg_A[43]=null
set udg_A[491]=null
set udg_A[492]=null
call TriggerSleepAction((udg_og-1))
if(zq7())then
set udg_qg=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869311844,GetOwningPlayer(udg_s9[6]),udg_qg,bj_UNIT_FACING)
call RemoveLocation(udg_qg)
set udg_qg=null
call SetUnitAbilityLevelSwapped(1093681481,udg_s9[6],1)
call SetUnitAbilityLevelSwapped(1093678392,udg_s9[6],1)
call DestroyEffectBJ(udg_Dg[1])
set udg_rg=false
set udg_s9[6]=null
set udg_og=0.00
else
call DoNothing()
endif
endfunction
function zs7 takes nothing returns nothing
set udg_db=CreateTrigger()
call TriggerAddCondition(udg_db,Condition(function zh7))
call TriggerAddAction(udg_db,function zr7)
endfunction
function zt7 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
if(not(udg_rg==true))then
return false
endif
if(not(GetEventDamage()<800.00))then
return false
endif
return true
endfunction
function zu7 takes nothing returns boolean
if(not zt7())then
return false
endif
return true
endfunction
function zv7 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=20))then
return false
endif
return true
endfunction
function zw7 takes nothing returns nothing
if(zv7())then
call SetUnitLifeBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+GetEventDamage()))
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Weapons\\VoidWalkerMissile\\VoidWalkerMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endfunction
function zx7 takes nothing returns nothing
set udg_eb=CreateTrigger()
call DisableTrigger(udg_eb)
call TriggerAddCondition(udg_eb,Condition(function zu7))
call TriggerAddAction(udg_eb,function zw7)
endfunction
function zy7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677394))then
return false
endif
return true
endfunction
function zz7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function zA7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function za7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[44],1110454839)==true)
endfunction
function zB7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function zb7 takes nothing returns boolean
if(not(udg_sg==true))then
return false
endif
return true
endfunction
function zC7 takes nothing returns nothing
set udg_A[44]=GetTriggerUnit()
set udg_B[23]=GetUnitLoc(udg_A[44])
set udg_H[3]=0.00
set udg_sg=true
set udg_pg=k6(GetOwningPlayer(udg_A[44]),1869116782)
call ForGroupBJ(udg_pg,function zz7)
call DestroyGroup(udg_pg)
set udg_pg=null
call TriggerSleepAction(0.01)
call SetUnitAbilityLevelSwapped(1093681481,udg_A[44],(GetUnitAbilityLevelSwapped(1093677394,udg_A[44])+6))
call CreateTextTagUnitBJ("Senkei",udg_A[44],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function zA7)))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[44]),udg_B[23],bj_UNIT_FACING)
set udg_A[45]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1395666992,udg_A[45])
call UnitAddAbilityBJ(1093677623,udg_A[45])
call UnitAddAbilityBJ(1093677619,udg_A[45])
call SetUnitAbilityLevelSwapped(1093677619,udg_A[45],GetUnitAbilityLevelSwapped(1093677394,udg_A[44]))
call UnitApplyTimedLifeBJ(35.00,1112820806,udg_A[45])
set udg_b[13]=1
loop
exitwhen udg_b[13]>48
set udg_H[3]=(udg_H[3]+7.50)
set udg_U9[4]=PG(udg_B[23],900.00,udg_H[3])
call CreateNUnitsAtLocFacingLocBJ(1,1747988534,GetOwningPlayer(udg_A[44]),udg_U9[4],udg_B[23])
set udg_V9[4]=GetLastCreatedUnit()
call RemoveLocation(udg_U9[4])
set udg_U9[4]=null
set udg_U9[4]=GetUnitLoc(udg_V9[4])
call SetUnitPositionLocFacingBJ(udg_V9[4],udg_U9[4],(AngleBetweenPoints(GetUnitLoc(udg_V9[4]),udg_B[23])+90.00))
call SetUnitVertexColorBJ(udg_V9[4],100,100.00,100.00,70.00)
call RemoveLocation(udg_U9[4])
set udg_U9[4]=null
set udg_V9[4]=null
set udg_U9[4]=PG(udg_B[23],900.00,udg_H[3])
call CreateNUnitsAtLocFacingLocBJ(1,1747988534,GetOwningPlayer(udg_A[44]),udg_U9[4],udg_B[23])
set udg_V9[4]=GetLastCreatedUnit()
call RemoveLocation(udg_U9[4])
set udg_U9[4]=null
set udg_U9[4]=GetUnitLoc(udg_V9[4])
call SetUnitFlyHeightBJ(udg_V9[4],200.00,0.00)
call SetUnitPositionLocFacingBJ(udg_V9[4],udg_U9[4],(AngleBetweenPoints(GetUnitLoc(udg_V9[4]),udg_B[23])+90.00))
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100,100.00,100.00,70.00)
call RemoveLocation(udg_U9[4])
set udg_U9[4]=null
set udg_V9[4]=null
set udg_U9[4]=PG(udg_B[23],900.00,udg_H[3])
call CreateNUnitsAtLocFacingLocBJ(1,1747988534,GetOwningPlayer(udg_A[44]),udg_U9[4],udg_B[23])
set udg_V9[4]=GetLastCreatedUnit()
call RemoveLocation(udg_U9[4])
set udg_U9[4]=null
set udg_U9[4]=GetUnitLoc(udg_V9[4])
call SetUnitFlyHeightBJ(udg_V9[4],400.00,0.00)
call SetUnitPositionLocFacingBJ(udg_V9[4],udg_U9[4],(AngleBetweenPoints(GetUnitLoc(udg_V9[4]),udg_B[23])+90.00))
call SetUnitVertexColorBJ(udg_V9[4],100,100.00,100.00,70.00)
call RemoveLocation(udg_U9[4])
set udg_U9[4]=null
set udg_V9[4]=null
set udg_b[13]=udg_b[13]+1
endloop
call SetBlightRadiusLocBJ(true,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_B[23],900.00)
call PlaySoundAtPointBJ(udg_Cr,100,udg_B[23],0)
call TriggerSleepAction(35.00)
if(zb7())then
set udg_sg=false
set udg_ug=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869116782,GetOwningPlayer(udg_A[44]),udg_ug,bj_UNIT_FACING)
call RemoveLocation(udg_ug)
set udg_ug=null
if(za7())then
call UnitRemoveBuffBJ(1110454839,udg_A[44])
else
call DoNothing()
endif
set udg_X9=k6(GetOwningPlayer(udg_A[44]),1747988534)
call ForGroupBJ(udg_X9,function zB7)
call DestroyGroup(udg_X9)
set udg_X9=null
call SetBlightRadiusLocBJ(false,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_B[23],1000.00)
call SetUnitAbilityLevelSwapped(1093681481,udg_A[44],1)
set udg_H[3]=0.00
set udg_A[44]=null
call RemoveLocation(udg_B[23])
set udg_B[23]=null
else
call DoNothing()
endif
endfunction
function zc7 takes nothing returns nothing
set udg_fb=CreateTrigger()
call TriggerAddCondition(udg_fb,Condition(function zy7))
call TriggerAddAction(udg_fb,function zC7)
endfunction
function zD7 takes nothing returns boolean
if(not(GetDyingUnit()==udg_A[44]))then
return false
endif
if(not(udg_sg==true))then
return false
endif
return true
endfunction
function zE7 takes nothing returns boolean
if(not(GetDyingUnit()==udg_s9[6]))then
return false
endif
if(not(udg_rg==true))then
return false
endif
return true
endfunction
function z37 takes nothing returns boolean
if(zD7())then
return true
endif
if(zE7())then
return true
endif
return false
endfunction
function zF7 takes nothing returns boolean
if(not z37())then
return false
endif
return true
endfunction
function zG7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function z67 takes nothing returns boolean
if(not(udg_A[45]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_A[45])==false))then
return false
endif
return true
endfunction
function zH7 takes nothing returns boolean
if(not z67())then
return false
endif
return true
endfunction
function zI7 takes nothing returns boolean
if(not(GetDyingUnit()==udg_A[44]))then
return false
endif
if(not(udg_sg==true))then
return false
endif
return true
endfunction
function zl7 takes nothing returns boolean
if(not zI7())then
return false
endif
return true
endfunction
function z17 takes nothing returns boolean
if(not(GetDyingUnit()==udg_s9[6]))then
return false
endif
if(not(udg_rg==true))then
return false
endif
return true
endfunction
function zJ7 takes nothing returns boolean
if(not z17())then
return false
endif
return true
endfunction
function zK7 takes nothing returns nothing
if(zl7())then
set udg_sg=false
set udg_ug=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869116782,GetOwningPlayer(udg_A[44]),udg_ug,bj_UNIT_FACING)
call RemoveLocation(udg_ug)
set udg_ug=null
set udg_X9=k6(GetOwningPlayer(udg_A[44]),1747988534)
call ForGroupBJ(udg_X9,function zG7)
call DestroyGroup(udg_X9)
set udg_X9=null
call SetBlightRadiusLocBJ(false,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_B[23],1000.00)
call SetUnitAbilityLevelSwapped(1093681481,udg_A[44],1)
if(zH7())then
call KillUnit(udg_A[45])
set udg_A[45]=null
else
call DoNothing()
endif
set udg_H[3]=0.00
set udg_A[44]=null
call RemoveLocation(udg_B[23])
set udg_B[23]=null
else
call DoNothing()
endif
if(zJ7())then
set udg_qg=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869311844,GetOwningPlayer(udg_s9[6]),udg_qg,bj_UNIT_FACING)
call RemoveLocation(udg_qg)
set udg_qg=null
call SetUnitAbilityLevelSwapped(1093681481,udg_s9[6],1)
call SetUnitAbilityLevelSwapped(1093678392,udg_s9[6],1)
call DestroyEffectBJ(udg_Dg[1])
set udg_rg=false
set udg_s9[6]=null
set udg_og=0.00
else
call DoNothing()
endif
endfunction
function zL7 takes nothing returns nothing
set udg_gb=CreateTrigger()
call TriggerAddCondition(udg_gb,Condition(function zF7))
call TriggerAddAction(udg_gb,function zK7)
endfunction
function zM7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681484))then
return false
endif
return true
endfunction
function zN7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_Bg,1110454354)==true)
endfunction
function zO7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[44],1110454839)==true)
endfunction
function z07 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function zP7 takes nothing returns boolean
if(not(udg_A[45]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_A[45])==false))then
return false
endif
return true
endfunction
function zQ7 takes nothing returns boolean
if(not zP7())then
return false
endif
return true
endfunction
function zR7 takes nothing returns boolean
if(not(udg_sg==true))then
return false
endif
return true
endfunction
function zS7 takes nothing returns boolean
return(IsTriggerEnabled(udg_ib)==false)
endfunction
function z57 takes nothing returns boolean
return(UnitHasBuffBJ(udg_Bg,1110454841)==true)
endfunction
function zT7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_Bg!=udg_x))then
return false
endif
if(not(udg_Bg!=udg_y))then
return false
endif
return true
endfunction
function zU7 takes nothing returns boolean
if(not zT7())then
return false
endif
return true
endfunction
function zV7 takes nothing returns nothing
set udg_Bg=GetTriggerUnit()
set udg_bg[2]=GetSpellTargetLoc()
set udg_Cg=AngleBetweenPoints(GetUnitLoc(udg_Bg),udg_bg[2])
call PauseUnitBJ(true,udg_Bg)
call SetUnitAnimation(udg_Bg,"stand ready")
if(zN7())then
call UnitRemoveBuffBJ(1110454354,udg_Bg)
else
call DoNothing()
endif
if(zR7())then
set udg_sg=false
set udg_ug=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869116782,GetOwningPlayer(udg_A[44]),udg_ug,bj_UNIT_FACING)
call RemoveLocation(udg_ug)
set udg_ug=null
if(zO7())then
call UnitRemoveBuffBJ(1110454839,udg_A[44])
else
call DoNothing()
endif
set udg_X9=k6(GetOwningPlayer(udg_A[44]),1747988534)
call ForGroupBJ(udg_X9,function z07)
call DestroyGroup(udg_X9)
set udg_X9=null
call SetBlightRadiusLocBJ(false,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_B[23],1000.00)
call SetUnitAbilityLevelSwapped(1093681481,udg_A[44],1)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[44]),udg_B[23],bj_UNIT_FACING)
set udg_A[36]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_A[36],200.00,200.00,200.00)
call UnitAddAbilityBJ(1093681482,udg_A[36])
call SetUnitAbilityLevelSwapped(1093681482,udg_A[36],GetUnitAbilityLevelSwapped(1093677394,udg_A[44]))
call IssueImmediateOrderBJ(udg_A[36],"fanofknives")
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[36])
if(zQ7())then
call KillUnit(udg_A[45])
set udg_A[45]=null
else
call DoNothing()
endif
set udg_A[36]=null
call CreateNUnitsAtLoc(1,1747988793,GetOwningPlayer(udg_A[44]),udg_B[23],bj_UNIT_FACING)
set udg_A[36]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_A[36],50.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_A[36])
set udg_A[36]=null
set udg_H[3]=0.00
set udg_A[44]=null
call RemoveLocation(udg_B[23])
set udg_B[23]=null
else
call DoNothing()
endif
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Bg),udg_bg[2],bj_UNIT_FACING)
set udg_Eg=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678930,udg_Eg)
call IssueTargetOrderBJ(udg_Eg,"innerfire",udg_Bg)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Eg)
set udg_Eg=null
set udg_Sg[11]=GetUnitLoc(udg_Bg)
call PlaySoundAtPointBJ(udg_Kr,100,udg_Sg[11],0)
call RemoveLocation(udg_Sg[11])
set udg_Sg[11]=null
call TriggerSleepAction(1.00)
call SetUnitPathing(udg_Bg,false)
call SetUnitTimeScalePercent(udg_Bg,50.00)
call SetUnitAnimation(udg_Bg,"spell")
set udg_Zi[25]=0.00
call TriggerSleepAction(0.01)
call SetUnitPathing(udg_Bg,false)
call EnableTrigger(udg_ib)
loop
exitwhen(zS7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call SetUnitPathing(udg_Bg,true)
call PauseUnitBJ(false,udg_Bg)
call SetUnitTimeScalePercent(udg_Bg,100.00)
call ResetUnitAnimation(udg_Bg)
call SelectUnitAddForPlayer(udg_Bg,GetOwningPlayer(udg_Bg))
if(z57())then
call UnitRemoveBuffBJ(1110454841,udg_Bg)
else
call DoNothing()
endif
if(zU7())then
call PauseUnitBJ(true,udg_Bg)
else
call DoNothing()
endif
set udg_Bg=null
set udg_Cg=0.00
set udg_Zi[25]=0.00
call RemoveLocation(udg_bg[2])
set udg_bg[2]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_ag)
endfunction
function zW7 takes nothing returns nothing
set udg_hb=CreateTrigger()
call TriggerAddCondition(udg_hb,Condition(function zM7))
call TriggerAddAction(udg_hb,function zV7)
endfunction
function zX7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_Bg)==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_Bg)==true))then
return true
endif
return false
endfunction
function zY7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Bg)==true))then
return false
endif
if(not zX7())then
return false
endif
return true
endfunction
function z27 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_ag)==false)
endfunction
function zZ7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Bg))==true)
endfunction
function z_7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function A47 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function A77 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function A87 takes nothing returns boolean
return GetBooleanAnd(A47(),A77())
endfunction
function A97 takes nothing returns boolean
return GetBooleanAnd(z_7(),A87())
endfunction
function Ad7 takes nothing returns boolean
return GetBooleanAnd(zZ7(),A97())
endfunction
function Ae7 takes nothing returns boolean
return GetBooleanAnd(z27(),Ad7())
endfunction
function Af7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Bg,GetEnumUnit(),(3000.00+(20.00*(I2R(GetUnitAbilityLevelSwapped(1093681484,udg_Bg))*I2R(GetHeroLevel(udg_Bg))))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(GetEnumUnit(),udg_ag)
endfunction
function Ag7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Ah7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_bg[3])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_bg[3])==true))then
return true
endif
return false
endfunction
function Ai7 takes nothing returns boolean
if(not Ah7())then
return false
endif
return true
endfunction
function Aj7 takes nothing returns boolean
if(not(udg_Zi[25]>=40.00))then
return false
endif
return true
endfunction
function Ak7 takes nothing returns boolean
if(not zY7())then
return false
endif
return true
endfunction
function Am7 takes nothing returns nothing
if(Ak7())then
set udg_Zi[25]=(udg_Zi[25]+1.00)
set udg_bg[3]=PG(GetUnitLoc(udg_Bg),40.00,udg_Cg)
if(Ai7())then
call SetUnitPositionLocFacingBJ(udg_Bg,udg_bg[3],udg_Cg)
call AddSpecialEffectLocBJ(udg_bg[3],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("chest",udg_Bg,"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_bg[3])
set udg_bg[3]=null
set udg_bg[803]=GetUnitLoc(udg_Bg)
set udg_cg=e6(410.00,udg_bg[803],Condition(function Ae7))
call ForGroupBJ(udg_cg,function Af7)
call DestroyGroup(udg_cg)
set udg_cg=null
call UG(300.00,udg_bg[803],function Ag7)
call RemoveLocation(udg_bg[803])
set udg_bg[803]=null
else
call RemoveLocation(udg_bg[3])
set udg_bg[3]=null
call DisableTrigger(GetTriggeringTrigger())
endif
if(Aj7())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function An7 takes nothing returns nothing
set udg_ib=CreateTrigger()
call DisableTrigger(udg_ib)
call TriggerRegisterTimerEventPeriodic(udg_ib,0.03)
call TriggerAddAction(udg_ib,function Am7)
endfunction
function Ao7 takes nothing returns boolean
if(not(udg_pj==null))then
return false
endif
return true
endfunction
function Ap7 takes nothing returns nothing
if(Ao7())then
call DestroyTrigger(udg_kb)
call DestroyTrigger(udg_mb)
call DestroyTrigger(udg_nb)
call DestroyTrigger(udg_ob)
call DestroyTrigger(udg_pb)
call DestroyTrigger(udg_qb)
call DestroyTrigger(udg_rb)
call DestroyTrigger(udg_sb)
call DestroyTrigger(udg_tb)
call DestroyTrigger(udg_ub)
call DestroyTrigger(udg_vb)
call DestroyTrigger(udg_wb)
call DestroyTrigger(udg_xb)
call DestroyTrigger(udg_yb)
call DestroyTrigger(udg_zb)
call DestroyTrigger(udg_Ab)
else
call TriggerRegisterUnitEvent(udg_kb,udg_pj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_mb,udg_pj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_ob,udg_pj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_qb,udg_pj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_rb,udg_pj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_tb,udg_pj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_ub,udg_pj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_vb,udg_pj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_xb,udg_pj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_yb,udg_pj,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function Aq7 takes nothing returns nothing
set udg_jb=CreateTrigger()
call TriggerAddAction(udg_jb,function Ap7)
endfunction
function Ar7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677382))then
return true
endif
if((GetSpellAbilityId()==1093677386))then
return true
endif
if((GetSpellAbilityId()==1093677108))then
return true
endif
return false
endfunction
function As7 takes nothing returns boolean
if(not Ar7())then
return false
endif
return true
endfunction
function At7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Au7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677382))then
return false
endif
return true
endfunction
function Av7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677386))then
return true
endif
if((GetSpellAbilityId()==1093677108))then
return true
endif
return false
endfunction
function Aw7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false))then
return false
endif
if(not Av7())then
return false
endif
return true
endfunction
function Ax7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677386))then
return true
endif
if((GetSpellAbilityId()==1093677108))then
return true
endif
return false
endfunction
function Ay7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
if(not Ax7())then
return false
endif
return true
endfunction
function Az7 takes nothing returns nothing
if(Au7())then
call CreateTextTagUnitBJ("Sit upon the frozen heavens...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function At7)))
else
call DoNothing()
endif
if(Ay7())then
call DoNothing()
else
if(Aw7())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Can't use Bankai skill yet|r")
else
call DoNothing()
endif
endif
endfunction
function AA7 takes nothing returns nothing
set udg_kb=CreateTrigger()
call TriggerAddCondition(udg_kb,Condition(function As7))
call TriggerAddAction(udg_kb,function Az7)
endfunction
function Aa7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677382))then
return false
endif
return true
endfunction
function AB7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Ab7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function AC7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[35])!=1162031410))then
return false
endif
return true
endfunction
function Ac7 takes nothing returns nothing
set bj_wantDestroyGroup=true
call GroupClear(udg_Cf)
set udg_A[35]=GetTriggerUnit()
set udg_B[22]=GetSpellTargetLoc()
set udg_c[12]=AngleBetweenPoints(GetUnitLoc(udg_A[35]),udg_B[22])
set udg_B[499]=PG(GetUnitLoc(udg_A[35]),200.00,udg_c[12])
set udg_cf=(150.00+(75.00*I2R(GetUnitAbilityLevelSwapped(1093677382,udg_A[35]))))
if(AC7())then
set udg_N[3]=8
call CreateTextTagUnitBJ("Daiguren Hyorinmaru",udg_A[35],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Ab7)))
else
set udg_N[3]=5
call CreateTextTagUnitBJ("Hyorinmaru",udg_A[35],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function AB7)))
endif
call PlaySoundAtPointBJ(udg_aq,100,udg_B[499],0)
call TriggerSleepAction(0.01)
call SetUnitFacingToFaceLocTimed(udg_A[35],udg_B[22],0)
call CreateNUnitsAtLoc(1,1747988790,GetOwningPlayer(udg_A[35]),udg_B[499],udg_c[12])
set udg_Z9[1]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_Z9[1],75.00)
call SetUnitAnimation(udg_Z9[1],"death")
call AddSpecialEffectLocBJ(udg_B[499],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("weapon",udg_A[35],"Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[499])
set udg_B[499]=null
call EnableTrigger(udg_nb)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_nb)
call RemoveUnit(udg_Z9[1])
set udg_A[35]=null
set udg_Z9[1]=null
set udg_c[12]=0.00
set udg_cf=0.00
call RemoveLocation(udg_B[22])
set udg_B[22]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_Cf)
endfunction
function AD7 takes nothing returns nothing
set udg_mb=CreateTrigger()
call TriggerAddCondition(udg_mb,Condition(function Aa7))
call TriggerAddAction(udg_mb,function Ac7)
endfunction
function AE7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Cf)==false)
endfunction
function A37 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[35]))==true)
endfunction
function AF7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function AG7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function A67 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function AH7 takes nothing returns boolean
return GetBooleanAnd(AG7(),A67())
endfunction
function AI7 takes nothing returns boolean
return GetBooleanAnd(AF7(),AH7())
endfunction
function Al7 takes nothing returns boolean
return GetBooleanAnd(A37(),AI7())
endfunction
function A17 takes nothing returns boolean
return GetBooleanAnd(AE7(),Al7())
endfunction
function AJ7 takes nothing returns nothing
set udg_y9[10]=GetEnumUnit()
call GroupAddUnitSimple(udg_y9[10],udg_Cf)
call UnitDamageTargetBJ(udg_A[35],udg_y9[10],udg_cf,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[35]),udg_B[499],bj_UNIT_FACING)
set udg_Z9[499]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677640,udg_Z9[499])
call SetUnitAbilityLevelSwapped(1093677640,udg_Z9[499],udg_N[3])
call IssueTargetOrderBJ(udg_Z9[499],"frostnova",udg_y9[10])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Z9[499])
set udg_Z9[499]=null
set udg_y9[10]=null
endfunction
function AK7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function AL7 takes nothing returns nothing
set udg_B[499]=PG(GetUnitLoc(udg_Z9[1]),30.00,udg_c[12])
call SetUnitPositionLocFacingBJ(udg_Z9[1],udg_B[499],udg_c[12])
call RemoveLocation(udg_B[499])
set udg_B[499]=null
set udg_B[499]=GetUnitLoc(udg_Z9[1])
call AddSpecialEffectLocBJ(udg_B[499],"Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[499],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[499],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathTargetArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_bf=e6(270.00,udg_B[499],Condition(function A17))
call ForGroupBJ(udg_bf,function AJ7)
call DestroyGroup(udg_bf)
set udg_bf=null
call UG(300.00,udg_B[499],function AK7)
call RemoveLocation(udg_B[499])
set udg_B[499]=null
endfunction
function AM7 takes nothing returns nothing
set udg_nb=CreateTrigger()
call DisableTrigger(udg_nb)
call TriggerRegisterTimerEventPeriodic(udg_nb,0.03)
call TriggerAddAction(udg_nb,function AL7)
endfunction
function AN7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678662))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())==1162031410))then
return false
endif
return true
endfunction
function AO7 takes nothing returns boolean
if(not AN7())then
return false
endif
return true
endfunction
function A07 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function AP7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_s9[7]))==true)
endfunction
function AQ7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function AR7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function AS7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function A57 takes nothing returns boolean
return GetBooleanAnd(AR7(),AS7())
endfunction
function AT7 takes nothing returns boolean
return GetBooleanAnd(AQ7(),A57())
endfunction
function AU7 takes nothing returns boolean
return GetBooleanAnd(AP7(),AT7())
endfunction
function AV7 takes nothing returns boolean
return GetBooleanAnd(A07(),AU7())
endfunction
function AW7 takes nothing returns nothing
set udg_y9[11]=GetEnumUnit()
call UnitDamageTargetBJ(udg_s9[7],udg_y9[11],udg_ph[3],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_s9[7]),udg_Y9[1425],bj_UNIT_FACING)
set udg_Z9[1425]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677640,udg_Z9[1425])
call SetUnitAbilityLevelSwapped(1093677640,udg_Z9[1425],8)
call IssueTargetOrderBJ(udg_Z9[1425],"frostnova",udg_y9[11])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Z9[1425])
set udg_Z9[1425]=null
set udg_y9[11]=null
endfunction
function AX7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function AY7 takes nothing returns nothing
set udg_s9[7]=GetTriggerUnit()
set udg_Y9[1425]=GetSpellTargetLoc()
set udg_ph[1]=(50.00+(150.00*I2R(GetUnitAbilityLevelSwapped(1093678662,udg_s9[7]))))
set udg_ph[2]=(100.00+(300.00*I2R(GetUnitAbilityLevelSwapped(1093678662,udg_s9[7]))))
set udg_ph[3]=GetRandomReal(udg_ph[1],udg_ph[2])
set udg_b[11]=1
loop
exitwhen udg_b[11]>3
set udg_Y9[1426]=PG(udg_Y9[1425],90.00,((I2R(udg_b[11])*120.00)-120.00))
set udg_Y9[1428]=PG(udg_Y9[1426],-200.00,(I2R(udg_b[11])*120.00))
call CreateNUnitsAtLoc(1,1747988790,GetOwningPlayer(udg_s9[7]),udg_Y9[1428],(I2R(udg_b[11])*120.00))
set udg_ih[udg_b[11]]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_ih[udg_b[11]],75.00)
call SetUnitScalePercent(udg_ih[udg_b[11]],120.00,120.00,120.00)
call SetUnitAnimation(udg_ih[udg_b[11]],"death")
call RemoveLocation(udg_Y9[1426])
set udg_Y9[1426]=null
call RemoveLocation(udg_Y9[1428])
set udg_Y9[1428]=null
set udg_b[11]=udg_b[11]+1
endloop
call EnableTrigger(udg_pb)
call TriggerSleepAction(0.08)
call CreateNUnitsAtLoc(1,1747988807,GetOwningPlayer(udg_s9[7]),udg_Y9[1425],bj_UNIT_FACING)
set udg_ih[999]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_ih[999],20.00)
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_ih[999])
set udg_ih[999]=null
call TriggerSleepAction(0.01)
set udg_dd[1]=e6(400.00,udg_Y9[1425],Condition(function AV7))
call ForGroupBJ(udg_dd[1],function AW7)
call DestroyGroup(udg_dd[1])
set udg_dd[1]=null
call AddSpecialEffectLocBJ(udg_Y9[1425],"war3mapImported\\icestomp.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(400.00,udg_Y9[1425],function AX7)
call RemoveLocation(udg_Y9[1425])
set udg_Y9[1425]=null
set udg_s9[7]=null
set udg_ph[1]=0.00
set udg_ph[2]=0.00
set udg_ph[3]=0.00
call DisableTrigger(udg_pb)
set udg_b[11]=1
loop
exitwhen udg_b[11]>3
call RemoveUnit(udg_ih[udg_b[11]])
set udg_ih[udg_b[11]]=null
set udg_b[11]=udg_b[11]+1
endloop
endfunction
function A27 takes nothing returns nothing
set udg_ob=CreateTrigger()
call TriggerAddCondition(udg_ob,Condition(function AO7))
call TriggerAddAction(udg_ob,function AY7)
endfunction
function AZ7 takes nothing returns nothing
set udg_nh=1
loop
exitwhen udg_nh>3
set udg_Y9[1426]=PG(GetUnitLoc(udg_ih[udg_nh]),30.00,(I2R(udg_nh)*120.00))
call SetUnitPositionLocFacingBJ(udg_ih[udg_nh],udg_Y9[1426],(I2R(udg_nh)*120.00))
call AddSpecialEffectLocBJ(udg_Y9[1426],"Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_Y9[1426])
set udg_Y9[1426]=null
set udg_nh=udg_nh+1
endloop
endfunction
function A_7 takes nothing returns nothing
set udg_pb=CreateTrigger()
call DisableTrigger(udg_pb)
call TriggerRegisterTimerEventPeriodic(udg_pb,0.03)
call TriggerAddAction(udg_pb,function AZ7)
endfunction
function a47 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678662))then
return false
endif
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
return true
endfunction
function a77 takes nothing returns boolean
if(not a47())then
return false
endif
return true
endfunction
function a87 takes nothing returns boolean
if(not(udg_z==false))then
return false
endif
if(not(RectContainsLoc(udg_sn,GetSpellTargetLoc())==false))then
return false
endif
return true
endfunction
function a97 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsLoc(udg_An,GetSpellTargetLoc())==false))then
return false
endif
return true
endfunction
function ad7 takes nothing returns boolean
if(a87())then
return true
endif
if(a97())then
return true
endif
return false
endfunction
function ae7 takes nothing returns boolean
if(not ad7())then
return false
endif
if(not(RectContainsLoc(udg_vo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_xo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_jo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_ko,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_mo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_no,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_oo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_po,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_qo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_ro,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_so,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_Ro,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_So,GetSpellTargetLoc())==false))then
return false
endif
return true
endfunction
function af7 takes nothing returns boolean
if(not ae7())then
return false
endif
return true
endfunction
function ag7 takes nothing returns nothing
if(af7())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot target that area|r")
else
call DoNothing()
endif
endfunction
function ah7 takes nothing returns nothing
set udg_qb=CreateTrigger()
call TriggerAddCondition(udg_qb,Condition(function a77))
call TriggerAddAction(udg_qb,function ag7)
endfunction
function ai7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678662))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())==1160785971))then
return false
endif
return true
endfunction
function aj7 takes nothing returns boolean
if(not ai7())then
return false
endif
return true
endfunction
function ak7 takes nothing returns boolean
if(not(udg_x7[udg_b[12]]!=null))then
return false
endif
return true
endfunction
function am7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function an7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[26])==false))then
return false
endif
return true
endfunction
function ao7 takes nothing returns boolean
if(not(udg_x7[udg_b[12]]!=null))then
return false
endif
return true
endfunction
function ap7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[26])==false))then
return false
endif
return true
endfunction
function aq7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function ar7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[26]))==true)
endfunction
function as7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function at7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function au7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function av7 takes nothing returns boolean
return GetBooleanAnd(at7(),au7())
endfunction
function aw7 takes nothing returns boolean
return GetBooleanAnd(as7(),av7())
endfunction
function ax7 takes nothing returns boolean
return GetBooleanAnd(ar7(),aw7())
endfunction
function ay7 takes nothing returns boolean
return GetBooleanAnd(aq7(),ax7())
endfunction
function az7 takes nothing returns nothing
set udg_y9[11]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[26],udg_y9[11],udg_ph[3],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[26]),udg_B[21],bj_UNIT_FACING)
set udg_Z9[1425]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677640,udg_Z9[1425])
call SetUnitAbilityLevelSwapped(1093677640,udg_Z9[1425],8)
call IssueTargetOrderBJ(udg_Z9[1425],"frostnova",udg_y9[11])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Z9[1425])
set udg_Z9[1425]=null
set udg_y9[11]=null
endfunction
function aA7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[26]!=udg_x))then
return false
endif
if(not(udg_A[26]!=udg_y))then
return false
endif
return true
endfunction
function aa7 takes nothing returns boolean
if(not aA7())then
return false
endif
return true
endfunction
function aB7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[26])==false))then
return false
endif
return true
endfunction
function ab7 takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),true)
endfunction
function aC7 takes nothing returns boolean
if(not(udg_x7[udg_b[12]]!=null))then
return false
endif
return true
endfunction
function ac7 takes nothing returns nothing
set bj_wantDestroyGroup=true
call GroupClear(udg_mh)
set udg_A[26]=GetTriggerUnit()
set udg_H[2]=0.00
set udg_B[21]=GetSpellTargetLoc()
set udg_ph[1]=(50.00+(150.00*I2R(GetUnitAbilityLevelSwapped(1093678662,udg_A[26]))))
set udg_ph[2]=(100.00+(300.00*I2R(GetUnitAbilityLevelSwapped(1093678662,udg_A[26]))))
set udg_ph[3]=GetRandomReal(udg_ph[1],udg_ph[2])
call PauseUnitBJ(true,udg_A[26])
call SetUnitAnimation(udg_A[26],"stand ready")
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[26]))]=true
call TriggerSleepAction(0.01)
if(an7())then
call CreateTextTagUnitBJ("Sennen Hyoro",udg_A[26],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function am7)))
set udg_b[11]=1
loop
exitwhen udg_b[11]>5
set udg_H[2]=(udg_H[2]+72.00)
set udg_Y9[5]=PG(udg_B[21],600.00,udg_H[2])
call AddSpecialEffectLocBJ(udg_Y9[5],"war3mapImported\\icestomp.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_Y9[5])
set udg_Y9[5]=null
set udg_b[11]=udg_b[11]+1
endloop
set udg_H[2]=0.00
set udg_b[11]=1
loop
exitwhen udg_b[11]>18
set udg_H[2]=(udg_H[2]+20.00)
set udg_Y9[5]=PG(udg_B[21],600.00,udg_H[2])
call CreateNUnitsAtLocFacingLocBJ(1,1747988533,GetOwningPlayer(udg_A[26]),udg_Y9[5],udg_B[21])
set udg_x7[udg_b[11]]=GetLastCreatedUnit()
call RemoveLocation(udg_Y9[5])
set udg_Y9[5]=null
set udg_b[11]=udg_b[11]+1
endloop
set udg_Km[21]=GetUnitLoc(udg_A[26])
call PlaySoundAtPointBJ(udg_cr,100,udg_Km[21],0)
call RemoveLocation(udg_Km[21])
set udg_Km[21]=null
else
set udg_b[12]=1
loop
exitwhen udg_b[12]>18
if(ak7())then
call RemoveUnit(udg_x7[udg_b[12]])
set udg_x7[udg_b[12]]=null
else
call DoNothing()
endif
set udg_b[12]=udg_b[12]+1
endloop
endif
call TriggerSleepAction(0.54)
if(ap7())then
set udg_b[12]=1
loop
exitwhen udg_b[12]>18
call SetUnitMoveSpeed(udg_x7[udg_b[12]],522.00)
call IssuePointOrderLocBJ(udg_x7[udg_b[12]],"smart",udg_B[21])
set udg_b[12]=udg_b[12]+1
endloop
call EnableTrigger(udg_sb)
else
set udg_b[12]=1
loop
exitwhen udg_b[12]>18
if(ao7())then
call RemoveUnit(udg_x7[udg_b[12]])
set udg_x7[udg_b[12]]=null
else
call DoNothing()
endif
set udg_b[12]=udg_b[12]+1
endloop
endif
call TriggerSleepAction(0.88)
if(aB7())then
set udg_dd[1]=e6(400.00,udg_B[21],Condition(function ay7))
call ForGroupBJ(udg_dd[1],function az7)
call DestroyGroup(udg_dd[1])
set udg_dd[1]=null
call AddSpecialEffectLocBJ(udg_B[21],"war3mapImported\\FrostNova.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[21],"war3mapImported\\icestomp.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call PauseUnitBJ(false,udg_A[26])
call ResetUnitAnimation(udg_A[26])
call SetTerrainTypeBJ(udg_B[21],1467182711,-1,4,0)
if(aa7())then
call PauseUnitBJ(true,udg_A[26])
else
call DoNothing()
endif
else
call DoNothing()
endif
call DisableTrigger(udg_sb)
call ForGroupBJ(udg_mh,function ab7)
set bj_wantDestroyGroup=true
call GroupClear(udg_mh)
set udg_b[12]=1
loop
exitwhen udg_b[12]>18
if(aC7())then
call RemoveUnit(udg_x7[udg_b[12]])
set udg_x7[udg_b[12]]=null
else
call DoNothing()
endif
set udg_b[12]=udg_b[12]+1
endloop
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[26]))]=false
set udg_A[26]=null
set udg_H[2]=0.00
set udg_ph[1]=0.00
set udg_ph[2]=0.00
set udg_ph[3]=0.00
call RemoveLocation(udg_B[21])
set udg_B[21]=null
endfunction
function aD7 takes nothing returns nothing
set udg_rb=CreateTrigger()
call TriggerAddCondition(udg_rb,Condition(function aj7))
call TriggerAddAction(udg_rb,function ac7)
endfunction
function aE7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function a37 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[26]))==true)
endfunction
function aF7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function aG7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function a67 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function aH7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function aI7 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function al7 takes nothing returns boolean
return(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function a17 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_mh)==false)
endfunction
function aJ7 takes nothing returns boolean
return GetBooleanAnd(al7(),a17())
endfunction
function aK7 takes nothing returns boolean
return GetBooleanAnd(aI7(),aJ7())
endfunction
function aL7 takes nothing returns boolean
return GetBooleanAnd(aH7(),aK7())
endfunction
function aM7 takes nothing returns boolean
return GetBooleanAnd(a67(),aL7())
endfunction
function aN7 takes nothing returns boolean
return GetBooleanAnd(aG7(),aM7())
endfunction
function aO7 takes nothing returns boolean
return GetBooleanAnd(aF7(),aN7())
endfunction
function a07 takes nothing returns boolean
return GetBooleanAnd(a37(),aO7())
endfunction
function aP7 takes nothing returns boolean
return GetBooleanAnd(aE7(),a07())
endfunction
function aQ7 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_jh)==false))then
return false
endif
return true
endfunction
function aR7 takes nothing returns nothing
if(aQ7())then
call GroupAddUnitSimple(GetEnumUnit(),udg_mh)
call SetUnitPathing(GetEnumUnit(),false)
else
call DoNothing()
endif
endfunction
function aS7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function a57 takes nothing returns boolean
if(not(udg_nh==1))then
return false
endif
return true
endfunction
function aT7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==false))then
return false
endif
if(not(IsUnitPausedBJ(GetEnumUnit())==false))then
return false
endif
if(not(IsUnitDeadBJ(GetEnumUnit())==false))then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[21])<850.00))then
return false
endif
return true
endfunction
function aU7 takes nothing returns boolean
if(not aT7())then
return false
endif
return true
endfunction
function aV7 takes nothing returns nothing
if(aU7())then
set udg_kh=PG(udg_B[21],(DistanceBetweenPoints(udg_B[21],udg_oh)-40.00),AngleBetweenPoints(udg_B[21],GetUnitLoc(GetEnumUnit())))
call SetUnitPositionLoc(GetEnumUnit(),udg_kh)
call RemoveLocation(udg_kh)
set udg_kh=null
else
call DoNothing()
endif
endfunction
function aW7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[26])==false))then
return false
endif
return true
endfunction
function aX7 takes nothing returns nothing
if(aW7())then
set udg_nh=1
loop
exitwhen udg_nh>18
set udg_kh=PG(GetUnitLoc(udg_x7[udg_nh]),50.00,AngleBetweenPoints(GetUnitLoc(udg_x7[udg_nh]),udg_B[21]))
set udg_jh=e6(100.00,udg_kh,Condition(function aP7))
call ForGroupBJ(udg_jh,function aR7)
call DestroyGroup(udg_jh)
set udg_jh=null
call UG(100.00,udg_kh,function aS7)
call RemoveLocation(udg_kh)
set udg_kh=null
if(a57())then
set udg_oh=GetUnitLoc(udg_x7[udg_nh])
else
call DoNothing()
endif
set udg_nh=udg_nh+1
endloop
call ForGroupBJ(udg_mh,function aV7)
call RemoveLocation(udg_oh)
set udg_oh=null
else
call DisableTrigger(GetTriggeringTrigger())
set udg_b[12]=1
loop
exitwhen udg_b[12]>18
call RemoveUnit(udg_x7[udg_b[12]])
set udg_x7[udg_b[12]]=null
set udg_b[12]=udg_b[12]+1
endloop
call PauseUnitBJ(false,udg_A[26])
call ResetUnitAnimation(udg_A[26])
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[26]))]=false
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[26]))]=false
set udg_A[26]=null
set udg_H[2]=0.00
call RemoveLocation(udg_B[21])
set udg_B[21]=null
endif
endfunction
function aY7 takes nothing returns nothing
set udg_sb=CreateTrigger()
call DisableTrigger(udg_sb)
call TriggerRegisterTimerEventPeriodic(udg_sb,0.05)
call TriggerAddAction(udg_sb,function aX7)
endfunction
function a27 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677384))then
return false
endif
return true
endfunction
function aZ7 takes nothing returns nothing
set udg_y9[12]=GetEnumUnit()
call RemoveUnit(udg_y9[12])
set udg_y9[12]=null
endfunction
function a_7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function B47 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function B77 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function B87 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function B97 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Bd7 takes nothing returns boolean
return(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function Be7 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function Bf7 takes nothing returns boolean
return GetBooleanAnd(Bd7(),Be7())
endfunction
function Bg7 takes nothing returns boolean
return GetBooleanAnd(B97(),Bf7())
endfunction
function Bh7 takes nothing returns boolean
return GetBooleanAnd(B87(),Bg7())
endfunction
function Bi7 takes nothing returns boolean
return GetBooleanAnd(B77(),Bh7())
endfunction
function Bj7 takes nothing returns boolean
return GetBooleanAnd(B47(),Bi7())
endfunction
function Bk7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_y9[12])==1328558129))then
return false
endif
return true
endfunction
function Bm7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[19])))==true))then
return true
endif
return false
endfunction
function Bn7 takes nothing returns boolean
if(not Bm7())then
return false
endif
return true
endfunction
function Bo7 takes nothing returns nothing
set udg_y9[12]=GetEnumUnit()
set udg_Y9[2]=GetUnitLoc(udg_y9[12])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_s9[8]),udg_Y9[2],bj_UNIT_FACING)
set udg_Z9[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677640,udg_Z9[2])
call IssueTargetOrderBJ(udg_Z9[2],"frostnova",udg_y9[12])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Z9[2])
call RemoveLocation(udg_Y9[2])
set udg_Y9[2]=null
set udg_Z9[2]=null
if(Bn7())then
set udg_Y9[2]=PG(GetUnitLoc(udg_y9[12]),-100.00,AngleBetweenPoints(GetUnitLoc(udg_y9[12]),udg_B[19]))
call SetUnitPositionLoc(udg_y9[12],udg_Y9[2])
call IssueImmediateOrderBJ(udg_y9[12],"stop")
call SetUnitFacingToFaceLocTimed(udg_y9[12],udg_B[19],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_y9[12],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(Bk7())then
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
else
call DoNothing()
endif
call RemoveLocation(udg_Y9[2])
set udg_Y9[2]=null
else
call DoNothing()
endif
set udg_y9[12]=null
endfunction
function Bp7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[8])==1162031410))then
return false
endif
return true
endfunction
function Bq7 takes nothing returns boolean
return(GetUnitTypeId(udg_s9[8])==1162031410)
endfunction
function Br7 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[8]))]==true)
endfunction
function Bs7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[8]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,udg_s9[8])==0))then
return false
endif
return true
endfunction
function Bt7 takes nothing returns boolean
if(not Bs7())then
return false
endif
return true
endfunction
function Bu7 takes nothing returns nothing
set udg_s9[8]=GetTriggerUnit()
if(Bp7())then
set udg_Y9[2]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869834349,GetOwningPlayer(udg_s9[8]),udg_Y9[2],bj_UNIT_FACING)
call RemoveLocation(udg_Y9[2])
set udg_Y9[2]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[8],"war3mapImported\\FrostNova.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[8],"war3mapImported\\icestomp.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("Bankai",udg_s9[8],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function a_7)))
set udg_B[19]=GetUnitLoc(udg_s9[8])
call PlaySoundAtPointBJ(udg_yq,100,udg_B[19],0)
call SetTerrainTypeBJ(udg_B[19],1467182711,-1,4,0)
set udg_G[10]=e6(450.00,udg_B[19],Condition(function Bj7))
call ForGroupBJ(udg_G[10],function Bo7)
call RemoveLocation(udg_B[19])
set udg_B[19]=null
call DestroyGroup(udg_G[10])
set udg_G[10]=null
else
set udg_G[10]=k6(GetOwningPlayer(udg_s9[8]),1869834349)
call ForGroupBJ(udg_G[10],function aZ7)
call DestroyGroup(udg_G[10])
set udg_G[10]=null
endif
if(Bq7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[8]))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[8]))]=false
endif
call TriggerSleepAction(0.50)
if(Bt7())then
if(Br7())then
call UnitAddAbilityBJ(1093677913,udg_s9[8])
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_s9[8]=null
endfunction
function Bv7 takes nothing returns nothing
set udg_tb=CreateTrigger()
call TriggerAddCondition(udg_tb,Condition(function a27))
call TriggerAddAction(udg_tb,function Bu7)
endfunction
function Bw7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677386))then
return false
endif
return true
endfunction
function Bx7 takes nothing returns boolean
if(not(RectContainsUnit(udg_sn,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_An,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_jo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_ko,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_mo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_no,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_oo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_po,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_qo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_ro,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_so,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_Ro,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_So,GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function By7 takes nothing returns boolean
if(not Bx7())then
return false
endif
return true
endfunction
function Bz7 takes nothing returns nothing
if(By7())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability here|r")
else
call DoNothing()
endif
endfunction
function BA7 takes nothing returns nothing
set udg_ub=CreateTrigger()
call TriggerAddCondition(udg_ub,Condition(function Bw7))
call TriggerAddAction(udg_ub,function Bz7)
endfunction
function Ba7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677386))then
return false
endif
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
return true
endfunction
function BB7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[25],1110454354)==true)
endfunction
function Bb7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function BC7 takes nothing returns boolean
return(IsTriggerEnabled(udg_wb)==false)
endfunction
function Bc7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[25]!=udg_x))then
return false
endif
if(not(udg_A[25]!=udg_y))then
return false
endif
return true
endfunction
function BD7 takes nothing returns boolean
if(not Bc7())then
return false
endif
return true
endfunction
function BE7 takes nothing returns nothing
set udg_A[25]=GetTriggerUnit()
set udg_B[20]=GetSpellTargetLoc()
set udg_c[10]=AngleBetweenPoints(GetUnitLoc(udg_A[25]),udg_B[20])
set udg_Y9[3]=GetUnitLoc(udg_A[25])
set udg_Zi[26]=0.00
call PauseUnitBJ(true,udg_A[25])
call SetUnitPathing(udg_A[25],false)
call SetUnitAnimation(udg_A[25],"stand ready")
call SetUnitVertexColorBJ(udg_A[25],100,100,100,50.00)
call AddSpecialEffectTargetUnitBJ("weapon",udg_A[25],"Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl")
set udg_P[3]=GetLastCreatedEffectBJ()
if(BB7())then
call UnitRemoveBuffBJ(1110454354,udg_A[25])
else
call DoNothing()
endif
call TriggerSleepAction(0.01)
call CreateTextTagUnitBJ("Ryuusenka",udg_A[25],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Bb7)))
call AddSpecialEffectLocBJ(udg_Y9[3],"war3mapImported\\FrostNova.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPathing(udg_A[25],false)
call EnableTrigger(udg_wb)
call PlaySoundAtPointBJ(udg_xr,100,udg_Y9[3],0)
call RemoveLocation(udg_Y9[3])
set udg_Y9[3]=null
loop
exitwhen(BC7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call SelectUnitAddForPlayer(udg_A[25],GetOwningPlayer(udg_A[25]))
call SetUnitPathing(udg_A[25],true)
call PauseUnitBJ(false,udg_A[25])
call ResetUnitAnimation(udg_A[25])
call SetUnitVertexColorBJ(udg_A[25],100,100,100,0.00)
call DestroyEffectBJ(udg_P[3])
if(BD7())then
call PauseUnitBJ(true,udg_A[25])
else
call DoNothing()
endif
set udg_A[25]=null
set udg_c[10]=0.00
set udg_Zi[26]=0.00
call RemoveLocation(udg_B[20])
set udg_B[20]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_gh)
endfunction
function B37 takes nothing returns nothing
set udg_vb=CreateTrigger()
call TriggerAddCondition(udg_vb,Condition(function Ba7))
call TriggerAddAction(udg_vb,function BE7)
endfunction
function BF7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_A[25])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_A[25])==true))then
return true
endif
return false
endfunction
function BG7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[25]))]==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[25])==true))then
return false
endif
if(not BF7())then
return false
endif
return true
endfunction
function B67 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_gh)==false)
endfunction
function BH7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[25]))==true)
endfunction
function BI7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Bl7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function B17 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function BJ7 takes nothing returns boolean
return GetBooleanAnd(Bl7(),B17())
endfunction
function BK7 takes nothing returns boolean
return GetBooleanAnd(BI7(),BJ7())
endfunction
function BL7 takes nothing returns boolean
return GetBooleanAnd(BH7(),BK7())
endfunction
function BM7 takes nothing returns boolean
return GetBooleanAnd(B67(),BL7())
endfunction
function BN7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[25],GetEnumUnit(),(1000.00+((7.00+(1.00*I2R(GetUnitAbilityLevelSwapped(1093677386,udg_A[25]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[25],true)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(GetEnumUnit(),udg_gh)
endfunction
function BO7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function B07 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_Y9[4])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_Y9[4])==true))then
return true
endif
return false
endfunction
function BP7 takes nothing returns boolean
if(not B07())then
return false
endif
return true
endfunction
function BQ7 takes nothing returns boolean
if(not(udg_Zi[26]>=40.00))then
return false
endif
return true
endfunction
function BR7 takes nothing returns boolean
if(not BG7())then
return false
endif
return true
endfunction
function BS7 takes nothing returns nothing
if(BR7())then
set udg_Zi[26]=(udg_Zi[26]+1)
set udg_Y9[4]=PG(GetUnitLoc(udg_A[25]),30.00,udg_c[10])
if(BP7())then
call SetUnitPositionLocFacingBJ(udg_A[25],udg_Y9[4],udg_c[10])
call SelectUnitRemove(udg_A[25])
call AddSpecialEffectTargetUnitBJ("origin",udg_A[25],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_A[25],"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_Y9[4])
set udg_Y9[4]=null
set udg_Y9[4]=GetUnitLoc(udg_A[25])
set udg_hh=e6(350.00,udg_Y9[4],Condition(function BM7))
call ForGroupBJ(udg_hh,function BN7)
call DestroyGroup(udg_hh)
set udg_hh=null
call UG(350.00,udg_Y9[4],function BO7)
call RemoveLocation(udg_Y9[4])
set udg_Y9[4]=null
else
call RemoveLocation(udg_Y9[4])
set udg_Y9[4]=null
call DisableTrigger(GetTriggeringTrigger())
endif
if(BQ7())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function B57 takes nothing returns nothing
set udg_wb=CreateTrigger()
call DisableTrigger(udg_wb)
call TriggerRegisterTimerEventPeriodic(udg_wb,0.03)
call TriggerAddAction(udg_wb,function BS7)
endfunction
function BT7 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function BU7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677108))then
return false
endif
if(not BT7())then
return false
endif
return true
endfunction
function BV7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function BW7 takes nothing returns nothing
set udg_xb=CreateTrigger()
call TriggerAddCondition(udg_xb,Condition(function BU7))
call TriggerAddAction(udg_xb,function BV7)
endfunction
function BX7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677108))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())==1160785971))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==false))then
return false
endif
return true
endfunction
function BY7 takes nothing returns boolean
if(not BX7())then
return false
endif
return true
endfunction
function B27 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function BZ7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function B_7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_qh))==true)
endfunction
function b47 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function b77 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function b87 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function b97 takes nothing returns boolean
return GetBooleanAnd(b77(),b87())
endfunction
function bd7 takes nothing returns boolean
return GetBooleanAnd(b47(),b97())
endfunction
function be7 takes nothing returns boolean
return GetBooleanAnd(B_7(),bd7())
endfunction
function bf7 takes nothing returns boolean
return GetBooleanAnd(BZ7(),be7())
endfunction
function bg7 takes nothing returns nothing
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_qh),udg_Y9[75],bj_UNIT_FACING)
set udg_Z9[75]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677640,udg_Z9[75])
call SetUnitAbilityLevelSwapped(1093677640,udg_Z9[75],8)
call IssueTargetOrderBJ(udg_Z9[75],"frostnova",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Z9[75])
set udg_Z9[75]=null
endfunction
function bh7 takes nothing returns boolean
if(not(GetEnumUnit()!=udg_rh))then
return false
endif
return true
endfunction
function bi7 takes nothing returns nothing
if(bh7())then
call UnitDamageTargetBJ(udg_qh,GetEnumUnit(),udg_sh,ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_qh),udg_Y9[75],bj_UNIT_FACING)
set udg_Z9[75]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677113,udg_Z9[75])
call SetUnitAbilityLevelSwapped(1093677113,udg_Z9[75],1)
call IssueTargetOrderBJ(udg_Z9[75],"thunderbolt",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Z9[75])
else
call DoNothing()
endif
endfunction
function bj7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function bk7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_qh!=udg_x))then
return false
endif
if(not(udg_qh!=udg_y))then
return false
endif
return true
endfunction
function bm7 takes nothing returns boolean
if(not bk7())then
return false
endif
return true
endfunction
function bn7 takes nothing returns boolean
return(IsTriggerEnabled(udg_zb)==true)
endfunction
function bo7 takes nothing returns boolean
return(IsTriggerEnabled(udg_Ab)==true)
endfunction
function bp7 takes nothing returns nothing
set udg_qh=GetTriggerUnit()
set udg_rh=GetSpellTargetUnit()
set udg_Y9[75]=GetUnitLoc(udg_rh)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_rh))]=true
set udg_sh=(2500.00+(30.00*(I2R(GetHeroLevel(udg_qh))*I2R(GetUnitAbilityLevelSwapped(1093677108,udg_qh)))))
set udg_N[1321]=0
call PauseUnitBJ(true,udg_qh)
call PauseUnitBJ(true,udg_rh)
call SetUnitInvulnerable(udg_qh,true)
call SetUnitInvulnerable(udg_rh,true)
call SetUnitAnimation(udg_qh,"stand ready")
call CreateTextTagUnitBJ("HYOTEN HYAKKASO",udg_qh,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function B27)))
call AddWeatherEffectSaveLast(GetPlayableMapRect(),1397647475)
set udg_Q[1751]=GetLastCreatedWeatherEffect()
call EnableWeatherEffect(udg_Q[1751],true)
set udg_Km[22]=GetUnitLoc(udg_qh)
call PlaySoundAtPointBJ(udg_Aq,100,udg_Km[22],0)
call RemoveLocation(udg_Km[22])
set udg_Km[22]=null
call TriggerSleepAction(1.00)
call EnableTrigger(udg_zb)
call TriggerSleepAction(0.70)
call PauseUnitBJ(false,udg_rh)
call SetUnitInvulnerable(udg_rh,false)
call UnitDamageTargetBJ(udg_qh,udg_rh,udg_sh,ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_qh),udg_Y9[75],bj_UNIT_FACING)
set udg_Z9[75]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677113,udg_Z9[75])
call SetUnitAbilityLevelSwapped(1093677113,udg_Z9[75],2)
call IssueTargetOrderBJ(udg_Z9[75],"thunderbolt",udg_rh)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Z9[75])
set udg_Z9[75]=null
set udg_b[1321]=1
loop
exitwhen udg_b[1321]>5
set udg_N[4321]=(280-(40*udg_b[1321]))
call CreateNUnitsAtLoc(1,1747988788,GetOwningPlayer(udg_qh),udg_Y9[75],GetRandomDirectionDeg())
set udg_Z9[(4321+udg_b[1321])]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Z9[(4321+udg_b[1321])],I2R(udg_N[4321]),I2R(udg_N[4321]),I2R(udg_N[4321]))
set udg_N[4321]=0
set udg_b[1321]=udg_b[1321]+1
endloop
call CreateNUnitsAtLoc(1,1747988557,GetOwningPlayer(udg_qh),udg_Y9[75],bj_UNIT_FACING)
set udg_Z9[4321]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_Z9[4321],10.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_Z9[4321])
set udg_Z9[4321]=null
call CreateNUnitsAtLoc(1,1747988557,GetOwningPlayer(udg_qh),udg_Y9[75],bj_UNIT_FACING)
set udg_Z9[4321]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_Z9[4321],30.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_Z9[4321])
set udg_Z9[4321]=null
call CreateNUnitsAtLoc(1,1747988557,GetOwningPlayer(udg_qh),udg_Y9[75],bj_UNIT_FACING)
set udg_Z9[4321]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_Z9[4321],50.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_Z9[4321])
set udg_Z9[4321]=null
call CreateNUnitsAtLoc(1,1747988557,GetOwningPlayer(udg_qh),udg_Y9[75],bj_UNIT_FACING)
set udg_Z9[4321]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_Z9[4321])
set udg_Z9[4321]=null
call CreateTextTagUnitBJ((I2S(R2I(udg_sh))+"!"),udg_rh,0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.20)
call SetTerrainTypeBJ(udg_Y9[75],1467182711,-1,6,0)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_rh))]=false
set udg_sh=(udg_sh*0.50)
set udg_dd[75]=e6(700.00,udg_Y9[75],Condition(function bf7))
call ForGroupBJ(udg_dd[75],function bg7)
call ForGroupBJ(udg_dd[75],function bi7)
call DestroyGroup(udg_dd[75])
set udg_dd[75]=null
call AddSpecialEffectLocBJ(udg_Y9[75],"war3mapImported\\icestomp.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_Y9[75],"war3mapImported\\icestomp.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(700.00,udg_Y9[75],function bj7)
call TriggerSleepAction(0.50)
call PauseUnitBJ(false,udg_qh)
call SetUnitInvulnerable(udg_qh,false)
call ResetUnitAnimation(udg_qh)
if(bm7())then
call PauseUnitBJ(true,udg_qh)
else
call DoNothing()
endif
set udg_qh=null
set udg_rh=null
set udg_sh=0.00
call RemoveLocation(udg_Y9[75])
set udg_Y9[75]=null
call EnableWeatherEffect(udg_Q[1751],false)
call RemoveWeatherEffectBJ(udg_Q[1751])
if(bn7())then
call DisableTrigger(udg_zb)
else
call DoNothing()
endif
call TriggerSleepAction(3.50)
set udg_N[1321]=0
call EnableTrigger(udg_Ab)
call TriggerSleepAction(2)
if(bo7())then
call DisableTrigger(udg_Ab)
else
call DoNothing()
endif
endfunction
function bq7 takes nothing returns nothing
set udg_yb=CreateTrigger()
call TriggerAddCondition(udg_yb,Condition(function BY7))
call TriggerAddAction(udg_yb,function bp7)
endfunction
function br7 takes nothing returns boolean
if(not(udg_N[1321]==10))then
return false
endif
return true
endfunction
function bs7 takes nothing returns nothing
set udg_N[1321]=(udg_N[1321]+1)
call CreateNUnitsAtLoc(1,1747988789,GetOwningPlayer(udg_qh),udg_Y9[75],bj_UNIT_FACING)
set udg_Z9[4321]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Z9[4321],180.00,180.00,180.00)
call SetUnitTimeScalePercent(udg_Z9[4321],(110.00-(10.00*I2R(udg_N[1321]))))
call SetUnitFlyHeightBJ(udg_Z9[4321],(1100.00-(100.00*I2R(udg_N[1321]))),0.00)
call SetUnitPositionLocFacingBJ(udg_Z9[4321],udg_Y9[75],GetRandomDirectionDeg())
call UnitApplyTimedLifeBJ(6.00,1112820806,udg_Z9[4321])
set udg_Z9[4321]=null
if(br7())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function bt7 takes nothing returns nothing
set udg_zb=CreateTrigger()
call DisableTrigger(udg_zb)
call TriggerRegisterTimerEventPeriodic(udg_zb,0.12)
call TriggerAddAction(udg_zb,function bs7)
endfunction
function bu7 takes nothing returns boolean
if(not(udg_N[1321]==10))then
return false
endif
return true
endfunction
function bv7 takes nothing returns nothing
set udg_N[1321]=(udg_N[1321]+1)
set udg_b[1321]=1
loop
exitwhen udg_b[1321]>5
call SetUnitVertexColorBJ(udg_Z9[(4321+udg_b[1321])],100,100,100,(10.00*I2R(udg_N[1321])))
set udg_b[1321]=udg_b[1321]+1
endloop
if(bu7())then
call DisableTrigger(GetTriggeringTrigger())
set udg_b[1321]=1
loop
exitwhen udg_b[1321]>5
call RemoveUnit(udg_Z9[(4321+udg_b[1321])])
set udg_Z9[(4321+udg_b[1321])]=null
set udg_b[1321]=udg_b[1321]+1
endloop
else
call DoNothing()
endif
endfunction
function bw7 takes nothing returns nothing
set udg_Ab=CreateTrigger()
call DisableTrigger(udg_Ab)
call TriggerRegisterTimerEventPeriodic(udg_Ab,0.08)
call TriggerAddAction(udg_Ab,function bv7)
endfunction
function bx7 takes nothing returns boolean
if(not(udg_qj==null))then
return false
endif
return true
endfunction
function by7 takes nothing returns nothing
if(bx7())then
call DestroyTrigger(udg_Bb)
call DestroyTrigger(udg_bb)
call DestroyTrigger(udg_Cb)
call DestroyTrigger(udg_cb)
call DestroyTrigger(udg_Db)
call DestroyTrigger(udg_Eb)
call DestroyTrigger(udg_Fb)
call DestroyTrigger(udg_Gb)
call DestroyTrigger(udg_Hb)
else
call TriggerRegisterUnitEvent(udg_Bb,udg_qj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_bb,udg_qj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_Cb,udg_qj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Db,udg_qj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Fb,udg_qj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Hb,udg_qj,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function bz7 takes nothing returns nothing
set udg_ab=CreateTrigger()
call TriggerAddAction(udg_ab,function by7)
endfunction
function bA7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679153))then
return false
endif
return true
endfunction
function ba7 takes nothing returns nothing
set udg_H[4]=0.00
set udg_A[61]=GetSpellAbilityUnit()
set udg_b[15]=1
loop
exitwhen udg_b[15]>18
set udg_H[4]=(udg_H[4]+20.00)
set udg_ed[1]=GetUnitLoc(udg_A[61])
call CreateNUnitsAtLocFacingLocBJ(1,1966092338,GetOwningPlayer(udg_A[61]),udg_ed[1],udg_ed[1])
set udg_fd[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677111,udg_fd[1])
call RemoveLocation(udg_ed[1])
set udg_ed[1]=null
set udg_ed[1]=PG(GetUnitLoc(udg_A[61]),300.00,udg_H[4])
call IssuePointOrderLocBJ(udg_fd[1],"breathoffire",udg_ed[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_fd[1])
call RemoveLocation(udg_ed[1])
set udg_ed[1]=null
set udg_fd[1]=null
set udg_b[15]=udg_b[15]+1
endloop
set udg_ed[1]=GetUnitLoc(udg_A[61])
call CreateNUnitsAtLocFacingLocBJ(1,1966092338,GetOwningPlayer(udg_A[61]),udg_ed[1],udg_ed[1])
set udg_fd[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093679152,udg_fd[1])
call IssueImmediateOrderBJ(udg_fd[1],"howlofterror")
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_fd[1])
call RemoveLocation(udg_ed[1])
set udg_ed[1]=null
set udg_Km[23]=GetUnitLoc(udg_A[61])
call PlaySoundAtPointBJ(udg_Tr,100,udg_Km[23],0)
call RemoveLocation(udg_Km[23])
set udg_Km[23]=null
set udg_A[61]=null
set udg_fd[1]=null
endfunction
function bB7 takes nothing returns nothing
set udg_Bb=CreateTrigger()
call TriggerAddCondition(udg_Bb,Condition(function bA7))
call TriggerAddAction(udg_Bb,function ba7)
endfunction
function bb7 takes nothing returns boolean
if(not(RectContainsUnit(udg_sn,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_An,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_jo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_ko,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_mo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_no,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_oo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_po,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_qo,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_ro,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_so,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_Ro,GetTriggerUnit())==false))then
return false
endif
if(not(RectContainsUnit(udg_So,GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function bC7 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return true
endif
if(bb7())then
return true
endif
return false
endfunction
function bc7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677107))then
return false
endif
if(not bC7())then
return false
endif
return true
endfunction
function bD7 takes nothing returns boolean
if(not bc7())then
return false
endif
return true
endfunction
function bE7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function b37 takes nothing returns nothing
set udg_bb=CreateTrigger()
call TriggerAddCondition(udg_bb,Condition(function bD7))
call TriggerAddAction(udg_bb,function bE7)
endfunction
function bF7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677107))then
return false
endif
return true
endfunction
function bG7 takes nothing returns boolean
return(GetRandomInt(1,100)<=30)
endfunction
function b67 takes nothing returns boolean
return(udg_A[24]!=null)
endfunction
function bH7 takes nothing returns boolean
return(IsUnitDeadBJ(udg_A[24])==false)
endfunction
function bI7 takes nothing returns boolean
return GetBooleanAnd(b67(),bH7())
endfunction
function bl7 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_A[62]))]==true))then
return false
endif
return true
endfunction
function b17 takes nothing returns boolean
if(not(udg_th==1))then
return false
endif
return true
endfunction
function bJ7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function bK7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[62]))==true)
endfunction
function bL7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function bM7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function bN7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function bO7 takes nothing returns boolean
return GetBooleanAnd(bM7(),bN7())
endfunction
function b07 takes nothing returns boolean
return GetBooleanAnd(bL7(),bO7())
endfunction
function bP7 takes nothing returns boolean
return GetBooleanAnd(bK7(),b07())
endfunction
function bQ7 takes nothing returns boolean
return GetBooleanAnd(bJ7(),bP7())
endfunction
function bR7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[62],GetEnumUnit(),((3.00+I2R(GetUnitAbilityLevelSwapped(1093677107,udg_A[62])))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[62],true))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endfunction
function bS7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function b57 takes nothing returns boolean
return(udg_z==false)
endfunction
function bT7 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_A[62]))]==true)
endfunction
function bU7 takes nothing returns nothing
set udg_A[62]=GetSpellAbilityUnit()
set udg_B[24]=GetUnitLoc(udg_A[62])
set udg_B[25]=GetSpellTargetLoc()
set udg_m7[GetConvertedPlayerId(GetOwningPlayer(udg_A[62]))]=true
if(bG7())then
set udg_th=2
else
set udg_th=1
endif
call PauseUnitBJ(true,udg_A[62])
call SetUnitInvulnerable(udg_A[62],true)
call TriggerSleepAction(0.01)
call ShowUnitHide(udg_A[62])
call CreateNUnitsAtLocFacingLocBJ(1,1747988550,GetOwningPlayer(udg_A[62]),udg_B[24],udg_B[25])
set udg_A[63]=GetLastCreatedUnit()
call PauseUnitBJ(true,udg_A[63])
call SetUnitAnimation(udg_A[63],"attack")
call SetUnitTimeScalePercent(udg_A[63],40.00)
call SetUnitInvulnerable(udg_A[63],true)
call AddSpecialEffectTargetUnitBJ("weapon",udg_A[63],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
set udg_gd[1]=GetLastCreatedEffectBJ()
if(bI7())then
call AddSpecialEffectTargetUnitBJ("origin",udg_A[63],"YellowRibbon.mdx")
else
call DoNothing()
endif
if(bl7())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_A[62]),udg_A[63],0,0,false)
else
call DoNothing()
endif
if(b17())then
call SetUnitFlyHeightBJ(udg_A[63],500.00,500.00)
call EnableTrigger(udg_cb)
call TriggerSleepAction(1.20)
call SetUnitFlyHeightBJ(udg_A[63],0.00,2000.00)
call TriggerSleepAction(0.20)
else
set udg_th=1
call SetUnitFlyHeightBJ(udg_A[63],900.00,1500.00)
set udg_Km[24]=GetUnitLoc(udg_A[62])
call PlaySoundAtPointBJ(udg_Cp,100,udg_Km[24],0)
call RemoveLocation(udg_Km[24])
set udg_Km[24]=null
call EnableTrigger(udg_cb)
call TriggerSleepAction(0.25)
call SetUnitFlyHeightBJ(udg_A[63],0.00,2000.00)
call SetUnitTimeScalePercent(udg_A[63],80.00)
call AddSpecialEffectTargetUnitBJ("origin",udg_A[63],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
call AddSpecialEffectTargetUnitBJ("chest",udg_A[63],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
set udg_th=2
call TriggerSleepAction(0.15)
endif
call DisableTrigger(udg_cb)
set udg_ed[3]=GetUnitLoc(udg_A[63])
set udg_uh=e6(450.00,udg_ed[3],Condition(function bQ7))
call ForGroupBJ(udg_uh,function bR7)
call DestroyGroup(udg_uh)
set udg_uh=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[62]),udg_ed[3],bj_UNIT_FACING)
set udg_fd[3]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_fd[3])
call UnitAddAbilityBJ(1093677905,udg_fd[3])
call SetUnitAbilityLevelSwapped(1093677905,udg_fd[3],(16+GetUnitAbilityLevelSwapped(1093677107,udg_A[62])))
call IssueImmediateOrderBJ(udg_fd[3],"stomp")
call AddSpecialEffectLocBJ(udg_ed[3],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_ed[3],"war3mapImported\\explosion.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ShowUnitShow(udg_A[62])
call SetUnitPositionLocFacingBJ(udg_A[62],udg_ed[3],AngleBetweenPoints(udg_B[24],udg_B[25]))
call DestroyEffectBJ(udg_gd[1])
call RemoveUnit(udg_A[63])
call PauseUnitBJ(false,udg_A[62])
call AddSpecialEffectTargetUnitBJ("origin",udg_A[62],"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SelectUnitForPlayerSingle(udg_A[62],GetOwningPlayer(udg_A[62]))
call SetUnitTimeScalePercent(udg_A[62],100.00)
call SetUnitInvulnerable(udg_A[62],false)
call UG(450.00,udg_ed[3],function bS7)
if(b57())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_A[62]),udg_ed[3],0.00)
else
call DoNothing()
endif
if(bT7())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_A[62]),udg_A[62],0,0,false)
else
call DoNothing()
endif
set udg_m7[GetConvertedPlayerId(GetOwningPlayer(udg_A[62]))]=false
call SetUnitAbilityLevelSwapped(1093678410,udg_A[62],GetUnitAbilityLevelSwapped(1093677369,udg_A[62]))
set udg_A[62]=null
set udg_A[63]=null
set udg_th=0
call RemoveLocation(udg_B[24])
set udg_B[24]=null
call RemoveLocation(udg_B[25])
set udg_B[25]=null
call RemoveLocation(udg_ed[3])
set udg_ed[3]=null
endfunction
function bV7 takes nothing returns nothing
set udg_Cb=CreateTrigger()
call TriggerAddCondition(udg_Cb,Condition(function bF7))
call TriggerAddAction(udg_Cb,function bU7)
endfunction
function bW7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[62])==true))then
return false
endif
return true
endfunction
function bX7 takes nothing returns boolean
if(not(udg_th==1))then
return false
endif
return true
endfunction
function bY7 takes nothing returns boolean
return(udg_z==false)
endfunction
function b27 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_A[63])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_A[63])==true))then
return true
endif
return false
endfunction
function bZ7 takes nothing returns boolean
if(not(udg_m7[GetConvertedPlayerId(GetOwningPlayer(udg_A[62]))]==true))then
return false
endif
if(not b27())then
return false
endif
return true
endfunction
function b_7 takes nothing returns boolean
if(not bZ7())then
return false
endif
return true
endfunction
function C47 takes nothing returns nothing
if(b_7())then
if(bX7())then
set udg_B[26]=GetUnitLoc(udg_A[63])
set udg_B[27]=PG(udg_B[26],(DistanceBetweenPoints(udg_B[24],udg_B[25])/50.00),GetUnitFacing(udg_A[63]))
call RemoveLocation(udg_B[26])
set udg_B[26]=null
call SetUnitPositionLoc(udg_A[63],udg_B[27])
call RemoveLocation(udg_B[27])
set udg_B[27]=null
else
set udg_B[27]=PG(GetUnitLoc(udg_A[63]),(DistanceBetweenPoints(udg_B[24],udg_B[25])/12.50),GetUnitFacing(udg_A[63]))
call SetUnitPositionLoc(udg_A[63],udg_B[27])
call RemoveLocation(udg_B[27])
set udg_B[27]=null
endif
else
call DisableTrigger(GetTriggeringTrigger())
call ShowUnitShow(udg_A[62])
set udg_ed[3]=GetUnitLoc(udg_A[63])
call SetUnitPositionLocFacingBJ(udg_A[62],udg_ed[3],AngleBetweenPoints(udg_B[24],udg_B[25]))
call DestroyEffectBJ(udg_gd[1])
call RemoveUnit(udg_A[63])
call PauseUnitBJ(false,udg_A[62])
call SetUnitTimeScalePercent(udg_A[62],100.00)
call SetUnitInvulnerable(udg_A[62],false)
call SelectUnitForPlayerSingle(udg_A[62],GetOwningPlayer(udg_A[62]))
if(bY7())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_A[62]),udg_ed[3],0.00)
else
call DoNothing()
endif
set udg_m7[GetConvertedPlayerId(GetOwningPlayer(udg_A[62]))]=false
set udg_A[62]=null
set udg_A[63]=null
call RemoveLocation(udg_B[24])
set udg_B[24]=null
call RemoveLocation(udg_B[25])
set udg_B[25]=null
call RemoveLocation(udg_ed[3])
set udg_ed[3]=null
endif
endfunction
function C77 takes nothing returns nothing
set udg_cb=CreateTrigger()
call DisableTrigger(udg_cb)
call TriggerRegisterTimerEventPeriodic(udg_cb,0.03)
call TriggerAddCondition(udg_cb,Condition(function bW7))
call TriggerAddAction(udg_cb,function C47)
endfunction
function C87 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677392))then
return false
endif
return true
endfunction
function C97 takes nothing returns nothing
set udg_A[24]=null
set udg_A[23]=GetTriggerUnit()
set udg_ed[4]=GetUnitLoc(udg_A[23])
call CreateNUnitsAtLoc(1,1869050485,GetOwningPlayer(udg_A[23]),udg_ed[4],bj_UNIT_FACING)
set udg_A[24]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093679408,udg_A[24])
call SetUnitAbilityLevelSwapped(1093679408,udg_A[24],GetUnitAbilityLevelSwapped(1093677392,udg_A[23]))
call UnitApplyTimedLifeBJ(35.00,1112820806,udg_A[24])
set udg_A[23]=null
call RemoveLocation(udg_ed[4])
set udg_ed[4]=null
call TriggerSleepAction(38.00)
set udg_A[24]=null
endfunction
function Cd7 takes nothing returns nothing
set udg_Db=CreateTrigger()
call TriggerAddCondition(udg_Db,Condition(function C87))
call TriggerAddAction(udg_Db,function C97)
endfunction
function Ce7 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),1110454616)==true))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())==1429221428))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
return true
endfunction
function Cf7 takes nothing returns boolean
if(not Ce7())then
return false
endif
return true
endfunction
function Cg7 takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetAttacker(),"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetAttackedUnitBJ(),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Ch7 takes nothing returns nothing
set udg_Eb=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Eb,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_Eb,Condition(function Cf7))
call TriggerAddAction(udg_Eb,function Cg7)
endfunction
function Ci7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677392))then
return false
endif
return true
endfunction
function Cj7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Ck7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Cm7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Cn7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Co7 takes nothing returns boolean
return(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function Cp7 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function Cq7 takes nothing returns boolean
return GetBooleanAnd(Co7(),Cp7())
endfunction
function Cr7 takes nothing returns boolean
return GetBooleanAnd(Cn7(),Cq7())
endfunction
function Cs7 takes nothing returns boolean
return GetBooleanAnd(Cm7(),Cr7())
endfunction
function Ct7 takes nothing returns boolean
return GetBooleanAnd(Ck7(),Cs7())
endfunction
function Cu7 takes nothing returns boolean
return GetBooleanAnd(Cj7(),Ct7())
endfunction
function Cv7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_y9[13])==1328558129))then
return false
endif
return true
endfunction
function Cw7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[18])))==true))then
return true
endif
return false
endfunction
function Cx7 takes nothing returns boolean
if(not Cw7())then
return false
endif
return true
endfunction
function Cy7 takes nothing returns nothing
if(Cx7())then
set udg_y9[13]=GetEnumUnit()
set udg_ed[5]=PG(GetUnitLoc(udg_y9[13]),-100.00,AngleBetweenPoints(GetUnitLoc(udg_y9[13]),udg_B[18]))
call SetUnitPositionLoc(udg_y9[13],udg_ed[5])
call RemoveLocation(udg_ed[5])
set udg_ed[5]=null
call IssueImmediateOrderBJ(udg_y9[13],"stop")
call SetUnitFacingToFaceLocTimed(udg_y9[13],udg_B[18],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_y9[13],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(Cv7())then
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
else
call DoNothing()
endif
set udg_y9[13]=null
else
call DoNothing()
endif
endfunction
function Cz7 takes nothing returns nothing
set udg_s9[9]=GetTriggerUnit()
set udg_ed[5]=GetUnitLoc(udg_s9[9])
call PlaySoundAtPointBJ(udg_Rp,100,udg_ed[5],0)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_s9[9]),udg_ed[5],bj_UNIT_FACING)
set udg_fd[5]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677378,udg_fd[5])
call IssueImmediateOrderBJ(udg_fd[5],"thunderclap")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_fd[5])
call RemoveLocation(udg_ed[5])
set udg_ed[5]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[9],"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[9],"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_B[18]=GetUnitLoc(GetTriggerUnit())
set udg_G[9]=e6(460.00,udg_B[18],Condition(function Cu7))
call ForGroupBJ(udg_G[9],function Cy7)
call IssueImmediateOrderBJ(udg_s9[9],"stop")
call SetUnitAnimation(udg_s9[9],"spell")
call RemoveLocation(udg_B[18])
set udg_B[18]=null
call DestroyGroup(udg_G[9])
set udg_G[9]=null
endfunction
function CA7 takes nothing returns nothing
set udg_Fb=CreateTrigger()
call TriggerAddCondition(udg_Fb,Condition(function Ci7))
call TriggerAddAction(udg_Fb,function Cz7)
endfunction
function Ca7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093677369,GetKillingUnitBJ())<=20))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093678410,GetKillingUnitBJ())<=20))then
return false
endif
if(not(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])==1429221428))then
return false
endif
return true
endfunction
function CB7 takes nothing returns boolean
if(Ca7())then
return true
endif
if((GetUnitTypeId(GetDyingUnit())==1429221428))then
return true
endif
return false
endfunction
function Cb7 takes nothing returns boolean
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not CB7())then
return false
endif
return true
endfunction
function CC7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])==1429221428))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677369,GetKillingUnitBJ())<=20))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093678410,GetKillingUnitBJ())<=20))then
return false
endif
return true
endfunction
function Cc7 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221428))then
return false
endif
return true
endfunction
function CD7 takes nothing returns boolean
if(not CC7())then
return false
endif
return true
endfunction
function CE7 takes nothing returns nothing
if(CD7())then
call IncUnitAbilityLevelSwapped(1093677369,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])
call IncUnitAbilityLevelSwapped(1093678410,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])
else
if(Cc7())then
call DecUnitAbilityLevelSwapped(1093677369,GetDyingUnit())
call DecUnitAbilityLevelSwapped(1093677369,GetDyingUnit())
call DecUnitAbilityLevelSwapped(1093678410,GetDyingUnit())
call DecUnitAbilityLevelSwapped(1093678410,GetDyingUnit())
else
call DoNothing()
endif
endif
endfunction
function C37 takes nothing returns nothing
set udg_Gb=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_Gb,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_Gb,Condition(function Cb7))
call TriggerAddAction(udg_Gb,function CE7)
endfunction
function CF7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677129))then
return false
endif
return true
endfunction
function CG7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function C67 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_yh)==false)
endfunction
function CH7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_wh))==true)
endfunction
function CI7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Cl7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function C17 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function CJ7 takes nothing returns boolean
return GetBooleanAnd(Cl7(),C17())
endfunction
function CK7 takes nothing returns boolean
return GetBooleanAnd(CI7(),CJ7())
endfunction
function CL7 takes nothing returns boolean
return GetBooleanAnd(CH7(),CK7())
endfunction
function CM7 takes nothing returns boolean
return GetBooleanAnd(C67(),CL7())
endfunction
function CN7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_wh,GetEnumUnit(),udg_xh,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(GetEnumUnit(),udg_yh)
endfunction
function CO7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function C07 takes nothing returns boolean
return(UnitHasBuffBJ(udg_wh,1114010223)==true)
endfunction
function CP7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_wh)==true))then
return false
endif
return true
endfunction
function CQ7 takes nothing returns nothing
set bj_wantDestroyGroup=true
call GroupClear(udg_yh)
set udg_wh=GetTriggerUnit()
set udg_ed[688]=GetUnitLoc(udg_wh)
set udg_ed[689]=GetSpellTargetLoc()
set udg_xh=(((8.00+(2.00*I2R(GetUnitAbilityLevelSwapped(1093677129,udg_wh))))*(10.00*(I2R(GetUnitAbilityLevelSwapped(1093678410,udg_wh))-1.00)))+((11.00+(3.00*I2R(GetUnitAbilityLevelSwapped(1093677129,udg_wh))))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_wh,true))))
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_wh))]=true
call SelectUnitRemoveForPlayer(udg_wh,GetOwningPlayer(udg_wh))
call PauseUnitBJ(true,udg_wh)
call SetUnitPathing(udg_wh,false)
call SetUnitInvulnerable(udg_wh,true)
call ShowUnitHide(udg_wh)
call SetUnitVertexColorBJ(udg_wh,100,100,100,100.00)
call CreateNUnitsAtLocFacingLocBJ(1,1747988808,GetOwningPlayer(udg_wh),udg_ed[688],udg_ed[689])
set udg_fd[689]=GetLastCreatedUnit()
call PauseUnitBJ(true,udg_fd[689])
call SetUnitAnimation(udg_fd[689],"stand ready")
call SetUnitInvulnerable(udg_fd[689],true)
call CreateTextTagUnitBJ("\"gimme a break...\"",udg_fd[689],0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function CG7)))
call AddSpecialEffectTargetUnitBJ("origin",udg_fd[689],"YellowRibbon.mdx")
set udg_gd[21]=GetLastCreatedEffectBJ()
set udg_Km[25]=GetUnitLoc(udg_wh)
call PlaySoundAtPointBJ(udg_Rq,100,udg_Km[25],0)
call RemoveLocation(udg_Km[25])
set udg_Km[25]=null
call TriggerSleepAction(0.30)
if(CP7())then
call SetUnitTimeScalePercent(udg_fd[689],150.00)
call SetUnitAnimation(udg_fd[689],"attack")
call AddSpecialEffectLocBJ(udg_ed[688],"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_ed[688],"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.01)
set udg_Ah=1
loop
exitwhen udg_Ah>18
set udg_ed[690]=PG(udg_ed[688],(45.00*I2R(udg_Ah)),AngleBetweenPoints(udg_ed[688],udg_ed[689]))
call AddSpecialEffectLocBJ(udg_ed[690],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_ed[690],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_zh=e6(360.00,udg_ed[690],Condition(function CM7))
call ForGroupBJ(udg_zh,function CN7)
call DestroyGroup(udg_zh)
set udg_zh=null
call UG(300.00,udg_ed[690],function CO7)
call RemoveLocation(udg_ed[690])
set udg_ed[690]=null
set udg_Ah=udg_Ah+1
endloop
if(C07())then
call UnitRemoveBuffBJ(1114010223,udg_wh)
else
call DoNothing()
endif
call TriggerSleepAction(0.65)
call DestroyEffectBJ(udg_gd[21])
call RemoveUnit(udg_fd[689])
call ShowUnitShow(udg_wh)
call SetUnitInvulnerable(udg_wh,false)
call PauseUnitBJ(false,udg_wh)
call SetUnitPathing(udg_wh,true)
call SelectUnitForPlayerSingle(udg_wh,GetOwningPlayer(udg_wh))
call SetUnitVertexColorBJ(udg_wh,100,100,100,0.00)
set udg_xh=0.00
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_wh))]=false
set udg_fd[689]=null
call SetUnitAbilityLevelSwapped(1093678410,udg_wh,GetUnitAbilityLevelSwapped(1093677369,udg_wh))
set udg_wh=null
call RemoveLocation(udg_ed[688])
set udg_ed[688]=null
call RemoveLocation(udg_ed[689])
set udg_ed[689]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_yh)
else
call DestroyEffectBJ(udg_gd[21])
call RemoveUnit(udg_fd[689])
call ShowUnitShow(udg_wh)
call SetUnitInvulnerable(udg_wh,false)
call PauseUnitBJ(false,udg_wh)
call SetUnitPathing(udg_wh,true)
call SelectUnitForPlayerSingle(udg_wh,GetOwningPlayer(udg_wh))
call SetUnitVertexColorBJ(udg_wh,100,100,100,0.00)
set udg_xh=0.00
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_wh))]=false
set udg_fd[689]=null
call SetUnitAbilityLevelSwapped(1093678410,udg_wh,GetUnitAbilityLevelSwapped(1093677369,udg_wh))
set udg_wh=null
call RemoveLocation(udg_ed[688])
set udg_ed[688]=null
call RemoveLocation(udg_ed[689])
set udg_ed[689]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_yh)
endif
endfunction
function CR7 takes nothing returns nothing
set udg_Hb=CreateTrigger()
call TriggerAddCondition(udg_Hb,Condition(function CF7))
call TriggerAddAction(udg_Hb,function CQ7)
endfunction
function CS7 takes nothing returns boolean
if(not(udg_rj==null))then
return false
endif
return true
endfunction
function C57 takes nothing returns nothing
if(CS7())then
call DestroyTrigger(udg_lb)
call DestroyTrigger(udg_Jb)
call DestroyTrigger(udg_Kb)
call DestroyTrigger(udg_Lb)
call DestroyTrigger(udg_Mb)
call DestroyTrigger(udg_Nb)
call DestroyTrigger(udg_Ob)
call DestroyTrigger(udg_Pb)
call DestroyTrigger(udg_Qb)
call DestroyTrigger(udg_Rb)
else
call TriggerRegisterUnitEvent(udg_lb,udg_rj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Jb,udg_rj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Lb,udg_rj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Ob,udg_rj,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_Pb,udg_rj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_Qb,udg_rj,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function CT7 takes nothing returns nothing
set udg_Ib=CreateTrigger()
call TriggerAddAction(udg_Ib,function C57)
endfunction
function CU7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681497))then
return false
endif
return true
endfunction
function CV7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[91]))==true)
endfunction
function CW7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function CX7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function CY7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function C27 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function CZ7 takes nothing returns boolean
return GetBooleanAnd(CY7(),C27())
endfunction
function C_7 takes nothing returns boolean
return GetBooleanAnd(CX7(),CZ7())
endfunction
function c47 takes nothing returns boolean
return GetBooleanAnd(CW7(),C_7())
endfunction
function c77 takes nothing returns boolean
return GetBooleanAnd(CV7(),c47())
endfunction
function c87 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_Bi)
endfunction
function c97 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_Bi))then
return false
endif
return true
endfunction
function cd7 takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_bi)==false))then
return false
endif
return true
endfunction
function ce7 takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function cf7 takes nothing returns nothing
if(ce7())then
if(cd7())then
if(c97())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_Bi))
else
if(c87())then
call UnitDamageTargetBJ(udg_A[91],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
else
call GroupAddUnitSimple(GetEnumUnit(),udg_bi)
endif
endfunction
function cg7 takes nothing returns nothing
set udg_A[91]=GetTriggerUnit()
set udg_hd[1]=GetUnitLoc(udg_A[91])
set udg_Bi=((50.00+(20.00*I2R(GetUnitAbilityLevelSwapped(1093681497,udg_A[91]))))*0.50)
set udg_Km[26]=GetUnitLoc(udg_A[91])
call PlaySoundAtPointBJ(udg_Wp,100,udg_Km[26],0)
call RemoveLocation(udg_Km[26])
set udg_Km[26]=null
set udg_G[30]=e6(720.00,udg_hd[1],Condition(function c77))
call AddSpecialEffectLocBJ(udg_hd[1],"FlameShockwave.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_ai=1
loop
exitwhen udg_ai>8
call ForGroupBJ(udg_G[30],function cf7)
call TriggerSleepAction(0.50)
set udg_ai=udg_ai+1
endloop
set udg_A[91]=null
set udg_Bi=0.00
call DestroyGroup(udg_G[30])
set udg_G[30]=null
call RemoveLocation(udg_hd[1])
set udg_hd[1]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_bi)
endfunction
function ch7 takes nothing returns nothing
set udg_lb=CreateTrigger()
call TriggerAddCondition(udg_lb,Condition(function CU7))
call TriggerAddAction(udg_lb,function cg7)
endfunction
function ci7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678154))then
return false
endif
return true
endfunction
function cj7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[93],1110454354)==true)
endfunction
function ck7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=true)
endfunction
function cm7 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function cn7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[93]))==true)
endfunction
function co7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)!=true)
endfunction
function cp7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function cq7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())!=true)
endfunction
function cr7 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),GetOwningPlayer(udg_A[93]))==true)
endfunction
function cs7 takes nothing returns boolean
return GetBooleanAnd(cq7(),cr7())
endfunction
function ct7 takes nothing returns boolean
return GetBooleanAnd(cp7(),cs7())
endfunction
function cu7 takes nothing returns boolean
return GetBooleanAnd(co7(),ct7())
endfunction
function cv7 takes nothing returns boolean
return GetBooleanAnd(cn7(),cu7())
endfunction
function cw7 takes nothing returns boolean
return GetBooleanAnd(cm7(),cv7())
endfunction
function cx7 takes nothing returns boolean
return GetBooleanAnd(ck7(),cw7())
endfunction
function cy7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[93])==true)
endfunction
function cz7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[93]!=udg_x))then
return false
endif
if(not(udg_A[93]!=udg_y))then
return false
endif
return true
endfunction
function cA7 takes nothing returns boolean
if(not cz7())then
return false
endif
return true
endfunction
function ca7 takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_A[93],1112757326)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[93],1112560453)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[93],1110454360)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[93],1110454834)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[93],1110454835)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[93],1110454321)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[93],1110454323)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[93],1110454607)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[93],1110454320)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[93],1112500344)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[93],1112896364)==false))then
return false
endif
return true
endfunction
function cB7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[93])==true)
endfunction
function cb7 takes nothing returns nothing
set udg_a[31]=GetEnumUnit()
set udg_hd[61]=GetUnitLoc(udg_a[31])
set udg_B[61]=PG(udg_hd[61],GetRandomReal(10.00,50.00),GetRandomDirectionDeg())
call SetUnitPositionLocFacingLocBJ(udg_A[93],udg_B[61],udg_hd[61])
call RemoveLocation(udg_B[61])
set udg_B[61]=null
call RemoveLocation(udg_hd[61])
set udg_hd[61]=null
call TriggerExecute(udg_Kb)
call AddSpecialEffectTargetUnitBJ("origin",udg_A[93],"!Shunpo!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(cB7())then
call PauseUnitBJ(false,udg_A[93])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[93],100.00)
call SetUnitAnimation(udg_A[93],"attack")
endfunction
function cC7 takes nothing returns boolean
if(not ca7())then
return false
endif
return true
endfunction
function cc7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[93]))]==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[93])==true))then
return false
endif
if(not(IsUnitPausedBJ(udg_A[93])==false))then
return false
endif
if(not(IsUnitInGroup(udg_A[93],udg_C4)==false))then
return false
endif
return true
endfunction
function cD7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[93])==true)
endfunction
function cE7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[93]!=udg_x))then
return false
endif
if(not(udg_A[93]!=udg_y))then
return false
endif
return true
endfunction
function c37 takes nothing returns boolean
if(not cE7())then
return false
endif
return true
endfunction
function cF7 takes nothing returns boolean
if(not(IsUnitInGroup(udg_A[93],udg_C4)==true))then
return false
endif
return true
endfunction
function cG7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function c67 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function cH7 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function cI7 takes nothing returns nothing
set udg_A[93]=GetTriggerUnit()
set udg_a[31]=GetSpellTargetUnit()
set udg_C[20]=(1+GetUnitAbilityLevelSwapped(1093678154,udg_A[93]))
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[93]))]=true
call ResetUnitAnimation(udg_A[93])
call SetUnitTimeScalePercent(udg_A[93],100.00)
call AddSpecialEffectTargetUnitBJ("weapon",udg_A[93],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
set udg_P[31]=GetLastCreatedEffectBJ()
set udg_Km[27]=GetUnitLoc(udg_A[93])
call PlaySoundAtPointBJ(udg_Up,100,udg_Km[27],0)
call RemoveLocation(udg_Km[27])
set udg_Km[27]=null
call TriggerSleepAction(0.01)
call SetUnitAnimation(udg_A[93],"attack")
set udg_hd[61]=GetUnitLoc(udg_a[31])
set udg_B[61]=PG(udg_hd[61],GetRandomReal(10.00,50.00),GetRandomDirectionDeg())
call SetUnitPositionLocFacingLocBJ(udg_A[93],udg_B[61],udg_hd[61])
call RemoveLocation(udg_B[61])
set udg_B[61]=null
call RemoveLocation(udg_hd[61])
set udg_hd[61]=null
call TriggerExecute(udg_Kb)
call AddSpecialEffectTargetUnitBJ("origin",udg_A[93],"!Shunpo!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_b[31]=1
loop
exitwhen udg_b[31]>udg_C[20]
if(cj7())then
call UnitRemoveBuffBJ(1110454354,udg_A[93])
else
call DoNothing()
endif
call TriggerSleepAction(0.30)
set udg_B[60]=GetUnitLoc(udg_A[93])
set udg_G[31]=e6(600.00,udg_B[60],Condition(function cx7))
set udg_G[32]=u6(1,udg_G[31])
call RemoveLocation(udg_B[60])
set udg_B[60]=null
if(cc7())then
if(cC7())then
call ForGroupBJ(udg_G[32],function cb7)
call DestroyGroup(udg_G[31])
call DestroyGroup(udg_G[32])
set udg_G[31]=null
set udg_G[32]=null
else
call DoNothing()
endif
else
call DestroyEffectBJ(udg_P[31])
call SelectUnitAddForPlayer(udg_A[93],GetOwningPlayer(udg_A[93]))
if(cy7())then
call PauseUnitBJ(false,udg_A[93])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[93],100.00)
call SetUnitVertexColorBJ(udg_A[93],100,100,100,0)
call RemoveLocation(udg_B[60])
set udg_B[60]=null
call RemoveLocation(udg_B[61])
set udg_B[61]=null
call ResetUnitAnimation(udg_A[93])
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[93]))]=false
if(cA7())then
call PauseUnitBJ(true,udg_A[93])
else
call DoNothing()
endif
set udg_A[93]=null
set udg_a[31]=null
set udg_C[20]=0
endif
set udg_b[31]=udg_b[31]+1
endloop
call DestroyEffectBJ(udg_P[31])
call SelectUnitAddForPlayer(udg_A[93],GetOwningPlayer(udg_A[93]))
if(cD7())then
call PauseUnitBJ(false,udg_A[93])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[93],100.00)
call SetUnitVertexColorBJ(udg_A[93],100,100,100,0)
call RemoveLocation(udg_B[60])
set udg_B[60]=null
call RemoveLocation(udg_B[61])
set udg_B[61]=null
call ResetUnitAnimation(udg_A[93])
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[93]))]=false
if(c37())then
call PauseUnitBJ(true,udg_A[93])
else
call DoNothing()
endif
if(cF7())then
call SetUnitTimeScalePercent(udg_A[93],0.00)
call PauseUnitBJ(true,udg_A[93])
else
call DoNothing()
endif
set udg_A[93]=null
set udg_a[31]=null
set udg_C[20]=0
if(cH7())then
call ForGroupBJ(d6(GetPlayableMapRect()),function cG7)
call ForForce(GetPlayersAll(),function c67)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function cl7 takes nothing returns nothing
set udg_Jb=CreateTrigger()
call TriggerAddCondition(udg_Jb,Condition(function ci7))
call TriggerAddAction(udg_Jb,function cI7)
endfunction
function c17 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[93]))==true)
endfunction
function cJ7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function cK7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function cL7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function cM7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function cN7 takes nothing returns boolean
return GetBooleanAnd(cL7(),cM7())
endfunction
function cO7 takes nothing returns boolean
return GetBooleanAnd(cK7(),cN7())
endfunction
function c07 takes nothing returns boolean
return GetBooleanAnd(cJ7(),cO7())
endfunction
function cP7 takes nothing returns boolean
return GetBooleanAnd(c17(),c07())
endfunction
function cQ7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[93],GetEnumUnit(),(3.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[93],true))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function cR7 takes nothing returns nothing
set udg_hd[2]=GetUnitLoc(udg_a[31])
set udg_Ci=e6(220.00,udg_hd[2],Condition(function cP7))
call ForGroupBJ(udg_Ci,function cQ7)
call DestroyGroup(udg_Ci)
set udg_Ci=null
call AddSpecialEffectLocBJ(udg_hd[2],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_hd[2])
set udg_hd[2]=null
endfunction
function cS7 takes nothing returns nothing
set udg_Kb=CreateTrigger()
call TriggerAddAction(udg_Kb,function cR7)
endfunction
function c57 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678149))then
return false
endif
return true
endfunction
function cT7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function cU7 takes nothing returns nothing
set udg_A[94]=GetTriggerUnit()
set udg_B[62]=GetUnitLoc(udg_A[94])
set udg_Gi[1]=GetUnitFacing(udg_A[94])
set udg_Fi[1]=PG(udg_B[62],1000.00,udg_Gi[1])
set udg_ci[1]=(75.00+(25.00*I2R(GetUnitAbilityLevelSwapped(1093678149,udg_A[94]))))
set udg_ci[2]=(150.00+(150.00*I2R(GetUnitAbilityLevelSwapped(1093678149,udg_A[94]))))
set udg_H[31]=0.00
set udg_Hi=1
set udg_ci[1]=(udg_ci[1]*0.50)
set udg_ci[2]=(udg_ci[2]*0.50)
call EnableTrigger(udg_Mb)
call CreateTextTagUnitBJ("Jokaku Enjo",udg_A[94],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function cT7)))
set udg_Km[28]=GetUnitLoc(udg_A[94])
call PlaySoundAtPointBJ(udg_Pq,100,udg_Km[28],0)
call RemoveLocation(udg_Km[28])
set udg_Km[28]=null
endfunction
function cV7 takes nothing returns nothing
set udg_Lb=CreateTrigger()
call TriggerAddCondition(udg_Lb,Condition(function c57))
call TriggerAddAction(udg_Lb,function cU7)
endfunction
function cW7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[94]))==true)
endfunction
function cX7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function cY7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function c27 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function cZ7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function c_7 takes nothing returns boolean
return GetBooleanAnd(c27(),cZ7())
endfunction
function D47 takes nothing returns boolean
return GetBooleanAnd(cY7(),c_7())
endfunction
function D77 takes nothing returns boolean
return GetBooleanAnd(cX7(),D47())
endfunction
function D87 takes nothing returns boolean
return GetBooleanAnd(cW7(),D77())
endfunction
function D97 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[94],GetEnumUnit(),(4.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[94],true))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Dd7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_Fi[2],udg_Fi[1])<110.00))then
return false
endif
return true
endfunction
function De7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Df7 takes nothing returns boolean
if(not(udg_Hi==1))then
return false
endif
return true
endfunction
function Dg7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[94]))==true)
endfunction
function Dh7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Di7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function Dj7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Dk7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Dm7 takes nothing returns boolean
return GetBooleanAnd(Dj7(),Dk7())
endfunction
function Dn7 takes nothing returns boolean
return GetBooleanAnd(Di7(),Dm7())
endfunction
function Do7 takes nothing returns boolean
return GetBooleanAnd(Dh7(),Dn7())
endfunction
function Dp7 takes nothing returns boolean
return GetBooleanAnd(Dg7(),Do7())
endfunction
function Dq7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[94],GetEnumUnit(),(4.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[94],true))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Dr7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Ds7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[94]))==true)
endfunction
function Dt7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Du7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function Dv7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Dw7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Dx7 takes nothing returns boolean
return GetBooleanAnd(Dv7(),Dw7())
endfunction
function Dy7 takes nothing returns boolean
return GetBooleanAnd(Du7(),Dx7())
endfunction
function Dz7 takes nothing returns boolean
return GetBooleanAnd(Dt7(),Dy7())
endfunction
function DA7 takes nothing returns boolean
return GetBooleanAnd(Ds7(),Dz7())
endfunction
function Da7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[94],GetEnumUnit(),(4.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[94],true))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function DB7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Db7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[94]))==true)
endfunction
function DC7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Dc7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function DD7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function DE7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function D37 takes nothing returns boolean
return GetBooleanAnd(DD7(),DE7())
endfunction
function DF7 takes nothing returns boolean
return GetBooleanAnd(Dc7(),D37())
endfunction
function DG7 takes nothing returns boolean
return GetBooleanAnd(DC7(),DF7())
endfunction
function D67 takes nothing returns boolean
return GetBooleanAnd(Db7(),DG7())
endfunction
function DH7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[94],GetEnumUnit(),(4.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[94],true))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function DI7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Dl7 takes nothing returns boolean
if(not(udg_A[94]!=null))then
return false
endif
return true
endfunction
function D17 takes nothing returns boolean
if(not(udg_Gi[1]==(udg_Gi[3]+180.00)))then
return false
endif
if(not(udg_Gi[2]==(udg_Gi[3]-180.00)))then
return false
endif
return true
endfunction
function DJ7 takes nothing returns boolean
if(not D17())then
return false
endif
return true
endfunction
function DK7 takes nothing returns boolean
if(not(udg_Hi==2))then
return false
endif
return true
endfunction
function DL7 takes nothing returns nothing
if(Df7())then
set udg_H[31]=(udg_H[31]+100.00)
set udg_Fi[2]=PG(udg_B[62],udg_H[31],udg_Gi[1])
set udg_Di[1]=e6(250.00,udg_Fi[2],Condition(function D87))
call ForGroupBJ(udg_Di[1],function D97)
call DestroyGroup(udg_Di[1])
set udg_Di[1]=null
call AddSpecialEffectLocBJ(udg_Fi[2],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(Dd7())then
set udg_Hi=2
set udg_H[31]=0.00
set udg_Gi[2]=udg_Gi[1]
set udg_Gi[3]=udg_Gi[1]
set udg_Ei=1
call AddSpecialEffectLocBJ(udg_Fi[1],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLocFacingLocBJ(1,1747988558,GetOwningPlayer(udg_A[94]),udg_Fi[1],udg_B[62])
set udg_li[udg_Ei]=GetLastCreatedUnit()
call RemoveLocation(udg_Fi[1])
set udg_Fi[1]=null
else
call DoNothing()
endif
call UG(250.00,udg_Fi[2],function De7)
call RemoveLocation(udg_Fi[2])
set udg_Fi[2]=null
else
call DoNothing()
endif
if(DK7())then
set udg_Gi[1]=(udg_Gi[1]+10.00)
set udg_Gi[2]=(udg_Gi[2]-10.00)
if(DJ7())then
call DisableTrigger(GetTriggeringTrigger())
set udg_Fi[1]=PG(udg_B[62],1000.00,udg_Gi[1])
set udg_Ei=(udg_Ei+1)
set udg_Di[1]=e6(250.00,udg_Fi[1],Condition(function D67))
call ForGroupBJ(udg_Di[1],function DH7)
call DestroyGroup(udg_Di[1])
set udg_Di[1]=null
call AddSpecialEffectLocBJ(udg_Fi[1],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLocFacingLocBJ(1,1747988558,GetOwningPlayer(udg_A[94]),udg_Fi[1],udg_B[62])
set udg_li[udg_Ei]=GetLastCreatedUnit()
call UG(250.00,udg_Fi[1],function DI7)
call RemoveLocation(udg_Fi[1])
set udg_Fi[1]=null
call EnableTrigger(udg_Nb)
call TriggerSleepAction(20.00)
if(Dl7())then
call TriggerExecute(udg_Ob)
else
call DoNothing()
endif
else
set udg_Fi[1]=PG(udg_B[62],1000.00,udg_Gi[1])
set udg_Fi[2]=PG(udg_B[62],1000.00,udg_Gi[2])
set udg_Ei=(udg_Ei+1)
set udg_Di[1]=e6(250.00,udg_Fi[1],Condition(function Dp7))
call ForGroupBJ(udg_Di[1],function Dq7)
call DestroyGroup(udg_Di[1])
set udg_Di[1]=null
call AddSpecialEffectLocBJ(udg_Fi[1],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLocFacingLocBJ(1,1747988558,GetOwningPlayer(udg_A[94]),udg_Fi[1],udg_B[62])
set udg_li[udg_Ei]=GetLastCreatedUnit()
call UG(250.00,udg_Fi[1],function Dr7)
set udg_Ei=(udg_Ei+1)
set udg_Di[1]=e6(250.00,udg_Fi[2],Condition(function DA7))
call ForGroupBJ(udg_Di[1],function Da7)
call DestroyGroup(udg_Di[1])
set udg_Di[1]=null
call AddSpecialEffectLocBJ(udg_Fi[2],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLocFacingLocBJ(1,1747988558,GetOwningPlayer(udg_A[94]),udg_Fi[2],udg_B[62])
set udg_li[udg_Ei]=GetLastCreatedUnit()
call UG(250.00,udg_Fi[2],function DB7)
call RemoveLocation(udg_Fi[1])
set udg_Fi[1]=null
call RemoveLocation(udg_Fi[2])
set udg_Fi[2]=null
endif
else
call DoNothing()
endif
endfunction
function DM7 takes nothing returns nothing
set udg_Mb=CreateTrigger()
call DisableTrigger(udg_Mb)
call TriggerRegisterTimerEventPeriodic(udg_Mb,0.16)
call TriggerAddAction(udg_Mb,function DL7)
endfunction
function DN7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[94]))==true)
endfunction
function DO7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function D07 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function DP7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function DQ7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function DR7 takes nothing returns boolean
return GetBooleanAnd(DP7(),DQ7())
endfunction
function DS7 takes nothing returns boolean
return GetBooleanAnd(D07(),DR7())
endfunction
function D57 takes nothing returns boolean
return GetBooleanAnd(DO7(),DS7())
endfunction
function DT7 takes nothing returns boolean
return GetBooleanAnd(DN7(),D57())
endfunction
function DU7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_ci[2])
endfunction
function DV7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_ci[2]))then
return false
endif
return true
endfunction
function DW7 takes nothing returns nothing
if(DV7())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_ci[2]))
else
if(DU7())then
call UnitDamageTargetBJ(udg_A[94],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function DX7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[94]))==true)
endfunction
function DY7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function D27 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function DZ7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function D_7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function E47 takes nothing returns boolean
return GetBooleanAnd(DZ7(),D_7())
endfunction
function E77 takes nothing returns boolean
return GetBooleanAnd(D27(),E47())
endfunction
function E87 takes nothing returns boolean
return GetBooleanAnd(DY7(),E77())
endfunction
function E97 takes nothing returns boolean
return GetBooleanAnd(DX7(),E87())
endfunction
function Ed7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_ci[1])
endfunction
function Ee7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_ci[1]))then
return false
endif
return true
endfunction
function Ef7 takes nothing returns nothing
if(Ee7())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_ci[1]))
else
if(Ed7())then
call UnitDamageTargetBJ(udg_A[94],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Eg7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Eh7 takes nothing returns nothing
set udg_Ii=1
loop
exitwhen udg_Ii>udg_Ei
set udg_Fi[4]=GetUnitLoc(udg_li[udg_Ii])
set udg_Di[2]=e6(200.00,udg_Fi[4],Condition(function DT7))
call ForGroupBJ(udg_Di[2],function DW7)
call DestroyGroup(udg_Di[2])
set udg_Di[2]=null
call RemoveLocation(udg_Fi[4])
set udg_Fi[4]=null
set udg_Ii=udg_Ii+1
endloop
set udg_Di[1]=e6(900.00,udg_B[62],Condition(function E97))
call ForGroupBJ(udg_Di[1],function Ef7)
call DestroyGroup(udg_Di[1])
set udg_Di[1]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[94]),udg_B[62],GetRandomDirectionDeg())
set udg_id[3]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677121,udg_id[3])
call IssuePointOrderLocBJ(udg_id[3],"flamestrike",udg_B[62])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_id[3])
set udg_id[3]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[94]),udg_B[62],GetRandomDirectionDeg())
set udg_id[3]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677121,udg_id[3])
call IssuePointOrderLocBJ(udg_id[3],"flamestrike",udg_B[62])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_id[3])
set udg_id[3]=null
call UG(1000.00,udg_B[62],function Eg7)
endfunction
function Ei7 takes nothing returns nothing
set udg_Nb=CreateTrigger()
call DisableTrigger(udg_Nb)
call TriggerRegisterTimerEventPeriodic(udg_Nb,0.50)
call TriggerAddAction(udg_Nb,function Eh7)
endfunction
function Ej7 takes nothing returns boolean
if(not(GetDyingUnit()==udg_A[94]))then
return false
endif
return true
endfunction
function Ek7 takes nothing returns boolean
return(IsTriggerEnabled(udg_Mb)==true)
endfunction
function Em7 takes nothing returns boolean
return(IsTriggerEnabled(udg_Nb)==true)
endfunction
function En7 takes nothing returns boolean
if(not(udg_li[udg_b[33]]!=null))then
return false
endif
return true
endfunction
function Eo7 takes nothing returns boolean
return(IsTriggerEnabled(udg_Mb)==true)
endfunction
function Ep7 takes nothing returns boolean
return(IsTriggerEnabled(udg_Nb)==true)
endfunction
function Eq7 takes nothing returns nothing
if(Ek7())then
call DisableTrigger(udg_Mb)
else
call DoNothing()
endif
if(Em7())then
call DisableTrigger(udg_Nb)
else
call DoNothing()
endif
call TriggerSleepAction(0.01)
set udg_b[33]=1
loop
exitwhen udg_b[33]>udg_Ei
if(En7())then
call KillUnit(udg_li[udg_b[33]])
set udg_li[udg_b[33]]=null
else
call DoNothing()
endif
set udg_b[33]=udg_b[33]+1
endloop
set udg_A[94]=null
set udg_H[31]=0.00
set udg_Gi[1]=0.00
set udg_Hi=0
set udg_Ei=0
set udg_ci[1]=0.00
set udg_ci[2]=0.00
set udg_Gi[1]=0.00
set udg_Gi[2]=0.00
set udg_Gi[3]=0.00
call RemoveLocation(udg_B[62])
set udg_B[62]=null
call TriggerSleepAction(1.00)
if(Eo7())then
call DisableTrigger(udg_Mb)
else
call DoNothing()
endif
if(Ep7())then
call DisableTrigger(udg_Nb)
else
call DoNothing()
endif
endfunction
function Er7 takes nothing returns nothing
set udg_Ob=CreateTrigger()
call TriggerAddCondition(udg_Ob,Condition(function Ej7))
call TriggerAddAction(udg_Ob,function Eq7)
endfunction
function Es7 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function Et7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679416))then
return false
endif
if(not Es7())then
return false
endif
return true
endfunction
function Eu7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function Ev7 takes nothing returns nothing
set udg_Pb=CreateTrigger()
call TriggerAddCondition(udg_Pb,Condition(function Et7))
call TriggerAddAction(udg_Pb,function Eu7)
endfunction
function Ew7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679416))then
return false
endif
return true
endfunction
function Ex7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Ey7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Ez7 takes nothing returns nothing
set udg_ve=GetTriggerUnit()
set udg_xe=GetSpellTargetUnit()
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_xe))]=true
set udg_ze=PG(GetUnitLoc(udg_ve),0.00,AngleBetweenPoints(GetUnitLoc(udg_ve),GetUnitLoc(udg_xe)))
set udg_Ae=(2000.00+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_ve,false))*(11.00*I2R(GetUnitAbilityLevelSwapped(1093679416,udg_ve)))))
call PauseUnitBJ(true,udg_ve)
call PauseUnitBJ(true,udg_xe)
call SetUnitInvulnerable(udg_ve,true)
call SetUnitInvulnerable(udg_xe,true)
call TriggerSleepAction(0.01)
call AddSpecialEffectLocBJ(udg_ze,"!Shunpo!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ze)
set udg_ze=null
set udg_ze=GetUnitLoc(udg_xe)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_ve),udg_ze,bj_UNIT_FACING)
set udg_id[4]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_id[4])
call IssueTargetOrderBJ(udg_id[4],"thunderbolt",udg_xe)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_id[4])
set udg_id[4]=null
call SetUnitAnimation(udg_ve,"stand ready")
call RemoveLocation(udg_ze)
set udg_ze=null
set udg_ze=PG(GetUnitLoc(udg_xe),-120.00,AngleBetweenPoints(GetUnitLoc(udg_ve),GetUnitLoc(udg_xe)))
call SetUnitPositionLocFacingBJ(udg_ve,udg_ze,AngleBetweenPoints(GetUnitLoc(udg_ve),GetUnitLoc(udg_xe)))
call AddSpecialEffectLocBJ(udg_ze,"!Shunpo!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ze)
set udg_ze=null
set udg_ze=PG(GetUnitLoc(udg_ve),120.00,AngleBetweenPoints(GetUnitLoc(udg_ve),GetUnitLoc(udg_xe)))
call SetUnitPositionLocFacingBJ(udg_xe,udg_ze,AngleBetweenPoints(GetUnitLoc(udg_xe),GetUnitLoc(udg_ve)))
call RemoveLocation(udg_ze)
set udg_ze=null
call AddSpecialEffectTargetUnitBJ("weapon",udg_ve,"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
set udg_ye[1]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand right",udg_ve,"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
set udg_ye[2]=GetLastCreatedEffectBJ()
call CreateTextTagUnitBJ("\"Ryuujinjakka first form...\"",udg_ve,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Ex7)))
set udg_Km[29]=GetUnitLoc(udg_ve)
call PlaySoundAtPointBJ(udg_ir,100,udg_Km[29],0)
call RemoveLocation(udg_Km[29])
set udg_Km[29]=null
call TriggerSleepAction(0.80)
call CreateTextTagUnitBJ("\"NADEGIRI\"",udg_ve,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Ey7)))
call TriggerSleepAction(0.30)
call SetUnitTimeScalePercent(udg_ve,270.00)
set udg_ae=0
call AddSpecialEffectTargetUnitBJ("origin",udg_xe,"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
set udg_ye[3]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("chest",udg_xe,"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
set udg_ye[4]=GetLastCreatedEffectBJ()
call EnableTrigger(udg_Rb)
call TriggerSleepAction(1.20)
call DisableTrigger(udg_Rb)
call SetUnitTimeScalePercent(udg_ve,100.00)
call SetUnitAnimation(udg_ve,"stand ready")
call DestroyEffectBJ(udg_ye[1])
call DestroyEffectBJ(udg_ye[2])
call DestroyEffectBJ(udg_ye[3])
call DestroyEffectBJ(udg_ye[4])
call TriggerSleepAction(0.10)
call SetUnitInvulnerable(udg_xe,false)
call UnitDamageTargetBJ(udg_ve,udg_xe,udg_Ae,ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_xe,"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_xe,"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_ze=GetUnitLoc(udg_xe)
call CreateTextTagLocBJ((I2S(R2I(udg_Ae))+"!"),udg_ze,0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call RemoveLocation(udg_ze)
set udg_ze=null
call TriggerSleepAction(0.01)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_xe))]=false
call PauseUnitBJ(false,udg_xe)
call PauseUnitBJ(false,udg_ve)
call UnitRemoveBuffBJ(1112560453,udg_xe)
call SetUnitInvulnerable(udg_ve,false)
call ResetUnitAnimation(udg_ve)
set udg_ve=null
set udg_xe=null
set udg_Ae=0.00
set udg_ae=0
endfunction
function EA7 takes nothing returns nothing
set udg_Qb=CreateTrigger()
call TriggerAddCondition(udg_Qb,Condition(function Ew7))
call TriggerAddAction(udg_Qb,function Ez7)
endfunction
function Ea7 takes nothing returns boolean
if(not(udg_xe!=null))then
return false
endif
return true
endfunction
function EB7 takes nothing returns boolean
if(not(GetRandomInt(1,5)<2))then
return false
endif
return true
endfunction
function Eb7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_xe)==true))then
return false
endif
if(not(udg_ae<=11))then
return false
endif
return true
endfunction
function EC7 takes nothing returns boolean
if(not Eb7())then
return false
endif
return true
endfunction
function Ec7 takes nothing returns nothing
set udg_ae=(udg_ae+1)
if(EC7())then
if(EB7())then
call SetUnitAnimation(udg_ve,"attack")
else
call SetUnitAnimation(udg_ve,"attack 2")
endif
set udg_ze=GetUnitLoc(udg_xe)
call AddSpecialEffectLocBJ(udg_ze,"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_ze,"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ze)
set udg_ze=null
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function ED7 takes nothing returns nothing
set udg_Rb=CreateTrigger()
call DisableTrigger(udg_Rb)
call TriggerRegisterTimerEventPeriodic(udg_Rb,0.15)
call TriggerAddCondition(udg_Rb,Condition(function Ea7))
call TriggerAddAction(udg_Rb,function Ec7)
endfunction
function EE7 takes nothing returns boolean
if(not(udg_sj==null))then
return false
endif
return true
endfunction
function E37 takes nothing returns nothing
if(EE7())then
call DestroyTrigger(udg_Tb)
call DestroyTrigger(udg_Ub)
call DestroyTrigger(udg_Vb)
call DestroyTrigger(udg_Wb)
call DestroyTrigger(udg_Xb)
call DestroyTrigger(udg_Yb)
call DestroyTrigger(udg_Zb)
call DestroyTrigger(udg_dC)
call DestroyTrigger(udg_eC)
call DestroyTrigger(udg_fC)
call DestroyTrigger(udg_gC)
call DestroyTrigger(udg_hC)
call DestroyTrigger(udg_iC)
call DestroyTrigger(udg_jC)
call DestroyTrigger(udg_kC)
else
call TriggerRegisterUnitEvent(udg_Tb,udg_sj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Wb,udg_sj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Xb,udg_sj,EVENT_UNIT_ATTACKED)
call TriggerRegisterUnitEvent(udg_Yb,udg_sj,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(udg_eC,udg_sj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_fC,udg_sj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_gC,udg_sj,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_hC,udg_sj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_iC,udg_sj,EVENT_UNIT_SPELL_EFFECT)
call DisableTrigger(udg_Xb)
call DisableTrigger(udg_Yb)
endif
endfunction
function EF7 takes nothing returns nothing
set udg_Sb=CreateTrigger()
call TriggerAddAction(udg_Sb,function E37)
endfunction
function EG7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677145))then
return false
endif
return true
endfunction
function E67 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_mi))]==true))then
return false
endif
return true
endfunction
function EH7 takes nothing returns boolean
return(IsTriggerEnabled(udg_Ub)==true)
endfunction
function EI7 takes nothing returns boolean
return(udg_si!=null)
endfunction
function El7 takes nothing returns boolean
return(IsUnitAliveBJ(udg_si)==true)
endfunction
function E17 takes nothing returns boolean
return GetBooleanAnd(EI7(),El7())
endfunction
function EJ7 takes nothing returns nothing
set udg_mi=GetTriggerUnit()
set udg_ni[3]=GetUnitLoc(udg_mi)
set udg_ni[4]=GetSpellTargetLoc()
set udg_oi=AngleBetweenPoints(udg_ni[3],udg_ni[4])
set udg_pi=(600.00+(200.00*I2R(GetUnitAbilityLevelSwapped(1093677145,udg_mi))))
set udg_ni[1]=PG(udg_ni[3],100.00,udg_oi)
set udg_ni[2]=PG(udg_ni[3],(udg_pi+100.00),udg_oi)
set udg_ri=(12.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_mi,true)))
if(E67())then
set udg_qi=45.00
else
set udg_qi=30.00
endif
call CreateNUnitsAtLoc(1,1747988810,GetOwningPlayer(udg_mi),udg_ni[1],udg_oi)
set udg_si=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(7.00,1112820806,udg_si)
call RemoveLocation(udg_ni[3])
set udg_ni[3]=null
call RemoveLocation(udg_ni[4])
set udg_ni[4]=null
set udg_Km[30]=GetUnitLoc(udg_mi)
call PlaySoundAtPointBJ(udg_Xp,100,udg_Km[30],0)
call RemoveLocation(udg_Km[30])
set udg_Km[30]=null
call EnableTrigger(udg_Ub)
call TriggerSleepAction(5.00)
if(EH7())then
call DisableTrigger(udg_Ub)
else
call DoNothing()
endif
if(E17())then
call RemoveUnit(udg_si)
else
call DoNothing()
endif
set udg_mi=null
set udg_si=null
set udg_ui=null
set udg_oi=0.00
set udg_ri=0.00
set udg_pi=0.00
set udg_qi=0.00
call RemoveLocation(udg_ni[1])
set udg_ni[1]=null
call RemoveLocation(udg_ni[2])
set udg_ni[2]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_ki)
endfunction
function EK7 takes nothing returns nothing
set udg_Tb=CreateTrigger()
call TriggerAddCondition(udg_Tb,Condition(function EG7))
call TriggerAddAction(udg_Tb,function EJ7)
endfunction
function EL7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_ki)==false)
endfunction
function EM7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_mi))==true)
endfunction
function EN7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function EO7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function E07 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function EP7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function EQ7 takes nothing returns boolean
return GetBooleanAnd(E07(),EP7())
endfunction
function ER7 takes nothing returns boolean
return GetBooleanAnd(EO7(),EQ7())
endfunction
function ES7 takes nothing returns boolean
return GetBooleanAnd(EN7(),ER7())
endfunction
function E57 takes nothing returns boolean
return GetBooleanAnd(EM7(),ES7())
endfunction
function ET7 takes nothing returns boolean
return GetBooleanAnd(EL7(),E57())
endfunction
function EU7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=300.00)
endfunction
function EV7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>300.00))then
return false
endif
return true
endfunction
function EW7 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_ki)
if(EV7())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-300.00))
else
if(EU7())then
call UnitDamageTargetBJ(udg_mi,GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
endfunction
function EX7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function EY7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function E27 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function EZ7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_mi))==true)
endfunction
function E_7 takes nothing returns boolean
return GetBooleanAnd(E27(),EZ7())
endfunction
function F47 takes nothing returns boolean
return GetBooleanAnd(EY7(),E_7())
endfunction
function F77 takes nothing returns boolean
return GetBooleanAnd(EX7(),F47())
endfunction
function F87 takes nothing returns nothing
set udg_ui=GetEnumUnit()
endfunction
function F97 takes nothing returns boolean
return(udg_si!=null)
endfunction
function Fd7 takes nothing returns boolean
return(IsUnitAliveBJ(udg_si)==true)
endfunction
function Fe7 takes nothing returns boolean
return GetBooleanAnd(F97(),Fd7())
endfunction
function Ff7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_ui,1110454353)==true)
endfunction
function Fg7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_ui,1110454354)==true)
endfunction
function Fh7 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_ti)==true))then
return false
endif
return true
endfunction
function Fi7 takes nothing returns boolean
return(udg_si!=null)
endfunction
function Fj7 takes nothing returns boolean
return(IsUnitAliveBJ(udg_si)==true)
endfunction
function Fk7 takes nothing returns boolean
return GetBooleanAnd(Fi7(),Fj7())
endfunction
function Fm7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_ni[3],udg_ni[2])<(10.00+udg_qi)))then
return false
endif
return true
endfunction
function Fn7 takes nothing returns nothing
set udg_ni[3]=PG(GetUnitLoc(udg_si),udg_qi,udg_oi)
call SetUnitPositionLocFacingBJ(udg_si,udg_ni[3],udg_oi)
set udg_ti=e6(200.00,udg_ni[3],Condition(function ET7))
call ForGroupBJ(udg_ti,function EW7)
call DestroyGroup(udg_ti)
set udg_ti=null
set udg_ti=u6(1,e6(200.00,udg_ni[3],Condition(function F77)))
if(Fh7())then
call DoNothing()
else
call ForGroupBJ(udg_ti,function F87)
call DisableTrigger(GetTriggeringTrigger())
if(Fe7())then
call KillUnit(udg_si)
else
call DoNothing()
endif
set udg_si=null
if(Ff7())then
call UnitRemoveBuffBJ(1110454353,udg_ui)
else
call DoNothing()
endif
if(Fg7())then
call UnitRemoveBuffBJ(1110454354,udg_ui)
else
call DoNothing()
endif
call TriggerExecute(udg_Vb)
endif
call DestroyGroup(udg_ti)
set udg_ti=null
if(Fm7())then
call DisableTrigger(GetTriggeringTrigger())
if(Fk7())then
call KillUnit(udg_si)
else
call DoNothing()
endif
set udg_mi=null
set udg_si=null
set udg_oi=0.00
set udg_ri=0.00
set udg_pi=0.00
set udg_qi=0.00
set udg_ui=null
call RemoveLocation(udg_ni[1])
set udg_ni[1]=null
call RemoveLocation(udg_ni[2])
set udg_ni[2]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_ki)
else
call DoNothing()
endif
call RemoveLocation(udg_ni[3])
set udg_ni[3]=null
endfunction
function Fo7 takes nothing returns nothing
set udg_Ub=CreateTrigger()
call DisableTrigger(udg_Ub)
call TriggerRegisterTimerEventPeriodic(udg_Ub,0.03)
call TriggerAddAction(udg_Ub,function Fn7)
endfunction
function Fp7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_ni[1],udg_ni[6])<1800.00))then
return false
endif
return true
endfunction
function Fq7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_mi))]==true))then
return false
endif
return true
endfunction
function Fr7 takes nothing returns boolean
return(IsUnitDeadBJ(udg_ui)==false)
endfunction
function Fs7 takes nothing returns boolean
return(IsTriggerEnabled(udg_Ub)==true)
endfunction
function Ft7 takes nothing returns boolean
return(udg_si!=null)
endfunction
function Fu7 takes nothing returns boolean
return(IsUnitAliveBJ(udg_si)==true)
endfunction
function Fv7 takes nothing returns boolean
return GetBooleanAnd(Ft7(),Fu7())
endfunction
function Fw7 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_mi))]==false))then
return false
endif
return true
endfunction
function Fx7 takes nothing returns nothing
set udg_ni[5]=GetUnitLoc(udg_mi)
set udg_ni[6]=GetUnitLoc(udg_ui)
set udg_ni[7]=PG(udg_ni[6],140.00,AngleBetweenPoints(udg_ni[6],udg_ni[5]))
if(Fp7())then
set udg_vi=(udg_ri*(DistanceBetweenPoints(udg_ni[1],udg_ni[6])/1800.00))
else
set udg_vi=udg_ri
endif
call UnitDamageTargetBJ(udg_mi,udg_ui,udg_vi,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_mi),udg_ni[6],bj_UNIT_FACING)
set udg_jd[16]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093679417,udg_jd[16])
call SetUnitAbilityLevelSwapped(1093679417,udg_jd[16],1)
call IssueTargetOrderBJ(udg_jd[16],"thunderbolt",udg_ui)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_jd[16])
set udg_jd[16]=null
if(Fq7())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_mi),udg_ni[5],bj_UNIT_FACING)
set udg_jd[16]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678920,udg_jd[16])
call IssueTargetOrderBJ(udg_jd[16],"chainlightning",udg_ui)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jd[16])
set udg_jd[16]=null
else
call DoNothing()
endif
call SetUnitPositionLocFacingLocBJ(udg_mi,udg_ni[7],udg_ni[6])
if(Fr7())then
call IssueTargetOrderBJ(udg_mi,"attack",udg_ui)
else
call DoNothing()
endif
call AddSpecialEffectLocBJ(udg_ni[5],"!Shunpo!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_ni[7],"!Shunpo!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_ui,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(Fs7())then
call DisableTrigger(udg_Ub)
else
call DoNothing()
endif
if(Fv7())then
call KillUnit(udg_si)
else
call DoNothing()
endif
if(Fw7())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_mi),udg_ni[7],0)
else
call DoNothing()
endif
call SelectUnitForPlayerSingle(udg_mi,GetOwningPlayer(udg_mi))
call CreateTextTagLocBJ((I2S(R2I(udg_vi))+"!"),udg_ni[6],0,11.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.60)
set udg_mi=null
set udg_si=null
set udg_oi=0.00
set udg_ri=0.00
set udg_pi=0.00
set udg_qi=0.00
set udg_ui=null
set udg_vi=0.00
call RemoveLocation(udg_ni[1])
set udg_ni[1]=null
call RemoveLocation(udg_ni[2])
set udg_ni[2]=null
call RemoveLocation(udg_ni[5])
set udg_ni[5]=null
call RemoveLocation(udg_ni[6])
set udg_ni[6]=null
call RemoveLocation(udg_ni[7])
set udg_ni[7]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_ki)
endfunction
function Fy7 takes nothing returns nothing
set udg_Vb=CreateTrigger()
call TriggerAddAction(udg_Vb,function Fx7)
endfunction
function Fz7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678935))then
return false
endif
return true
endfunction
function FA7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Be))]==true))then
return false
endif
return true
endfunction
function Fa7 takes nothing returns boolean
if(not(udg_Ce==true))then
return false
endif
return true
endfunction
function FB7 takes nothing returns nothing
set udg_Be=GetTriggerUnit()
set udg_Ce=true
set udg_Fe[1]=GetUnitLoc(udg_Be)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_Be))]=false
call AddSpecialEffectTargetUnitBJ("origin",udg_Be,"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_Be,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(FA7())then
set udg_De=600.00
set udg_Ge=900.00
set udg_Ee=(6.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Be,false)))
call AddSpecialEffectTargetUnitBJ("origin",udg_Be,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
set udg_De=450.00
set udg_Ge=600.00
set udg_Ee=(5.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Be,false)))
endif
call AddSpecialEffectTargetUnitBJ("chest",udg_Be,"Abilities\\Spells\\Undead\\AbsorbMana\\AbsorbManaBirthMissile.mdl")
set udg_He[1]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand right",udg_Be,"Abilities\\Spells\\Undead\\AbsorbMana\\AbsorbManaBirthMissile.mdl")
set udg_He[2]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand left",udg_Be,"Abilities\\Spells\\Undead\\AbsorbMana\\AbsorbManaBirthMissile.mdl")
set udg_He[3]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("foot right",udg_Be,"Abilities\\Spells\\Undead\\AbsorbMana\\AbsorbManaBirthMissile.mdl")
set udg_He[4]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("foot left",udg_Be,"Abilities\\Spells\\Undead\\AbsorbMana\\AbsorbManaBirthMissile.mdl")
set udg_He[5]=GetLastCreatedEffectBJ()
call EnableTrigger(udg_Xb)
call EnableTrigger(udg_Yb)
call TriggerSleepAction(3.00)
if(Fa7())then
call ConditionalTriggerExecute(udg_dC)
else
call DoNothing()
endif
endfunction
function Fb7 takes nothing returns nothing
set udg_Wb=CreateTrigger()
call TriggerAddCondition(udg_Wb,Condition(function Fz7))
call TriggerAddAction(udg_Wb,function FB7)
endfunction
function FC7 takes nothing returns boolean
if(not(udg_Be!=null))then
return false
endif
if(not(GetAttackedUnitBJ()==udg_Be))then
return false
endif
if(not(udg_Ce==true))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetAttacker(),1110454324)==false))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_ANCIENT)==false))then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(GetAttackedUnitBJ()),GetUnitLoc(GetAttacker()))<=udg_De))then
return false
endif
return true
endfunction
function Fc7 takes nothing returns boolean
if(not FC7())then
return false
endif
return true
endfunction
function FD7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Be))]==true))then
return false
endif
return true
endfunction
function FE7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_be,1110454353)==true)
endfunction
function F37 takes nothing returns boolean
return(UnitHasBuffBJ(udg_be,1110454354)==true)
endfunction
function FF7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_be))]==true))then
return false
endif
if(not(GetUnitTypeId(udg_be)!=1211117637))then
return false
endif
if(not(GetUnitTypeId(udg_be)!=1211117890))then
return false
endif
if(not(GetUnitTypeId(udg_be)!=1211117891))then
return false
endif
if(not(GetUnitTypeId(udg_be)!=1211117892))then
return false
endif
if(not(GetUnitTypeId(udg_be)!=1211117893))then
return false
endif
if(not(GetUnitTypeId(udg_be)!=1211117642))then
return false
endif
return true
endfunction
function FG7 takes nothing returns boolean
if(not FF7())then
return false
endif
return true
endfunction
function F67 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_be)<=udg_Ee)
endfunction
function FH7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_be)<=udg_Ee)
endfunction
function FI7 takes nothing returns boolean
return(MG(udg_be,UNIT_TYPE_HERO)==true)
endfunction
function Fl7 takes nothing returns boolean
return(GetOwningPlayer(udg_be)!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function F17 takes nothing returns boolean
return GetBooleanAnd(FI7(),Fl7())
endfunction
function FJ7 takes nothing returns boolean
return GetBooleanAnd(FH7(),F17())
endfunction
function FK7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_be)>udg_Ee))then
return false
endif
return true
endfunction
function FL7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Be))]==true))then
return false
endif
return true
endfunction
function FM7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Be))]==true))then
return false
endif
return true
endfunction
function FN7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_be)==true))then
return false
endif
return true
endfunction
function FO7 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_Be))]==false))then
return false
endif
return true
endfunction
function F07 takes nothing returns nothing
call DisableTrigger(udg_Yb)
set udg_Ce=false
set udg_be=GetAttacker()
set udg_Fe[2]=GetUnitLoc(udg_be)
set udg_ce=AngleBetweenPoints(udg_Fe[1],udg_Fe[2])
call PauseUnitBJ(true,udg_Be)
call PauseUnitBJ(true,udg_be)
call SetUnitInvulnerable(udg_Be,true)
call SetUnitInvulnerable(udg_be,true)
if(FD7())then
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_Be),udg_Fe[1],bj_UNIT_FACING)
set udg_jd[7]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_jd[7],300.00,300.00,300.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_jd[7])
set udg_jd[7]=null
else
call DoNothing()
endif
if(FE7())then
call UnitRemoveBuffBJ(1110454353,udg_be)
else
call DoNothing()
endif
if(F37())then
call UnitRemoveBuffBJ(1110454354,udg_be)
else
call DoNothing()
endif
if(FG7())then
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_be))]=false
else
call DoNothing()
endif
set udg_Fe[3]=PG(GetUnitLoc(udg_be),-75.00,udg_ce)
call SetUnitPositionLocFacingLocBJ(udg_Be,udg_Fe[3],udg_Fe[2])
call SetUnitPathing(udg_Be,false)
call SetUnitPathing(udg_be,false)
call RemoveLocation(udg_Fe[2])
set udg_Fe[2]=null
call RemoveLocation(udg_Fe[3])
set udg_Fe[3]=null
set udg_Fe[99]=PG(GetUnitLoc(udg_be),udg_Ge,udg_ce)
call SetUnitAnimation(udg_Be,"attack")
set udg_Km[31]=GetUnitLoc(udg_Be)
call PlaySoundAtPointBJ(udg_Yp,100,udg_Km[31],0)
call RemoveLocation(udg_Km[31])
set udg_Km[31]=null
call EnableTrigger(udg_Zb)
call TriggerSleepAction(0.06)
call SetUnitInvulnerable(udg_be,false)
call TriggerSleepAction(0.01)
if(FK7())then
call SetUnitLifeBJ(udg_be,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_be)-udg_Ee))
else
if(F67())then
call UnitDamageTargetBJ(udg_Be,udg_be,99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
if(FJ7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_be))]=false
else
call DoNothing()
endif
endif
set udg_Fe[4]=GetUnitLoc(udg_be)
if(FL7())then
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_Be),udg_Fe[4],bj_UNIT_FACING)
set udg_jd[7]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_jd[7],300.00,300.00,300.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_jd[7])
set udg_jd[7]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_be,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call AddSpecialEffectTargetUnitBJ("origin",udg_be,"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endif
call TriggerSleepAction(0.01)
call DisableTrigger(udg_Zb)
call PauseUnitBJ(false,udg_Be)
call PauseUnitBJ(false,udg_be)
call SetUnitInvulnerable(udg_Be,false)
call SetUnitPathing(udg_Be,true)
call SetUnitPathing(udg_be,true)
if(FN7())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Be),udg_Fe[4],bj_UNIT_FACING)
set udg_jd[7]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093679417,udg_jd[7])
if(FM7())then
call SetUnitAbilityLevelSwapped(1093679417,udg_jd[7],2)
else
call SetUnitAbilityLevelSwapped(1093679417,udg_jd[7],1)
endif
call IssueTargetOrderBJ(udg_jd[7],"thunderbolt",udg_be)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_jd[7])
set udg_jd[7]=null
else
call DoNothing()
endif
call RemoveLocation(udg_Fe[4])
set udg_Fe[4]=null
set udg_Fe[4]=GetUnitLoc(udg_Be)
if(FO7())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_Be),udg_Fe[4],0)
else
call DoNothing()
endif
call RemoveLocation(udg_Fe[4])
set udg_Fe[4]=null
call RemoveLocation(udg_Fe[99])
set udg_Fe[99]=null
set udg_be=null
set udg_ce=0.00
call TriggerExecute(udg_dC)
endfunction
function FP7 takes nothing returns nothing
set udg_Xb=CreateTrigger()
call TriggerAddCondition(udg_Xb,Condition(function Fc7))
call TriggerAddAction(udg_Xb,function F07)
endfunction
function FQ7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678935))then
return false
endif
if(not(udg_Be!=null))then
return false
endif
if(not(udg_Ce==true))then
return false
endif
return true
endfunction
function FR7 takes nothing returns boolean
if(not FQ7())then
return false
endif
return true
endfunction
function FS7 takes nothing returns boolean
if(not(udg_Ce==true))then
return false
endif
return true
endfunction
function F57 takes nothing returns nothing
call DisableTrigger(udg_Xb)
if(FS7())then
set udg_Ce=false
set udg_De=0.00
set udg_Ge=0.00
set udg_Ee=0.00
call DestroyEffectBJ(udg_He[1])
call DestroyEffectBJ(udg_He[2])
call DestroyEffectBJ(udg_He[3])
call DestroyEffectBJ(udg_He[4])
call DestroyEffectBJ(udg_He[5])
call RemoveLocation(udg_Fe[1])
set udg_Fe[1]=null
else
call DoNothing()
endif
call DisableTrigger(GetTriggeringTrigger())
endfunction
function FT7 takes nothing returns nothing
set udg_Yb=CreateTrigger()
call TriggerAddCondition(udg_Yb,Condition(function FR7))
call TriggerAddAction(udg_Yb,function F57)
endfunction
function FU7 takes nothing returns boolean
if(not(udg_be!=null))then
return false
endif
return true
endfunction
function FV7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Be))]==true))then
return false
endif
return true
endfunction
function FW7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function FX7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_Fe[2],udg_Fe[99])<70.00))then
return false
endif
return true
endfunction
function FY7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_Fe[2])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_Fe[2])==true))then
return true
endif
return false
endfunction
function F27 takes nothing returns boolean
if(not FY7())then
return false
endif
return true
endfunction
function FZ7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_be)==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_be)==true))then
return true
endif
return false
endfunction
function F_7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_be)==true))then
return false
endif
if(not FZ7())then
return false
endif
return true
endfunction
function G47 takes nothing returns nothing
if(F_7())then
set udg_Fe[2]=PG(GetUnitLoc(udg_be),62.00,udg_ce)
if(F27())then
call SetUnitPositionLoc(udg_be,udg_Fe[2])
call RemoveLocation(udg_Fe[2])
set udg_Fe[2]=null
set udg_Fe[2]=PG(GetUnitLoc(udg_Be),62.00,udg_ce)
call SetUnitPositionLoc(udg_Be,udg_Fe[2])
call RemoveLocation(udg_Fe[2])
set udg_Fe[2]=null
set udg_Fe[2]=GetUnitLoc(udg_be)
if(FV7())then
call AddSpecialEffectLocBJ(udg_Fe[2],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call AddSpecialEffectLocBJ(udg_Fe[2],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endif
call UG(300.00,udg_Fe[2],function FW7)
if(FX7())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call RemoveLocation(udg_Fe[2])
set udg_Fe[2]=null
else
call RemoveLocation(udg_Fe[2])
set udg_Fe[2]=null
call DisableTrigger(GetTriggeringTrigger())
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function G77 takes nothing returns nothing
set udg_Zb=CreateTrigger()
call DisableTrigger(udg_Zb)
call TriggerRegisterTimerEventPeriodic(udg_Zb,0.03)
call TriggerAddCondition(udg_Zb,Condition(function FU7))
call TriggerAddAction(udg_Zb,function G47)
endfunction
function G87 takes nothing returns boolean
if(not(udg_Be!=null))then
return false
endif
return true
endfunction
function G97 takes nothing returns nothing
call PauseUnitBJ(false,udg_Be)
call PauseUnitBJ(false,udg_be)
call SetUnitInvulnerable(udg_Be,false)
call SetUnitPathing(udg_Be,true)
call SetUnitPathing(udg_be,true)
call ResetUnitAnimation(udg_Be)
set udg_Be=null
set udg_Ce=false
set udg_De=0.00
set udg_Ge=0.00
set udg_Ee=0.00
call DestroyEffectBJ(udg_He[1])
call DestroyEffectBJ(udg_He[2])
call DestroyEffectBJ(udg_He[3])
call DestroyEffectBJ(udg_He[4])
call DestroyEffectBJ(udg_He[5])
call DisableTrigger(udg_Yb)
call DisableTrigger(udg_Xb)
call RemoveLocation(udg_Fe[1])
set udg_Fe[1]=null
endfunction
function Gd7 takes nothing returns nothing
set udg_dC=CreateTrigger()
call TriggerAddCondition(udg_dC,Condition(function G87))
call TriggerAddAction(udg_dC,function G97)
endfunction
function Ge7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677636))then
return false
endif
return true
endfunction
function Gf7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[64]))]==true))then
return false
endif
return true
endfunction
function Gg7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[64],1110454354)==true)
endfunction
function Gh7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[64],1110454353)==true)
endfunction
function Gi7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=true)
endfunction
function Gj7 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Gk7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[64]))==true)
endfunction
function Gm7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)!=true)
endfunction
function Gn7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Go7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())!=true)
endfunction
function Gp7 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),GetOwningPlayer(udg_A[64]))==true)
endfunction
function Gq7 takes nothing returns boolean
return GetBooleanAnd(Go7(),Gp7())
endfunction
function Gr7 takes nothing returns boolean
return GetBooleanAnd(Gn7(),Gq7())
endfunction
function Gs7 takes nothing returns boolean
return GetBooleanAnd(Gm7(),Gr7())
endfunction
function Gt7 takes nothing returns boolean
return GetBooleanAnd(Gk7(),Gs7())
endfunction
function Gu7 takes nothing returns boolean
return GetBooleanAnd(Gj7(),Gt7())
endfunction
function Gv7 takes nothing returns boolean
return GetBooleanAnd(Gi7(),Gu7())
endfunction
function Gw7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[64])==true)
endfunction
function Gx7 takes nothing returns boolean
if(not(udg_m7[GetConvertedPlayerId(GetOwningPlayer(udg_A[64]))]==true))then
return false
endif
return true
endfunction
function Gy7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[64]!=udg_x))then
return false
endif
if(not(udg_A[64]!=udg_y))then
return false
endif
return true
endfunction
function Gz7 takes nothing returns boolean
if(not Gy7())then
return false
endif
return true
endfunction
function GA7 takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_A[64],1112757326)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[64],1112560453)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[64],1110454360)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[64],1110454834)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[64],1110454835)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[64],1110454321)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[64],1110454323)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[64],1110454607)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[64],1110454320)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[64],1112500344)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[64],1112896364)==false))then
return false
endif
return true
endfunction
function Ga7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[64]))]==true))then
return false
endif
return true
endfunction
function GB7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[64])==true)
endfunction
function Gb7 takes nothing returns nothing
set udg_a[7]=GetEnumUnit()
set udg_kd[123]=GetUnitLoc(udg_a[7])
set udg_B[29]=PG(udg_kd[123],GetRandomReal(10.00,50.00),GetRandomDirectionDeg())
if(Ga7())then
call UnitDamageTargetBJ(udg_A[64],udg_a[7],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[64],true))*4.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
set udg_kd[1]=GetUnitLoc(udg_A[64])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[64]),udg_kd[1],bj_UNIT_FACING)
set udg_jd[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678920,udg_jd[1])
call IssueTargetOrderBJ(udg_jd[1],"chainlightning",udg_a[7])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jd[1])
call RemoveLocation(udg_kd[1])
set udg_kd[1]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_a[7],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call UnitDamageTargetBJ(udg_A[64],udg_a[7],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[64],true))*3.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endif
call SetUnitPositionLocFacingLocBJ(udg_A[64],udg_B[29],udg_kd[123])
call RemoveLocation(udg_B[29])
set udg_B[29]=null
call RemoveLocation(udg_kd[123])
set udg_kd[123]=null
if(GB7())then
call PauseUnitBJ(false,udg_A[64])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[64],100.00)
call SetUnitAnimation(udg_A[64],"attack")
call AddSpecialEffectTargetUnitBJ("origin",udg_A[64],"!Shunpo!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_jd[1]=null
endfunction
function GC7 takes nothing returns boolean
if(not GA7())then
return false
endif
return true
endfunction
function Gc7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[64]))]==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[64])==true))then
return false
endif
if(not(IsUnitPausedBJ(udg_A[64])==false))then
return false
endif
if(not(IsUnitInGroup(udg_A[64],udg_C4)==false))then
return false
endif
if(not(udg_Ce!=true))then
return false
endif
return true
endfunction
function GD7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[64])==true)
endfunction
function GE7 takes nothing returns boolean
if(not(udg_m7[GetConvertedPlayerId(GetOwningPlayer(udg_A[64]))]==true))then
return false
endif
return true
endfunction
function G37 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[64]!=udg_x))then
return false
endif
if(not(udg_A[64]!=udg_y))then
return false
endif
return true
endfunction
function GF7 takes nothing returns boolean
if(not G37())then
return false
endif
return true
endfunction
function GG7 takes nothing returns boolean
if(not(IsUnitInGroup(udg_A[64],udg_C4)==true))then
return false
endif
return true
endfunction
function G67 takes nothing returns nothing
set udg_A[64]=GetTriggerUnit()
set udg_a[7]=GetSpellTargetUnit()
set udg_C[4]=(3+GetUnitAbilityLevelSwapped(1093677636,udg_A[64]))
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[64]))]=true
call ResetUnitAnimation(udg_A[64])
call SetUnitTimeScalePercent(udg_A[64],100.00)
call AddSpecialEffectTargetUnitBJ("foot",udg_A[64],"BlueRibbonMissile.mdx")
set udg_P[7]=GetLastCreatedEffectBJ()
call SetUnitVertexColorBJ(udg_A[64],100,100,100,50.00)
set udg_Km[32]=GetUnitLoc(udg_A[64])
call PlaySoundAtPointBJ(udg_Zp,100,udg_Km[32],0)
call RemoveLocation(udg_Km[32])
set udg_Km[32]=null
call TriggerSleepAction(0.01)
call SetUnitAnimation(udg_A[64],"attack")
if(Gf7())then
call UnitDamageTargetBJ(udg_A[64],udg_a[7],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[64],true))*4.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
set udg_kd[1]=GetUnitLoc(udg_A[64])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[64]),udg_kd[1],bj_UNIT_FACING)
set udg_jd[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678920,udg_jd[1])
call IssueTargetOrderBJ(udg_jd[1],"chainlightning",udg_a[7])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jd[1])
call RemoveLocation(udg_kd[1])
set udg_kd[1]=null
set udg_jd[1]=null
else
call UnitDamageTargetBJ(udg_A[64],udg_a[7],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[64],true))*3.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endif
set udg_kd[1]=GetUnitLoc(udg_a[7])
call SetUnitPositionLoc(udg_A[64],udg_kd[1])
call RemoveLocation(udg_kd[1])
set udg_kd[1]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_A[64],"!Shunpo!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_b[16]=1
loop
exitwhen udg_b[16]>udg_C[4]
if(Gg7())then
call UnitRemoveBuffBJ(1110454354,udg_A[64])
else
call DoNothing()
endif
if(Gh7())then
call IssueTargetOrderBJ(udg_A[64],"attack",udg_a[7])
else
call DoNothing()
endif
call TriggerSleepAction(0.30)
set udg_B[28]=GetUnitLoc(udg_A[64])
set udg_G[13]=e6(750.00,udg_B[28],Condition(function Gv7))
call RemoveLocation(udg_B[28])
set udg_B[28]=null
if(Gc7())then
if(GC7())then
set udg_G[14]=u6(1,udg_G[13])
call ForGroupBJ(udg_G[14],function Gb7)
call DestroyGroup(udg_G[13])
set udg_G[13]=null
call DestroyGroup(udg_G[14])
set udg_G[14]=null
else
call DoNothing()
endif
else
call DestroyEffectBJ(udg_P[7])
call SelectUnitAddForPlayer(udg_A[64],GetOwningPlayer(udg_A[64]))
if(Gw7())then
call PauseUnitBJ(false,udg_A[64])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[64],100.00)
call SetUnitVertexColorBJ(udg_A[64],100,100,100,0)
call RemoveLocation(udg_B[28])
set udg_B[28]=null
call RemoveLocation(udg_B[29])
set udg_B[29]=null
call ResetUnitAnimation(udg_A[64])
if(Gx7())then
call DoNothing()
else
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[64]))]=false
endif
if(Gz7())then
call PauseUnitBJ(true,udg_A[64])
else
call DoNothing()
endif
set udg_A[64]=null
set udg_a[7]=null
set udg_C[4]=0
endif
set udg_b[16]=udg_b[16]+1
endloop
call DestroyEffectBJ(udg_P[7])
call SelectUnitAddForPlayer(udg_A[64],GetOwningPlayer(udg_A[64]))
if(GD7())then
call PauseUnitBJ(false,udg_A[64])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[64],100.00)
call SetUnitVertexColorBJ(udg_A[64],100,100,100,0)
call RemoveLocation(udg_B[28])
set udg_B[28]=null
call RemoveLocation(udg_B[29])
set udg_B[29]=null
call ResetUnitAnimation(udg_A[64])
if(GE7())then
call DoNothing()
else
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[64]))]=false
endif
if(GF7())then
call PauseUnitBJ(true,udg_A[64])
else
call DoNothing()
endif
if(GG7())then
call SetUnitTimeScalePercent(udg_A[64],0.00)
call PauseUnitBJ(true,udg_A[64])
else
call DoNothing()
endif
set udg_A[64]=null
set udg_a[7]=null
set udg_C[4]=0
endfunction
function GH7 takes nothing returns nothing
set udg_eC=CreateTrigger()
call TriggerAddCondition(udg_eC,Condition(function Ge7))
call TriggerAddAction(udg_eC,function G67)
endfunction
function GI7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677635))then
return false
endif
return true
endfunction
function Gl7 takes nothing returns nothing
set udg_y9[15]=GetEnumUnit()
call RemoveUnit(udg_y9[15])
set udg_y9[15]=null
endfunction
function G17 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function GJ7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function GK7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function GL7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function GM7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function GN7 takes nothing returns boolean
return(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function GO7 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function G07 takes nothing returns boolean
return GetBooleanAnd(GN7(),GO7())
endfunction
function GP7 takes nothing returns boolean
return GetBooleanAnd(GM7(),G07())
endfunction
function GQ7 takes nothing returns boolean
return GetBooleanAnd(GL7(),GP7())
endfunction
function GR7 takes nothing returns boolean
return GetBooleanAnd(GK7(),GQ7())
endfunction
function GS7 takes nothing returns boolean
return GetBooleanAnd(GJ7(),GR7())
endfunction
function G57 takes nothing returns boolean
if(not(GetUnitTypeId(udg_y9[15])==1328558129))then
return false
endif
return true
endfunction
function GT7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[30])))==true))then
return true
endif
return false
endfunction
function GU7 takes nothing returns boolean
if(not GT7())then
return false
endif
return true
endfunction
function GV7 takes nothing returns nothing
if(GU7())then
set udg_y9[15]=GetEnumUnit()
set udg_kd[2]=PG(GetUnitLoc(udg_y9[15]),-100.00,AngleBetweenPoints(GetUnitLoc(udg_y9[15]),udg_B[30]))
call SetUnitPositionLoc(udg_y9[15],udg_kd[2])
call IssueImmediateOrderBJ(udg_y9[15],"stop")
call SetUnitFacingToFaceLocTimed(udg_y9[15],udg_B[30],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_y9[15],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(G57())then
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
else
call DoNothing()
endif
call RemoveLocation(udg_kd[2])
set udg_kd[2]=null
set udg_y9[15]=null
else
call DoNothing()
endif
endfunction
function GW7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[10])==1329803568))then
return false
endif
return true
endfunction
function GX7 takes nothing returns boolean
return(GetUnitTypeId(udg_s9[10])==1329803568)
endfunction
function GY7 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[10]))]==true)
endfunction
function G27 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[10]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,udg_s9[10])==0))then
return false
endif
return true
endfunction
function GZ7 takes nothing returns boolean
if(not G27())then
return false
endif
return true
endfunction
function G_7 takes nothing returns nothing
set udg_s9[10]=GetTriggerUnit()
if(GW7())then
set udg_kd[2]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869898354,GetOwningPlayer(udg_s9[10]),udg_kd[2],bj_UNIT_FACING)
call RemoveLocation(udg_kd[2])
set udg_kd[2]=null
set udg_B[30]=GetUnitLoc(udg_s9[10])
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_s9[10]),udg_B[30],bj_UNIT_FACING)
set udg_jd[2]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_jd[2],300.00,300.00,300.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_jd[2])
call SetUnitTimeScalePercent(udg_jd[2],50.00)
set udg_jd[2]=null
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_s9[10]),udg_B[30],bj_UNIT_FACING)
set udg_jd[2]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_jd[2],300.00,300.00,300.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_jd[2])
set udg_jd[2]=null
call CreateTextTagUnitBJ("Shunkou",udg_s9[10],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function G17)))
call PlaySoundAtPointBJ(udg_ps,100,udg_B[30],0)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_s9[10]),udg_B[30],bj_UNIT_FACING)
set udg_jd[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677378,udg_jd[2])
call IssueImmediateOrderBJ(udg_jd[2],"thunderclap")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_jd[2])
set udg_jd[2]=null
set udg_G[15]=e6(460.00,udg_B[30],Condition(function GS7))
call ForGroupBJ(udg_G[15],function GV7)
call RemoveLocation(udg_B[30])
set udg_B[30]=null
call DestroyGroup(udg_G[15])
set udg_G[15]=null
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_s9[10],bj_MODIFYMETHOD_ADD,25)
else
set udg_G[15]=k6(GetOwningPlayer(udg_s9[10]),1869898354)
call ForGroupBJ(udg_G[15],function Gl7)
call DestroyGroup(udg_G[15])
set udg_G[15]=null
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_s9[10],bj_MODIFYMETHOD_SUB,25)
endif
if(GX7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[10]))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[10]))]=false
endif
call TriggerSleepAction(0.50)
if(GZ7())then
if(GY7())then
call UnitAddAbilityBJ(1093677913,udg_s9[10])
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_s9[10]=null
endfunction
function H47 takes nothing returns nothing
set udg_fC=CreateTrigger()
call TriggerAddCondition(udg_fC,Condition(function GI7))
call TriggerAddAction(udg_fC,function G_7)
endfunction
function H77 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1328558128))then
return false
endif
return true
endfunction
function H87 takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_AGI,GetDyingUnit(),bj_MODIFYMETHOD_SUB,25)
endfunction
function H97 takes nothing returns nothing
set udg_gC=CreateTrigger()
call TriggerAddCondition(udg_gC,Condition(function H77))
call TriggerAddAction(udg_gC,function H87)
endfunction
function Hd7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677379))then
return false
endif
return true
endfunction
function He7 takes nothing returns boolean
if((udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false))then
return true
endif
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return true
endif
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function Hf7 takes nothing returns boolean
if(not He7())then
return false
endif
return true
endfunction
function Hg7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==false))then
return false
endif
return true
endfunction
function Hh7 takes nothing returns nothing
if(Hg7())then
call DoNothing()
else
if(Hf7())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
else
call DoNothing()
endif
endif
endfunction
function Hi7 takes nothing returns nothing
set udg_hC=CreateTrigger()
call TriggerAddCondition(udg_hC,Condition(function Hd7))
call TriggerAddAction(udg_hC,function Hh7)
endfunction
function Hj7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677379))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==false))then
return false
endif
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
return true
endfunction
function Hk7 takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_a[8],1110454849)==true))then
return false
endif
return true
endfunction
function Hm7 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_a[8],1227894839)==true))then
return false
endif
return true
endfunction
function Hn7 takes nothing returns boolean
return(udg_a[8]!=null)
endfunction
function Ho7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_a[8])==true))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[8]))]==true))then
return false
endif
if(not(udg_a[8]!=null))then
return false
endif
if(not(udg_Je==true))then
return false
endif
return true
endfunction
function Hp7 takes nothing returns boolean
return(udg_a[8]!=null)
endfunction
function Hq7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[8]))]==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_a[8])==true))then
return false
endif
if(not(udg_a[8]!=null))then
return false
endif
if(not(udg_Je==true))then
return false
endif
return true
endfunction
function Hr7 takes nothing returns boolean
if(not(udg_a[8]!=null))then
return false
endif
if(not(IsUnitAliveBJ(udg_a[8])==true))then
return false
endif
return true
endfunction
function Hs7 takes nothing returns nothing
set udg_A[65]=GetTriggerUnit()
set udg_a[8]=GetSpellTargetUnit()
set udg_H[5]=GetRandomDirectionDeg()
set udg_Q4[1]=1
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[8]))]=true
set udg_m7[GetConvertedPlayerId(GetOwningPlayer(udg_A[65]))]=true
set udg_Je=true
call PauseUnitBJ(true,udg_A[65])
call PauseUnitBJ(true,udg_a[8])
call SetUnitPathing(udg_A[65],false)
call SetUnitInvulnerable(udg_A[65],true)
if(Hk7())then
call UnitRemoveBuffBJ(1110454849,udg_a[8])
else
call DoNothing()
endif
set udg_kd[3]=GetUnitLoc(udg_A[65])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[65]),udg_kd[3],bj_UNIT_FACING)
set udg_jd[3]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678920,udg_jd[3])
call IssueTargetOrderBJ(udg_jd[3],"chainlightning",udg_a[8])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jd[3])
set udg_jd[3]=null
call RemoveLocation(udg_kd[3])
set udg_kd[3]=null
call SetUnitInvulnerable(udg_a[8],false)
set udg_kd[3]=GetUnitLoc(udg_a[8])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[65]),udg_kd[3],bj_UNIT_FACING)
set udg_jd[3]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_jd[3])
call IssueTargetOrderBJ(udg_jd[3],"thunderbolt",udg_a[8])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jd[3])
set udg_jd[3]=null
call CreateTextTagLocBJ("1 hit",udg_kd[3],0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.60)
call RemoveLocation(udg_kd[3])
set udg_kd[3]=null
if(Hm7())then
set udg_kd[3]=GetUnitLoc(udg_a[8])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[65]),udg_kd[3],bj_UNIT_FACING)
set udg_jd[3]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_jd[3])
call IssueTargetOrderBJ(udg_jd[3],"thunderbolt",udg_a[8])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jd[3])
set udg_jd[3]=null
call RemoveLocation(udg_kd[3])
set udg_kd[3]=null
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[65],200.00)
set udg_kd[3]=PG(GetUnitLoc(udg_a[8]),GetRandomReal(1.00,50.00),udg_H[5])
call SetUnitPositionLoc(udg_A[65],udg_kd[3])
call PlaySoundAtPointBJ(udg_qs,100,udg_kd[3],0)
call RemoveLocation(udg_kd[3])
set udg_kd[3]=null
call UnitDamageTargetBJ(udg_A[65],udg_a[8],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[65],true))*1.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call SetUnitAnimation(udg_A[65],"attack 3")
call TriggerSleepAction(0.03)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_H[5]=(udg_H[5]+24.00)
set udg_Q4[1]=(udg_Q4[1]+1)
call TriggerSleepAction(0.01)
call SelectUnitRemove(udg_A[65])
if(Ho7())then
set udg_kd[3]=GetUnitLoc(udg_a[8])
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_A[65]),udg_kd[3],bj_UNIT_FACING)
set udg_jd[3]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_jd[3],300.00,300.00,300.00)
call SetUnitTimeScalePercent(udg_jd[3],200.00)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_jd[3])
set udg_jd[3]=null
call AddSpecialEffectLocBJ(udg_kd[3],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_a[8],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_kd[4]=PG(GetUnitLoc(udg_a[8]),80.00,udg_H[5])
call SetUnitPositionLocFacingLocBJ(udg_A[65],udg_kd[4],udg_kd[3])
call UnitDamageTargetBJ(udg_A[65],udg_a[8],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[65],true))*1.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call SetUnitAnimation(udg_A[65],"attack 3")
call SetUnitAnimation(udg_a[8],"stand hit")
call CreateTextTagLocBJ((I2S(udg_Q4[1])+" hits"),udg_kd[3],0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.60)
call RemoveLocation(udg_kd[3])
set udg_kd[3]=null
call RemoveLocation(udg_kd[4])
set udg_kd[4]=null
else
if(Hn7())then
call ConditionalTriggerExecute(udg_kC)
else
call DoNothing()
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Hq7())then
set udg_Q4[1]=(udg_Q4[1]+1)
call PauseUnitBJ(true,udg_A[65])
call SetUnitTimeScalePercent(udg_A[65],100.00)
call SetUnitFacingToFaceUnitTimed(udg_A[65],udg_a[8],0)
call SetUnitAnimation(udg_A[65],"spell slam")
call SetUnitPathing(udg_a[8],false)
set udg_kd[3]=GetUnitLoc(udg_a[8])
call CreateTextTagLocBJ((I2S(udg_Q4[1])+" hits"),udg_kd[3],0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call RemoveLocation(udg_kd[3])
set udg_kd[3]=null
call EnableTrigger(udg_jC)
else
if(Hp7())then
call ConditionalTriggerExecute(udg_kC)
else
call DoNothing()
endif
endif
call TriggerSleepAction(1.50)
call DisableTrigger(udg_jC)
call TriggerSleepAction(0.01)
if(Hr7())then
call PauseUnitBJ(false,udg_A[65])
call PauseUnitBJ(false,udg_a[8])
call SetUnitInvulnerable(udg_A[65],false)
call SetUnitInvulnerable(udg_a[8],false)
call ConditionalTriggerExecute(udg_kC)
else
call DoNothing()
endif
endfunction
function Ht7 takes nothing returns nothing
set udg_iC=CreateTrigger()
call TriggerAddCondition(udg_iC,Condition(function Hj7))
call TriggerAddAction(udg_iC,function Hs7)
endfunction
function Hu7 takes nothing returns boolean
if(not(udg_a[8]!=null))then
return false
endif
return true
endfunction
function Hv7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Hw7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_a[8])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_a[8])==true))then
return true
endif
return false
endfunction
function Hx7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_a[8])==true))then
return false
endif
if(not Hw7())then
return false
endif
return true
endfunction
function Hy7 takes nothing returns nothing
if(Hx7())then
set udg_kd[5]=PG(GetUnitLoc(udg_a[8]),30.00,AngleBetweenPoints(GetUnitLoc(udg_A[65]),GetUnitLoc(udg_a[8])))
call SetUnitPositionLoc(udg_a[8],udg_kd[5])
call RemoveLocation(udg_kd[5])
set udg_kd[5]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_a[8],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_kd[5]=GetUnitLoc(udg_a[8])
call UG(300.00,udg_kd[5],function Hv7)
call RemoveLocation(udg_kd[5])
set udg_kd[5]=null
else
call DisableTrigger(GetTriggeringTrigger())
if(Hu7())then
call PauseUnitBJ(false,udg_A[65])
call PauseUnitBJ(false,udg_a[8])
call SetUnitInvulnerable(udg_A[65],false)
call SetUnitInvulnerable(udg_a[8],false)
call ConditionalTriggerExecute(udg_kC)
else
call DoNothing()
endif
endif
endfunction
function Hz7 takes nothing returns nothing
set udg_jC=CreateTrigger()
call DisableTrigger(udg_jC)
call TriggerRegisterTimerEventPeriodic(udg_jC,0.03)
call TriggerAddAction(udg_jC,function Hy7)
endfunction
function HA7 takes nothing returns boolean
if(not(udg_A[65]!=null))then
return false
endif
return true
endfunction
function Ha7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function HB7 takes nothing returns boolean
if(not(udg_A[65]!=null))then
return false
endif
return true
endfunction
function Hb7 takes nothing returns nothing
call PauseUnitBJ(false,udg_A[65])
call PauseUnitBJ(false,udg_a[8])
call SetUnitInvulnerable(udg_A[65],false)
call SetUnitInvulnerable(udg_a[8],false)
call UnitDamageTargetBJ(udg_A[65],udg_a[8],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[65],true))*(5.00*I2R(GetUnitAbilityLevelSwapped(1093677379,udg_A[65])))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
set udg_kd[6]=GetUnitLoc(udg_a[8])
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_A[65]),udg_kd[6],bj_UNIT_FACING)
set udg_jd[6]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_jd[6])
call SetUnitTimeScalePercent(udg_jd[6],50.00)
set udg_jd[6]=null
call UG(600.00,udg_kd[6],function Ha7)
call RemoveLocation(udg_kd[6])
set udg_kd[6]=null
call SetUnitPathing(udg_A[65],true)
call SetUnitPathing(udg_a[8],true)
call SetUnitTimeScalePercent(udg_A[65],100)
call ResetUnitAnimation(udg_A[65])
set udg_m7[GetConvertedPlayerId(GetOwningPlayer(udg_A[65]))]=false
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[8]))]=false
set udg_Je=false
call PauseUnitBJ(false,udg_A[65])
call PauseUnitBJ(false,udg_a[8])
call SetUnitInvulnerable(udg_A[65],false)
call SetUnitInvulnerable(udg_a[8],false)
if(HB7())then
call SelectUnitForPlayerSingle(udg_A[65],GetOwningPlayer(udg_A[65]))
call CreateTextTagUnitBJ((I2S((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[65],true)*(5*GetUnitAbilityLevelSwapped(1093677379,udg_A[65]))))+"!"),udg_a[8],0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.75)
else
call DoNothing()
endif
set udg_A[65]=null
set udg_a[8]=null
set udg_H[5]=0.00
set udg_Q4[1]=0
endfunction
function HC7 takes nothing returns nothing
set udg_kC=CreateTrigger()
call TriggerAddCondition(udg_kC,Condition(function HA7))
call TriggerAddAction(udg_kC,function Hb7)
endfunction
function Hc7 takes nothing returns boolean
if(not(udg_tj==null))then
return false
endif
return true
endfunction
function HD7 takes nothing returns nothing
if(Hc7())then
call DestroyTrigger(udg_nC)
call DestroyTrigger(udg_oC)
call DestroyTrigger(udg_pC)
call DestroyTrigger(udg_qC)
call DestroyTrigger(udg_rC)
call DestroyTrigger(udg_sC)
call DestroyTrigger(udg_tC)
call DestroyTrigger(udg_wF)
else
call TriggerRegisterUnitEvent(udg_nC,udg_tj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_oC,udg_tj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_pC,udg_tj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_sC,udg_tj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_tC,udg_tj,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function HE7 takes nothing returns nothing
set udg_mC=CreateTrigger()
call TriggerAddAction(udg_mC,function HD7)
endfunction
function H37 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679190))then
return false
endif
return true
endfunction
function HF7 takes nothing returns nothing
set udg_y9[16]=GetEnumUnit()
call RemoveUnit(udg_y9[16])
set udg_y9[16]=null
endfunction
function HG7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function H67 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function HH7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function HI7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Hl7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function H17 takes nothing returns boolean
return(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function HJ7 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function HK7 takes nothing returns boolean
return GetBooleanAnd(H17(),HJ7())
endfunction
function HL7 takes nothing returns boolean
return GetBooleanAnd(Hl7(),HK7())
endfunction
function HM7 takes nothing returns boolean
return GetBooleanAnd(HI7(),HL7())
endfunction
function HN7 takes nothing returns boolean
return GetBooleanAnd(HH7(),HM7())
endfunction
function HO7 takes nothing returns boolean
return GetBooleanAnd(H67(),HN7())
endfunction
function H07 takes nothing returns boolean
if(not(GetUnitTypeId(udg_y9[16])==1328558129))then
return false
endif
return true
endfunction
function HP7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[805])))==true))then
return true
endif
return false
endfunction
function HQ7 takes nothing returns boolean
if(not HP7())then
return false
endif
return true
endfunction
function HR7 takes nothing returns nothing
if(HQ7())then
set udg_y9[16]=GetEnumUnit()
set udg_nd[1]=PG(GetUnitLoc(udg_y9[16]),-100.00,AngleBetweenPoints(GetUnitLoc(udg_y9[16]),udg_B[805]))
call SetUnitPositionLoc(udg_y9[16],udg_nd[1])
call IssueImmediateOrderBJ(udg_y9[16],"stop")
call SetUnitFacingToFaceLocTimed(udg_y9[16],udg_B[805],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_y9[16],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(H07())then
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
else
call DoNothing()
endif
call RemoveLocation(udg_nd[1])
set udg_nd[1]=null
set udg_y9[16]=null
else
call DoNothing()
endif
endfunction
function HS7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[11])==1328558130))then
return false
endif
return true
endfunction
function H57 takes nothing returns boolean
return(GetUnitTypeId(udg_s9[11])==1328558130)
endfunction
function HT7 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[11]))]==true)
endfunction
function HU7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[11]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,udg_s9[11])==0))then
return false
endif
return true
endfunction
function HV7 takes nothing returns boolean
if(not HU7())then
return false
endif
return true
endfunction
function HW7 takes nothing returns nothing
set udg_s9[11]=GetTriggerUnit()
if(HS7())then
set udg_nd[1]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869898354,GetOwningPlayer(udg_s9[11]),udg_nd[1],bj_UNIT_FACING)
call RemoveLocation(udg_nd[1])
set udg_nd[1]=null
set udg_B[805]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_s9[11]),udg_B[805],bj_UNIT_FACING)
set udg_md[1]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_md[1],300.00,300.00,300.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_md[1])
call SetUnitTimeScalePercent(udg_md[1],50.00)
set udg_md[1]=null
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_s9[11]),udg_B[805],bj_UNIT_FACING)
set udg_md[1]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_md[1],300.00,300.00,300.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_md[1])
set udg_md[1]=null
call CreateTextTagUnitBJ("Shunkou",udg_s9[11],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function HG7)))
set udg_Km[33]=GetUnitLoc(udg_s9[11])
call PlaySoundAtPointBJ(udg_Lr,100,udg_Km[33],0)
call RemoveLocation(udg_Km[33])
set udg_Km[33]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_s9[11]),udg_B[805],bj_UNIT_FACING)
set udg_md[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677378,udg_md[1])
call IssueImmediateOrderBJ(udg_md[1],"thunderclap")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_md[1])
set udg_md[1]=null
set udg_G[802]=e6(460.00,udg_B[805],Condition(function HO7))
call ForGroupBJ(udg_G[802],function HR7)
call RemoveLocation(udg_B[805])
set udg_B[805]=null
call DestroyGroup(udg_G[802])
set udg_G[802]=null
else
set udg_G[802]=k6(GetOwningPlayer(udg_s9[11]),1869898354)
call ForGroupBJ(udg_G[802],function HF7)
call DestroyGroup(udg_G[802])
set udg_G[802]=null
endif
if(H57())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[11]))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[11]))]=false
endif
call TriggerSleepAction(0.50)
if(HV7())then
if(HT7())then
call UnitAddAbilityBJ(1093677913,udg_s9[11])
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_s9[11]=null
endfunction
function HX7 takes nothing returns nothing
set udg_nC=CreateTrigger()
call TriggerAddCondition(udg_nC,Condition(function H37))
call TriggerAddAction(udg_nC,function HW7)
endfunction
function HY7 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function H27 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679413))then
return false
endif
if(not HY7())then
return false
endif
return true
endfunction
function HZ7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function H_7 takes nothing returns nothing
set udg_oC=CreateTrigger()
call TriggerAddCondition(udg_oC,Condition(function H27))
call TriggerAddAction(udg_oC,function HZ7)
endfunction
function I47 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679413))then
return false
endif
return true
endfunction
function I77 takes nothing returns boolean
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_a[801],true)<GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[802],true)))then
return false
endif
return true
endfunction
function I87 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801]))==true))then
return true
endif
return false
endfunction
function I97 takes nothing returns boolean
if(not I87())then
return false
endif
return true
endfunction
function Id7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801]))==true))then
return true
endif
return false
endfunction
function Ie7 takes nothing returns boolean
if(not Id7())then
return false
endif
return true
endfunction
function If7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[802]))]==true))then
return false
endif
return true
endfunction
function Ig7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_a[801],1110454354)==true)
endfunction
function Ih7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[801])<=udg_q4[802])
endfunction
function Ii7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[801])<=udg_q4[802])
endfunction
function Ij7 takes nothing returns boolean
return(MG(udg_a[801],UNIT_TYPE_HERO)==true)
endfunction
function Ik7 takes nothing returns boolean
return(GetOwningPlayer(udg_a[801])!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function Im7 takes nothing returns boolean
return GetBooleanAnd(Ij7(),Ik7())
endfunction
function In7 takes nothing returns boolean
return GetBooleanAnd(Ii7(),Im7())
endfunction
function Io7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[801])>udg_q4[802]))then
return false
endif
return true
endfunction
function Ip7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[802])==false))then
return false
endif
return true
endfunction
function Iq7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801]))==true))then
return true
endif
return false
endfunction
function Ir7 takes nothing returns boolean
if(not Iq7())then
return false
endif
return true
endfunction
function Is7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[801])<=udg_q4[802])
endfunction
function It7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[801])<=udg_q4[802])
endfunction
function Iu7 takes nothing returns boolean
return(MG(udg_a[801],UNIT_TYPE_HERO)==true)
endfunction
function Iv7 takes nothing returns boolean
return(GetOwningPlayer(udg_a[801])!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function Iw7 takes nothing returns boolean
return GetBooleanAnd(Iu7(),Iv7())
endfunction
function Ix7 takes nothing returns boolean
return GetBooleanAnd(It7(),Iw7())
endfunction
function Iy7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[801])>udg_q4[802]))then
return false
endif
return true
endfunction
function Iz7 takes nothing returns boolean
if(not(udg_A[802]!=null))then
return false
endif
if(not(udg_a[801]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_A[802])==false))then
return false
endif
if(not(IsUnitDeadBJ(udg_a[801])==false))then
return false
endif
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[802]))]==true))then
return false
endif
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function IA7 takes nothing returns boolean
if(not Iz7())then
return false
endif
return true
endfunction
function Ia7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_a[801])==true)
endfunction
function IB7 takes nothing returns boolean
return(IsTriggerEnabled(udg_qC)==true)
endfunction
function Ib7 takes nothing returns boolean
return(IsTriggerEnabled(udg_rC)==true)
endfunction
function IC7 takes nothing returns nothing
set udg_A[802]=GetTriggerUnit()
set udg_a[801]=GetSpellTargetUnit()
set udg_c[801]=AngleBetweenPoints(GetUnitLoc(udg_A[802]),GetUnitLoc(udg_a[801]))
set udg_mg=(0.00+((1.00+(2.00*I2R(GetUnitAbilityLevelSwapped(1093679413,udg_A[802]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[802],true))))
if(I77())then
set udg_kg=((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_a[801],true))/I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[802],true)))*udg_mg)
else
set udg_kg=udg_mg
endif
set udg_q4[802]=(400.00+(udg_mg-udg_kg))
if(If7())then
if(Ie7())then
set udg_B[806]=PG(GetUnitLoc(udg_a[801]),400.00,udg_c[801])
else
set udg_B[806]=PG(GetUnitLoc(udg_a[801]),200.00,udg_c[801])
endif
else
if(I97())then
set udg_B[806]=PG(GetUnitLoc(udg_a[801]),175.00,udg_c[801])
else
set udg_B[806]=PG(GetUnitLoc(udg_a[801]),-100.00,udg_c[801])
endif
endif
call PauseUnitBJ(true,udg_A[802])
call PauseUnitBJ(true,udg_a[801])
call SetUnitInvulnerable(udg_a[801],true)
call SetUnitPathing(udg_A[802],false)
call AddSpecialEffectTargetUnitBJ("hand right",udg_A[802],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
set udg_P[803]=GetLastCreatedEffectBJ()
call SetUnitAnimation(udg_A[802],"attack slam")
if(Ig7())then
call UnitRemoveBuffBJ(1110454354,udg_a[801])
else
call DoNothing()
endif
set udg_Km[34]=GetUnitLoc(udg_A[802])
call PlaySoundAtPointBJ(udg_op,100,udg_Km[34],0)
call RemoveLocation(udg_Km[34])
set udg_Km[34]=null
call TriggerSleepAction(0.01)
call EnableTrigger(udg_qC)
call SetUnitInvulnerable(udg_a[801],false)
call TriggerSleepAction(0.01)
if(Ip7())then
if(Io7())then
call SetUnitLifeBJ(udg_a[801],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[801])-udg_q4[802]))
else
if(Ih7())then
call UnitDamageTargetBJ(udg_A[802],udg_a[801],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
if(In7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_a[801]))]=false
else
call DoNothing()
endif
endif
call AddSpecialEffectTargetUnitBJ("origin",udg_a[801],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(IA7())then
call DisableTrigger(udg_qC)
call RemoveLocation(udg_B[806])
set udg_B[806]=null
set udg_q4[802]=(udg_q4[802]*0.75)
if(Ir7())then
set udg_B[806]=PG(GetUnitLoc(udg_a[801]),-175.00,udg_c[801])
else
set udg_B[806]=PG(GetUnitLoc(udg_a[801]),100.00,udg_c[801])
endif
call SetUnitInvulnerable(udg_a[801],true)
call SetUnitFacingToFaceLocTimed(udg_A[802],udg_B[806],0)
call TriggerSleepAction(0.01)
call SetUnitAnimationWithRarity(udg_A[802],"attack",RARITY_FREQUENT)
call EnableTrigger(udg_rC)
call SetUnitInvulnerable(udg_a[801],false)
call TriggerSleepAction(0.01)
call PauseUnitBJ(false,udg_a[801])
if(Iy7())then
call SetUnitLifeBJ(udg_a[801],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[801])-udg_q4[802]))
else
if(Is7())then
call UnitDamageTargetBJ(udg_A[802],udg_a[801],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
if(Ix7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_a[801]))]=false
else
call DoNothing()
endif
endif
call AddSpecialEffectTargetUnitBJ("origin",udg_a[801],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call DisableTrigger(udg_rC)
else
call TriggerSleepAction(0.01)
call DisableTrigger(udg_qC)
endif
call TriggerSleepAction(0.01)
call PauseUnitBJ(false,udg_A[802])
if(Ia7())then
call PauseUnitBJ(false,udg_a[801])
else
call DoNothing()
endif
call SelectUnitForPlayerSingle(udg_A[802],GetOwningPlayer(udg_A[802]))
call SetUnitPathing(udg_A[802],true)
call ResetUnitAnimation(udg_A[802])
call DestroyEffectBJ(udg_P[803])
set udg_A[802]=null
set udg_a[801]=null
set udg_c[801]=0.00
set udg_q4[802]=0.00
set udg_mg=0.00
set udg_kg=0.00
call RemoveLocation(udg_B[806])
set udg_B[806]=null
if(IB7())then
call DisableTrigger(udg_qC)
else
call DoNothing()
endif
if(Ib7())then
call DisableTrigger(udg_rC)
else
call DoNothing()
endif
endfunction
function Ic7 takes nothing returns nothing
set udg_pC=CreateTrigger()
call TriggerAddCondition(udg_pC,Condition(function I47))
call TriggerAddAction(udg_pC,function IC7)
endfunction
function ID7 takes nothing returns boolean
if(not(udg_A[802]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_A[802])==false))then
return false
endif
return true
endfunction
function IE7 takes nothing returns boolean
if(not ID7())then
return false
endif
return true
endfunction
function I37 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function IF7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_B[806],udg_nd[2])<70.00))then
return false
endif
return true
endfunction
function IG7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_nd[2])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_nd[2])==true))then
return true
endif
return false
endfunction
function I67 takes nothing returns boolean
if(not IG7())then
return false
endif
return true
endfunction
function IH7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_A[802])==true))then
return true
endif
return false
endfunction
function II7 takes nothing returns boolean
if(not IH7())then
return false
endif
return true
endfunction
function Il7 takes nothing returns nothing
if(II7())then
set udg_nd[2]=PG(GetUnitLoc(udg_A[802]),62.00,udg_c[801])
if(I67())then
call SetUnitPositionLocFacingLocBJ(udg_A[802],udg_nd[2],udg_B[806])
call RemoveLocation(udg_nd[2])
set udg_nd[2]=null
set udg_nd[2]=GetUnitLoc(udg_A[802])
call AddSpecialEffectLocBJ(udg_nd[2],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(200.00,udg_nd[2],function I37)
if(IF7())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call RemoveLocation(udg_nd[2])
set udg_nd[2]=null
else
call RemoveLocation(udg_nd[2])
set udg_nd[2]=null
call DisableTrigger(GetTriggeringTrigger())
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function I17 takes nothing returns nothing
set udg_qC=CreateTrigger()
call DisableTrigger(udg_qC)
call TriggerRegisterTimerEventPeriodic(udg_qC,0.02)
call TriggerAddCondition(udg_qC,Condition(function IE7))
call TriggerAddAction(udg_qC,function Il7)
endfunction
function IJ7 takes nothing returns boolean
if(not(udg_A[802]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_A[802])==false))then
return false
endif
return true
endfunction
function IK7 takes nothing returns boolean
if(not IJ7())then
return false
endif
return true
endfunction
function IL7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function IM7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_B[806],udg_nd[3])<70.00))then
return false
endif
return true
endfunction
function IN7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_nd[3])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_nd[3])==true))then
return true
endif
return false
endfunction
function IO7 takes nothing returns boolean
if(not IN7())then
return false
endif
return true
endfunction
function I07 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_A[802])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_A[802])==true))then
return true
endif
return false
endfunction
function IP7 takes nothing returns boolean
if(not I07())then
return false
endif
return true
endfunction
function IQ7 takes nothing returns nothing
if(IP7())then
set udg_nd[3]=PG(GetUnitLoc(udg_A[802]),-62.00,udg_c[801])
if(IO7())then
call SetUnitPositionLocFacingBJ(udg_A[802],udg_nd[3],(udg_c[801]+180.00))
call RemoveLocation(udg_nd[3])
set udg_nd[3]=null
set udg_nd[3]=GetUnitLoc(udg_A[802])
call AddSpecialEffectLocBJ(udg_nd[3],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(200.00,udg_nd[3],function IL7)
if(IM7())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call RemoveLocation(udg_nd[3])
set udg_nd[3]=null
else
call RemoveLocation(udg_nd[3])
set udg_nd[3]=null
call DisableTrigger(GetTriggeringTrigger())
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function IR7 takes nothing returns nothing
set udg_rC=CreateTrigger()
call DisableTrigger(udg_rC)
call TriggerRegisterTimerEventPeriodic(udg_rC,0.02)
call TriggerAddCondition(udg_rC,Condition(function IK7))
call TriggerAddAction(udg_rC,function IQ7)
endfunction
function IS7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679414))then
return false
endif
return true
endfunction
function I57 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function IT7 takes nothing returns nothing
call CreateTextTagUnitBJ("\"sting enemy to death...\"",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function I57)))
endfunction
function IU7 takes nothing returns nothing
set udg_sC=CreateTrigger()
call TriggerAddCondition(udg_sC,Condition(function IS7))
call TriggerAddAction(udg_sC,function IT7)
endfunction
function IV7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679414))then
return false
endif
return true
endfunction
function IW7 takes nothing returns boolean
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_d9,true)<GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Y8,true)))then
return false
endif
return true
endfunction
function IX7 takes nothing returns boolean
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_d9,true)<GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Y8,true)))then
return false
endif
return true
endfunction
function IY7 takes nothing returns boolean
if(not(IsUnitPausedBJ(udg_d9)==false))then
return false
endif
if(not(IsUnitInGroup(udg_d9,udg_C4)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1112757326)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1112560453)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1110454360)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1110454834)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1110454835)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1110454321)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1110454323)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1110454607)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1110454320)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1112500344)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1112896364)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_d9,1110454614)==false))then
return false
endif
return true
endfunction
function I27 takes nothing returns boolean
if(not IY7())then
return false
endif
return true
endfunction
function IZ7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function I_7 takes nothing returns boolean
if((GetHeroLevel(udg_d9)<GetHeroLevel(udg_Y8)))then
return true
endif
if((GetUnitStateSwap(UNIT_STATE_LIFE,udg_d9)<=(0.25*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_d9))))then
return true
endif
return false
endfunction
function l47 takes nothing returns boolean
if(not I_7())then
return false
endif
return true
endfunction
function l77 takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_d9,1110454600)==true))then
return false
endif
return true
endfunction
function l87 takes nothing returns boolean
if(not(udg_f9==true))then
return false
endif
return true
endfunction
function l97 takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_d9,1110454600)==true))then
return false
endif
return true
endfunction
function ld7 takes nothing returns boolean
if(not(GetRandomReal(1.00,100.00)<=udg_e9))then
return false
endif
return true
endfunction
function le7 takes nothing returns nothing
set udg_Y8=GetTriggerUnit()
set udg_d9=GetSpellTargetUnit()
set udg_L9=(95.00-(5.00*I2R(GetUnitAbilityLevelSwapped(1093679414,udg_Y8))))
if(I27())then
if(IX7())then
set udg_e9=((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_d9,true))/I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Y8,true)))*udg_L9)
else
set udg_e9=udg_L9
endif
else
if(IW7())then
set udg_e9=((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_d9,true))/I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Y8,true)))*(udg_L9-20.00))
else
set udg_e9=(udg_L9-20.00)
endif
endif
call CreateTextTagUnitBJ("\"Suzumebachi!!\"",udg_Y8,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function IZ7)))
if(ld7())then
set udg_nd[4]=GetUnitLoc(udg_Y8)
call CreateTextTagLocBJ("|c0021C795MISS!!!|r",udg_nd[4],0,11.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.60)
call RemoveLocation(udg_nd[4])
set udg_nd[4]=null
else
if(l77())then
if(l47())then
set udg_Z8=999999.00
set udg_f9=true
else
set udg_Z8=((10.00+(2.00*I2R(GetUnitAbilityLevelSwapped(1093679414,udg_Y8))))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Y8,true)))
endif
set udg_Km[35]=GetUnitLoc(udg_Y8)
call PlaySoundAtPointBJ(udg_kr,100,udg_Km[35],0)
call RemoveLocation(udg_Km[35])
set udg_Km[35]=null
else
set udg_Z8=(3.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Y8,true)))
endif
call UnitDamageTargetBJ(udg_Y8,udg_d9,udg_Z8,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
if(l87())then
set udg_nd[4]=GetUnitLoc(udg_d9)
call CreateTextTagLocBJ("DEATH",udg_nd[4],0,11.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call RemoveLocation(udg_nd[4])
set udg_nd[4]=null
else
call CreateTextTagUnitBJ((I2S(R2I(udg_Z8))+"!"),udg_d9,0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
endif
if(l97())then
call UnitRemoveBuffBJ(1110454600,udg_d9)
else
set udg_nd[4]=GetUnitLoc(udg_d9)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Y8),udg_nd[4],bj_UNIT_FACING)
set udg_g9=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093679415,udg_g9)
call IssueTargetOrderBJ(udg_g9,"lightningshield",udg_d9)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_g9)
call RemoveLocation(udg_nd[4])
set udg_nd[4]=null
endif
endif
set udg_Y8=null
set udg_g9=null
set udg_d9=null
set udg_e9=0.00
set udg_L9=0.00
set udg_Z8=0.00
set udg_f9=false
endfunction
function lf7 takes nothing returns nothing
set udg_tC=CreateTrigger()
call TriggerAddCondition(udg_tC,Condition(function IV7))
call TriggerAddAction(udg_tC,function le7)
endfunction
function lg7 takes nothing returns boolean
if(not(udg_uj==null))then
return false
endif
return true
endfunction
function lh7 takes nothing returns nothing
if(lg7())then
call DestroyTrigger(udg_vC)
call DestroyTrigger(udg_wC)
call DestroyTrigger(udg_xC)
call DestroyTrigger(udg_yC)
call DestroyTrigger(udg_zC)
call DestroyTrigger(udg_AC)
call DestroyTrigger(udg_aC)
call DestroyTrigger(udg_BC)
else
call TriggerRegisterUnitEvent(udg_vC,udg_uj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_wC,udg_uj,EVENT_UNIT_ATTACKED)
call TriggerRegisterUnitEvent(udg_xC,udg_uj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_yC,udg_uj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_zC,udg_uj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_AC,udg_uj,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function li7 takes nothing returns nothing
set udg_uC=CreateTrigger()
call TriggerAddAction(udg_uC,function lh7)
endfunction
function lj7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679409))then
return false
endif
return true
endfunction
function lk7 takes nothing returns boolean
if(not(udg_Tg==2))then
return false
endif
return true
endfunction
function lm7 takes nothing returns boolean
if(not(udg_Tg==1))then
return false
endif
return true
endfunction
function ln7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function lo7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[800]))==true)
endfunction
function lp7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function lq7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function lr7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ls7 takes nothing returns boolean
return(GetFilterUnit()!=udg_a[800])
endfunction
function lt7 takes nothing returns boolean
return GetBooleanAnd(lr7(),ls7())
endfunction
function lu7 takes nothing returns boolean
return GetBooleanAnd(lq7(),lt7())
endfunction
function lv7 takes nothing returns boolean
return GetBooleanAnd(lp7(),lu7())
endfunction
function lw7 takes nothing returns boolean
return GetBooleanAnd(lo7(),lv7())
endfunction
function lx7 takes nothing returns nothing
set udg_y9[17]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[800],udg_y9[17],udg_q4[800],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
set udg_od[1]=GetUnitLoc(udg_y9[17])
call AddSpecialEffectLocBJ(udg_od[1],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_od[1])
set udg_od[1]=null
set udg_y9[17]=null
endfunction
function ly7 takes nothing returns nothing
set udg_A[800]=GetTriggerUnit()
set udg_a[800]=GetSpellTargetUnit()
set udg_B[800]=PG(GetUnitLoc(udg_a[800]),-175.00,AngleBetweenPoints(GetUnitLoc(udg_A[800]),GetUnitLoc(udg_a[800])))
set udg_B[801]=PG(udg_B[800],300.00,AngleBetweenPoints(GetUnitLoc(udg_A[800]),GetUnitLoc(udg_a[800])))
set udg_q4[800]=(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[800],true))+(100.00*I2R(GetUnitAbilityLevelSwapped(1093679409,udg_A[800]))))
call AddSpecialEffectTargetUnitBJ("origin",udg_A[800],"Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl")
set udg_P[800]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.01)
set udg_Tg=GetRandomInt(1,3)
if(lm7())then
call PlaySoundAtPointBJ(udg_Gq,100,udg_B[800],0)
else
if(lk7())then
call PlaySoundAtPointBJ(udg_Hq,100,udg_B[800],0)
else
call PlaySoundAtPointBJ(udg_Iq,100,udg_B[800],0)
endif
endif
set udg_Tg=0
set udg_od[1]=PG(GetUnitLoc(udg_a[800]),-80.00,AngleBetweenPoints(GetUnitLoc(udg_A[800]),GetUnitLoc(udg_a[800])))
call SetUnitPositionLocFacingBJ(udg_A[800],udg_od[1],AngleBetweenPoints(GetUnitLoc(udg_A[800]),GetUnitLoc(udg_a[800])))
call RemoveLocation(udg_od[1])
set udg_od[1]=null
call UG(350.00,udg_B[801],function ln7)
set udg_G[800]=e6(350.00,udg_B[801],Condition(function lw7))
call ForGroupBJ(udg_G[800],function lx7)
call DestroyGroup(udg_G[800])
set udg_G[800]=null
call UnitDamageTargetBJ(udg_A[800],udg_a[800],I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[800],true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
set udg_od[1]=GetUnitLoc(udg_a[800])
call AddSpecialEffectLocBJ(udg_od[1],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_od[1])
set udg_od[1]=null
call TriggerSleepAction(0.50)
call DestroyEffectBJ(udg_P[800])
call DestroyEffectBJ(udg_P[801])
call DestroyEffectBJ(udg_P[802])
call RemoveLocation(udg_B[800])
set udg_B[800]=null
call RemoveLocation(udg_B[801])
set udg_B[801]=null
set udg_A[800]=null
set udg_a[800]=null
set udg_q4[800]=0.00
endfunction
function lz7 takes nothing returns nothing
set udg_vC=CreateTrigger()
call TriggerAddCondition(udg_vC,Condition(function lj7))
call TriggerAddAction(udg_vC,function ly7)
endfunction
function lA7 takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())==1429221459))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())==1429221460))then
return true
endif
return false
endfunction
function la7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093677914,GetTriggerUnit())!=0))then
return false
endif
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetTriggerUnit()))==true))then
return false
endif
if(not lA7())then
return false
endif
return true
endfunction
function lB7 takes nothing returns boolean
if(not la7())then
return false
endif
return true
endfunction
function lb7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_T8))]==true))then
return false
endif
return true
endfunction
function lC7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_T8))==true)
endfunction
function lc7 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function lD7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function lE7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function l37 takes nothing returns boolean
return GetBooleanAnd(lD7(),lE7())
endfunction
function lF7 takes nothing returns boolean
return GetBooleanAnd(lc7(),l37())
endfunction
function lG7 takes nothing returns boolean
return GetBooleanAnd(lC7(),lF7())
endfunction
function l67 takes nothing returns nothing
set udg_qd=GetEnumUnit()
call UnitDamageTargetBJ(udg_T8,udg_qd,udg_S8,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_qd,"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_qd=null
endfunction
function lH7 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=(6+(3*GetUnitAbilityLevelSwapped(1093677914,GetTriggerUnit())))))then
return false
endif
return true
endfunction
function lI7 takes nothing returns nothing
if(lH7())then
set udg_T8=GetTriggerUnit()
if(lb7())then
set udg_S8=(175.00+(3.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_T8,true))))
set udg_U8=410.00
else
set udg_S8=(175.00+(2.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_T8,true))))
set udg_U8=320.00
endif
set udg_B[426]=GetUnitLoc(udg_T8)
set udg_G[426]=e6(udg_U8,udg_B[426],Condition(function lG7))
call ForGroupBJ(udg_G[426],function l67)
call SetUnitAnimation(udg_T8,"spin")
call RemoveLocation(udg_B[426])
set udg_B[426]=null
call DestroyGroup(udg_G[426])
set udg_G[426]=null
set udg_S8=0.00
set udg_U8=0.00
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.25)
call SetUnitAnimation(udg_T8,"stand ready")
set udg_T8=null
call EnableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function ll7 takes nothing returns nothing
set udg_wC=CreateTrigger()
call TriggerAddCondition(udg_wC,Condition(function lB7))
call TriggerAddAction(udg_wC,function lI7)
endfunction
function l17 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679193))then
return false
endif
return true
endfunction
function lJ7 takes nothing returns nothing
set udg_y9[17]=GetEnumUnit()
call RemoveUnit(udg_y9[17])
set udg_y9[17]=null
endfunction
function lK7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function lL7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function lM7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function lN7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function lO7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function l07 takes nothing returns boolean
return(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function lP7 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function lQ7 takes nothing returns boolean
return GetBooleanAnd(l07(),lP7())
endfunction
function lR7 takes nothing returns boolean
return GetBooleanAnd(lO7(),lQ7())
endfunction
function lS7 takes nothing returns boolean
return GetBooleanAnd(lN7(),lR7())
endfunction
function l57 takes nothing returns boolean
return GetBooleanAnd(lM7(),lS7())
endfunction
function lT7 takes nothing returns boolean
return GetBooleanAnd(lL7(),l57())
endfunction
function lU7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(GetEnumUnit()),-100.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[804])))==true))then
return true
endif
return false
endfunction
function lV7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_y9[17])==1328558129))then
return false
endif
return true
endfunction
function lW7 takes nothing returns boolean
if(not lU7())then
return false
endif
return true
endfunction
function lX7 takes nothing returns nothing
if(lW7())then
set udg_y9[17]=GetEnumUnit()
set udg_od[2]=PG(GetUnitLoc(udg_y9[17]),-100.00,AngleBetweenPoints(GetUnitLoc(udg_y9[17]),udg_B[804]))
call SetUnitPositionLoc(udg_y9[17],udg_od[2])
call IssueImmediateOrderBJ(udg_y9[17],"stop")
call SetUnitFacingToFaceLocTimed(udg_y9[17],udg_B[804],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_y9[17],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(lV7())then
call DestroyEffectBJ(udg_P[401])
call DestroyEffectBJ(udg_P[402])
call DestroyEffectBJ(udg_P[403])
call DestroyEffectBJ(udg_P[404])
call DestroyEffectBJ(udg_P[405])
else
call DoNothing()
endif
call RemoveLocation(udg_od[2])
set udg_od[2]=null
else
call DoNothing()
endif
endfunction
function lY7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[12])==1429221459))then
return false
endif
return true
endfunction
function l27 takes nothing returns boolean
return(GetUnitTypeId(udg_s9[12])==1429221459)
endfunction
function lZ7 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[12]))]==true)
endfunction
function l_7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[12]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,udg_s9[12])==0))then
return false
endif
return true
endfunction
function J47 takes nothing returns boolean
if(not l_7())then
return false
endif
return true
endfunction
function Trig_Bankai_RH_Func006Func001Func002A takes nothing returns nothing
set udg_y9[17]=GetEnumUnit()
call RemoveUnit(udg_y9[17])
set udg_y9[17]=null
endfunction
function J77 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[12]))]==false))then
return false
endif
return true
endfunction
function J87 takes nothing returns nothing
set udg_s9[12]=GetTriggerUnit()
if(lY7())then
set udg_od[2]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869834349,GetOwningPlayer(udg_s9[12]),udg_od[2],bj_UNIT_FACING)
call RemoveLocation(udg_od[2])
set udg_od[2]=null
set udg_B[804]=GetUnitLoc(udg_s9[12])
call AddSpecialEffectLocBJ(udg_B[804],"NewDirtEXNofire.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[804],"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[12],"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[12],"war3mapImported\\explosion.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[12],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("Bankai",udg_s9[12],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function lK7)))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_s9[12]),udg_B[804],bj_UNIT_FACING)
set udg_pd[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677378,udg_pd[2])
call IssueImmediateOrderBJ(udg_pd[2],"thunderclap")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_pd[2])
set udg_pd[2]=null
set udg_G[801]=e6(460.00,udg_B[804],Condition(function lT7))
call ForGroupBJ(udg_G[801],function lX7)
call PlaySoundAtPointBJ(udg_lq,100,udg_B[804],0)
call RemoveLocation(udg_B[804])
set udg_B[804]=null
call DestroyGroup(udg_G[801])
set udg_G[801]=null
else
set udg_G[801]=k6(GetOwningPlayer(udg_s9[12]),1869834349)
call ForGroupBJ(udg_G[801],function lJ7)
call DestroyGroup(udg_G[801])
set udg_G[801]=null
call DestroyEffectBJ(udg_P[801])
call DestroyEffectBJ(udg_P[802])
endif
if(l27())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[12]))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[12]))]=false
endif
call TriggerSleepAction(0.50)
if(J47())then
if(lZ7())then
call UnitAddAbilityBJ(1093677624,udg_s9[12])
else
call DoNothing()
endif
else
call DoNothing()
endif
if(J77())then
call DestroyEffectBJ(udg_P[801])
call DestroyEffectBJ(udg_P[802])
else
call DoNothing()
endif
set udg_s9[12]=null
endfunction
function J97 takes nothing returns nothing
set udg_xC=CreateTrigger()
call TriggerAddCondition(udg_xC,Condition(function l17))
call TriggerAddAction(udg_xC,function J87)
endfunction
function Jd7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679411))then
return false
endif
return true
endfunction
function Je7 takes nothing returns boolean
if(not(udg_W8<11))then
return false
endif
return true
endfunction
function Jf7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_V8)==false))then
return false
endif
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_V8))]==true))then
return false
endif
if(not(udg_V8!=null))then
return false
endif
return true
endfunction
function Jg7 takes nothing returns boolean
if(not Jf7())then
return false
endif
return true
endfunction
function Jh7 takes nothing returns nothing
set udg_V8=GetTriggerUnit()
call AddSpecialEffectTargetUnitBJ("hand right",udg_V8,"Phoenix_Missile_mini_NoDeathAnim.mdx")
set udg_P[801]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand left",udg_V8,"Phoenix_Missile_mini_NoDeathAnim.mdx")
set udg_P[802]=GetLastCreatedEffectBJ()
set udg_Km[36]=GetUnitLoc(udg_V8)
call PlaySoundAtPointBJ(udg_Lp,100,udg_Km[36],0)
call RemoveLocation(udg_Km[36])
set udg_Km[36]=null
set udg_W8=2
loop
exitwhen udg_W8>16
call TriggerSleepAction(3.00)
if(Jg7())then
if(Je7())then
call SetUnitAbilityLevelSwapped(1093679410,udg_V8,udg_W8)
else
call DoNothing()
endif
else
call DestroyEffectBJ(udg_P[801])
call DestroyEffectBJ(udg_P[802])
call SetUnitAbilityLevelSwapped(1093679410,udg_V8,1)
set udg_V8=null
endif
set udg_W8=udg_W8+1
endloop
call DestroyEffectBJ(udg_P[801])
call DestroyEffectBJ(udg_P[802])
call SetUnitAbilityLevelSwapped(1093679410,udg_V8,1)
set udg_V8=null
endfunction
function Ji7 takes nothing returns nothing
set udg_yC=CreateTrigger()
call TriggerAddCondition(udg_yC,Condition(function Jd7))
call TriggerAddAction(udg_yC,function Jh7)
endfunction
function Jj7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679412))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())<=(0.20*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit()))))then
return false
endif
return true
endfunction
function Jk7 takes nothing returns boolean
if(not Jj7())then
return false
endif
return true
endfunction
function Jm7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Your HP is too low|r")
endfunction
function Jn7 takes nothing returns nothing
set udg_zC=CreateTrigger()
call TriggerAddCondition(udg_zC,Condition(function Jk7))
call TriggerAddAction(udg_zC,function Jm7)
endfunction
function Jo7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679412))then
return false
endif
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
return true
endfunction
function Jp7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[801],1110454354)==true)
endfunction
function Trig_Final_Madness_Func022Func001C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[801])==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_A[801])>(0.20*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_A[801]))))then
return false
endif
if(not(udg_A[801]!=null))then
return false
endif
return true
endfunction
function Trig_Final_Madness_Func024Func001C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[801])==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_A[801])>(0.20*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_A[801]))))then
return false
endif
if(not(udg_A[801]!=null))then
return false
endif
return true
endfunction
function Trig_Final_Madness_Func026Func001C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[801])==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_A[801])>(0.20*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_A[801]))))then
return false
endif
if(not(udg_A[801]!=null))then
return false
endif
return true
endfunction
function Jq7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[801]!=udg_x))then
return false
endif
if(not(udg_A[801]!=udg_y))then
return false
endif
return true
endfunction
function Jr7 takes nothing returns boolean
if(not Jq7())then
return false
endif
return true
endfunction
function Js7 takes nothing returns nothing
set bj_wantDestroyGroup=true
call GroupClear(udg_X8)
set udg_A[801]=GetTriggerUnit()
set udg_B[802]=GetSpellTargetLoc()
set udg_c[800]=AngleBetweenPoints(GetUnitLoc(udg_A[801]),udg_B[802])
set udg_q4[801]=(((5.00+I2R(GetUnitAbilityLevelSwapped(1093679412,udg_A[801])))*(60.00*(I2R(GetUnitAbilityLevelSwapped(1093679410,udg_A[801]))-1.00)))+((11.00+(3.00*I2R(GetUnitAbilityLevelSwapped(1093679412,udg_A[801]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[801],true))))
call PauseUnitBJ(true,udg_A[801])
call SetUnitPathing(udg_A[801],false)
call SetUnitTimeScalePercent(udg_A[801],60.00)
call SetUnitAnimation(udg_A[801],"spell")
if(Jp7())then
call UnitRemoveBuffBJ(1110454354,udg_A[801])
else
call DoNothing()
endif
set udg_Km[37]=GetUnitLoc(udg_A[801])
call PlaySoundAtPointBJ(udg_Sp,100,udg_Km[37],0)
call RemoveLocation(udg_Km[37])
set udg_Km[37]=null
call TriggerSleepAction(0.01)
call AddSpecialEffectTargetUnitBJ("origin",udg_A[801],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPathing(udg_A[801],false)
call EnableTrigger(udg_BC)
call TriggerSleepAction(0.30)
call TriggerExecute(udg_aC)
call TriggerSleepAction(0.30)
call TriggerExecute(udg_aC)
call TriggerSleepAction(0.30)
call TriggerExecute(udg_aC)
call TriggerSleepAction(0.10)
call DisableTrigger(udg_BC)
call SetUnitPathing(udg_A[801],true)
call PauseUnitBJ(false,udg_A[801])
call SetUnitTimeScalePercent(udg_A[801],100.00)
call ResetUnitAnimation(udg_A[801])
call SelectUnitAddForPlayer(udg_A[801],GetOwningPlayer(udg_A[801]))
if(Jr7())then
call PauseUnitBJ(true,udg_A[801])
else
call DoNothing()
endif
set udg_A[801]=null
set udg_c[800]=0.00
set udg_q4[801]=0.00
call RemoveLocation(udg_B[802])
set udg_B[802]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_X8)
endfunction
function Jt7 takes nothing returns nothing
set udg_AC=CreateTrigger()
call TriggerAddCondition(udg_AC,Condition(function Jo7))
call TriggerAddAction(udg_AC,function Js7)
endfunction
function Ju7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[801])==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_A[801])>(0.15*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_A[801]))))then
return false
endif
if(not(udg_A[801]!=null))then
return false
endif
return true
endfunction
function Jv7 takes nothing returns boolean
if(not Ju7())then
return false
endif
return true
endfunction
function Jw7 takes nothing returns nothing
if(Jv7())then
call SetUnitLifeBJ(udg_A[801],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_A[801])-(0.15*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_A[801]))))
else
call DisableTrigger(udg_BC)
call SetUnitPathing(udg_A[801],true)
call PauseUnitBJ(false,udg_A[801])
call ResetUnitAnimation(udg_A[801])
call SetUnitTimeScalePercent(udg_A[801],100.00)
set udg_A[801]=null
set udg_c[800]=0.00
set udg_q4[801]=0.00
call RemoveLocation(udg_B[802])
set udg_B[802]=null
endif
endfunction
function Jx7 takes nothing returns nothing
set udg_aC=CreateTrigger()
call TriggerAddAction(udg_aC,function Jw7)
endfunction
function Jy7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_A[801])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_A[801])==true))then
return true
endif
return false
endfunction
function Jz7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[801]))]==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[801])==true))then
return false
endif
if(not Jy7())then
return false
endif
return true
endfunction
function JA7 takes nothing returns boolean
if(not Jz7())then
return false
endif
return true
endfunction
function Ja7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_X8)==false)
endfunction
function JB7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[801]))==true)
endfunction
function Jb7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function JC7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Jc7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function JD7 takes nothing returns boolean
return GetBooleanAnd(JC7(),Jc7())
endfunction
function JE7 takes nothing returns boolean
return GetBooleanAnd(Jb7(),JD7())
endfunction
function J37 takes nothing returns boolean
return GetBooleanAnd(JB7(),JE7())
endfunction
function JF7 takes nothing returns boolean
return GetBooleanAnd(Ja7(),J37())
endfunction
function JG7 takes nothing returns nothing
set udg_y9[18]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[801],udg_y9[18],udg_q4[801],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(udg_y9[18],udg_X8)
set udg_y9[18]=null
endfunction
function J67 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function JH7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_od[3])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_od[3])==true))then
return true
endif
return false
endfunction
function JI7 takes nothing returns boolean
if(not JH7())then
return false
endif
return true
endfunction
function Jl7 takes nothing returns nothing
set udg_od[3]=PG(GetUnitLoc(udg_A[801]),45.00,udg_c[800])
if(JI7())then
call SetUnitPositionLocFacingBJ(udg_A[801],udg_od[3],udg_c[800])
call RemoveLocation(udg_od[3])
set udg_od[3]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_A[801],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_B[803]=GetUnitLoc(udg_A[801])
set udg_rd=e6(410.00,udg_B[803],Condition(function JF7))
call ForGroupBJ(udg_rd,function JG7)
call DestroyGroup(udg_rd)
set udg_rd=null
call UG(300.00,udg_B[803],function J67)
call RemoveLocation(udg_B[803])
set udg_B[803]=null
else
call RemoveLocation(udg_od[3])
set udg_od[3]=null
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function J17 takes nothing returns nothing
set udg_BC=CreateTrigger()
call DisableTrigger(udg_BC)
call TriggerRegisterTimerEventPeriodic(udg_BC,0.03)
call TriggerAddCondition(udg_BC,Condition(function JA7))
call TriggerAddAction(udg_BC,function Jl7)
endfunction
function JJ7 takes nothing returns boolean
if(not(udg_gm==null))then
return false
endif
return true
endfunction
function JK7 takes nothing returns nothing
if(JJ7())then
call DestroyTrigger(udg_CC)
call DestroyTrigger(udg_cC)
call DestroyTrigger(udg_DC)
call DestroyTrigger(udg_EC)
call DestroyTrigger(udg_FC)
call DestroyTrigger(udg_GC)
call DestroyTrigger(udg_HC)
call DestroyTrigger(udg_IC)
call DestroyTrigger(udg_lC)
call DestroyTrigger(udg_JC)
else
call TriggerRegisterUnitEvent(udg_CC,udg_gm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_cC,udg_gm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_EC,udg_gm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_HC,udg_gm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_lC,udg_gm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function JL7 takes nothing returns nothing
set udg_bC=CreateTrigger()
call TriggerAddAction(udg_bC,function JK7)
endfunction
function JM7 takes nothing returns boolean
if((GetSpellAbilityId()==1093681969))then
return true
endif
if((GetSpellAbilityId()==1093681971))then
return true
endif
return false
endfunction
function JN7 takes nothing returns boolean
if(not JM7())then
return false
endif
return true
endfunction
function JO7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Trig_Tousen_Cast_Func001Func006Func002Func006003001 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function J07 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function JP7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681971))then
return false
endif
return true
endfunction
function JQ7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681969))then
return false
endif
return true
endfunction
function JR7 takes nothing returns nothing
if(JQ7())then
call CreateTextTagUnitBJ("Cry!",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function JO7)))
else
if(JP7())then
call CreateTextTagUnitBJ("Smash his limbs...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function J07)))
else
call DoNothing()
endif
endif
endfunction
function JS7 takes nothing returns nothing
set udg_CC=CreateTrigger()
call TriggerAddCondition(udg_CC,Condition(function JN7))
call TriggerAddAction(udg_CC,function JR7)
endfunction
function J57 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681969))then
return false
endif
return true
endfunction
function JT7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function JU7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Ok[0]))==true)
endfunction
function JV7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function JW7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function JX7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function JY7 takes nothing returns boolean
return GetBooleanAnd(JW7(),JX7())
endfunction
function J27 takes nothing returns boolean
return GetBooleanAnd(JV7(),JY7())
endfunction
function JZ7 takes nothing returns boolean
return GetBooleanAnd(JU7(),J27())
endfunction
function J_7 takes nothing returns boolean
return GetBooleanAnd(JT7(),JZ7())
endfunction
function K47 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=300.00)
endfunction
function K77 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>300.00))then
return false
endif
return true
endfunction
function K87 takes nothing returns boolean
if(not(MG(GetEnumUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function K97 takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Kd7 takes nothing returns nothing
if(K87())then
if(K77())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-300.00))
else
if(K47())then
call UnitDamageTargetBJ(udg_Ok[0],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(K97())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Ok[0]),udg_Qk[0],bj_UNIT_FACING)
set udg_Ok[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681974,udg_Ok[1])
call IssueTargetOrderBJ(udg_Ok[1],"sleep",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Ok[1])
set udg_Ok[1]=null
else
call DoNothing()
endif
endfunction
function Ke7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Kf7 takes nothing returns nothing
set udg_Ok[0]=GetTriggerUnit()
set udg_Qk[0]=GetUnitLoc(udg_Ok[0])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Ok[0]),udg_Qk[0],bj_UNIT_FACING)
set udg_Ok[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681975,udg_Ok[1])
call IssueImmediateOrderBJ(udg_Ok[1],"howlofterror")
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Ok[1])
set udg_Ok[1]=null
set udg_Rk[0]=e6(700.00,udg_Qk[0],Condition(function J_7))
call ForGroupBJ(udg_Rk[0],function Kd7)
call DestroyGroup(udg_Rk[0])
set udg_Rk[0]=null
call CreateTextTagUnitBJ("Suzumushi",udg_Ok[0],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Ke7)))
call AddSpecialEffectLocBJ(udg_Qk[0],"!Suzumushi!.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_Qk[0])
set udg_Qk[0]=null
set udg_Km[38]=GetUnitLoc(udg_Ok[0])
call PlaySoundAtPointBJ(udg_Qr,100,udg_Km[38],0)
call RemoveLocation(udg_Km[38])
set udg_Km[38]=null
set udg_Ok[0]=null
call EnableTrigger(udg_DC)
call TriggerSleepAction(5.00)
call DisableTrigger(udg_DC)
set bj_wantDestroyGroup=true
call GroupClear(udg_Sk)
endfunction
function Kg7 takes nothing returns nothing
set udg_cC=CreateTrigger()
call TriggerAddCondition(udg_cC,Condition(function J57))
call TriggerAddAction(udg_cC,function Kf7)
endfunction
function Kh7 takes nothing returns boolean
if(not(MG(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(UnitHasBuffBJ(GetAttackedUnitBJ(),1110454853)==true))then
return false
endif
if(not(IsUnitInGroup(GetAttackedUnitBJ(),udg_Sk)==false))then
return false
endif
return true
endfunction
function Ki7 takes nothing returns boolean
if(not Kh7())then
return false
endif
return true
endfunction
function Kj7 takes nothing returns nothing
set udg_Ok[2]=GetAttacker()
set udg_Ok[3]=GetAttackedUnitBJ()
call GroupAddUnitSimple(udg_Ok[3],udg_Sk)
call UnitDamageTargetBJ(udg_Ok[2],udg_Ok[3],500,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_Ok[3],"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Ok[2]=null
set udg_Ok[3]=null
endfunction
function Kk7 takes nothing returns nothing
set udg_DC=CreateTrigger()
call DisableTrigger(udg_DC)
call TriggerRegisterAnyUnitEventBJ(udg_DC,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_DC,Condition(function Ki7))
call TriggerAddAction(udg_DC,function Kj7)
endfunction
function Km7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677892))then
return false
endif
return true
endfunction
function Kn7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Ko7 takes nothing returns nothing
set udg_Ok[4]=GetTriggerUnit()
set udg_Ok[5]=GetSpellTargetUnit()
set udg_Qk[4]=GetUnitLoc(udg_Ok[4])
call CreateNUnitsAtLoc(1,1747988801,GetOwningPlayer(udg_Ok[4]),udg_Qk[4],bj_UNIT_FACING)
set udg_Ok[6]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_Ok[6],100,0.00,100,0)
call UnitApplyTimedLifeBJ(8.00,1112820806,udg_Ok[6])
call RemoveLocation(udg_Qk[4])
set udg_Qk[4]=null
call CreateTextTagUnitBJ("Hado #54: Haien",udg_Ok[4],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Kn7)))
set udg_Km[39]=GetUnitLoc(udg_Ok[4])
call PlaySoundAtPointBJ(udg_pq,100,udg_Km[39],0)
call RemoveLocation(udg_Km[39])
set udg_Km[39]=null
call EnableTrigger(udg_FC)
endfunction
function Kp7 takes nothing returns nothing
set udg_EC=CreateTrigger()
call TriggerAddCondition(udg_EC,Condition(function Km7))
call TriggerAddAction(udg_EC,function Ko7)
endfunction
function Kq7 takes nothing returns boolean
return(IsUnitDeadBJ(udg_Ok[6])==false)
endfunction
function Kr7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_Qk[5],udg_Qk[6])<60.00))then
return false
endif
if(not(MG(udg_Ok[6],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function Ks7 takes nothing returns boolean
return(IsUnitDeadBJ(udg_Ok[6])==false)
endfunction
function Kt7 takes nothing returns boolean
if(not Kr7())then
return false
endif
return true
endfunction
function Ku7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Ok[5])==true))then
return false
endif
if(not(IsUnitHiddenBJ(udg_Ok[5])==false))then
return false
endif
return true
endfunction
function Kv7 takes nothing returns boolean
if(not Ku7())then
return false
endif
return true
endfunction
function Kw7 takes nothing returns nothing
if(Kv7())then
set udg_Qk[4]=GetUnitLoc(udg_Ok[6])
set udg_Qk[5]=GetUnitLoc(udg_Ok[5])
set udg_Qk[6]=PG(udg_Qk[4],47.00,AngleBetweenPoints(udg_Qk[4],udg_Qk[5]))
call SetUnitPositionLocFacingLocBJ(udg_Ok[6],udg_Qk[6],udg_Qk[5])
if(Kt7())then
call TriggerExecute(udg_GC)
if(Ks7())then
call KillUnit(udg_Ok[6])
else
call DoNothing()
endif
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call RemoveLocation(udg_Qk[4])
set udg_Qk[4]=null
call RemoveLocation(udg_Qk[5])
set udg_Qk[5]=null
call RemoveLocation(udg_Qk[6])
set udg_Qk[6]=null
else
if(Kq7())then
call KillUnit(udg_Ok[6])
else
call DoNothing()
endif
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function Kx7 takes nothing returns nothing
set udg_FC=CreateTrigger()
call DisableTrigger(udg_FC)
call TriggerRegisterTimerEventPeriodic(udg_FC,0.02)
call TriggerAddAction(udg_FC,function Kw7)
endfunction
function Ky7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ok[5])<=udg_Pk[4])
endfunction
function Kz7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ok[5])>udg_Pk[4]))then
return false
endif
return true
endfunction
function KA7 takes nothing returns boolean
return(GetFilterUnit()!=udg_Ok[5])
endfunction
function Ka7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Ok[4]))==true)
endfunction
function KB7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Kb7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function KC7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Kc7 takes nothing returns boolean
return GetBooleanAnd(Kb7(),KC7())
endfunction
function KD7 takes nothing returns boolean
return GetBooleanAnd(KB7(),Kc7())
endfunction
function KE7 takes nothing returns boolean
return GetBooleanAnd(Ka7(),KD7())
endfunction
function K37 takes nothing returns boolean
return GetBooleanAnd(KA7(),KE7())
endfunction
function KF7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_Pk[4])
endfunction
function KG7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_Pk[4]))then
return false
endif
return true
endfunction
function K67 takes nothing returns nothing
if(KG7())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_Pk[4]))
else
if(KF7())then
call UnitDamageTargetBJ(udg_Ok[4],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\NightElfBuildingFire\\ElfLargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function KH7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Ok[5])==true))then
return false
endif
if(not(IsUnitHiddenBJ(udg_Ok[5])==false))then
return false
endif
return true
endfunction
function KI7 takes nothing returns boolean
if(not KH7())then
return false
endif
return true
endfunction
function Kl7 takes nothing returns nothing
set udg_Cj[90]=1
loop
exitwhen udg_Cj[90]>10
if(KI7())then
set udg_Pk[4]=((0.02+(0.01*I2R(GetUnitAbilityLevelSwapped(1093677892,udg_Ok[4]))))*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_Ok[5]))
if(Kz7())then
call SetUnitLifeBJ(udg_Ok[5],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ok[5])-udg_Pk[4]))
else
if(Ky7())then
call UnitDamageTargetBJ(udg_Ok[4],udg_Ok[5],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectTargetUnitBJ("origin",udg_Ok[5],"Environment\\NightElfBuildingFire\\ElfLargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("chest",udg_Ok[5],"Environment\\NightElfBuildingFire\\ElfLargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_Ok[5],"Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Qk[5]=GetUnitLoc(udg_Ok[5])
set udg_Rk[5]=e6(220.00,udg_Qk[5],Condition(function K37))
call ForGroupBJ(udg_Rk[5],function K67)
call DestroyGroup(udg_Rk[5])
set udg_Rk[5]=null
set udg_Pk[4]=0.00
call RemoveLocation(udg_Qk[5])
set udg_Qk[5]=null
call TriggerSleepAction(0.70)
else
call DoNothing()
endif
set udg_Cj[90]=udg_Cj[90]+1
endloop
set udg_Ok[4]=null
set udg_Ok[5]=null
set udg_Ok[6]=null
endfunction
function K17 takes nothing returns nothing
set udg_GC=CreateTrigger()
call TriggerAddAction(udg_GC,function Kl7)
endfunction
function KJ7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681971))then
return false
endif
return true
endfunction
function KK7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function KL7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_Ok[7])==true)
endfunction
function KM7 takes nothing returns boolean
return(IsTriggerEnabled(udg_IC)==false)
endfunction
function KN7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Ok[7])==true))then
return false
endif
return true
endfunction
function KO7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_Ok[7])==true)
endfunction
function K07 takes nothing returns nothing
set udg_Ok[7]=GetTriggerUnit()
set udg_Qk[7]=GetUnitLoc(udg_Ok[7])
set udg_Qk[16]=GetSpellTargetLoc()
set udg_Pk[7]=((1.50+(0.50*I2R(GetUnitAbilityLevelSwapped(1093681971,udg_Ok[7]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Ok[7],true)))
set udg_Pk[16]=AngleBetweenPoints(udg_Qk[7],udg_Qk[16])
call PauseUnitBJ(true,udg_Ok[7])
call SetUnitAnimation(udg_Ok[7],"stand ready")
set udg_Cj[91]=1
loop
exitwhen udg_Cj[91]>7
set udg_Qk[8]=PG(udg_Qk[7],50.00,((udg_Pk[16]-72.00)+(18.00*I2R(udg_Cj[91]))))
call CreateNUnitsAtLoc(1,1747989040,GetOwningPlayer(udg_Ok[7]),udg_Qk[8],((udg_Pk[16]-72.00)+(18.00*I2R(udg_Cj[91]))))
set udg_Tk[udg_Cj[91]]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(8.00,1112820806,udg_Tk[udg_Cj[91]])
call RemoveLocation(udg_Qk[8])
set udg_Qk[8]=null
set udg_Cj[91]=udg_Cj[91]+1
endloop
call TriggerSleepAction(0.40)
if(KN7())then
call SetUnitTimeScalePercent(udg_Ok[7],220.00)
call SetUnitAnimation(udg_Ok[7],"spell throw")
call CreateTextTagUnitBJ("Benihiko",udg_Ok[7],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function KK7)))
set udg_Km[40]=GetUnitLoc(udg_Ok[7])
call PlaySoundAtPointBJ(udg_up,100,udg_Km[40],0)
call RemoveLocation(udg_Km[40])
set udg_Km[40]=null
call EnableTrigger(udg_IC)
call TriggerSleepAction(0.25)
call SetUnitTimeScalePercent(udg_Ok[7],100.00)
if(KL7())then
call PauseUnitBJ(false,udg_Ok[7])
else
call DoNothing()
endif
loop
exitwhen(KM7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
set bj_wantDestroyGroup=true
call GroupClear(udg_Uk)
set bj_wantDestroyGroup=true
call GroupClear(udg_Vk)
set bj_wantDestroyGroup=true
call GroupClear(udg_Wk)
set bj_wantDestroyGroup=true
call GroupClear(udg_Xk)
set bj_wantDestroyGroup=true
call GroupClear(udg_Yk)
set bj_wantDestroyGroup=true
call GroupClear(udg_Zk)
set bj_wantDestroyGroup=true
call GroupClear(udg_dm)
else
set udg_Cj[91]=1
loop
exitwhen udg_Cj[91]>7
call RemoveUnit(udg_Tk[udg_Cj[91]])
set udg_Tk[udg_Cj[91]]=null
set udg_Cj[91]=udg_Cj[91]+1
endloop
endif
if(KO7())then
call PauseUnitBJ(false,udg_Ok[7])
else
call DoNothing()
endif
call RemoveLocation(udg_Qk[7])
set udg_Qk[7]=null
call RemoveLocation(udg_Qk[16])
set udg_Qk[16]=null
set udg_Ok[7]=null
set udg_Pk[7]=0.00
set udg_Pk[16]=0.00
endfunction
function KP7 takes nothing returns nothing
set udg_HC=CreateTrigger()
call TriggerAddCondition(udg_HC,Condition(function KJ7))
call TriggerAddAction(udg_HC,function K07)
endfunction
function KQ7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_dm)==false)
endfunction
function KR7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Ok[7]))==true)
endfunction
function KS7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function K57 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function KT7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function KU7 takes nothing returns boolean
return GetBooleanAnd(K57(),KT7())
endfunction
function KV7 takes nothing returns boolean
return GetBooleanAnd(KS7(),KU7())
endfunction
function KW7 takes nothing returns boolean
return GetBooleanAnd(KR7(),KV7())
endfunction
function KX7 takes nothing returns boolean
return GetBooleanAnd(KQ7(),KW7())
endfunction
function KY7 takes nothing returns boolean
if(not(udg_Cj[92]==7))then
return false
endif
return true
endfunction
function K27 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Zk)==false)
endfunction
function KZ7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Ok[7]))==true)
endfunction
function K_7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function L47 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function L77 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function L87 takes nothing returns boolean
return GetBooleanAnd(L47(),L77())
endfunction
function L97 takes nothing returns boolean
return GetBooleanAnd(K_7(),L87())
endfunction
function Ld7 takes nothing returns boolean
return GetBooleanAnd(KZ7(),L97())
endfunction
function Le7 takes nothing returns boolean
return GetBooleanAnd(K27(),Ld7())
endfunction
function Lf7 takes nothing returns boolean
if(not(udg_Cj[92]==6))then
return false
endif
return true
endfunction
function Lg7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Yk)==false)
endfunction
function Lh7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Ok[7]))==true)
endfunction
function Li7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Lj7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Lk7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Lm7 takes nothing returns boolean
return GetBooleanAnd(Lj7(),Lk7())
endfunction
function Ln7 takes nothing returns boolean
return GetBooleanAnd(Li7(),Lm7())
endfunction
function Lo7 takes nothing returns boolean
return GetBooleanAnd(Lh7(),Ln7())
endfunction
function Lp7 takes nothing returns boolean
return GetBooleanAnd(Lg7(),Lo7())
endfunction
function Lq7 takes nothing returns boolean
if(not(udg_Cj[92]==5))then
return false
endif
return true
endfunction
function Lr7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Xk)==false)
endfunction
function Ls7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Ok[7]))==true)
endfunction
function Lt7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Lu7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Lv7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Lw7 takes nothing returns boolean
return GetBooleanAnd(Lu7(),Lv7())
endfunction
function Lx7 takes nothing returns boolean
return GetBooleanAnd(Lt7(),Lw7())
endfunction
function Ly7 takes nothing returns boolean
return GetBooleanAnd(Ls7(),Lx7())
endfunction
function Lz7 takes nothing returns boolean
return GetBooleanAnd(Lr7(),Ly7())
endfunction
function LA7 takes nothing returns boolean
if(not(udg_Cj[92]==4))then
return false
endif
return true
endfunction
function La7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Wk)==false)
endfunction
function LB7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Ok[7]))==true)
endfunction
function Lb7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function LC7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Lc7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function LD7 takes nothing returns boolean
return GetBooleanAnd(LC7(),Lc7())
endfunction
function LE7 takes nothing returns boolean
return GetBooleanAnd(Lb7(),LD7())
endfunction
function L37 takes nothing returns boolean
return GetBooleanAnd(LB7(),LE7())
endfunction
function LF7 takes nothing returns boolean
return GetBooleanAnd(La7(),L37())
endfunction
function LG7 takes nothing returns boolean
if(not(udg_Cj[92]==3))then
return false
endif
return true
endfunction
function L67 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Vk)==false)
endfunction
function LH7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Ok[7]))==true)
endfunction
function LI7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Ll7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function L17 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function LJ7 takes nothing returns boolean
return GetBooleanAnd(Ll7(),L17())
endfunction
function LK7 takes nothing returns boolean
return GetBooleanAnd(LI7(),LJ7())
endfunction
function LL7 takes nothing returns boolean
return GetBooleanAnd(LH7(),LK7())
endfunction
function LM7 takes nothing returns boolean
return GetBooleanAnd(L67(),LL7())
endfunction
function LN7 takes nothing returns boolean
if(not(udg_Cj[92]==2))then
return false
endif
return true
endfunction
function LO7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Uk)==false)
endfunction
function L07 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Ok[7]))==true)
endfunction
function LP7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function LQ7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function LR7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function LS7 takes nothing returns boolean
return GetBooleanAnd(LQ7(),LR7())
endfunction
function L57 takes nothing returns boolean
return GetBooleanAnd(LP7(),LS7())
endfunction
function LT7 takes nothing returns boolean
return GetBooleanAnd(L07(),L57())
endfunction
function LU7 takes nothing returns boolean
return GetBooleanAnd(LO7(),LT7())
endfunction
function LV7 takes nothing returns boolean
if(not(udg_Cj[92]==1))then
return false
endif
return true
endfunction
function LW7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Ok[7],GetEnumUnit(),udg_Pk[7],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function LX7 takes nothing returns boolean
if(not(udg_Cj[92]==4))then
return false
endif
if(not(DistanceBetweenPoints(udg_Qk[7],udg_Qk[8])>1200.00))then
return false
endif
return true
endfunction
function LY7 takes nothing returns boolean
if(not LX7())then
return false
endif
return true
endfunction
function L27 takes nothing returns nothing
set udg_Cj[92]=1
loop
exitwhen udg_Cj[92]>7
set udg_Qk[9]=GetUnitLoc(udg_Tk[udg_Cj[92]])
set udg_Qk[8]=PG(udg_Qk[9],60.00,GetUnitFacing(udg_Tk[udg_Cj[92]]))
call SetUnitPositionLoc(udg_Tk[udg_Cj[92]],udg_Qk[8])
if(LV7())then
set udg_Rk[8]=e6(100.00,udg_Qk[8],Condition(function LU7))
else
if(LN7())then
set udg_Rk[8]=e6(100.00,udg_Qk[8],Condition(function LM7))
else
if(LG7())then
set udg_Rk[8]=e6(100.00,udg_Qk[8],Condition(function LF7))
else
if(LA7())then
set udg_Rk[8]=e6(100.00,udg_Qk[8],Condition(function Lz7))
else
if(Lq7())then
set udg_Rk[8]=e6(100.00,udg_Qk[8],Condition(function Lp7))
else
if(Lf7())then
set udg_Rk[8]=e6(100.00,udg_Qk[8],Condition(function Le7))
else
if(KY7())then
set udg_Rk[8]=e6(100.00,udg_Qk[8],Condition(function KX7))
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
call ForGroupBJ(udg_Rk[8],function LW7)
call DestroyGroup(udg_Rk[8])
set udg_Rk[8]=null
if(LY7())then
set udg_Cj[91]=1
loop
exitwhen udg_Cj[91]>7
call RemoveUnit(udg_Tk[udg_Cj[91]])
set udg_Tk[udg_Cj[91]]=null
set udg_Cj[91]=udg_Cj[91]+1
endloop
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call RemoveLocation(udg_Qk[8])
set udg_Qk[8]=null
call RemoveLocation(udg_Qk[9])
set udg_Qk[9]=null
set udg_Cj[92]=udg_Cj[92]+1
endloop
endfunction
function LZ7 takes nothing returns nothing
set udg_IC=CreateTrigger()
call DisableTrigger(udg_IC)
call TriggerRegisterTimerEventPeriodic(udg_IC,0.04)
call TriggerAddAction(udg_IC,function L27)
endfunction
function L_7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677899))then
return false
endif
return true
endfunction
function M47 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function M77 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function M87 takes nothing returns boolean
return(IsUnitAliveBJ(udg_Ok[12])==true)
endfunction
function M97 takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),1110454854)==true)
endfunction
function Md7 takes nothing returns nothing
if(M97())then
call UnitRemoveBuffBJ(1110454854,GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Me7 takes nothing returns nothing
set udg_Ok[11]=GetTriggerUnit()
set udg_Qk[11]=GetUnitLoc(udg_Ok[11])
call CreateNUnitsAtLoc(1,1747989041,GetOwningPlayer(udg_Ok[11]),udg_Qk[11],bj_UNIT_FACING)
set udg_Ok[12]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_Ok[12],100,100,100,80.00)
call UnitAddAbilityBJ(1093681475,udg_Ok[12])
call UnitApplyTimedLifeBJ(19.00,1112820806,udg_Ok[12])
call CreateTextTagUnitBJ("Bankai",udg_Ok[11],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function M47)))
set udg_Rk[15]=k6(GetOwningPlayer(udg_Ok[11]),1869311844)
call ForGroupBJ(udg_Rk[15],function M77)
call DestroyGroup(udg_Rk[15])
set udg_Rk[15]=null
set udg_Km[41]=GetUnitLoc(udg_Ok[11])
call PlaySoundAtPointBJ(udg_Zr,100,udg_Km[41],0)
call RemoveLocation(udg_Km[41])
set udg_Km[41]=null
call EnableTrigger(udg_JC)
call TriggerSleepAction(20.00)
call DisableTrigger(udg_JC)
if(M87())then
call KillUnit(udg_Ok[12])
else
call DoNothing()
endif
call RemoveLocation(udg_Qk[11])
set udg_Qk[11]=null
call ForGroupBJ(udg_em,function Md7)
set udg_Qk[15]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869311844,GetOwningPlayer(udg_Ok[11]),udg_Qk[15],bj_UNIT_FACING)
call RemoveLocation(udg_Qk[15])
set udg_Qk[15]=null
set udg_Ok[11]=null
set udg_Ok[12]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_em)
endfunction
function Mf7 takes nothing returns nothing
set udg_lC=CreateTrigger()
call TriggerAddCondition(udg_lC,Condition(function L_7))
call TriggerAddAction(udg_lC,function Me7)
endfunction
function Mg7 takes nothing returns boolean
return(GetFilterUnit()==udg_Ok[11])
endfunction
function Mh7 takes nothing returns boolean
return(IsUnitAliveBJ(udg_Ok[12])==true)
endfunction
function Mi7 takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),1110454854)==true)
endfunction
function Mj7 takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),1112437609)==true)
endfunction
function Mk7 takes nothing returns nothing
if(Mi7())then
call UnitRemoveBuffBJ(1110454854,GetEnumUnit())
else
call DoNothing()
endif
if(Mj7())then
call UnitRemoveBuffBJ(1112437609,GetEnumUnit())
else
call DoNothing()
endif
endfunction
function Mm7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function Mn7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Ok[11]))==true)
endfunction
function Mo7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Mp7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Mq7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Mr7 takes nothing returns boolean
return GetBooleanAnd(Mp7(),Mq7())
endfunction
function Ms7 takes nothing returns boolean
return GetBooleanAnd(Mo7(),Mr7())
endfunction
function Mt7 takes nothing returns boolean
return GetBooleanAnd(Mn7(),Ms7())
endfunction
function Mu7 takes nothing returns boolean
return GetBooleanAnd(Mm7(),Mt7())
endfunction
function Mv7 takes nothing returns boolean
return(IsUnitInGroup(GetEnumUnit(),udg_em)==false)
endfunction
function Mw7 takes nothing returns nothing
if(Mv7())then
call GroupAddUnitSimple(GetEnumUnit(),udg_em)
else
call DoNothing()
endif
call GroupAddUnitSimple(GetEnumUnit(),udg_fm)
endfunction
function Mx7 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454854)==false))then
return false
endif
return true
endfunction
function My7 takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),1110454353)==true)
endfunction
function Mz7 takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),1110454354)==true)
endfunction
function MA7 takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),1110454854)==true)
endfunction
function Ma7 takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),1112437609)==true)
endfunction
function MB7 takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_fm)==false))then
return false
endif
return true
endfunction
function Mb7 takes nothing returns nothing
if(Mx7())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Ok[11]),udg_Qk[11],bj_UNIT_FACING)
set udg_Ok[13]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681976,udg_Ok[13])
call SetUnitAbilityLevelSwapped(1093681976,udg_Ok[13],GetUnitAbilityLevelSwapped(1093677899,udg_Ok[11]))
call IssueTargetOrderBJ(udg_Ok[13],"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Ok[13])
set udg_Ok[13]=null
else
call DoNothing()
endif
if(MB7())then
call GroupRemoveUnitSimple(GetEnumUnit(),udg_em)
if(MA7())then
call UnitRemoveBuffBJ(1110454854,GetEnumUnit())
else
call DoNothing()
endif
if(Ma7())then
call UnitRemoveBuffBJ(1112437609,GetEnumUnit())
else
call DoNothing()
endif
else
if(My7())then
call UnitRemoveBuffBJ(1110454353,GetEnumUnit())
else
call DoNothing()
endif
if(Mz7())then
call UnitRemoveBuffBJ(1110454354,GetEnumUnit())
else
call DoNothing()
endif
endif
endfunction
function MC7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Ok[11])==true))then
return false
endif
return true
endfunction
function Mc7 takes nothing returns nothing
set udg_Rk[11]=e6(900.00,udg_Qk[11],Condition(function Mg7))
if(MC7())then
set udg_Rk[12]=e6(900.00,udg_Qk[11],Condition(function Mu7))
call ForGroupBJ(udg_Rk[12],function Mw7)
call DestroyGroup(udg_Rk[12])
set udg_Rk[12]=null
call ForGroupBJ(udg_em,function Mb7)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Ok[11]),udg_Qk[11],bj_UNIT_FACING)
set udg_Ok[13]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681973,udg_Ok[13])
call IssuePointOrderLocBJ(udg_Ok[13],"silence",udg_Qk[11])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Ok[13])
set udg_Ok[13]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_fm)
else
if(Mh7())then
call KillUnit(udg_Ok[12])
else
call DoNothing()
endif
call ForGroupBJ(udg_em,function Mk7)
set udg_Qk[15]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869311844,GetOwningPlayer(udg_Ok[11]),udg_Qk[15],bj_UNIT_FACING)
call RemoveLocation(udg_Qk[15])
set udg_Qk[15]=null
call DisableTrigger(GetTriggeringTrigger())
endif
call DestroyGroup(udg_Rk[11])
set udg_Rk[11]=null
endfunction
function MD7 takes nothing returns nothing
set udg_JC=CreateTrigger()
call DisableTrigger(udg_JC)
call TriggerRegisterTimerEventPeriodic(udg_JC,0.50)
call TriggerAddAction(udg_JC,function Mc7)
endfunction
function ME7 takes nothing returns boolean
if(not(udg_Im==null))then
return false
endif
return true
endfunction
function M37 takes nothing returns nothing
if(ME7())then
call DestroyTrigger(udg_LC)
call DestroyTrigger(udg_MC)
call DestroyTrigger(udg_NC)
call DestroyTrigger(udg_OC)
call DestroyTrigger(udg_PC)
call DestroyTrigger(udg_QC)
call DestroyTrigger(udg_RC)
call DestroyTrigger(udg_SC)
call DestroyTrigger(udg_TC)
call DestroyTrigger(udg_UC)
call DestroyTrigger(udg_VC)
call DestroyTrigger(udg_WC)
call DestroyTrigger(udg_XC)
else
call TriggerRegisterUnitEvent(udg_LC,udg_Im,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_MC,udg_Im,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_OC,udg_Im,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_QC,udg_Im,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(udg_TC,udg_Im,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_VC,udg_Im,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_WC,udg_Im,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function MF7 takes nothing returns nothing
set udg_KC=CreateTrigger()
call TriggerAddAction(udg_KC,function M37)
endfunction
function MG7 takes nothing returns boolean
if((GetSpellAbilityId()==1093679429))then
return true
endif
if((GetSpellAbilityId()==1093679433))then
return true
endif
if((GetSpellAbilityId()==1093679428))then
return true
endif
return false
endfunction
function M67 takes nothing returns boolean
if(not MG7())then
return false
endif
return true
endfunction
function MH7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function MI7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679429))then
return false
endif
return true
endfunction
function Ml7 takes nothing returns boolean
if((GetSpellAbilityId()==1093679433))then
return true
endif
if((GetSpellAbilityId()==1093679428))then
return true
endif
return false
endfunction
function M17 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
if((IsUnitPausedBJ(GetSpellTargetUnit())==true))then
return true
endif
if((RectContainsUnit(udg_vo,GetTriggerUnit())==true))then
return true
endif
if((RectContainsUnit(udg_xo,GetTriggerUnit())==true))then
return true
endif
return false
endfunction
function MJ7 takes nothing returns boolean
if(not Ml7())then
return false
endif
if(not M17())then
return false
endif
return true
endfunction
function MK7 takes nothing returns boolean
if(not MJ7())then
return false
endif
return true
endfunction
function ML7 takes nothing returns nothing
if(MI7())then
call CreateTextTagUnitBJ("\"Katon...\"",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function MH7)))
else
call DoNothing()
endif
if(MK7())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
else
call DoNothing()
endif
endfunction
function MM7 takes nothing returns nothing
set udg_LC=CreateTrigger()
call TriggerAddCondition(udg_LC,Condition(function M67))
call TriggerAddAction(udg_LC,function ML7)
endfunction
function MN7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679429))then
return false
endif
return true
endfunction
function MO7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function M07 takes nothing returns nothing
set udg_A[860]=GetTriggerUnit()
set udg_B[860]=GetSpellTargetLoc()
set udg_c[860]=AngleBetweenPoints(GetUnitLoc(udg_A[860]),udg_B[860])
set udg_B[861]=PG(GetUnitLoc(udg_A[860]),220.00,udg_c[860])
set udg_q4[860]=((175.00+(125.00*I2R(GetUnitAbilityLevelSwapped(1093679429,udg_A[860]))))+(25.00*I2R(GetHeroLevel(udg_A[860]))))
set udg_Se=1
call CreateTextTagUnitBJ("\"Goukakyuu no Jutsu!\"",udg_A[860],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function MO7)))
call PlaySoundAtPointBJ(udg_mq,100,udg_B[861],0)
call TriggerSleepAction(0.10)
call SetUnitFacingToFaceLocTimed(udg_A[860],udg_B[860],0)
call CreateNUnitsAtLoc(1,1747988567,GetOwningPlayer(udg_A[860]),udg_B[861],udg_c[860])
set udg_A[861]=GetLastCreatedUnit()
call RemoveLocation(udg_B[861])
set udg_B[861]=null
call EnableTrigger(udg_NC)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_NC)
call RemoveUnit(udg_A[861])
set udg_A[860]=null
set udg_A[861]=null
set udg_c[860]=0.00
set udg_q4[860]=0.00
call RemoveLocation(udg_B[860])
set udg_B[860]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_Ke)
endfunction
function MP7 takes nothing returns nothing
set udg_MC=CreateTrigger()
call TriggerAddCondition(udg_MC,Condition(function MN7))
call TriggerAddAction(udg_MC,function M07)
endfunction
function MQ7 takes nothing returns boolean
if(not(udg_A[861]!=null))then
return false
endif
return true
endfunction
function MR7 takes nothing returns boolean
if(not(udg_Se==0))then
return false
endif
return true
endfunction
function MS7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Ke)==false)
endfunction
function M57 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[860]))==true)
endfunction
function MT7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function MU7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function MV7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function MW7 takes nothing returns boolean
return GetBooleanAnd(MU7(),MV7())
endfunction
function MX7 takes nothing returns boolean
return GetBooleanAnd(MT7(),MW7())
endfunction
function MY7 takes nothing returns boolean
return GetBooleanAnd(M57(),MX7())
endfunction
function M27 takes nothing returns boolean
return GetBooleanAnd(MS7(),MY7())
endfunction
function MZ7 takes nothing returns nothing
set udg_y9[30]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[860],udg_y9[30],udg_q4[860],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_y9[30],"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call GroupAddUnitSimple(udg_y9[30],udg_Ke)
set udg_y9[30]=null
endfunction
function M_7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function N47 takes nothing returns nothing
set udg_B[861]=PG(GetUnitLoc(udg_A[861]),30.00,udg_c[860])
call SetUnitPositionLocFacingBJ(udg_A[861],udg_B[861],udg_c[860])
call RemoveLocation(udg_B[861])
set udg_B[861]=null
set udg_B[862]=GetUnitLoc(udg_A[861])
if(MR7())then
set udg_Se=1
else
set udg_Se=0
set udg_B[863]=PG(udg_B[862],60.00,(udg_c[860]+90.00))
call AddSpecialEffectLocBJ(udg_B[863],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[863])
set udg_B[863]=null
set udg_B[864]=PG(udg_B[862],60.00,(udg_c[860]-90.00))
call AddSpecialEffectLocBJ(udg_B[864],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[864])
set udg_B[864]=null
endif
set udg_Le=e6(450.00,udg_B[862],Condition(function M27))
call ForGroupBJ(udg_Le,function MZ7)
call DestroyGroup(udg_Le)
set udg_Le=null
call UG(300.00,udg_B[862],function M_7)
call RemoveLocation(udg_B[862])
set udg_B[862]=null
endfunction
function N77 takes nothing returns nothing
set udg_NC=CreateTrigger()
call DisableTrigger(udg_NC)
call TriggerRegisterTimerEventPeriodic(udg_NC,0.03)
call TriggerAddCondition(udg_NC,Condition(function MQ7))
call TriggerAddAction(udg_NC,function N47)
endfunction
function N87 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679433))then
return false
endif
return true
endfunction
function N97 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[870]))
endfunction
function Nd7 takes nothing returns nothing
set udg_A[870]=GetTriggerUnit()
set udg_a[870]=GetSpellTargetUnit()
set udg_B[870]=GetUnitLoc(udg_A[870])
set udg_c[870]=AngleBetweenPoints(udg_B[870],GetUnitLoc(udg_a[870]))
set udg_N[870]=0
set udg_Qe=false
set udg_Oe=(700.00+(100.00*I2R(GetUnitAbilityLevelSwapped(1093679433,udg_A[870]))))
set udg_Pe=0.00
call AddSpecialEffectTargetUnitBJ("hand left",udg_A[870],"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
set udg_Ne=GetLastCreatedEffectBJ()
set udg_Me=true
set udg_Te=false
call TriggerSleepAction(0.02)
call CreateTextTagUnitBJ("|c000042ffI|rIIIIIIIII",udg_A[870],0,10.00,100,100.00,100.00,0)
set udg_Re=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Re,false)
call SetTextTagLifespanBJ(udg_Re,0.70)
call ShowTextTagForceBJ(false,udg_Re,t6(Condition(function N97)))
call ShowTextTagForceBJ(true,udg_Re,m6(GetOwningPlayer(udg_A[870])))
call EnableTrigger(udg_PC)
endfunction
function Ne7 takes nothing returns nothing
set udg_OC=CreateTrigger()
call TriggerAddCondition(udg_OC,Condition(function N87))
call TriggerAddAction(udg_OC,function Nd7)
endfunction
function Nf7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[870])==true))then
return false
endif
if(not(udg_Me==true))then
return false
endif
return true
endfunction
function Ng7 takes nothing returns boolean
if(not Nf7())then
return false
endif
return true
endfunction
function Nh7 takes nothing returns boolean
if(not(udg_N[870]<5))then
return false
endif
return true
endfunction
function Ni7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[870]))
endfunction
function Nj7 takes nothing returns boolean
if(not(udg_N[870]==5))then
return false
endif
return true
endfunction
function Nk7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[870]))
endfunction
function Nm7 takes nothing returns boolean
if(not(udg_N[870]==4))then
return false
endif
return true
endfunction
function Nn7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[870]))
endfunction
function No7 takes nothing returns boolean
if(not(udg_N[870]==3))then
return false
endif
return true
endfunction
function Np7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[870]))
endfunction
function Nq7 takes nothing returns boolean
if(not(udg_N[870]==2))then
return false
endif
return true
endfunction
function Nr7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[870]))
endfunction
function Ns7 takes nothing returns boolean
if(not(udg_N[870]==1))then
return false
endif
return true
endfunction
function Nt7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[870])==true))then
return false
endif
return true
endfunction
function Nu7 takes nothing returns nothing
call SetUnitFacingToFaceUnitTimed(udg_A[870],udg_a[870],0)
if(Nh7())then
set udg_N[870]=(udg_N[870]+1)
else
call DoNothing()
endif
if(Ns7())then
call DestroyTextTagBJ(udg_Re)
call CreateTextTagUnitBJ("|c000042ffII|rIIIIIIII",udg_A[870],0,10.00,100,100.00,100.00,0)
set udg_Re=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Re,false)
call SetTextTagLifespanBJ(udg_Re,0.70)
call ShowTextTagForceBJ(false,udg_Re,t6(Condition(function Nr7)))
call ShowTextTagForceBJ(true,udg_Re,m6(GetOwningPlayer(udg_A[870])))
else
if(Nq7())then
call DestroyTextTagBJ(udg_Re)
call CreateTextTagUnitBJ("|c000042ffIIII|rIIIIII",udg_A[870],0,10.00,100,100.00,100.00,0)
set udg_Re=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Re,false)
call SetTextTagLifespanBJ(udg_Re,0.70)
call ShowTextTagForceBJ(false,udg_Re,t6(Condition(function Np7)))
call ShowTextTagForceBJ(true,udg_Re,m6(GetOwningPlayer(udg_A[870])))
else
if(No7())then
call DestroyTextTagBJ(udg_Re)
call CreateTextTagUnitBJ("|c000042ffIIIIII|rIIII",udg_A[870],0,10.00,100,100.00,100.00,0)
set udg_Re=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Re,false)
call SetTextTagLifespanBJ(udg_Re,0.70)
call ShowTextTagForceBJ(false,udg_Re,t6(Condition(function Nn7)))
call ShowTextTagForceBJ(true,udg_Re,m6(GetOwningPlayer(udg_A[870])))
else
if(Nm7())then
call DestroyTextTagBJ(udg_Re)
call CreateTextTagUnitBJ("|c000042ffIIIIIIII|rII",udg_A[870],0,10.00,100,100.00,100.00,0)
set udg_Re=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Re,false)
call SetTextTagLifespanBJ(udg_Re,0.70)
call ShowTextTagForceBJ(false,udg_Re,t6(Condition(function Nk7)))
call ShowTextTagForceBJ(true,udg_Re,m6(GetOwningPlayer(udg_A[870])))
else
if(Nj7())then
call DestroyTextTagBJ(udg_Re)
call CreateTextTagUnitBJ("|c000042ffIIIIIIIIII|r",udg_A[870],0,10.00,100,100.00,100.00,0)
set udg_Re=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Re,false)
call SetTextTagLifespanBJ(udg_Re,0.70)
call ShowTextTagForceBJ(false,udg_Re,t6(Condition(function Ni7)))
call ShowTextTagForceBJ(true,udg_Re,m6(GetOwningPlayer(udg_A[870])))
call IssueImmediateOrderBJ(udg_A[870],"stop")
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endif
endif
endif
endif
if(Nt7())then
call DisableTrigger(GetTriggeringTrigger())
set udg_Me=false
set udg_A[870]=null
set udg_H[870]=0.00
set udg_N[870]=0
set udg_Oe=0.00
call RemoveLocation(udg_B[870])
set udg_B[870]=null
call DestroyEffectBJ(udg_Ne)
call DestroyTextTagBJ(udg_Re)
else
call DoNothing()
endif
endfunction
function Nv7 takes nothing returns nothing
set udg_PC=CreateTrigger()
call DisableTrigger(udg_PC)
call TriggerRegisterTimerEventPeriodic(udg_PC,0.65)
call TriggerAddCondition(udg_PC,Condition(function Ng7))
call TriggerAddAction(udg_PC,function Nu7)
endfunction
function Nw7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679433))then
return false
endif
if(not(udg_A[870]!=null))then
return false
endif
if(not(udg_a[870]!=null))then
return false
endif
if(not(udg_Me==true))then
return false
endif
return true
endfunction
function Nx7 takes nothing returns boolean
if(not Nw7())then
return false
endif
return true
endfunction
function Ny7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_B[870],udg_B[871])>(udg_Oe+60.00)))then
return false
endif
return true
endfunction
function Nz7 takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_a[870],1110454324)==true))then
return false
endif
return true
endfunction
function NA7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_a[870])==false))then
return false
endif
return true
endfunction
function Na7 takes nothing returns boolean
if((IsUnitPausedBJ(udg_A[870])==true))then
return true
endif
if((IsUnitHiddenBJ(udg_A[870])==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1112757326)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1112560453)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454360)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454834)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454835)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454321)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454323)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454607)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454320)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1112500344)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1112896364)==true))then
return true
endif
if((IsUnitAliveBJ(udg_A[870])==false))then
return true
endif
if((IsUnitInGroup(udg_A[870],udg_C4)==true))then
return true
endif
if((udg_A[870]==null))then
return true
endif
if((udg_a[870]==null))then
return true
endif
if((IsUnitPausedBJ(udg_a[870])==true))then
return true
endif
if((IsUnitHiddenBJ(udg_a[870])==true))then
return true
endif
return false
endfunction
function NB7 takes nothing returns boolean
if(not Na7())then
return false
endif
return true
endfunction
function Nb7 takes nothing returns boolean
if(not(IsUnitPausedBJ(udg_A[870])==false))then
return false
endif
if(not(IsUnitPausedBJ(udg_a[870])==false))then
return false
endif
if(not(IsUnitHiddenBJ(udg_A[870])==false))then
return false
endif
if(not(IsUnitHiddenBJ(udg_a[870])==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1112757326)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1112560453)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454360)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454834)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454835)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454321)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454323)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454607)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454320)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1112500344)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1112896364)==false))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[870])==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_a[870])==true))then
return false
endif
if(not(IsUnitInGroup(udg_A[870],udg_C4)==false))then
return false
endif
if(not(DistanceBetweenPoints(udg_B[870],udg_B[871])<=(udg_Oe+60.00)))then
return false
endif
if(not(udg_A[870]!=null))then
return false
endif
if(not(udg_a[870]!=null))then
return false
endif
if(not(UnitHasBuffBJ(udg_a[870],1110454324)==false))then
return false
endif
return true
endfunction
function NC7 takes nothing returns boolean
if(not Nb7())then
return false
endif
return true
endfunction
function Nc7 takes nothing returns nothing
set udg_Me=false
set udg_B[871]=GetUnitLoc(udg_a[870])
if(NC7())then
call ConditionalTriggerExecute(udg_RC)
else
set udg_Te=true
if(Ny7())then
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_A[870])),4.00," |cffffcc00Chidori failed. The target is too far away|r")
else
call DoNothing()
endif
if(Nz7())then
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_A[870])),4.00," |cffffcc00Chidori failed. The target is invulnerable|r")
else
call DoNothing()
endif
if(NA7())then
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_A[870])),4.00," |cffffcc00Chidori failed. The target is already dead.|r")
else
call DoNothing()
endif
if(NB7())then
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_A[870])),4.00," |cffffcc00Chidori failed|r")
else
call DoNothing()
endif
set udg_A[870]=null
set udg_H[870]=0.00
set udg_N[870]=0
set udg_Oe=0.00
call RemoveLocation(udg_B[870])
set udg_B[870]=null
call RemoveLocation(udg_B[871])
set udg_B[871]=null
call DestroyEffectBJ(udg_Ne)
call DestroyTextTagBJ(udg_Re)
endif
endfunction
function ND7 takes nothing returns nothing
set udg_QC=CreateTrigger()
call TriggerAddCondition(udg_QC,Condition(function Nx7))
call TriggerAddAction(udg_QC,function Nc7)
endfunction
function NE7 takes nothing returns boolean
if(not(udg_A[870]!=null))then
return false
endif
if(not(udg_a[870]!=null))then
return false
endif
if(not(UnitHasBuffBJ(udg_a[870],1110454324)==false))then
return false
endif
if(not(DistanceBetweenPoints(udg_B[870],udg_B[871])<=(udg_Oe+100.00)))then
return false
endif
return true
endfunction
function N37 takes nothing returns boolean
if(not NE7())then
return false
endif
return true
endfunction
function NF7 takes nothing returns boolean
return(udg_N[870]==0)
endfunction
function NG7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[870]))]==true))then
return false
endif
return true
endfunction
function N67 takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_a[870],1110454324)==true))then
return false
endif
return true
endfunction
function NH7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_a[870])==false))then
return false
endif
return true
endfunction
function NI7 takes nothing returns boolean
if((IsUnitPausedBJ(udg_A[870])==true))then
return true
endif
if((IsUnitHiddenBJ(udg_A[870])==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1112757326)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1112560453)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454360)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454834)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454835)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454321)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454323)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454607)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1110454320)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1112500344)==true))then
return true
endif
if((UnitHasBuffBJ(udg_A[870],1112896364)==true))then
return true
endif
if((IsUnitAliveBJ(udg_A[870])==false))then
return true
endif
if((IsUnitInGroup(udg_A[870],udg_C4)==true))then
return true
endif
if((udg_A[870]==null))then
return true
endif
if((udg_a[870]==null))then
return true
endif
if((IsUnitPausedBJ(udg_a[870])==true))then
return true
endif
if((IsUnitHiddenBJ(udg_a[870])==true))then
return true
endif
return false
endfunction
function Nl7 takes nothing returns boolean
if(not NI7())then
return false
endif
return true
endfunction
function N17 takes nothing returns boolean
if(not(udg_Te==false))then
return false
endif
return true
endfunction
function NJ7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_a[870],1110454353)==true)
endfunction
function NK7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_a[870],1110454354)==true)
endfunction
function NL7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[870]))]==true))then
return false
endif
if(not(GetUnitTypeId(udg_a[870])!=1211117637))then
return false
endif
if(not(GetUnitTypeId(udg_a[870])!=1211117642))then
return false
endif
return true
endfunction
function NM7 takes nothing returns boolean
if(not NL7())then
return false
endif
return true
endfunction
function NN7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[870]))]==true))then
return false
endif
return true
endfunction
function NO7 takes nothing returns boolean
if(not(IsUnitPausedBJ(udg_A[870])==false))then
return false
endif
if(not(IsUnitPausedBJ(udg_a[870])==false))then
return false
endif
if(not(IsUnitHiddenBJ(udg_A[870])==false))then
return false
endif
if(not(IsUnitHiddenBJ(udg_a[870])==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1112757326)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1112560453)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454360)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454834)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454835)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454321)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454323)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454607)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1110454320)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[870],1112500344)==false))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[870])==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_a[870])==true))then
return false
endif
if(not(IsUnitInGroup(udg_A[870],udg_C4)==false))then
return false
endif
if(not(udg_A[870]!=null))then
return false
endif
if(not(udg_a[870]!=null))then
return false
endif
if(not(UnitHasBuffBJ(udg_a[870],1110454324)==false))then
return false
endif
return true
endfunction
function N07 takes nothing returns nothing
if(NF7())then
set udg_N[870]=1
else
call DoNothing()
endif
if(NG7())then
set udg_Pe=((3.00*I2R(udg_N[870]))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[870],false)))
else
set udg_Pe=((2.00*I2R(udg_N[870]))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[870],false)))
endif
set udg_Pe=(udg_Pe+150.00)
call TriggerSleepAction(0.02)
call DestroyTextTagBJ(udg_Re)
if(NO7())then
call RemoveLocation(udg_B[871])
set udg_B[871]=null
set udg_B[871]=GetUnitLoc(udg_a[870])
set udg_c[871]=AngleBetweenPoints(udg_B[870],udg_B[871])
call PauseUnitBJ(true,udg_A[870])
call SetUnitInvulnerable(udg_A[870],true)
if(NJ7())then
call UnitRemoveBuffBJ(1110454353,udg_a[870])
else
call DoNothing()
endif
if(NK7())then
call UnitRemoveBuffBJ(1110454354,udg_a[870])
else
call DoNothing()
endif
if(NM7())then
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[870]))]=false
else
call DoNothing()
endif
if(NN7())then
call SetUnitAnimation(udg_A[870],"attack")
else
call SetUnitAnimation(udg_A[870],"spell alternate two")
endif
call RemoveLocation(udg_B[871])
set udg_B[871]=null
call SetUnitPathing(udg_A[870],false)
call EnableTrigger(udg_SC)
call TriggerSleepAction(0.48)
call DisableTrigger(udg_SC)
call PauseUnitBJ(false,udg_A[870])
call SetUnitInvulnerable(udg_A[870],false)
call SetUnitPathing(udg_A[870],true)
else
if(N17())then
if(N67())then
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_A[870])),4.00," |cffffcc00Chidori failed. The target is invulnerable|r")
else
call DoNothing()
endif
if(NH7())then
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_A[870])),4.00," |cffffcc00Chidori failed. The target is already dead.|r")
else
call DoNothing()
endif
if(Nl7())then
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_A[870])),4.00," |cffffcc00Chidori failed|r")
else
call DoNothing()
endif
else
call DoNothing()
endif
endif
set udg_Me=false
set udg_Te=false
call ResetUnitAnimation(udg_A[870])
set udg_A[870]=null
set udg_H[870]=0.00
set udg_N[870]=0
set udg_Oe=0.00
set udg_c[871]=0.00
call DestroyEffectBJ(udg_Ne)
call RemoveLocation(udg_B[870])
set udg_B[870]=null
call RemoveLocation(udg_B[871])
set udg_B[871]=null
call RemoveLocation(udg_B[872])
set udg_B[872]=null
call RemoveLocation(udg_B[874])
set udg_B[874]=null
endfunction
function NP7 takes nothing returns nothing
set udg_RC=CreateTrigger()
call TriggerAddCondition(udg_RC,Condition(function N37))
call TriggerAddAction(udg_RC,function N07)
endfunction
function NQ7 takes nothing returns boolean
if(not(udg_a[870]!=null))then
return false
endif
return true
endfunction
function NR7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function NS7 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[870])<=udg_Pe)
endfunction
function N57 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[870])<=udg_Pe)
endfunction
function NT7 takes nothing returns boolean
return(MG(udg_a[870],UNIT_TYPE_HERO)==true)
endfunction
function NU7 takes nothing returns boolean
return(GetOwningPlayer(udg_a[870])!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function NV7 takes nothing returns boolean
return GetBooleanAnd(NT7(),NU7())
endfunction
function NW7 takes nothing returns boolean
return GetBooleanAnd(N57(),NV7())
endfunction
function NX7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[870])>udg_Pe))then
return false
endif
return true
endfunction
function NY7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function N27 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[870]))]==true))then
return false
endif
if(not(GetUnitTypeId(udg_a[870])==1211117637))then
return false
endif
return true
endfunction
function NZ7 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[870]))]==true))then
return false
endif
if(not(GetUnitTypeId(udg_a[870])==1211117642))then
return false
endif
return true
endfunction
function N_7 takes nothing returns boolean
if((IsUnitPausedBJ(udg_a[870])==true))then
return true
endif
if((IsUnitHiddenBJ(udg_a[870])==true))then
return true
endif
if((IsUnitInGroup(udg_a[870],udg_C4)==true))then
return true
endif
if((udg_a[870]==null))then
return true
endif
if((UnitHasBuffBJ(udg_a[870],1110454324)==true))then
return true
endif
if(N27())then
return true
endif
if(NZ7())then
return true
endif
return false
endfunction
function O47 takes nothing returns boolean
if(not N_7())then
return false
endif
return true
endfunction
function O77 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_B[873],udg_B[871])<128.00))then
return false
endif
return true
endfunction
function O87 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function O97 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_B[873],udg_B[874])<70.00))then
return false
endif
return true
endfunction
function Od7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_a[870])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_a[870])==true))then
return true
endif
return false
endfunction
function Oe7 takes nothing returns boolean
if(not(udg_a[870]!=null))then
return false
endif
if(not Od7())then
return false
endif
return true
endfunction
function Of7 takes nothing returns boolean
if(not(udg_Qe==false))then
return false
endif
return true
endfunction
function Og7 takes nothing returns nothing
if(Of7())then
set udg_B[871]=GetUnitLoc(udg_a[870])
set udg_c[871]=AngleBetweenPoints(udg_B[870],udg_B[871])
set udg_B[873]=PG(GetUnitLoc(udg_A[870]),62.00,udg_c[871])
call SetUnitPositionLocFacingLocBJ(udg_A[870],udg_B[873],udg_B[871])
call RemoveLocation(udg_B[873])
set udg_B[873]=null
set udg_B[873]=GetUnitLoc(udg_A[870])
call AddSpecialEffectLocBJ(udg_B[873],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(300.00,udg_B[873],function NR7)
if(O77())then
call SetUnitInvulnerable(udg_a[870],false)
if(NX7())then
call SetUnitLifeBJ(udg_a[870],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[870])-udg_Pe))
else
if(NS7())then
call UnitDamageTargetBJ(udg_A[870],udg_a[870],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
if(NW7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_a[870]))]=false
else
call DoNothing()
endif
endif
call CreateTextTagLocBJ((I2S(R2I(udg_Pe))+"!"),GetUnitLoc(udg_a[870]),0,11.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.20)
call DestroyEffectBJ(udg_Ne)
set udg_B[872]=PG(GetUnitLoc(udg_a[870]),50.00,udg_c[871])
set udg_B[874]=PG(GetUnitLoc(udg_a[870]),390.00,udg_c[871])
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_A[870]),udg_B[872],bj_UNIT_FACING)
set udg_A[871]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(3.00,1112820806,udg_A[871])
set udg_A[871]=null
call CreateTextTagUnitBJ("Chidori",udg_A[870],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function NY7)))
call PlaySoundAtPointBJ(udg_zp,100,udg_B[872],0)
if(O47())then
call DisableTrigger(GetTriggeringTrigger())
else
set udg_Qe=true
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[870]),udg_B[874],bj_UNIT_FACING)
set udg_A[874]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093679417,udg_A[874])
call SetUnitAbilityLevelSwapped(1093679417,udg_A[874],1)
call IssueTargetOrderBJ(udg_A[874],"thunderbolt",udg_a[870])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[874])
set udg_A[874]=null
endif
else
call DoNothing()
endif
call RemoveLocation(udg_B[871])
set udg_B[871]=null
call RemoveLocation(udg_B[873])
set udg_B[873]=null
else
if(Oe7())then
set udg_B[873]=PG(GetUnitLoc(udg_a[870]),30.00,udg_c[871])
call SetUnitPositionLoc(udg_a[870],udg_B[873])
call RemoveLocation(udg_B[873])
set udg_B[873]=null
set udg_B[873]=GetUnitLoc(udg_a[870])
call AddSpecialEffectLocBJ(udg_B[873],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_B[875]=PG(udg_B[873],GetRandomReal(0,200.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[875],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[875])
set udg_B[875]=null
set udg_B[875]=PG(udg_B[873],GetRandomReal(0,150.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[875],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[875])
set udg_B[875]=null
set udg_B[875]=PG(udg_B[873],GetRandomReal(0,150.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[875],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[875])
set udg_B[875]=null
call UG(300.00,udg_B[873],function O87)
if(O97())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call RemoveLocation(udg_B[873])
set udg_B[873]=null
else
call DisableTrigger(GetTriggeringTrigger())
endif
endif
endfunction
function Oh7 takes nothing returns nothing
set udg_SC=CreateTrigger()
call DisableTrigger(udg_SC)
call TriggerRegisterTimerEventPeriodic(udg_SC,0.03)
call TriggerAddCondition(udg_SC,Condition(function NQ7))
call TriggerAddAction(udg_SC,function Og7)
endfunction
function Oi7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679430))then
return false
endif
return true
endfunction
function Oj7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Ok7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Om7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[850]))==true)
endfunction
function On7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Oo7 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Op7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function Oq7 takes nothing returns boolean
return GetBooleanAnd(Oo7(),Op7())
endfunction
function Or7 takes nothing returns boolean
return GetBooleanAnd(On7(),Oq7())
endfunction
function Os7 takes nothing returns boolean
return GetBooleanAnd(Om7(),Or7())
endfunction
function Ot7 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_Lm)
endfunction
function Ou7 takes nothing returns nothing
set udg_A[850]=GetSpellAbilityUnit()
set udg_B[850]=GetUnitLoc(udg_A[850])
call CreateNUnitsAtLoc(1,1747988566,GetOwningPlayer(udg_A[850]),udg_B[850],bj_UNIT_FACING)
set udg_A[851]=GetLastCreatedUnit()
set udg_xk[851]=(GetUnitAbilityLevelSwapped(1093679430,udg_A[850])+1)
call SetUnitTimeScalePercent(udg_A[851],75.00)
call UnitApplyTimedLifeBJ(3.00,1112820806,udg_A[851])
call CreateTextTagUnitBJ("Chidori Nagashi",udg_A[850],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Oj7)))
call UG(600.00,udg_B[850],function Ok7)
call PlaySoundAtPointBJ(udg_Ap,100,udg_B[850],0)
set udg_Mm=e6(660.00,udg_B[850],Condition(function Os7))
call ForGroupBJ(udg_Mm,function Ot7)
call DestroyGroup(udg_Mm)
set udg_Mm=null
call RemoveLocation(udg_B[850])
set udg_B[850]=null
call TriggerExecute(udg_UC)
call TriggerSleepAction(2.00)
call RemoveUnit(udg_A[851])
endfunction
function Ov7 takes nothing returns nothing
set udg_TC=CreateTrigger()
call TriggerAddCondition(udg_TC,Condition(function Oi7))
call TriggerAddAction(udg_TC,function Ou7)
endfunction
function Ow7 takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Ox7 takes nothing returns nothing
if(Ow7())then
set udg_B[850]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[850]),udg_B[850],bj_UNIT_FACING)
set udg_t9[850]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093682004,udg_t9[850])
call IssueTargetOrderBJ(udg_t9[850],"slow",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_t9[850])
call RemoveLocation(udg_B[850])
set udg_B[850]=null
set udg_t9[850]=null
else
call GroupRemoveUnitSimple(GetEnumUnit(),udg_Lm)
endif
endfunction
function Oy7 takes nothing returns nothing
set udg_Nm=1
loop
exitwhen udg_Nm>udg_xk[851]
call ForGroupBJ(udg_Lm,function Ox7)
call TriggerSleepAction(0.65)
set udg_Nm=udg_Nm+1
endloop
set udg_A[850]=null
set udg_A[851]=null
set udg_xk[851]=0
set bj_wantDestroyGroup=true
call GroupClear(udg_Lm)
endfunction
function Oz7 takes nothing returns nothing
set udg_UC=CreateTrigger()
call TriggerAddAction(udg_UC,function Oy7)
endfunction
function OA7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679425))then
return false
endif
return true
endfunction
function Oa7 takes nothing returns boolean
return(GetUnitTypeId(udg_s9[20])==1328558132)
endfunction
function OB7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_s9[20])==1328558132))then
return false
endif
return true
endfunction
function Ob7 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[20]))]==true)
endfunction
function OC7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_s9[20]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,udg_s9[20])==0))then
return false
endif
return true
endfunction
function Oc7 takes nothing returns boolean
if(not OC7())then
return false
endif
return true
endfunction
function OD7 takes nothing returns nothing
set udg_s9[20]=GetTriggerUnit()
if(Oa7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[20]))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_s9[20]))]=false
endif
if(OB7())then
call AddSpecialEffectTargetUnitBJ("origin",udg_s9[20],"units\\nightelf\\SpiritOfVengeance\\SpiritOfVengeance.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Km[42]=GetUnitLoc(udg_s9[20])
call PlaySoundAtPointBJ(udg_Ep,100,udg_Km[42],0)
call RemoveLocation(udg_Km[42])
set udg_Km[42]=null
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
if(Oc7())then
if(Ob7())then
call UnitAddAbilityBJ(1093677913,udg_s9[20])
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_s9[20]=null
endfunction
function OE7 takes nothing returns nothing
set udg_VC=CreateTrigger()
call TriggerAddCondition(udg_VC,Condition(function OA7))
call TriggerAddAction(udg_VC,function OD7)
endfunction
function O37 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679428))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==false))then
return false
endif
return true
endfunction
function OF7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function OG7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[880]!=udg_x))then
return false
endif
if(not(udg_A[880]!=udg_y))then
return false
endif
return true
endfunction
function O67 takes nothing returns boolean
if(not OG7())then
return false
endif
return true
endfunction
function OH7 takes nothing returns nothing
set udg_A[880]=GetTriggerUnit()
set udg_a[880]=GetSpellTargetUnit()
set udg_B[880]=GetUnitLoc(udg_a[880])
set udg_c[880]=AngleBetweenPoints(GetUnitLoc(udg_A[880]),udg_B[880])
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[880]))]=true
set udg_q4[880]=(3000.00+(35.00*(I2R(GetHeroLevel(udg_A[880]))*I2R(GetUnitAbilityLevelSwapped(1093679428,udg_A[880])))))
set udg_H[880]=0.00
set udg_N[880]=0
call PauseUnitBJ(true,udg_A[880])
call PauseUnitBJ(true,udg_a[880])
call SetUnitInvulnerable(udg_A[880],true)
call SetUnitInvulnerable(udg_a[880],true)
call SetUnitAnimation(udg_A[880],"spell four")
call CreateTextTagUnitBJ("RAITON KIRIN",udg_A[880],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function OF7)))
call AddWeatherEffectSaveLast(GetPlayableMapRect(),1380019314)
set udg_Q[880]=GetLastCreatedWeatherEffect()
call EnableWeatherEffect(udg_Q[880],true)
set udg_Km[43]=GetUnitLoc(udg_A[880])
call PlaySoundAtPointBJ(udg_Sq,100,udg_Km[43],0)
call RemoveLocation(udg_Km[43])
set udg_Km[43]=null
call TriggerSleepAction(1.00)
call PauseUnitBJ(false,udg_a[880])
call SetUnitInvulnerable(udg_a[880],false)
call UnitDamageTargetBJ(udg_A[880],udg_a[880],udg_q4[880],ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1747988566,GetOwningPlayer(udg_A[880]),udg_B[880],bj_UNIT_FACING)
set udg_A[881]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[881])
set udg_A[881]=null
call AddSpecialEffectLocBJ(udg_B[880],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_B[882]=PG(udg_B[880],GetRandomReal(0,300.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[882],"war3mapImported\\Great Lightning.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[882])
set udg_B[882]=null
set udg_B[882]=PG(udg_B[880],GetRandomReal(0,300.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[882],"war3mapImported\\Great Lightning.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[882])
set udg_B[882]=null
set udg_B[882]=PG(udg_B[880],GetRandomReal(0,300.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[882],"war3mapImported\\Great Lightning.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[882])
set udg_B[882]=null
set udg_B[882]=PG(udg_B[880],GetRandomReal(0,300.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[882],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[882])
set udg_B[882]=null
set udg_B[882]=PG(udg_B[880],GetRandomReal(0,300.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[882],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[882])
set udg_B[882]=null
set udg_B[882]=PG(udg_B[880],GetRandomReal(0,300.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[882],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[882])
set udg_B[882]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[880]),udg_B[880],bj_UNIT_FACING)
set udg_A[881]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_A[881])
call IssueTargetOrderBJ(udg_A[881],"thunderbolt",udg_a[880])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[881])
set udg_A[881]=null
call CreateTextTagUnitBJ((I2S(R2I(udg_q4[880]))+"!"),udg_a[880],0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.20)
set udg_b[880]=1
loop
exitwhen udg_b[880]>6
set udg_H[880]=(udg_H[880]+60.00)
call CreateNUnitsAtLoc(1,1747988568,GetOwningPlayer(udg_A[880]),udg_B[880],udg_H[880])
set udg_A[(880+udg_b[880])]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_A[(880+udg_b[880])],9.00)
call SetUnitPathing(udg_A[(880+udg_b[880])],false)
set udg_b[880]=udg_b[880]+1
endloop
set udg_H[880]=0.00
set udg_q4[880]=(udg_q4[880]*0.50)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[880]))]=false
call TriggerSleepAction(0.20)
call EnableTrigger(udg_XC)
call TriggerSleepAction(0.70)
call DisableTrigger(udg_XC)
set udg_b[880]=1
loop
exitwhen udg_b[880]>6
set udg_B[881]=GetUnitLoc(udg_A[(880+udg_b[880])])
call RemoveUnit(udg_A[(880+udg_b[880])])
set udg_A[(880+udg_b[880])]=null
call CreateNUnitsAtLoc(1,1747988566,GetOwningPlayer(udg_A[880]),udg_B[881],bj_UNIT_FACING)
set udg_A[(880+udg_b[880])]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[(880+udg_b[880])])
set udg_A[(880+udg_b[880])]=null
call RemoveLocation(udg_B[881])
set udg_B[881]=null
set udg_b[880]=udg_b[880]+1
endloop
call TriggerSleepAction(0.01)
call PauseUnitBJ(false,udg_A[880])
call SetUnitInvulnerable(udg_A[880],false)
call ResetUnitAnimation(udg_A[880])
if(O67())then
call PauseUnitBJ(true,udg_A[880])
else
call DoNothing()
endif
set udg_A[880]=null
set udg_a[880]=null
set udg_c[880]=0.00
set udg_H[880]=0.00
set udg_N[880]=0
set udg_q4[880]=0.00
call RemoveLocation(udg_B[880])
set udg_B[880]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_Ue)
call EnableWeatherEffect(udg_Q[880],false)
call RemoveWeatherEffectBJ(udg_Q[880])
endfunction
function OI7 takes nothing returns nothing
set udg_WC=CreateTrigger()
call TriggerAddCondition(udg_WC,Condition(function O37))
call TriggerAddAction(udg_WC,function OH7)
endfunction
function Ol7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Ue)==false)
endfunction
function O17 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[880]))==true)
endfunction
function OJ7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function OK7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function OL7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function OM7 takes nothing returns boolean
return(GetFilterUnit()!=udg_a[880])
endfunction
function ON7 takes nothing returns boolean
return GetBooleanAnd(OL7(),OM7())
endfunction
function OO7 takes nothing returns boolean
return GetBooleanAnd(OK7(),ON7())
endfunction
function O07 takes nothing returns boolean
return GetBooleanAnd(OJ7(),OO7())
endfunction
function OP7 takes nothing returns boolean
return GetBooleanAnd(O17(),O07())
endfunction
function OQ7 takes nothing returns boolean
return GetBooleanAnd(Ol7(),OP7())
endfunction
function OR7 takes nothing returns nothing
set udg_y9[31]=GetEnumUnit()
call UnitDamageTargetBJ(udg_A[880],udg_y9[31],udg_q4[880],ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(udg_y9[31],udg_Ue)
set udg_y9[31]=null
endfunction
function OS7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function O57 takes nothing returns nothing
set udg_H[881]=0.00
set udg_b[881]=1
loop
exitwhen udg_b[881]>6
set udg_H[881]=(udg_H[881]+60.00)
call SetUnitPositionLoc(udg_A[(880+udg_b[881])],PG(GetUnitLoc(udg_A[(880+udg_b[881])]),30.00,udg_H[881]))
set udg_B[882]=PG(GetUnitLoc(udg_A[(880+udg_b[881])]),GetRandomReal(0,300.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[882],"war3mapImported\\Great Lightning.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[882])
set udg_B[882]=null
set udg_B[882]=PG(GetUnitLoc(udg_A[(880+udg_b[881])]),GetRandomReal(0,300.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_B[882],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_B[882])
set udg_B[882]=null
set udg_B[882]=GetUnitLoc(udg_A[(880+udg_b[881])])
call AddSpecialEffectLocBJ(udg_B[882],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Ve=e6(400.00,udg_B[882],Condition(function OQ7))
call ForGroupBJ(udg_Ve,function OR7)
call DestroyGroup(udg_Ve)
set udg_Ve=null
call UG(400.00,udg_B[882],function OS7)
call RemoveLocation(udg_B[882])
set udg_B[882]=null
set udg_b[881]=udg_b[881]+1
endloop
set udg_H[881]=0.00
endfunction
function OT7 takes nothing returns nothing
set udg_XC=CreateTrigger()
call DisableTrigger(udg_XC)
call TriggerRegisterTimerEventPeriodic(udg_XC,0.03)
call TriggerAddAction(udg_XC,function O57)
endfunction
function OU7 takes nothing returns boolean
if(not(udg_Bj==null))then
return false
endif
return true
endfunction
function OV7 takes nothing returns nothing
if(OU7())then
call DestroyTrigger(udg_ZC)
call DestroyTrigger(udg_dc)
call DestroyTrigger(udg_ec)
call DestroyTrigger(udg_fc)
call DestroyTrigger(udg_gc)
call DestroyTrigger(udg_hc)
call DestroyTrigger(udg_ic)
call DestroyTrigger(udg_jc)
call DestroyTrigger(udg_kc)
call DestroyTrigger(udg_mc)
call DestroyTrigger(udg_nc)
call DestroyTrigger(udg_oc)
call DestroyTrigger(udg_pc)
call DestroyTrigger(udg_qc)
call DestroyTrigger(udg_rc)
call DestroyTrigger(udg_sc)
call DestroyTrigger(udg_tc)
call DestroyTrigger(udg_uc)
else
call TriggerRegisterUnitEvent(udg_ZC,udg_Bj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_dc,udg_Bj,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_hc,udg_Bj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_jc,udg_Bj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_kc,udg_Bj,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_mc,udg_Bj,EVENT_UNIT_HERO_SKILL)
call TriggerRegisterUnitEvent(udg_oc,udg_Bj,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_tc,udg_Bj,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function OW7 takes nothing returns nothing
set udg_YC=CreateTrigger()
call TriggerAddAction(udg_YC,function OV7)
endfunction
function OX7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681712))then
return false
endif
return true
endfunction
function OY7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093681718,udg_Pi[1])!=1)
endfunction
function O27 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681712,udg_Pi[1])==6))then
return false
endif
return true
endfunction
function OZ7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681712,udg_Pi[1])==5))then
return false
endif
return true
endfunction
function O_7 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681712,udg_Pi[1])==4))then
return false
endif
return true
endfunction
function P47 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681712,udg_Pi[1])==3))then
return false
endif
return true
endfunction
function P77 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681712,udg_Pi[1])==2))then
return false
endif
return true
endfunction
function P87 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681712,udg_Pi[1])==1))then
return false
endif
return true
endfunction
function P97 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Pd7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Pe7 takes nothing returns boolean
if(not(udg_Qi[99]>(udg_Qi[5]+(udg_Qi[4]+(udg_Qi[3]+udg_Qi[2])))))then
return false
endif
if(not(udg_Qi[99]<=(udg_Qi[5]+(udg_Qi[4]+(udg_Qi[3]+(udg_Qi[2]+udg_Qi[1]))))))then
return false
endif
return true
endfunction
function Pf7 takes nothing returns boolean
if(not Pe7())then
return false
endif
return true
endfunction
function Pg7 takes nothing returns boolean
if(not(udg_Qi[99]>(udg_Qi[5]+(udg_Qi[4]+udg_Qi[3]))))then
return false
endif
if(not(udg_Qi[99]<=(udg_Qi[5]+(udg_Qi[4]+(udg_Qi[3]+udg_Qi[2])))))then
return false
endif
return true
endfunction
function Ph7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Pi7 takes nothing returns boolean
if(not Pg7())then
return false
endif
return true
endfunction
function Pj7 takes nothing returns boolean
if(not(udg_Qi[99]>(udg_Qi[5]+udg_Qi[4])))then
return false
endif
if(not(udg_Qi[99]<=(udg_Qi[5]+(udg_Qi[4]+udg_Qi[3]))))then
return false
endif
return true
endfunction
function Pk7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Pm7 takes nothing returns boolean
if(not Pj7())then
return false
endif
return true
endfunction
function Pn7 takes nothing returns boolean
if(not(udg_Qi[99]>udg_Qi[5]))then
return false
endif
if(not(udg_Qi[99]<=(udg_Qi[5]+udg_Qi[4])))then
return false
endif
return true
endfunction
function Po7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Pp7 takes nothing returns boolean
if(not Pn7())then
return false
endif
return true
endfunction
function Pq7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Pr7 takes nothing returns boolean
if(not(udg_Qi[99]<=udg_Qi[5]))then
return false
endif
return true
endfunction
function Ps7 takes nothing returns nothing
set udg_Pi[1]=GetTriggerUnit()
set udg_Ui[1]=GetUnitLoc(udg_Pi[1])
call UnitRemoveAbilityBJ(udg_Si,udg_Pi[1])
call UnitRemoveAbilityBJ(udg_Ti,udg_Pi[1])
set udg_Ri=0
if(OY7())then
call SetUnitAbilityLevelSwapped(1093681718,udg_Pi[1],1)
else
call DoNothing()
endif
if(P87())then
set udg_Qi[1]=75
set udg_Qi[2]=20
set udg_Qi[3]=5
else
if(P77())then
set udg_Qi[1]=70
set udg_Qi[2]=25
set udg_Qi[3]=5
else
if(P47())then
set udg_Qi[1]=60
set udg_Qi[2]=25
set udg_Qi[3]=10
set udg_Qi[4]=5
else
if(O_7())then
set udg_Qi[1]=45
set udg_Qi[2]=25
set udg_Qi[3]=15
set udg_Qi[4]=10
set udg_Qi[5]=5
else
if(OZ7())then
set udg_Qi[1]=35
set udg_Qi[2]=25
set udg_Qi[3]=20
set udg_Qi[4]=10
set udg_Qi[5]=10
else
if(O27())then
set udg_Qi[1]=25
set udg_Qi[2]=25
set udg_Qi[3]=20
set udg_Qi[4]=15
set udg_Qi[5]=15
else
call DoNothing()
endif
endif
endif
endif
endif
endif
set udg_Wi[16]=g6(1701013613)
call ForGroupBJ(udg_Wi[16],function P97)
call DestroyGroup(udg_Wi[16])
set udg_Wi[16]=null
set udg_Qi[99]=GetRandomInt(1,100)
if(Pr7())then
set udg_Ri=70
call SetUnitAbilityLevelSwapped(1093681718,udg_Pi[1],3)
call UnitAddAbilityBJ(1093681717,udg_Pi[1])
call UnitAddAbilityBJ(1093681730,udg_Pi[1])
call CreateTextTagLocBJ("Ex-Equip: Lionheart",udg_Ui[1],0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Pq7)))
set udg_Si=1093681717
set udg_Ti=1093681730
set udg_Ui[18]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1701013613,GetOwningPlayer(udg_Pi[1]),udg_Ui[18],bj_UNIT_FACING)
call RemoveLocation(udg_Ui[18])
set udg_Ui[18]=null
else
if(Pp7())then
set udg_Ri=40
call UnitAddAbilityBJ(1093681716,udg_Pi[1])
call UnitAddAbilityBJ(1093681729,udg_Pi[1])
call CreateTextTagLocBJ("Ex-Equip: Punishment",udg_Ui[1],0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Po7)))
set udg_Si=1093681716
set udg_Ti=1093681729
else
if(Pm7())then
set udg_Ri=50
call UnitAddAbilityBJ(1093681714,udg_Pi[1])
call UnitAddAbilityBJ(1093681721,udg_Pi[1])
call CreateTextTagLocBJ("Ex-Equip: Flame Saber",udg_Ui[1],0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Pk7)))
set udg_Si=1093681714
set udg_Ti=1093681721
else
if(Pi7())then
set udg_Ri=30
call UnitAddAbilityBJ(1093681715,udg_Pi[1])
call UnitAddAbilityBJ(1093681720,udg_Pi[1])
call CreateTextTagLocBJ("Ex-Equip: Shear Trigger",udg_Ui[1],0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Ph7)))
set udg_Si=1093681715
set udg_Ti=1093681720
else
if(Pf7())then
set udg_Ri=20
call SetUnitAbilityLevelSwapped(1093681718,udg_Pi[1],2)
call UnitAddAbilityBJ(1093681713,udg_Pi[1])
call UnitAddAbilityBJ(1093681719,udg_Pi[1])
call CreateTextTagLocBJ("Ex-Equip: Revolver",udg_Ui[1],0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Pd7)))
set udg_Si=1093681713
set udg_Ti=1093681719
else
call DoNothing()
endif
endif
endif
endif
endif
call RemoveLocation(udg_Ui[1])
set udg_Ui[1]=null
set udg_Ui[1]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1701209202,GetOwningPlayer(udg_Pi[1]),udg_Ui[1],bj_UNIT_FACING)
call RemoveLocation(udg_Ui[1])
set udg_Ui[1]=null
set udg_Qi[1]=0
set udg_Qi[2]=0
set udg_Qi[3]=0
set udg_Qi[4]=0
set udg_Qi[5]=0
set udg_Qi[99]=0
set udg_Pi[1]=null
endfunction
function Pt7 takes nothing returns nothing
set udg_ZC=CreateTrigger()
call TriggerAddCondition(udg_ZC,Condition(function OX7))
call TriggerAddAction(udg_ZC,function Ps7)
endfunction
function Pu7 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1429221433))then
return false
endif
return true
endfunction
function Pv7 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Pw7 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Px7 takes nothing returns nothing
set udg_Pi[0]=GetTriggerUnit()
call UnitRemoveAbilityBJ(udg_Si,udg_Pi[0])
call UnitRemoveAbilityBJ(udg_Ti,udg_Pi[0])
set udg_Ri=20
call SetUnitAbilityLevelSwapped(1093681718,udg_Pi[0],2)
call UnitAddAbilityBJ(1093681713,udg_Pi[0])
call UnitAddAbilityBJ(1093681719,udg_Pi[0])
set udg_Si=1093681713
set udg_Ti=1093681719
call TriggerSleepAction(0.75)
set udg_Ui[0]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1701209202,GetOwningPlayer(udg_Pi[0]),udg_Ui[0],bj_UNIT_FACING)
call RemoveLocation(udg_Ui[0])
set udg_Ui[0]=null
set udg_Pi[0]=null
set udg_Wi[18]=g6(1701013613)
call ForGroupBJ(udg_Wi[18],function Pv7)
call DestroyGroup(udg_Wi[18])
set udg_Wi[18]=null
set udg_Wi[19]=g6(1701341552)
call ForGroupBJ(udg_Wi[19],function Pw7)
call DestroyGroup(udg_Wi[19])
set udg_Wi[19]=null
endfunction
function Py7 takes nothing returns nothing
set udg_dc=CreateTrigger()
call TriggerAddCondition(udg_dc,Condition(function Pu7))
call TriggerAddAction(udg_dc,function Px7)
endfunction
function Pz7 takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())==1429221433))then
return false
endif
if(not(udg_Ri>0))then
return false
endif
return true
endfunction
function PA7 takes nothing returns boolean
if(not Pz7())then
return false
endif
return true
endfunction
function Pa7 takes nothing returns boolean
if(not(udg_Ri<=0))then
return false
endif
return true
endfunction
function PB7 takes nothing returns nothing
set udg_Pi[2]=GetAttacker()
set udg_Ri=(udg_Ri-1)
if(Pa7())then
set udg_Pi[99]=udg_Pi[2]
call TriggerExecute(udg_fc)
else
call DoNothing()
endif
set udg_Pi[2]=null
endfunction
function Pb7 takes nothing returns nothing
set udg_ec=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_ec,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_ec,Condition(function PA7))
call TriggerAddAction(udg_ec,function PB7)
endfunction
function PC7 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Pc7 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function PD7 takes nothing returns nothing
call SetUnitAbilityLevelSwapped(1093681718,udg_Pi[99],1)
call UnitRemoveAbilityBJ(udg_Si,udg_Pi[99])
set udg_Ui[99]=GetUnitLoc(udg_Pi[99])
call CreateTextTagLocBJ("|c00FF0000BREAK!!|r",udg_Ui[99],0,12.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),160.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call RemoveLocation(udg_Ui[99])
set udg_Ui[99]=null
set udg_Wi[99]=k6(GetOwningPlayer(udg_Pi[99]),1701209202)
call ForGroupBJ(udg_Wi[99],function PC7)
call DestroyGroup(udg_Wi[99])
set udg_Wi[99]=null
set udg_Wi[17]=k6(GetOwningPlayer(udg_Pi[99]),1701013613)
call ForGroupBJ(udg_Wi[17],function Pc7)
call DestroyGroup(udg_Wi[17])
set udg_Wi[17]=null
endfunction
function PE7 takes nothing returns nothing
set udg_fc=CreateTrigger()
call TriggerAddAction(udg_fc,function PD7)
endfunction
function P37 takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())==1429221433))then
return false
endif
if(not(udg_Ti==1093681721))then
return false
endif
if(not(udg_Ri!=0))then
return false
endif
return true
endfunction
function PF7 takes nothing returns boolean
if(not P37())then
return false
endif
return true
endfunction
function PG7 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=25))then
return false
endif
return true
endfunction
function P67 takes nothing returns nothing
set udg_Pi[3]=GetAttacker()
set udg_Pi[4]=GetAttackedUnitBJ()
if(PG7())then
call UnitDamageTargetBJ(udg_Pi[3],udg_Pi[4],(100.00+(3.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Pi[3],true)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_Pi[4],"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
set udg_Pi[3]=null
set udg_Pi[4]=null
endfunction
function PH7 takes nothing returns nothing
set udg_gc=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_gc,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_gc,Condition(function PF7))
call TriggerAddAction(udg_gc,function P67)
endfunction
function PI7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681731))then
return false
endif
return true
endfunction
function Pl7 takes nothing returns boolean
return(udg_Ti==1093681720)
endfunction
function P17 takes nothing returns boolean
return(udg_Ti==1093681721)
endfunction
function PJ7 takes nothing returns boolean
return(udg_Ti==1093681729)
endfunction
function PK7 takes nothing returns boolean
return(udg_Ti==1093681730)
endfunction
function PL7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function PM7 takes nothing returns boolean
if(not(udg_Ti==1093681730))then
return false
endif
return true
endfunction
function PN7 takes nothing returns boolean
if(not(udg_Ti==1093681729))then
return false
endif
return true
endfunction
function PO7 takes nothing returns boolean
if(not(udg_Ti==1093681721))then
return false
endif
return true
endfunction
function P07 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Pi[5])==true))then
return false
endif
return true
endfunction
function PP7 takes nothing returns boolean
return(IsTriggerEnabled(udg_ic)==false)
endfunction
function PQ7 takes nothing returns boolean
if(not(udg_Ri<=0))then
return false
endif
return true
endfunction
function PR7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Pi[5])==true))then
return false
endif
return true
endfunction
function PS7 takes nothing returns nothing
set udg_Pi[5]=GetTriggerUnit()
set udg_Yi[5]=(200.00+((4.00+(1.00*I2R(GetUnitAbilityLevelSwapped(1093681731,udg_Pi[5]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Pi[5],true))))
if(Pl7())then
set udg_Yi[5]=(udg_Yi[5]*1.20)
else
call DoNothing()
endif
if(P17())then
set udg_Yi[5]=(udg_Yi[5]*1.35)
else
call DoNothing()
endif
if(PJ7())then
set udg_Yi[5]=(udg_Yi[5]*1.50)
else
call DoNothing()
endif
if(PK7())then
set udg_Yi[5]=(udg_Yi[5]*2.00)
else
call DoNothing()
endif
call PauseUnitBJ(true,udg_Pi[5])
call SetUnitPathing(udg_Pi[5],false)
call SetUnitAnimation(udg_Pi[5],"Spell One")
call CreateTextTagUnitBJ("Rough Divide",udg_Pi[5],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function PL7)))
if(PO7())then
call AddSpecialEffectTargetUnitBJ("weapon",udg_Pi[5],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
set udg_dj[5]=GetLastCreatedEffectBJ()
else
if(PN7())then
call AddSpecialEffectTargetUnitBJ("weapon",udg_Pi[5],"Abilities\\Spells\\Items\\OrbCorruption\\OrbCorruptionMissile.mdl")
set udg_dj[5]=GetLastCreatedEffectBJ()
else
if(PM7())then
call AddSpecialEffectTargetUnitBJ("weapon",udg_Pi[5],"BlueRibbonMissile.mdx")
set udg_dj[5]=GetLastCreatedEffectBJ()
else
call DoNothing()
endif
endif
endif
call TriggerSleepAction(0.10)
if(P07())then
call SetUnitTimeScalePercent(udg_Pi[5],66.00)
set udg_Zi[5]=GetUnitFacing(udg_Pi[5])
set udg_Zi[17]=0.00
else
call DoNothing()
endif
call EnableTrigger(udg_ic)
loop
exitwhen(PP7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call DestroyEffectBJ(udg_dj[5])
call TriggerSleepAction(0.01)
call SetUnitPathing(udg_Pi[5],true)
call SetUnitTimeScalePercent(udg_Pi[5],100.00)
if(PR7())then
call PauseUnitBJ(false,udg_Pi[5])
call ResetUnitAnimation(udg_Pi[5])
set udg_Ri=(udg_Ri-3)
if(PQ7())then
set udg_Pi[99]=udg_Pi[5]
call TriggerExecute(udg_fc)
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_Pi[5]=null
set udg_Yi[5]=0.00
set udg_Zi[5]=0.00
set udg_Zi[17]=0.00
set bj_wantDestroyGroup=true
call GroupClear(udg_Xi)
endfunction
function P57 takes nothing returns nothing
set udg_hc=CreateTrigger()
call TriggerAddCondition(udg_hc,Condition(function PI7))
call TriggerAddAction(udg_hc,function PS7)
endfunction
function PT7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_Pi[5])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_Pi[5])==true))then
return true
endif
return false
endfunction
function PU7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Pi[5])==true))then
return false
endif
if(not PT7())then
return false
endif
return true
endfunction
function PV7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Xi)==false)
endfunction
function PW7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Pi[5]))==true)
endfunction
function PX7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function PY7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function P27 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function PZ7 takes nothing returns boolean
return GetBooleanAnd(PY7(),P27())
endfunction
function P_7 takes nothing returns boolean
return GetBooleanAnd(PX7(),PZ7())
endfunction
function Q47 takes nothing returns boolean
return GetBooleanAnd(PW7(),P_7())
endfunction
function Q77 takes nothing returns boolean
return GetBooleanAnd(PV7(),Q47())
endfunction
function Trig_RD_move_Func001Func005Func010Func002Func001Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=300.00)
endfunction
function Trig_RD_move_Func001Func005Func010Func002Func001C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])>300.00))then
return false
endif
return true
endfunction
function Q87 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_Xi)
call UnitDamageTargetBJ(udg_Pi[5],GetEnumUnit(),udg_Yi[5],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Q97 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Qd7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_Ui[5])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_Ui[5])==true))then
return true
endif
return false
endfunction
function Qe7 takes nothing returns boolean
if(not Qd7())then
return false
endif
return true
endfunction
function Qf7 takes nothing returns boolean
if(not(udg_Zi[17]>=23.00))then
return false
endif
return true
endfunction
function Qg7 takes nothing returns boolean
if(not PU7())then
return false
endif
return true
endfunction
function Qh7 takes nothing returns nothing
if(Qg7())then
set udg_Zi[17]=(udg_Zi[17]+1.00)
set udg_Ui[5]=PG(GetUnitLoc(udg_Pi[5]),40.00,udg_Zi[5])
if(Qe7())then
call SetUnitPositionLocFacingBJ(udg_Pi[5],udg_Ui[5],udg_Zi[5])
call RemoveLocation(udg_Ui[5])
set udg_Ui[5]=null
set udg_Ui[5]=PG(GetUnitLoc(udg_Pi[5]),128.00,udg_Zi[5])
call AddSpecialEffectLocBJ(udg_Ui[5],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Wi[5]=e6(220.00,udg_Ui[5],Condition(function Q77))
call ForGroupBJ(udg_Wi[5],function Q87)
call DestroyGroup(udg_Wi[5])
set udg_Wi[5]=null
call UG(220.00,udg_Ui[5],function Q97)
call RemoveLocation(udg_Ui[5])
set udg_Ui[5]=null
else
call RemoveLocation(udg_Ui[5])
set udg_Ui[5]=null
endif
if(Qf7())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function Qi7 takes nothing returns nothing
set udg_ic=CreateTrigger()
call DisableTrigger(udg_ic)
call TriggerRegisterTimerEventPeriodic(udg_ic,0.03)
call TriggerAddAction(udg_ic,function Qh7)
endfunction
function Qj7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681733))then
return false
endif
return true
endfunction
function Qk7 takes nothing returns boolean
return(udg_Ti==1093681720)
endfunction
function Qm7 takes nothing returns boolean
return(udg_Ti==1093681721)
endfunction
function Qn7 takes nothing returns boolean
return(udg_Ti==1093681729)
endfunction
function Qo7 takes nothing returns boolean
return(udg_Ti==1093681730)
endfunction
function Qp7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Pi[6]))==true)
endfunction
function Qq7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Qr7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Qs7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Qt7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function Qu7 takes nothing returns boolean
return GetBooleanAnd(Qs7(),Qt7())
endfunction
function Qv7 takes nothing returns boolean
return GetBooleanAnd(Qr7(),Qu7())
endfunction
function Qw7 takes nothing returns boolean
return GetBooleanAnd(Qq7(),Qv7())
endfunction
function Qx7 takes nothing returns boolean
return GetBooleanAnd(Qp7(),Qw7())
endfunction
function Qy7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Pi[6],GetEnumUnit(),udg_Yi[6],ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endfunction
function Qz7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function QA7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Qa7 takes nothing returns boolean
if(not(udg_Ri<=0))then
return false
endif
return true
endfunction
function QB7 takes nothing returns nothing
set udg_Pi[6]=GetTriggerUnit()
set udg_Zi[6]=0.00
set udg_Ui[6]=GetUnitLoc(udg_Pi[6])
set udg_Vi[6]=1
loop
exitwhen udg_Vi[6]>30
set udg_Zi[6]=(udg_Zi[6]+12.00)
set udg_Ui[7]=PG(udg_Ui[6],300.00,udg_Zi[6])
call CreateNUnitsAtLocFacingLocBJ(1,1966092338,GetOwningPlayer(udg_Pi[6]),udg_Ui[6],udg_Ui[7])
set udg_Pi[7]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Pi[7],90.00,90.00,90.00)
call UnitAddAbilityBJ(1093681735,udg_Pi[7])
call IssuePointOrderLocBJ(udg_Pi[7],"carrionswarm",udg_Ui[7])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Pi[7])
call RemoveLocation(udg_Ui[7])
set udg_Ui[7]=null
set udg_Pi[7]=null
set udg_Vi[6]=udg_Vi[6]+1
endloop
set udg_Yi[6]=(((3.00+(1*I2R(GetUnitAbilityLevelSwapped(1093681733,udg_Pi[6]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_Pi[6],true)))+((3.00+(1.00*I2R(GetUnitAbilityLevelSwapped(1093681733,udg_Pi[6]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Pi[6],true))))
if(Qk7())then
set udg_Yi[6]=(udg_Yi[6]*1.10)
else
call DoNothing()
endif
if(Qm7())then
set udg_Yi[6]=(udg_Yi[6]*1.30)
else
call DoNothing()
endif
if(Qn7())then
set udg_Yi[6]=(udg_Yi[6]*1.50)
else
call DoNothing()
endif
if(Qo7())then
set udg_Yi[6]=(udg_Yi[6]*1.70)
else
call DoNothing()
endif
set udg_Wi[6]=e6(800.00,udg_Ui[6],Condition(function Qx7))
call ForGroupBJ(udg_Wi[6],function Qy7)
call CreateTextTagLocBJ("Fated Circle",udg_Ui[6],0,10,100,100,100,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Qz7)))
call UG(700.00,udg_Ui[6],function QA7)
set udg_Ri=(udg_Ri-6)
if(Qa7())then
set udg_Pi[99]=udg_Pi[6]
call TriggerExecute(udg_fc)
else
call DoNothing()
endif
set udg_Pi[6]=null
set udg_Yi[6]=0.00
set udg_Zi[6]=0.00
call DestroyGroup(udg_Wi[6])
set udg_Wi[6]=null
call RemoveLocation(udg_Ui[6])
set udg_Ui[6]=null
endfunction
function Qb7 takes nothing returns nothing
set udg_jc=CreateTrigger()
call TriggerAddCondition(udg_jc,Condition(function Qj7))
call TriggerAddAction(udg_jc,function QB7)
endfunction
function QC7 takes nothing returns boolean
if((GetSpellAbilityId()==1093681736))then
return true
endif
if((GetSpellAbilityId()==1093679436))then
return true
endif
return false
endfunction
function Qc7 takes nothing returns boolean
if(not QC7())then
return false
endif
return true
endfunction
function QD7 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_Wi[20])==false))then
return false
endif
if(not(IsUnitGroupEmptyBJ(udg_Wi[21])==false))then
return false
endif
if(not(IsUnitGroupEmptyBJ(udg_Wi[22])==false))then
return false
endif
return true
endfunction
function QE7 takes nothing returns boolean
if(not QD7())then
return false
endif
return true
endfunction
function Q37 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679436))then
return false
endif
return true
endfunction
function QF7 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function QG7 takes nothing returns boolean
if(not QF7())then
return false
endif
return true
endfunction
function Q67 takes nothing returns nothing
set udg_Wi[20]=k6(GetOwningPlayer(GetTriggerUnit()),1701209202)
set udg_Wi[21]=k6(GetOwningPlayer(GetTriggerUnit()),1701013613)
set udg_Wi[22]=k6(GetOwningPlayer(GetTriggerUnit()),1701341552)
if(QG7())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability|r")
else
if(Q37())then
if(QE7())then
call DoNothing()
else
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Incomplete skill requirements|r")
endif
else
call DoNothing()
endif
endif
call DestroyGroup(udg_Wi[20])
set udg_Wi[20]=null
call DestroyGroup(udg_Wi[21])
set udg_Wi[21]=null
call DestroyGroup(udg_Wi[22])
set udg_Wi[22]=null
endfunction
function QH7 takes nothing returns nothing
set udg_kc=CreateTrigger()
call TriggerAddCondition(udg_kc,Condition(function Qc7))
call TriggerAddAction(udg_kc,function Q67)
endfunction
function QI7 takes nothing returns boolean
if(not(GetLearnedSkillBJ()==1093681736))then
return false
endif
if(not(GetUnitTypeId(GetLearningUnit())==1429221433))then
return false
endif
return true
endfunction
function Ql7 takes nothing returns boolean
if(not QI7())then
return false
endif
return true
endfunction
function Q17 takes nothing returns nothing
set udg_Pi[98]=GetLearningUnit()
call EnableTrigger(udg_nc)
call EnableTrigger(udg_sc)
call TriggerRegisterPlayerEventEndCinematic(udg_sc,GetOwningPlayer(udg_Pi[98]))
set udg_Pi[98]=null
call DisableTrigger(udg_sc)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function QJ7 takes nothing returns nothing
set udg_mc=CreateTrigger()
call TriggerAddCondition(udg_mc,Condition(function Ql7))
call TriggerAddAction(udg_mc,function Q17)
endfunction
function QK7 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Bj)<=(0.40*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_Bj))))then
return false
endif
if(not(IsUnitGroupEmptyBJ(udg_Wi[98])==true))then
return false
endif
if(not(IsUnitDeadBJ(udg_Bj)==false))then
return false
endif
return true
endfunction
function QL7 takes nothing returns boolean
if((GetUnitStateSwap(UNIT_STATE_LIFE,udg_Bj)>(0.40*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_Bj))))then
return true
endif
if((IsUnitDeadBJ(udg_Bj)==true))then
return true
endif
return false
endfunction
function QM7 takes nothing returns boolean
if(not QL7())then
return false
endif
if(not(IsUnitGroupEmptyBJ(udg_Wi[98])==false))then
return false
endif
return true
endfunction
function QN7 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function QO7 takes nothing returns boolean
if(not QM7())then
return false
endif
return true
endfunction
function Q07 takes nothing returns boolean
if(not QK7())then
return false
endif
return true
endfunction
function QP7 takes nothing returns nothing
set udg_Wi[98]=k6(GetOwningPlayer(udg_Bj),1869767017)
if(Q07())then
set udg_Ui[98]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869767017,GetOwningPlayer(udg_Bj),udg_Ui[98],bj_UNIT_FACING)
call RemoveLocation(udg_Ui[98])
set udg_Ui[98]=null
else
if(QO7())then
call ForGroupBJ(udg_Wi[98],function QN7)
else
call DoNothing()
endif
endif
call DestroyGroup(udg_Wi[98])
set udg_Wi[98]=null
endfunction
function QQ7 takes nothing returns nothing
set udg_nc=CreateTrigger()
call DisableTrigger(udg_nc)
call TriggerRegisterTimerEventPeriodic(udg_nc,0.50)
call TriggerAddAction(udg_nc,function QP7)
endfunction
function QR7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681736))then
return false
endif
return true
endfunction
function QS7 takes nothing returns boolean
return(udg_Ti==1093681719)
endfunction
function Q57 takes nothing returns boolean
return(udg_Ti==1093681720)
endfunction
function QT7 takes nothing returns boolean
return(udg_Ti==1093681721)
endfunction
function QU7 takes nothing returns boolean
return(udg_Ti==1093681729)
endfunction
function QV7 takes nothing returns boolean
return(udg_Ti==1093681730)
endfunction
function QW7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function QX7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Pi[8])==true))then
return false
endif
return true
endfunction
function QY7 takes nothing returns boolean
return(udg_fj==false)
endfunction
function Q27 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_Pi[8]))]==false))then
return false
endif
return true
endfunction
function QZ7 takes nothing returns boolean
return(IsTriggerEnabled(udg_pc)==true)
endfunction
function Q_7 takes nothing returns nothing
set udg_Pi[8]=GetTriggerUnit()
set udg_ej=GetSpellTargetUnit()
set udg_Yi[8]=((2.80*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_Pi[8],true)))+(2.80*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Pi[8],true))))
if(QS7())then
set udg_Yi[9]=(udg_Yi[8]*0.20)
else
call DoNothing()
endif
if(Q57())then
set udg_Yi[9]=(udg_Yi[8]*0.30)
else
call DoNothing()
endif
if(QT7())then
set udg_Yi[9]=(udg_Yi[8]*0.40)
else
call DoNothing()
endif
if(QU7())then
set udg_Yi[9]=(udg_Yi[8]*0.50)
else
call DoNothing()
endif
if(QV7())then
set udg_Yi[9]=(udg_Yi[8]*0.75)
else
call DoNothing()
endif
set udg_aj=0
set udg_gj=false
set udg_zj=0
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_ej))]=true
set udg_Ui[8]=GetUnitLoc(udg_Pi[8])
call SetUnitFacingToFaceUnitTimed(udg_Pi[8],udg_ej,0)
call PauseUnitBJ(true,udg_Pi[8])
call PauseUnitBJ(true,udg_ej)
call SetUnitInvulnerable(udg_Pi[8],true)
call SetUnitInvulnerable(udg_ej,true)
call SetUnitTimeScalePercent(udg_Pi[8],200.00)
call SetUnitAnimation(udg_Pi[8],"stand ready")
call CreateTextTagUnitBJ("Limit Break: Renzokuken",udg_Pi[8],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function QW7)))
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_Pi[8]),udg_Pi[8],0,0,false)
call AddSpecialEffectTargetUnitBJ("origin",udg_Pi[8],"!Incantation!.mdx")
set udg_dj[8]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("weapon",udg_Pi[8],"BlueRibbonMissile.mdx")
set udg_dj[9]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("weapon",udg_Pi[8],"BlueRibbonMissile.mdx")
set udg_dj[10]=GetLastCreatedEffectBJ()
call RemoveLocation(udg_Ui[8])
set udg_Ui[8]=null
call EnableTrigger(udg_sc)
call TriggerSleepAction(0.75)
call SetUnitInvulnerable(udg_ej,false)
call DestroyEffectBJ(udg_dj[8])
if(QX7())then
set udg_fj=true
call TriggerSleepAction(0.00)
call EnableTrigger(udg_pc)
else
call DoNothing()
endif
loop
exitwhen(QY7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call DisableTrigger(udg_pc)
call DestroyTextTagBJ(udg_Aj)
call DestroyEffectBJ(udg_dj[9])
call DestroyEffectBJ(udg_dj[10])
call PauseUnitBJ(false,udg_Pi[8])
call PauseUnitBJ(false,udg_ej)
call SetUnitInvulnerable(udg_Pi[8],false)
call SetUnitTimeScalePercent(udg_Pi[8],100)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_ej))]=false
if(Q27())then
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_Pi[8]),0)
else
call DoNothing()
endif
call SelectUnitForPlayerSingle(udg_Pi[8],GetOwningPlayer(udg_Pi[8]))
if(QZ7())then
call DisableTrigger(udg_pc)
else
call DoNothing()
endif
set udg_Ui[8]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1701341552,GetOwningPlayer(udg_Pi[8]),udg_Ui[8],bj_UNIT_FACING)
set udg_Hm[4]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_Hm[4])
call RemoveLocation(udg_Ui[8])
set udg_Ui[8]=null
call DisableTrigger(udg_sc)
set udg_Hm[4]=null
set udg_Pi[8]=null
set udg_ej=null
set udg_Yi[8]=0.00
set udg_Yi[9]=0.00
set udg_fj=false
set udg_gj=false
endfunction
function R47 takes nothing returns nothing
set udg_oc=CreateTrigger()
call TriggerAddCondition(udg_oc,Condition(function QR7))
call TriggerAddAction(udg_oc,function Q_7)
endfunction
function R77 takes nothing returns boolean
if(not(udg_zj<=16))then
return false
endif
return true
endfunction
function R87 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_ej)==true))then
return false
endif
if(not(udg_Ri>0))then
return false
endif
return true
endfunction
function R97 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Rd7 takes nothing returns boolean
if(not(udg_zj==16))then
return false
endif
return true
endfunction
function Re7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Rf7 takes nothing returns boolean
if(not(udg_zj==15))then
return false
endif
return true
endfunction
function Rg7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Rh7 takes nothing returns boolean
if(not(udg_zj==14))then
return false
endif
return true
endfunction
function Ri7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Rj7 takes nothing returns boolean
if(not(udg_zj==13))then
return false
endif
return true
endfunction
function Rk7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Rm7 takes nothing returns boolean
if(not(udg_zj==12))then
return false
endif
return true
endfunction
function Rn7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Ro7 takes nothing returns boolean
if(not(udg_zj==11))then
return false
endif
return true
endfunction
function Rp7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Rq7 takes nothing returns boolean
if(not(udg_zj==10))then
return false
endif
return true
endfunction
function Rr7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Rs7 takes nothing returns boolean
if(not(udg_zj==9))then
return false
endif
return true
endfunction
function Rt7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Ru7 takes nothing returns boolean
if(not(udg_zj==8))then
return false
endif
return true
endfunction
function Rv7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Rw7 takes nothing returns boolean
if(not(udg_zj==7))then
return false
endif
return true
endfunction
function Rx7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function Ry7 takes nothing returns boolean
if(not(udg_zj==6))then
return false
endif
return true
endfunction
function Rz7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function RA7 takes nothing returns boolean
if(not(udg_zj==5))then
return false
endif
return true
endfunction
function Ra7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function RB7 takes nothing returns boolean
if(not(udg_zj==4))then
return false
endif
return true
endfunction
function Rb7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function RC7 takes nothing returns boolean
if(not(udg_zj==3))then
return false
endif
return true
endfunction
function Rc7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function RD7 takes nothing returns boolean
if(not(udg_zj==2))then
return false
endif
return true
endfunction
function RE7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function R37 takes nothing returns boolean
if(not(udg_zj==1))then
return false
endif
return true
endfunction
function RF7 takes nothing returns boolean
if(not(udg_gj==false))then
return false
endif
return true
endfunction
function RG7 takes nothing returns boolean
return(udg_zj==13)
endfunction
function R67 takes nothing returns boolean
if(not R87())then
return false
endif
return true
endfunction
function RH7 takes nothing returns boolean
return(udg_aj==1)
endfunction
function Trig_Renzo_cast_Func004Func004Func001C takes nothing returns boolean
if((udg_N[1006]==6))then
return true
endif
if((udg_N[1006]==7))then
return true
endif
if((udg_N[1006]==11))then
return true
endif
if((udg_N[1006]==12))then
return true
endif
return false
endfunction
function RI7 takes nothing returns boolean
return(udg_aj==2)
endfunction
function Trig_Renzo_cast_Func004Func005Func001C takes nothing returns boolean
if((udg_N[1006]==6))then
return true
endif
if((udg_N[1006]==7))then
return true
endif
if((udg_N[1006]==11))then
return true
endif
if((udg_N[1006]==12))then
return true
endif
return false
endfunction
function Rl7 takes nothing returns boolean
return(udg_aj==3)
endfunction
function Trig_Renzo_cast_Func004Func006Func001C takes nothing returns boolean
if((udg_N[1006]==6))then
return true
endif
if((udg_N[1006]==7))then
return true
endif
if((udg_N[1006]==11))then
return true
endif
if((udg_N[1006]==12))then
return true
endif
return false
endfunction
function R17 takes nothing returns boolean
return(udg_aj==4)
endfunction
function Trig_Renzo_cast_Func004Func007Func001C takes nothing returns boolean
if((udg_N[1006]==6))then
return true
endif
if((udg_N[1006]==7))then
return true
endif
if((udg_N[1006]==11))then
return true
endif
if((udg_N[1006]==12))then
return true
endif
return false
endfunction
function RJ7 takes nothing returns boolean
return(udg_aj==5)
endfunction
function Trig_Renzo_cast_Func004Func008Func001C takes nothing returns boolean
if((udg_N[1006]==6))then
return true
endif
if((udg_N[1006]==7))then
return true
endif
if((udg_N[1006]==11))then
return true
endif
if((udg_N[1006]==12))then
return true
endif
return false
endfunction
function RK7 takes nothing returns boolean
return(udg_aj==6)
endfunction
function Trig_Renzo_cast_Func004Func009Func001C takes nothing returns boolean
if((udg_N[1006]==6))then
return true
endif
if((udg_N[1006]==7))then
return true
endif
if((udg_N[1006]==11))then
return true
endif
if((udg_N[1006]==12))then
return true
endif
return false
endfunction
function RL7 takes nothing returns boolean
return(udg_aj==7)
endfunction
function Trig_Renzo_cast_Func004Func010Func001C takes nothing returns boolean
if((udg_N[1006]==6))then
return true
endif
if((udg_N[1006]==7))then
return true
endif
if((udg_N[1006]==11))then
return true
endif
if((udg_N[1006]==12))then
return true
endif
return false
endfunction
function RM7 takes nothing returns boolean
if(not(udg_Ri<=0))then
return false
endif
return true
endfunction
function RN7 takes nothing returns boolean
if(not(udg_zj==1))then
return false
endif
return true
endfunction
function RO7 takes nothing returns boolean
if(not(udg_zj==16))then
return false
endif
return true
endfunction
function R07 takes nothing returns boolean
return(udg_aj>=7)
endfunction
function RP7 takes nothing returns nothing
set udg_Ui[9]=GetUnitLoc(udg_ej)
if(R77())then
set udg_zj=(udg_zj+1)
else
call DoNothing()
endif
if(R67())then
if(RF7())then
if(R37())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("|c00000000I|rIIIIIII|c006A6A6AIIII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function RE7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(RD7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("I|c00000000I|rIIIIII|c006A6A6AIIII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rc7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(RC7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("II|c00000000I|rIIIII|c006A6A6AIIII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rb7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(RB7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("III|c00000000I|rIIII|c006A6A6AIIII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Ra7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(RA7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIII|c00000000I|rIII|c006A6A6AIIII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rz7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Ry7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIII|c00000000I|rII|c006A6A6AIIII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rx7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Rw7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIII|c00000000I|rI|c006A6A6AIIII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rv7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Ru7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIIII|c00000000I|r|c006A6A6AIIII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rt7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Rs7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIIIII|c00000000I|r|c006A6A6AIII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rr7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Rq7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIIIII|c006A6A6AI|r|c00000000I|r|c006A6A6AII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rp7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Ro7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIIIII|c006A6A6AII|r|c00000000I|r|c006A6A6AI|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rn7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Rm7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIIIII|c006A6A6AIII|r|c00000000I|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rk7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Rj7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIIIII|c006A6A6AIIII|r|c00000000I|rII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Ri7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Rh7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIIIII|c006A6A6AIIII|rI|c00000000I|rI",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Rg7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Rf7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIIIII|c006A6A6AIIII|rII|c00000000I|r",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function Re7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
if(Rd7())then
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIIIII|c006A6A6AIIII|rIII",udg_Ui[9],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function R97)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
call DoNothing()
endif
if(RG7())then
call TriggerExecute(udg_qc)
else
call DoNothing()
endif
else
set udg_fj=false
endif
if(RN7())then
set udg_Ui[8]=PG(udg_Ui[9],140.00,AngleBetweenPoints(udg_Ui[9],GetUnitLoc(udg_Pi[8])))
set udg_aj=(udg_aj+1)
if(RH7())then
call SetUnitAnimation(udg_Pi[8],"Spell One")
else
call DoNothing()
endif
if(RI7())then
call SetUnitAnimation(udg_Pi[8],"Spell Three")
else
call DoNothing()
endif
if(Rl7())then
call SetUnitAnimation(udg_Pi[8],"Attack")
else
call DoNothing()
endif
if(R17())then
call SetUnitAnimation(udg_Pi[8],"Spell Throw")
else
call DoNothing()
endif
if(RJ7())then
call SetUnitAnimation(udg_Pi[8],"Spell Two")
else
call DoNothing()
endif
if(RK7())then
call SetUnitAnimation(udg_Pi[8],"Spell Three")
else
call DoNothing()
endif
if(RL7())then
call SetUnitAnimation(udg_Pi[8],"Spell One")
else
call DoNothing()
endif
call SetUnitPositionLocFacingLocBJ(udg_Pi[8],udg_Ui[8],udg_Ui[9])
call RemoveLocation(udg_Ui[8])
set udg_Ui[8]=null
set udg_Ri=(udg_Ri-2)
if(RM7())then
set udg_Pi[99]=udg_Pi[8]
call TriggerExecute(udg_fc)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(RO7())then
set udg_zj=0
set udg_gj=false
else
call DoNothing()
endif
call RemoveLocation(udg_Ui[9])
set udg_Ui[9]=null
if(R07())then
set udg_fj=false
else
call DoNothing()
endif
endfunction
function RQ7 takes nothing returns nothing
set udg_pc=CreateTrigger()
call DisableTrigger(udg_pc)
call TriggerRegisterTimerEventPeriodic(udg_pc,0.04)
call TriggerAddAction(udg_pc,function RP7)
endfunction
function RR7 takes nothing returns boolean
if(not(udg_gj==true))then
return false
endif
return true
endfunction
function RS7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_ej)==true))then
return false
endif
return true
endfunction
function R57 takes nothing returns nothing
if(RS7())then
if(RR7())then
call UnitDamageTargetBJ(udg_Pi[8],udg_ej,(udg_Yi[8]+udg_Yi[9]),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ((I2S(R2I((udg_Yi[8]+udg_Yi[9])))+"!!!!"),udg_ej,0,13.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.60)
else
call UnitDamageTargetBJ(udg_Pi[8],udg_ej,udg_Yi[8],ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ((I2S(R2I(udg_Yi[8]))+"!"),udg_ej,0,11.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.60)
endif
call AddSpecialEffectTargetUnitBJ("origin",udg_ej,"Abilities\\Spells\\Human\\Feedback\\SpellBreakerAttack.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endfunction
function RT7 takes nothing returns nothing
set udg_qc=CreateTrigger()
call TriggerAddAction(udg_qc,function R57)
endfunction
function RU7 takes nothing returns boolean
if(not(GetAttackedUnitBJ()==udg_ej))then
return false
endif
if(not(udg_ej!=null))then
return false
endif
return true
endfunction
function RV7 takes nothing returns boolean
if(not RU7())then
return false
endif
return true
endfunction
function RW7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetAttacker(),"stop")
endfunction
function RX7 takes nothing returns nothing
set udg_rc=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_rc,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_rc,Condition(function RV7))
call TriggerAddAction(udg_rc,function RW7)
endfunction
function RY7 takes nothing returns boolean
if(not(udg_fj==true))then
return false
endif
if(not(udg_gj==false))then
return false
endif
return true
endfunction
function R27 takes nothing returns boolean
if((udg_zj==9))then
return true
endif
if((udg_zj==10))then
return true
endif
if((udg_zj==11))then
return true
endif
if((udg_zj==12))then
return true
endif
return false
endfunction
function RZ7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_Pi[8]))
endfunction
function R_7 takes nothing returns boolean
if(not R27())then
return false
endif
return true
endfunction
function S47 takes nothing returns nothing
if(R_7())then
set udg_gj=true
set udg_Ui[10]=GetUnitLoc(udg_ej)
call DestroyTextTagBJ(udg_Aj)
call CreateTextTagLocBJ("IIIIIIII|c00000000IIII|rIII",udg_Ui[10],0,10,100,100,100,0)
set udg_Aj=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Aj,false)
call SetTextTagLifespanBJ(udg_Aj,0.70)
call ShowTextTagForceBJ(false,udg_Aj,t6(Condition(function RZ7)))
call ShowTextTagForceBJ(true,udg_Aj,m6(GetOwningPlayer(udg_Pi[8])))
call RemoveLocation(udg_Ui[10])
set udg_Ui[10]=null
else
call DoNothing()
endif
endfunction
function S77 takes nothing returns nothing
set udg_sc=CreateTrigger()
call DisableTrigger(udg_sc)
call TriggerAddCondition(udg_sc,Condition(function RY7))
call TriggerAddAction(udg_sc,function S47)
endfunction
function S87 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679436))then
return false
endif
return true
endfunction
function S97 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Sd7 takes nothing returns boolean
if(not(udg_z==false))then
return false
endif
if(not(udg_d4==false))then
return false
endif
if(not(udg_Q7==false))then
return false
endif
return true
endfunction
function Se7 takes nothing returns boolean
if(not Sd7())then
return false
endif
return true
endfunction
function Sf7 takes nothing returns boolean
return(IsTriggerEnabled(udg_uc)==false)
endfunction
function Sg7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_Hm[2])==true)
endfunction
function Sh7 takes nothing returns boolean
if(not(udg_z==false))then
return false
endif
if(not(udg_d4==false))then
return false
endif
if(not(udg_Q7==false))then
return false
endif
return true
endfunction
function Si7 takes nothing returns boolean
if(not Sh7())then
return false
endif
return true
endfunction
function Sj7 takes nothing returns nothing
set udg_Hm[1]=GetTriggerUnit()
set udg_Hm[2]=GetSpellTargetUnit()
set udg_Fm[1]=GetUnitLoc(udg_Hm[1])
set udg_Fm[2]=GetUnitLoc(udg_Hm[2])
set udg_Em=AngleBetweenPoints(udg_Fm[1],udg_Fm[2])
set udg_Dm[1]=1
set udg_Dm[2]=0
set udg_Dm[3]=0
set udg_Yi[16]=((40.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_Hm[1],false)))+(40.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_Hm[1],false))))
set udg_Yi[16]=(udg_Yi[16]+1500.00)
call PauseUnitBJ(true,udg_Hm[1])
call PauseUnitBJ(true,udg_Hm[2])
call SetUnitInvulnerable(udg_Hm[1],true)
call SetUnitInvulnerable(udg_Hm[2],true)
call SetUnitPathing(udg_Hm[1],false)
call SetUnitPathing(udg_Hm[2],false)
call SetUnitFacingToFaceUnitTimed(udg_Hm[1],udg_Hm[2],0)
call SetUnitFacingToFaceUnitTimed(udg_Hm[2],udg_Hm[1],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_Hm[1],"!Incantation!.mdx")
set udg_Gm[1]=GetLastCreatedEffectBJ()
call SetUnitAnimation(udg_Hm[1],"stand ready")
call CreateTextTagUnitBJ("Lionheart",udg_Hm[1],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function S97)))
if(Se7())then
call PauseTimerBJ(true,udg_q)
else
call PauseTimerBJ(true,udg_Li)
endif
call TriggerSleepAction(1.00)
call DestroyEffectBJ(udg_Gm[1])
call AddSpecialEffectTargetUnitBJ("weapon",udg_Hm[1],"BlueRibbonMissile.mdx")
set udg_Gm[1]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("weapon",udg_Hm[1],"!BlueGetsugaBlade!.mdx")
set udg_Gm[2]=GetLastCreatedEffectBJ()
call SetUnitLookAt(udg_Hm[1],"bone_head",udg_Hm[2],0,0,GetUnitFlyHeight(udg_Hm[2]))
call SetUnitLookAt(udg_Hm[2],"bone_chest",udg_Hm[1],0,0,GetUnitFlyHeight(udg_Hm[1]))
call SetUnitTimeScalePercent(udg_Hm[1],150.00)
call SetUnitAnimation(udg_Hm[1],"walk")
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[2])
set udg_Fm[2]=null
call EnableTrigger(udg_uc)
loop
exitwhen(Sf7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call SetUnitInvulnerable(udg_Hm[2],false)
call UnitDamageTargetBJ(udg_Hm[1],udg_Hm[2],udg_Yi[16],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ((I2S(R2I(udg_Yi[16]))+"!"),udg_Hm[2],0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call TriggerSleepAction(0.40)
call SetUnitInvulnerable(udg_Hm[1],false)
call SetUnitFlyHeightBJ(udg_Hm[1],0.00,0.00)
call SetUnitFlyHeightBJ(udg_Hm[2],0.00,0.00)
call PauseUnitBJ(false,udg_Hm[1])
if(Sg7())then
call PauseUnitBJ(false,udg_Hm[2])
else
call DoNothing()
endif
call ResetUnitLookAt(udg_Hm[1])
call ResetUnitLookAt(udg_Hm[2])
call DestroyEffectBJ(udg_Gm[1])
call DestroyEffectBJ(udg_Gm[2])
call SetUnitPathing(udg_Hm[1],true)
call SetUnitPathing(udg_Hm[2],true)
call SetUnitTimeScalePercent(udg_Hm[1],100)
call SelectUnitForPlayerSingle(udg_Hm[1],GetOwningPlayer(udg_Hm[1]))
call SelectUnitForPlayerSingle(udg_Hm[2],GetOwningPlayer(udg_Hm[2]))
set udg_Pi[99]=udg_Hm[1]
call TriggerExecute(udg_fc)
set udg_Dm[1]=1
set udg_Dm[2]=0
set udg_Dm[3]=0
set udg_Hm[1]=null
set udg_Hm[2]=null
if(Si7())then
call PauseTimerBJ(false,udg_q)
else
call PauseTimerBJ(false,udg_Li)
endif
endfunction
function Sk7 takes nothing returns nothing
set udg_tc=CreateTrigger()
call TriggerAddCondition(udg_tc,Condition(function S87))
call TriggerAddAction(udg_tc,function Sj7)
endfunction
function Sm7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_Fm[1],udg_Fm[2])<=150.00))then
return false
endif
return true
endfunction
function Sn7 takes nothing returns boolean
if(not(udg_Dm[1]==1))then
return false
endif
return true
endfunction
function So7 takes nothing returns boolean
if(not(udg_Dm[2]>=30))then
return false
endif
return true
endfunction
function Sp7 takes nothing returns boolean
if(not(udg_Dm[1]==2))then
return false
endif
return true
endfunction
function Sq7 takes nothing returns boolean
if(not(udg_Dm[2]>=10))then
return false
endif
return true
endfunction
function Sr7 takes nothing returns boolean
if(not(udg_Dm[1]==3))then
return false
endif
return true
endfunction
function Ss7 takes nothing returns boolean
if(not(udg_Dm[2]>=7))then
return false
endif
return true
endfunction
function St7 takes nothing returns boolean
if(not(udg_Dm[1]==4))then
return false
endif
return true
endfunction
function Su7 takes nothing returns boolean
if(not(udg_Dm[3]>=5))then
return false
endif
return true
endfunction
function Sv7 takes nothing returns boolean
if(not(udg_Dm[2]>=7))then
return false
endif
return true
endfunction
function Sw7 takes nothing returns boolean
if(not(udg_Dm[1]==5))then
return false
endif
return true
endfunction
function Sx7 takes nothing returns boolean
if(not(GetRandomReal(1.00,100.00)<=50.00))then
return false
endif
return true
endfunction
function Sy7 takes nothing returns boolean
if(not(GetRandomReal(1.00,100.00)<=50.00))then
return false
endif
return true
endfunction
function Sz7 takes nothing returns boolean
if(not(GetRandomReal(1.00,100.00)<=25.00))then
return false
endif
return true
endfunction
function SA7 takes nothing returns boolean
if(not(udg_Dm[3]>=10))then
return false
endif
return true
endfunction
function Sa7 takes nothing returns boolean
if(not(udg_Dm[2]>=5))then
return false
endif
return true
endfunction
function SB7 takes nothing returns boolean
if(not(udg_Dm[1]==6))then
return false
endif
return true
endfunction
function Sb7 takes nothing returns boolean
if(not(udg_Dm[2]>=40))then
return false
endif
return true
endfunction
function SC7 takes nothing returns boolean
if(not(udg_Dm[1]==7))then
return false
endif
return true
endfunction
function Sc7 takes nothing returns boolean
if(not(udg_Dm[2]>=10))then
return false
endif
return true
endfunction
function SD7 takes nothing returns boolean
if(not(udg_Dm[1]==8))then
return false
endif
return true
endfunction
function SE7 takes nothing returns boolean
if(not(udg_Dm[2]>=8))then
return false
endif
return true
endfunction
function S37 takes nothing returns boolean
if(not(udg_Dm[1]==9))then
return false
endif
return true
endfunction
function SF7 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function SG7 takes nothing returns nothing
if(SF7())then
call SelectUnitRemoveForPlayer(udg_Hm[1],GetOwningPlayer(udg_Hm[1]))
call SelectUnitRemoveForPlayer(udg_Hm[2],GetOwningPlayer(udg_Hm[2]))
if(Sn7())then
set udg_Fm[2]=GetUnitLoc(udg_Hm[2])
set udg_Fm[3]=GetUnitLoc(udg_Hm[1])
set udg_Fm[1]=PG(udg_Fm[3],50.00,udg_Em)
call SetUnitPositionLocFacingLocBJ(udg_Hm[1],udg_Fm[1],udg_Fm[2])
if(Sm7())then
call UnitAddAbilityBJ(1098015094,udg_Hm[1])
call UnitRemoveAbilityBJ(1098015094,udg_Hm[1])
call SetUnitUserData(udg_Hm[1],0)
call UnitAddAbilityBJ(1098015094,udg_Hm[2])
call UnitRemoveAbilityBJ(1098015094,udg_Hm[2])
call SetUnitUserData(udg_Hm[2],0)
call SetUnitFlyHeightBJ(udg_Hm[1],500.00,600.00)
call SetUnitFlyHeightBJ(udg_Hm[2],560.00,2000.00)
call SetUnitTimeScalePercent(udg_Hm[1],150.00)
call SetUnitTimeScalePercent(udg_Hm[2],100.00)
call SetUnitFacingToFaceUnitTimed(udg_Hm[1],udg_Hm[2],0)
call SetUnitFacingToFaceUnitTimed(udg_Hm[2],udg_Hm[1],0)
call SetUnitAnimation(udg_Hm[1],"spell three")
call SetUnitAnimation(udg_Hm[2],"stand hit critical")
call AddSpecialEffectTargetUnitBJ("chest",udg_Hm[2],"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Dm[1]=2
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[2])
set udg_Fm[2]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
else
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[2])
set udg_Fm[2]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
endif
else
call DoNothing()
endif
if(Sp7())then
set udg_Fm[1]=GetUnitLoc(udg_Hm[1])
set udg_Fm[2]=GetUnitLoc(udg_Hm[2])
call SetUnitPositionLocFacingLocBJ(udg_Hm[1],udg_Fm[1],udg_Fm[2])
call SetUnitPositionLocFacingLocBJ(udg_Hm[2],udg_Fm[2],udg_Fm[1])
set udg_Dm[2]=(udg_Dm[2]+1)
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[2])
set udg_Fm[2]=null
if(So7())then
call SetUnitFlyHeightBJ(udg_Hm[1],450.00,2000.00)
call SetUnitFlyHeightBJ(udg_Hm[2],400.00,1500.00)
call SetUnitTimeScalePercent(udg_Hm[1],200.00)
call SetUnitTimeScalePercent(udg_Hm[2],100.00)
call SetUnitFacingToFaceUnitTimed(udg_Hm[1],udg_Hm[2],0)
call SetUnitFacingToFaceUnitTimed(udg_Hm[2],udg_Hm[1],0)
call SetUnitAnimation(udg_Hm[1],"attack")
call SetUnitAnimation(udg_Hm[2],"stand hit critical")
call AddSpecialEffectTargetUnitBJ("chest",udg_Hm[2],"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Dm[1]=3
set udg_Dm[2]=0
set udg_Em=GetUnitFacing(udg_Hm[1])
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Sr7())then
set udg_Fm[3]=GetUnitLoc(udg_Hm[1])
set udg_Fm[4]=GetUnitLoc(udg_Hm[2])
set udg_Fm[2]=PG(udg_Fm[4],5.00,(udg_Em+45.00))
set udg_Fm[1]=PG(udg_Fm[2],120.00,AngleBetweenPoints(udg_Fm[4],udg_Fm[3]))
call SetUnitPositionLocFacingLocBJ(udg_Hm[1],udg_Fm[1],udg_Fm[2])
call SetUnitPositionLocFacingLocBJ(udg_Hm[2],udg_Fm[2],udg_Fm[1])
set udg_Dm[2]=(udg_Dm[2]+1)
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[2])
set udg_Fm[2]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
call RemoveLocation(udg_Fm[4])
set udg_Fm[4]=null
if(Sq7())then
call SetUnitFlyHeightBJ(udg_Hm[1],650.00,1500.00)
call SetUnitFlyHeightBJ(udg_Hm[2],700.00,2000.00)
call SetUnitTimeScalePercent(udg_Hm[1],200.00)
call SetUnitTimeScalePercent(udg_Hm[2],100.00)
call SetUnitFacingToFaceUnitTimed(udg_Hm[1],udg_Hm[2],0)
call SetUnitFacingToFaceUnitTimed(udg_Hm[2],udg_Hm[1],0)
call SetUnitAnimation(udg_Hm[1],"spell one")
call SetUnitAnimation(udg_Hm[2],"stand hit critical")
call AddSpecialEffectTargetUnitBJ("chest",udg_Hm[2],"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Dm[1]=4
set udg_Dm[2]=0
set udg_Em=(udg_Em-90.00)
set udg_Fm[3]=GetUnitLoc(udg_Hm[2])
set udg_Fm[1]=PG(udg_Fm[3],120.00,(udg_Em+180.00))
call SetUnitPositionLocFacingBJ(udg_Hm[1],udg_Fm[1],udg_Em)
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
else
call DoNothing()
endif
else
call DoNothing()
endif
if(St7())then
set udg_Fm[3]=GetUnitLoc(udg_Hm[1])
set udg_Fm[4]=GetUnitLoc(udg_Hm[2])
set udg_Fm[2]=PG(udg_Fm[4],20.00,udg_Em)
set udg_Fm[1]=PG(udg_Fm[2],120.00,AngleBetweenPoints(udg_Fm[4],udg_Fm[3]))
call SetUnitPositionLocFacingLocBJ(udg_Hm[1],udg_Fm[1],udg_Fm[2])
call SetUnitPositionLocFacingLocBJ(udg_Hm[2],udg_Fm[2],udg_Fm[1])
set udg_Dm[2]=(udg_Dm[2]+1)
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[2])
set udg_Fm[2]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
call RemoveLocation(udg_Fm[4])
set udg_Fm[4]=null
if(Ss7())then
call SetUnitFlyHeightBJ(udg_Hm[1],500.00,1500.00)
call SetUnitFlyHeightBJ(udg_Hm[2],500.00,2000.00)
call SetUnitTimeScalePercent(udg_Hm[1],200.00)
call SetUnitTimeScalePercent(udg_Hm[2],100.00)
call SetUnitFacingToFaceUnitTimed(udg_Hm[1],udg_Hm[2],0)
call SetUnitFacingToFaceUnitTimed(udg_Hm[2],udg_Hm[1],0)
call SetUnitAnimation(udg_Hm[1],"spell throw")
call SetUnitAnimation(udg_Hm[2],"stand hit critical")
call AddSpecialEffectTargetUnitBJ("chest",udg_Hm[2],"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Dm[1]=5
set udg_Dm[2]=0
set udg_Em=(udg_Em-90.00)
set udg_Fm[3]=GetUnitLoc(udg_Hm[2])
set udg_Fm[1]=PG(udg_Fm[3],120.00,(udg_Em+180.00))
call SetUnitPositionLocFacingBJ(udg_Hm[1],udg_Fm[1],udg_Em)
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Sw7())then
set udg_Fm[3]=GetUnitLoc(udg_Hm[1])
set udg_Fm[4]=GetUnitLoc(udg_Hm[2])
set udg_Fm[2]=PG(udg_Fm[4],20.00,udg_Em)
set udg_Fm[1]=PG(udg_Fm[2],120.00,AngleBetweenPoints(udg_Fm[4],udg_Fm[3]))
call SetUnitPositionLocFacingLocBJ(udg_Hm[1],udg_Fm[1],udg_Fm[2])
call SetUnitPositionLocFacingLocBJ(udg_Hm[2],udg_Fm[2],udg_Fm[1])
set udg_Dm[2]=(udg_Dm[2]+1)
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[2])
set udg_Fm[2]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
call RemoveLocation(udg_Fm[4])
set udg_Fm[4]=null
if(Sv7())then
call SetUnitFlyHeightBJ(udg_Hm[1],500.00,1500.00)
call SetUnitFlyHeightBJ(udg_Hm[2],500.00,2000.00)
call SetUnitTimeScalePercent(udg_Hm[1],200.00)
call SetUnitTimeScalePercent(udg_Hm[2],100.00)
call SetUnitFacingToFaceUnitTimed(udg_Hm[1],udg_Hm[2],0)
call SetUnitFacingToFaceUnitTimed(udg_Hm[2],udg_Hm[1],0)
call SetUnitAnimation(udg_Hm[1],"spell throw")
call SetUnitAnimation(udg_Hm[2],"stand hit critical")
call AddSpecialEffectTargetUnitBJ("chest",udg_Hm[2],"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Dm[3]=(udg_Dm[3]+1)
set udg_Dm[2]=0
set udg_Em=(udg_Em-90.00)
set udg_Fm[3]=GetUnitLoc(udg_Hm[2])
set udg_Fm[1]=PG(udg_Fm[3],120.00,(udg_Em+180.00))
call SetUnitPositionLocFacingBJ(udg_Hm[1],udg_Fm[1],udg_Em)
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
set udg_Dm[1]=3
if(Su7())then
set udg_Dm[1]=6
set udg_Dm[2]=0
set udg_Dm[3]=0
else
call DoNothing()
endif
else
call DoNothing()
endif
else
call DoNothing()
endif
if(SB7())then
set udg_Fm[3]=GetUnitLoc(udg_Hm[1])
set udg_Fm[4]=GetUnitLoc(udg_Hm[2])
set udg_Fm[2]=PG(udg_Fm[4],2.00,(udg_Em+90.00))
set udg_Fm[1]=PG(udg_Fm[2],-120.00,(udg_Em+90.00))
call SetUnitPositionLocFacingLocBJ(udg_Hm[1],udg_Fm[1],udg_Fm[2])
call SetUnitPositionLocFacingLocBJ(udg_Hm[2],udg_Fm[2],udg_Fm[1])
set udg_Dm[2]=(udg_Dm[2]+1)
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[2])
set udg_Fm[2]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
call RemoveLocation(udg_Fm[4])
set udg_Fm[4]=null
if(Sa7())then
call SetUnitTimeScalePercent(udg_Hm[1],300.00)
call SetUnitTimeScalePercent(udg_Hm[2],100.00)
call SetUnitFacingToFaceUnitTimed(udg_Hm[1],udg_Hm[2],0)
call SetUnitFacingToFaceUnitTimed(udg_Hm[2],udg_Hm[1],0)
if(Sz7())then
call SetUnitAnimation(udg_Hm[1],"spell throw")
else
if(Sy7())then
call SetUnitAnimation(udg_Hm[1],"spell three")
else
if(Sx7())then
call SetUnitAnimation(udg_Hm[1],"spell one")
else
call SetUnitAnimation(udg_Hm[1],"attack")
endif
endif
endif
call SetUnitAnimation(udg_Hm[2],"stand hit critical")
call AddSpecialEffectTargetUnitBJ("chest",udg_Hm[2],"Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Dm[3]=(udg_Dm[3]+1)
set udg_Dm[2]=0
if(SA7())then
set udg_Dm[1]=7
call SetUnitTimeScalePercent(udg_Hm[1],7.00)
call SetUnitAnimation(udg_Hm[1],"spell three")
call SetUnitFlyHeightBJ(udg_Hm[1],720.00,500.00)
call AddSpecialEffectTargetUnitBJ("weapon",udg_Hm[1],"Abilities\\Spells\\Human\\Invisibility\\InvisibilityTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
else
call DoNothing()
endif
else
call DoNothing()
endif
if(SC7())then
set udg_Fm[3]=GetUnitLoc(udg_Hm[1])
set udg_Fm[2]=GetUnitLoc(udg_Hm[2])
set udg_Fm[1]=PG(udg_Fm[3],-4.00,(udg_Em+90.00))
call SetUnitPositionLocFacingLocBJ(udg_Hm[1],udg_Fm[1],udg_Fm[2])
set udg_Dm[2]=(udg_Dm[2]+1)
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[2])
set udg_Fm[2]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
if(Sb7())then
call SetUnitTimeScalePercent(udg_Hm[1],100.00)
call SetUnitTimeScalePercent(udg_Hm[2],100.00)
call SetUnitFlyHeightBJ(udg_Hm[1],0.00,2000.00)
call ResetUnitLookAt(udg_Hm[1])
call ResetUnitLookAt(udg_Hm[2])
call SetUnitFacingToFaceUnitTimed(udg_Hm[1],udg_Hm[2],0)
call SetUnitFacingToFaceUnitTimed(udg_Hm[2],udg_Hm[1],0)
set udg_Dm[1]=8
set udg_Dm[2]=0
else
call DoNothing()
endif
else
call DoNothing()
endif
if(SD7())then
set udg_Fm[3]=GetUnitLoc(udg_Hm[1])
set udg_Fm[1]=PG(udg_Fm[3],50.00,(udg_Em+90.00))
call SetUnitPositionLocFacingBJ(udg_Hm[1],udg_Fm[1],(udg_Em+90.00))
set udg_Dm[2]=(udg_Dm[2]+1)
call RemoveLocation(udg_Fm[1])
set udg_Fm[1]=null
call RemoveLocation(udg_Fm[3])
set udg_Fm[3]=null
if(Sc7())then
call AddSpecialEffectTargetUnitBJ("chest",udg_Hm[2],"BlueExplosion.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitAnimation(udg_Hm[2],"stand hit critical")
set udg_Dm[1]=0
call TriggerSleepAction(0.50)
call SetUnitFlyHeightBJ(udg_Hm[2],0.00,1500.00)
set udg_Dm[1]=9
set udg_Dm[2]=0
else
call DoNothing()
endif
else
call DoNothing()
endif
if(S37())then
set udg_Fm[2]=GetUnitLoc(udg_Hm[2])
call SetUnitPositionLoc(udg_Hm[2],udg_Fm[2])
set udg_Dm[2]=(udg_Dm[2]+1)
if(SE7())then
call AddSpecialEffectLocBJ(udg_Fm[2],"NewDirtEXNofire.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Dm[1]=0
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call RemoveLocation(udg_Fm[2])
set udg_Fm[2]=null
else
call DoNothing()
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function S67 takes nothing returns nothing
set udg_uc=CreateTrigger()
call DisableTrigger(udg_uc)
call TriggerRegisterTimerEventPeriodic(udg_uc,0.03)
call TriggerAddAction(udg_uc,function SG7)
endfunction
function SH7 takes nothing returns boolean
if(not(udg_rm==null))then
return false
endif
return true
endfunction
function SI7 takes nothing returns nothing
if(SH7())then
call DestroyTrigger(udg_wc)
call DestroyTrigger(udg_xc)
call DestroyTrigger(udg_yc)
call DestroyTrigger(udg_zc)
call DestroyTrigger(udg_Ac)
call DestroyTrigger(udg_ac)
call DestroyTrigger(udg_Bc)
call DestroyTrigger(udg_bc)
call DestroyTrigger(udg_Cc)
call DestroyTrigger(udg_cc)
else
call TriggerRegisterUnitEvent(udg_wc,udg_rm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_yc,udg_rm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_zc,udg_rm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Ac,udg_rm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Bc,udg_rm,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(udg_bc,udg_rm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Cc,udg_rm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function Sl7 takes nothing returns nothing
set udg_vc=CreateTrigger()
call TriggerAddAction(udg_vc,function SI7)
endfunction
function S17 takes nothing returns boolean
if((GetSpellAbilityId()==1093677128))then
return true
endif
if((GetSpellAbilityId()==1093677133))then
return true
endif
if((GetSpellAbilityId()==1093681740))then
return true
endif
if((GetSpellAbilityId()==1093677137))then
return true
endif
return false
endfunction
function SJ7 takes nothing returns boolean
if(not S17())then
return false
endif
return true
endfunction
function SK7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function SL7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function SM7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677128))then
return true
endif
if((GetSpellAbilityId()==1093677133))then
return true
endif
if((GetSpellAbilityId()==1093681740))then
return true
endif
return false
endfunction
function SN7 takes nothing returns boolean
if(not SM7())then
return false
endif
return true
endfunction
function SO7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677137))then
return false
endif
return true
endfunction
function S07 takes nothing returns nothing
if(SO7())then
call CreateTextTagUnitBJ("GEAR 3RD...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function SK7)))
else
if(SN7())then
call CreateTextTagUnitBJ("Gomu gomu no...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function SL7)))
else
call DoNothing()
endif
endif
endfunction
function SP7 takes nothing returns nothing
set udg_wc=CreateTrigger()
call TriggerAddCondition(udg_wc,Condition(function SJ7))
call TriggerAddAction(udg_wc,function S07)
endfunction
function SQ7 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function SR7 takes nothing returns nothing
call SetUnitLifeBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+(0.15*GetEventDamage())))
endfunction
function SS7 takes nothing returns nothing
set udg_xc=CreateTrigger()
call DisableTrigger(udg_xc)
call TriggerAddCondition(udg_xc,Condition(function SQ7))
call TriggerAddAction(udg_xc,function SR7)
endfunction
function S57 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677128))then
return false
endif
return true
endfunction
function ST7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[9]))]==true))then
return false
endif
return true
endfunction
function SU7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function SV7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function SW7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function SX7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function SY7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[9]))==true)
endfunction
function S27 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function SZ7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function S_7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function T47 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function T77 takes nothing returns boolean
return GetBooleanAnd(S_7(),T47())
endfunction
function T87 takes nothing returns boolean
return GetBooleanAnd(SZ7(),T77())
endfunction
function T97 takes nothing returns boolean
return GetBooleanAnd(S27(),T87())
endfunction
function Td7 takes nothing returns boolean
return GetBooleanAnd(SY7(),T97())
endfunction
function Te7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[9],GetEnumUnit(),(150.00+(75.00*I2R(GetUnitAbilityLevelSwapped(1093677135,udg_A[9])))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endfunction
function Tf7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[9]))]==true))then
return false
endif
return true
endfunction
function Tg7 takes nothing returns nothing
set udg_A[9]=GetTriggerUnit()
set udg_B[7]=GetSpellTargetLoc()
set udg_dg[1]=GetUnitLoc(udg_A[9])
set udg_c[4]=AngleBetweenPoints(udg_dg[1],udg_B[7])
call AddSpecialEffectTargetUnitBJ("origin",udg_A[9],"Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl")
set udg_P[1]=GetLastCreatedEffectBJ()
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[9]))]=false
if(ST7())then
call SetUnitVertexColorBJ(udg_A[9],100,75.00,75.00,0)
else
call DoNothing()
endif
call TriggerSleepAction(0.01)
call SetUnitPositionLocFacingBJ(udg_A[9],udg_B[7],udg_c[4])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[9]),udg_B[7],bj_UNIT_FACING)
set udg_Zf[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678419,udg_Zf[1])
call SetUnitAbilityLevelSwapped(1093678419,udg_Zf[1],GetUnitAbilityLevelSwapped(1093677128,udg_A[9]))
call IssueImmediateOrderBJ(udg_Zf[1],"stomp")
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[1])
set udg_Zf[1]=null
if(Tf7())then
call CreateTextTagUnitBJ("Jet Rocket",udg_A[9],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function SW7)))
call AddSpecialEffectLocBJ(udg_dg[1],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[7],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(300.00,udg_dg[1],function SX7)
set udg_G[2]=e6(320.00,udg_dg[1],Condition(function Td7))
call ForGroupBJ(udg_G[2],function Te7)
set udg_Km[44]=GetUnitLoc(udg_A[9])
call PlaySoundAtPointBJ(udg_Oq,100,udg_Km[44],0)
call RemoveLocation(udg_Km[44])
set udg_Km[44]=null
call TriggerSleepAction(0.50)
call DestroyEffectBJ(udg_P[1])
call RemoveLocation(udg_B[7])
set udg_B[7]=null
call DestroyGroup(udg_G[2])
set udg_G[2]=null
set udg_A[9]=null
set udg_c[4]=0.00
else
call CreateTextTagUnitBJ("Rocket",udg_A[9],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function SU7)))
call AddSpecialEffectLocBJ(udg_dg[1],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(300.00,udg_dg[1],function SV7)
set udg_Km[44]=GetUnitLoc(udg_A[9])
call PlaySoundAtPointBJ(udg_tr,100,udg_Km[44],0)
call RemoveLocation(udg_Km[44])
set udg_Km[44]=null
call TriggerSleepAction(0.50)
call DestroyEffectBJ(udg_P[1])
call RemoveLocation(udg_B[7])
set udg_B[7]=null
set udg_A[9]=null
set udg_c[4]=0.00
endif
call RemoveLocation(udg_dg[1])
set udg_dg[1]=null
endfunction
function Th7 takes nothing returns nothing
set udg_yc=CreateTrigger()
call TriggerAddCondition(udg_yc,Condition(function S57))
call TriggerAddAction(udg_yc,function Tg7)
endfunction
function Ti7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677133))then
return false
endif
return true
endfunction
function Tj7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Tk7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Tm7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5]))==true))then
return true
endif
return false
endfunction
function Tn7 takes nothing returns boolean
if(not(IsUnitPausedBJ(udg_a[2])==false))then
return false
endif
if(not(MG(udg_a[2],UNIT_TYPE_ANCIENT)==false))then
return false
endif
if(not Tm7())then
return false
endif
return true
endfunction
function To7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Tp7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5]))==true))then
return true
endif
return false
endfunction
function Tq7 takes nothing returns boolean
if(not(IsUnitPausedBJ(udg_a[2])==false))then
return false
endif
if(not(MG(udg_a[2],UNIT_TYPE_ANCIENT)==false))then
return false
endif
if(not Tp7())then
return false
endif
return true
endfunction
function Tr7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Ts7 takes nothing returns boolean
if(not Tq7())then
return false
endif
return true
endfunction
function Tt7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[10]))]==true))then
return false
endif
return true
endfunction
function Tu7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[10]))]==true))then
return false
endif
return true
endfunction
function Tv7 takes nothing returns nothing
set udg_A[10]=GetTriggerUnit()
set udg_a[2]=GetSpellTargetUnit()
set udg_dg[2]=GetUnitLoc(udg_A[10])
set udg_c[5]=AngleBetweenPoints(udg_dg[2],GetUnitLoc(udg_a[2]))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[10]),udg_dg[2],bj_UNIT_FACING)
set udg_Zf[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677138,udg_Zf[2])
set udg_dg[3]=PG(GetUnitLoc(udg_A[10]),80.00,udg_c[5])
call IssuePointOrderLocBJ(udg_Zf[2],"shockwave",udg_dg[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[2])
set udg_Zf[2]=null
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[10]))]=false
call RemoveLocation(udg_dg[3])
set udg_dg[3]=null
if(Tt7())then
call CreateTextTagUnitBJ("Jet Bazooka",udg_A[10],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function To7)))
call UnitDamageTargetBJ(udg_A[10],udg_a[2],(125.00+(115.00*I2R(GetUnitAbilityLevelSwapped(1093677135,udg_A[10])))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
if(Ts7())then
set udg_dg[3]=PG(GetUnitLoc(udg_a[2]),300.00,udg_c[5])
call SetUnitPositionLocFacingLocBJ(udg_a[2],udg_dg[3],udg_dg[2])
call IssueImmediateOrderBJ(udg_a[2],"stop")
call SetUnitFacingToFaceUnitTimed(udg_A[10],udg_a[2],0)
call RemoveLocation(udg_dg[3])
set udg_dg[3]=null
set udg_dg[3]=GetUnitLoc(udg_a[2])
call UG(250.00,udg_dg[3],function Tr7)
else
call DoNothing()
endif
set udg_Km[45]=GetUnitLoc(udg_A[10])
call PlaySoundAtPointBJ(udg_Lq,100,udg_Km[45],0)
call RemoveLocation(udg_Km[45])
set udg_Km[45]=null
else
call CreateTextTagUnitBJ("Bazooka",udg_A[10],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Tj7)))
if(Tn7())then
set udg_dg[3]=PG(GetUnitLoc(udg_a[2]),200.00,udg_c[5])
call SetUnitPositionLocFacingLocBJ(udg_a[2],udg_dg[3],udg_dg[2])
call IssueImmediateOrderBJ(udg_a[2],"stop")
call SetUnitFacingToFaceUnitTimed(udg_A[10],udg_a[2],0)
call RemoveLocation(udg_dg[3])
set udg_dg[3]=null
set udg_dg[3]=GetUnitLoc(udg_a[2])
call UG(250.00,udg_dg[3],function Tk7)
else
call DoNothing()
endif
set udg_Km[45]=GetUnitLoc(udg_A[10])
call PlaySoundAtPointBJ(udg_tp,100,udg_Km[45],0)
call RemoveLocation(udg_Km[45])
set udg_Km[45]=null
endif
call AddSpecialEffectTargetUnitBJ("origin",udg_a[2],"war3mapImported\\explosion.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(Tu7())then
call SetUnitVertexColorBJ(udg_A[10],100,75.00,75.00,0)
else
call DoNothing()
endif
set udg_A[10]=null
set udg_a[2]=null
set udg_c[5]=0.00
call RemoveLocation(udg_dg[2])
set udg_dg[2]=null
call RemoveLocation(udg_dg[3])
set udg_dg[3]=null
endfunction
function Tw7 takes nothing returns nothing
set udg_zc=CreateTrigger()
call TriggerAddCondition(udg_zc,Condition(function Ti7))
call TriggerAddAction(udg_zc,function Tv7)
endfunction
function Tx7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681740))then
return false
endif
return true
endfunction
function Ty7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[12]))]==true))then
return false
endif
return true
endfunction
function Tz7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function TA7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[12])==true))then
return false
endif
return true
endfunction
function Ta7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function TB7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[12])==true))then
return false
endif
return true
endfunction
function Tb7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[12]))]==true))then
return false
endif
return true
endfunction
function TC7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[12]))]==true))then
return false
endif
return true
endfunction
function Tc7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[12]))==true)
endfunction
function TD7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function TE7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function T37 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function TF7 takes nothing returns boolean
return GetBooleanAnd(TE7(),T37())
endfunction
function TG7 takes nothing returns boolean
return GetBooleanAnd(TD7(),TF7())
endfunction
function T67 takes nothing returns boolean
return GetBooleanAnd(Tc7(),TG7())
endfunction
function TH7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[12],GetEnumUnit(),(2.00*(I2R(GetHeroLevel(udg_A[12]))*I2R(GetUnitAbilityLevelSwapped(1093681740,udg_A[12])))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endfunction
function TI7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[12]))]==true))then
return false
endif
return true
endfunction
function Tl7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[12]))]==true))then
return false
endif
return true
endfunction
function T17 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function TJ7 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[12],1110454354)==true)
endfunction
function TK7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[12])==true))then
return false
endif
return true
endfunction
function TL7 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_eg[2])==false)
endfunction
function TM7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function TN7 takes nothing returns boolean
if(not(udg_A[12]!=null))then
return false
endif
return true
endfunction
function TO7 takes nothing returns nothing
set udg_A[12]=GetTriggerUnit()
set udg_c[6]=GetUnitFacing(udg_A[12])
set udg_B[8]=PG(GetUnitLoc(udg_A[12]),200.00,udg_c[6])
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[12]))]=true
if(Ty7())then
call SetUnitVertexColorBJ(udg_A[12],100,75.00,75.00,0)
else
call DoNothing()
endif
if(Tb7())then
if(TB7())then
call CreateTextTagUnitBJ("Jet Gatling",udg_A[12],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Ta7)))
call SetUnitTimeScalePercent(udg_A[12],400.00)
set udg_Km[46]=GetUnitLoc(udg_A[12])
call PlaySoundAtPointBJ(udg_Mq,100,udg_Km[46],0)
call RemoveLocation(udg_Km[46])
set udg_Km[46]=null
else
call DoNothing()
endif
else
if(TA7())then
call CreateTextTagUnitBJ("Gatling",udg_A[12],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Tz7)))
call SetUnitTimeScalePercent(udg_A[12],300.00)
set udg_Km[46]=GetUnitLoc(udg_A[12])
call PlaySoundAtPointBJ(udg_eq,100,udg_Km[46],0)
call RemoveLocation(udg_Km[46])
set udg_Km[46]=null
else
call DoNothing()
endif
endif
set udg_dg[4]=GetUnitLoc(udg_A[12])
set udg_Cj[21]=1
loop
exitwhen udg_Cj[21]>5
call CreateNUnitsAtLoc(1,1747988545,GetOwningPlayer(udg_A[12]),udg_dg[4],GetRandomReal((udg_c[6]-25.00),(udg_c[6]+25.00)))
set udg_Zf[3]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(1.50,1112820806,udg_Zf[3])
if(TC7())then
call SetUnitVertexColorBJ(udg_Zf[3],100,75.00,75.00,0)
else
call DoNothing()
endif
set udg_Zf[3]=null
set udg_Cj[21]=udg_Cj[21]+1
endloop
call EnableTrigger(udg_ac)
set udg_b[6]=1
loop
exitwhen udg_b[6]>25
if(TK7())then
if(TI7())then
set udg_dg[70]=PG(udg_B[8],GetRandomReal(-40.00,50.00),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(udg_dg[70],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[70])
set udg_dg[70]=null
set udg_G[3]=e6(350.00,udg_B[8],Condition(function T67))
call ForGroupBJ(udg_G[3],function TH7)
call DestroyGroup(udg_G[3])
set udg_G[3]=null
else
call DoNothing()
endif
set udg_Cj[20]=1
loop
exitwhen udg_Cj[20]>5
call CreateNUnitsAtLoc(1,1747988545,GetOwningPlayer(udg_A[12]),udg_dg[4],GetRandomReal((udg_c[6]-25.00),(udg_c[6]+25.00)))
set udg_Zf[3]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(1.50,1112820806,udg_Zf[3])
if(Tl7())then
call SetUnitVertexColorBJ(udg_Zf[3],100,75.00,75.00,100.00)
else
call SetUnitVertexColorBJ(udg_Zf[3],100,100.00,100.00,100.00)
endif
set udg_Zf[3]=null
set udg_Cj[20]=udg_Cj[20]+1
endloop
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[12]),udg_dg[4],udg_c[6])
set udg_Zf[3]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677138,udg_Zf[3])
set udg_dg[5]=PG(udg_dg[4],550.00,udg_c[6])
call IssuePointOrderLocBJ(udg_Zf[3],"shockwave",udg_dg[5])
call UnitApplyTimedLifeBJ(0.50,1112820806,udg_Zf[3])
set udg_Zf[3]=null
call RemoveLocation(udg_dg[5])
set udg_dg[5]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[12]),udg_B[8],bj_UNIT_FACING)
set udg_Zf[3]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677905,udg_Zf[3])
call SetUnitAbilityLevelSwapped(1093677905,udg_Zf[3],(5+GetUnitAbilityLevelSwapped(1093681740,udg_A[12])))
call IssueImmediateOrderBJ(udg_Zf[3],"stomp")
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[3])
set udg_Zf[3]=null
call TriggerSleepAction(0.15)
call UG(300.00,udg_B[8],function T17)
if(TJ7())then
call UnitRemoveBuffBJ(1110454354,udg_A[12])
else
call DoNothing()
endif
else
call IssueImmediateOrderBJ(udg_A[12],"stop")
endif
set udg_b[6]=udg_b[6]+1
endloop
call DisableTrigger(udg_ac)
call RemoveLocation(udg_dg[4])
set udg_dg[4]=null
if(TN7())then
call IssueImmediateOrderBJ(udg_A[12],"stop")
call SetUnitTimeScalePercent(udg_A[12],100.00)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[12]))]=false
set udg_A[12]=null
set udg_c[6]=0.00
call RemoveLocation(udg_B[8])
set udg_B[8]=null
set udg_eg[2]=g6(1747988545)
if(TL7())then
call ForGroupBJ(udg_eg[2],function TM7)
else
call DoNothing()
endif
call DestroyGroup(udg_eg[2])
set udg_eg[2]=null
else
call DoNothing()
endif
endfunction
function T07 takes nothing returns nothing
set udg_Ac=CreateTrigger()
call TriggerAddCondition(udg_Ac,Condition(function Tx7))
call TriggerAddAction(udg_Ac,function TO7)
endfunction
function TP7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[12]))]==true))then
return false
endif
return true
endfunction
function TQ7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_dg[4],udg_dg[6734])<=360.00))then
return false
endif
return true
endfunction
function TR7 takes nothing returns boolean
if(not(MG(GetEnumUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(GetEnumUnit()!=udg_Vj))then
return false
endif
if(not(GetEnumUnit()!=udg_Wj))then
return false
endif
return true
endfunction
function TS7 takes nothing returns boolean
if(not TR7())then
return false
endif
return true
endfunction
function T57 takes nothing returns nothing
if(TS7())then
if(TP7())then
call SetUnitVertexColorBJ(GetEnumUnit(),100,75.00,75.00,0.00)
else
call SetUnitVertexColorBJ(GetEnumUnit(),100,100.00,100.00,0.00)
endif
set udg_dg[6734]=PG(GetUnitLoc(GetEnumUnit()),16.00,GetUnitFacing(GetEnumUnit()))
if(TQ7())then
call SetUnitPositionLoc(GetEnumUnit(),udg_dg[6734])
else
call RemoveUnit(GetEnumUnit())
endif
call RemoveLocation(udg_dg[6734])
set udg_dg[6734]=null
else
call DoNothing()
endif
endfunction
function TT7 takes nothing returns nothing
set udg_eg[2]=g6(1747988545)
call ForGroupBJ(udg_eg[2],function T57)
call DestroyGroup(udg_eg[2])
set udg_eg[2]=null
endfunction
function TU7 takes nothing returns nothing
set udg_ac=CreateTrigger()
call DisableTrigger(udg_ac)
call TriggerRegisterTimerEventPeriodic(udg_ac,0.03)
call TriggerAddAction(udg_ac,function TT7)
endfunction
function TV7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681740))then
return false
endif
return true
endfunction
function TW7 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_eg[2])==false)
endfunction
function TX7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function TY7 takes nothing returns boolean
if(not(udg_A[12]!=null))then
return false
endif
return true
endfunction
function T27 takes nothing returns nothing
if(TY7())then
call SetUnitTimeScalePercent(udg_A[12],100.00)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[12]))]=false
set udg_A[12]=null
set udg_c[6]=0.00
call RemoveLocation(udg_B[8])
set udg_B[8]=null
set udg_eg[2]=g6(1747988545)
if(TW7())then
call ForGroupBJ(udg_eg[2],function TX7)
else
call DoNothing()
endif
call DestroyGroup(udg_eg[2])
set udg_eg[2]=null
else
call DoNothing()
endif
endfunction
function TZ7 takes nothing returns nothing
set udg_Bc=CreateTrigger()
call TriggerAddCondition(udg_Bc,Condition(function TV7))
call TriggerAddAction(udg_Bc,function T27)
endfunction
function T_7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677135))then
return false
endif
return true
endfunction
function U47 takes nothing returns boolean
return(GetUnitTypeId(udg_Zf[4])==1311780914)
endfunction
function U77 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function U87 takes nothing returns boolean
if(not(GetUnitTypeId(udg_Zf[4])==1311780914))then
return false
endif
return true
endfunction
function U97 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(udg_Zf[4]))]==true)
endfunction
function Ud7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_Zf[4]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,udg_Zf[4])==0))then
return false
endif
return true
endfunction
function Ue7 takes nothing returns boolean
if(not Ud7())then
return false
endif
return true
endfunction
function Uf7 takes nothing returns nothing
set udg_Zf[4]=GetTriggerUnit()
if(U47())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Zf[4]))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Zf[4]))]=false
endif
if(U87())then
call CreateTextTagUnitBJ("Gear 2nd",udg_Zf[4],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function U77)))
call SetUnitVertexColorBJ(udg_Zf[4],100,75.00,75.00,0)
set udg_Km[47]=GetUnitLoc(udg_Zf[4])
call PlaySoundAtPointBJ(udg_gq,100,udg_Km[47],0)
call RemoveLocation(udg_Km[47])
set udg_Km[47]=null
call TriggerSleepAction(0.05)
call IssueImmediateOrderBJ(udg_Zf[4],"stop")
call SetUnitAnimation(udg_Zf[4],"spell")
else
call SetUnitVertexColorBJ(udg_Zf[4],100,100.00,100.00,0)
call TriggerSleepAction(0.05)
call IssueImmediateOrderBJ(udg_Zf[4],"stop")
endif
call TriggerSleepAction(0.50)
if(Ue7())then
if(U97())then
call UnitAddAbilityBJ(1093677913,udg_Zf[4])
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_Zf[4]=null
endfunction
function Ug7 takes nothing returns nothing
set udg_bc=CreateTrigger()
call TriggerAddCondition(udg_bc,Condition(function T_7))
call TriggerAddAction(udg_bc,function Uf7)
endfunction
function Uh7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677137))then
return false
endif
return true
endfunction
function Ui7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Uj7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Uk7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[13]))]==true))then
return false
endif
return true
endfunction
function Um7 takes nothing returns boolean
return(udg_Xj==true)
endfunction
function Un7 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_A[13],1227894839)==true))then
return false
endif
return true
endfunction
function Uo7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[13])==true))then
return false
endif
return true
endfunction
function Up7 takes nothing returns nothing
set udg_A[13]=GetTriggerUnit()
set udg_B[9]=GetSpellTargetLoc()
set udg_c[7]=AngleBetweenPoints(GetUnitLoc(udg_A[13]),udg_B[9])
set udg_dg[6]=PG(PG(GetUnitLoc(udg_A[13]),-80.00,udg_c[7]),75.00,(udg_c[7]-90.00))
set udg_dg[7]=PG(PG(GetUnitLoc(udg_A[13]),-80.00,udg_c[7]),75.00,(udg_c[7]+90.00))
set udg_Xj=false
call TriggerSleepAction(0.01)
call CreateNUnitsAtLoc(1,1747988545,GetOwningPlayer(udg_A[13]),udg_dg[6],udg_c[7])
set udg_Vj=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Vj,500.00,500.00,500.00)
call CreateNUnitsAtLoc(1,1747988545,GetOwningPlayer(udg_A[13]),udg_dg[7],udg_c[7])
set udg_Wj=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Wj,500.00,500.00,500.00)
call RemoveLocation(udg_dg[6])
set udg_dg[6]=null
call RemoveLocation(udg_dg[7])
set udg_dg[7]=null
set udg_dg[6]=PG(GetUnitLoc(udg_Vj),200.00,udg_c[7])
set udg_dg[7]=PG(GetUnitLoc(udg_Wj),200.00,udg_c[7])
if(Uk7())then
call CreateTextTagUnitBJ("GIGANT JET BAZOOKA",udg_A[13],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Uj7)))
set udg_Km[48]=GetUnitLoc(udg_A[13])
call PlaySoundAtPointBJ(udg_Nq,100,udg_Km[48],0)
call RemoveLocation(udg_Km[48])
set udg_Km[48]=null
call SetUnitVertexColorBJ(udg_Vj,100,75.00,75.00,0)
call SetUnitVertexColorBJ(udg_Wj,100,75.00,75.00,0)
else
call CreateTextTagUnitBJ("GIGANT BAZOOKA",udg_A[13],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Ui7)))
set udg_Km[48]=GetUnitLoc(udg_A[13])
call PlaySoundAtPointBJ(udg_iq,100,udg_Km[48],0)
call RemoveLocation(udg_Km[48])
set udg_Km[48]=null
endif
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Vj)
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Wj)
call EnableTrigger(udg_cc)
loop
exitwhen(Um7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call TriggerSleepAction(1.20)
call DisableTrigger(udg_cc)
call DestroyGroup(udg_G[4])
set udg_G[4]=null
call RemoveUnit(udg_Vj)
call RemoveUnit(udg_Wj)
if(Uo7())then
call CreateNUnitsAtLoc(1,1966092338,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_B[9],bj_UNIT_FACING)
set udg_Zf[5]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677136,udg_Zf[5])
call IssueTargetOrderBJ(udg_Zf[5],"hex",udg_A[13])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[5])
set udg_Zf[5]=null
if(Un7())then
call CreateNUnitsAtLoc(1,1966092338,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_B[9],bj_UNIT_FACING)
set udg_Zf[5]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677136,udg_Zf[5])
call IssueTargetOrderBJ(udg_Zf[5],"hex",udg_A[13])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[5])
set udg_Zf[5]=null
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_Vj=null
set udg_Wj=null
set udg_A[13]=null
set udg_c[7]=0.00
call RemoveLocation(udg_dg[8])
set udg_dg[8]=null
call RemoveLocation(udg_B[9])
set udg_B[9]=null
endfunction
function Uq7 takes nothing returns nothing
set udg_Cc=CreateTrigger()
call TriggerAddCondition(udg_Cc,Condition(function Uh7))
call TriggerAddAction(udg_Cc,function Up7)
endfunction
function Ur7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_dg[9])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_dg[9])==true))then
return true
endif
return false
endfunction
function Us7 takes nothing returns boolean
if(not(IsUnitPausedBJ(GetEnumUnit())==false))then
return false
endif
if(not(IsUnitHiddenBJ(GetEnumUnit())==false))then
return false
endif
if(not(DistanceBetweenPoints(udg_dg[9],udg_dg[8])<=750.00))then
return false
endif
if(not Ur7())then
return false
endif
return true
endfunction
function Ut7 takes nothing returns boolean
if(not Us7())then
return false
endif
return true
endfunction
function Uu7 takes nothing returns nothing
set udg_dg[9]=PG(GetUnitLoc(GetEnumUnit()),(50.00-(DistanceBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_dg[8])/15.00)),udg_c[7])
if(Ut7())then
call SetUnitPositionLoc(GetEnumUnit(),udg_dg[9])
call SetUnitFacingToFaceUnitTimed(GetEnumUnit(),udg_A[14],0)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[9])
set udg_dg[9]=null
else
call RemoveLocation(udg_dg[9])
set udg_dg[9]=null
endif
endfunction
function Uv7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[13]))==true)
endfunction
function Uw7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Ux7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Uy7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Uz7 takes nothing returns boolean
return GetBooleanAnd(Ux7(),Uy7())
endfunction
function UA7 takes nothing returns boolean
return GetBooleanAnd(Uw7(),Uz7())
endfunction
function Ua7 takes nothing returns boolean
return GetBooleanAnd(Uv7(),UA7())
endfunction
function UB7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[13],GetEnumUnit(),(1400.00+(400.00*I2R(GetUnitAbilityLevelSwapped(1093677137,udg_A[13])))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Ub7 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894839)==true))then
return false
endif
return true
endfunction
function UC7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[13],GetEnumUnit(),((1400.00+(400.00*I2R(GetUnitAbilityLevelSwapped(1093677137,udg_A[13]))))+(GetRandomReal((14.00*I2R(GetUnitAbilityLevelSwapped(1093677137,udg_A[13]))),(20.00*I2R(GetUnitAbilityLevelSwapped(1093677137,udg_A[13]))))*I2R(GetHeroLevel(udg_A[13])))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[13]),udg_dg[9],bj_UNIT_FACING)
set udg_Zf[5]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677134,udg_Zf[5])
call IssueTargetOrderBJ(udg_Zf[5],"thunderbolt",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[5])
set udg_Zf[5]=null
if(Ub7())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[13]),udg_dg[9],bj_UNIT_FACING)
set udg_Zf[5]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677134,udg_Zf[5])
call IssueTargetOrderBJ(udg_Zf[5],"thunderbolt",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[5])
set udg_Zf[5]=null
else
call DoNothing()
endif
endfunction
function Uc7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[13])==1311780931))then
return false
endif
return true
endfunction
function UD7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_dg[9],udg_dg[6])<=45.00))then
return false
endif
return true
endfunction
function UE7 takes nothing returns boolean
if(not(udg_Xj==false))then
return false
endif
return true
endfunction
function U37 takes nothing returns nothing
if(UE7())then
set udg_dg[9]=PG(GetUnitLoc(udg_Vj),40.00,udg_c[7])
if(UD7())then
set udg_dg[9]=PG(GetUnitLoc(udg_A[13]),210.00,udg_c[7])
set udg_G[4]=e6(420.00,udg_dg[9],Condition(function Ua7))
if(Uc7())then
call ForGroupBJ(udg_G[4],function UC7)
else
call ForGroupBJ(udg_G[4],function UB7)
endif
call RemoveLocation(udg_dg[6])
set udg_dg[6]=null
call RemoveLocation(udg_dg[7])
set udg_dg[7]=null
set udg_dg[8]=PG(GetUnitLoc(udg_A[13]),210.00,udg_c[7])
set udg_Xj=true
else
call SetUnitPositionLoc(udg_Vj,udg_dg[9])
call RemoveLocation(udg_dg[9])
set udg_dg[9]=null
set udg_dg[9]=PG(GetUnitLoc(udg_Wj),40.00,udg_c[7])
call SetUnitPositionLoc(udg_Wj,udg_dg[9])
endif
call RemoveLocation(udg_dg[9])
set udg_dg[9]=null
else
call ForGroupBJ(udg_G[4],function Uu7)
endif
endfunction
function UF7 takes nothing returns nothing
set udg_cc=CreateTrigger()
call DisableTrigger(udg_cc)
call TriggerRegisterTimerEventPeriodic(udg_cc,0.04)
call TriggerAddAction(udg_cc,function U37)
endfunction
function UG7 takes nothing returns boolean
if(not(udg_sm==null))then
return false
endif
return true
endfunction
function U67 takes nothing returns nothing
if(UG7())then
call DestroyTrigger(udg_Ec)
call DestroyTrigger(udg_Fc)
call DestroyTrigger(udg_Gc)
call DestroyTrigger(udg_Hc)
call DestroyTrigger(udg_Ic)
call DestroyTrigger(udg_lc)
call DestroyTrigger(udg_Jc)
call DestroyTrigger(udg_Kc)
call DestroyTrigger(udg_Lc)
call DestroyTrigger(udg_Mc)
call DestroyTrigger(udg_Nc)
else
call TriggerRegisterUnitEvent(udg_Ec,udg_sm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_Fc,udg_sm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Gc,udg_sm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Hc,udg_sm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Ic,udg_sm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Jc,udg_sm,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(udg_Lc,udg_sm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Mc,udg_sm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_Nc,udg_sm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function UH7 takes nothing returns nothing
set udg_Dc=CreateTrigger()
call TriggerAddAction(udg_Dc,function U67)
endfunction
function UI7 takes nothing returns boolean
if((GetSpellAbilityId()==1093678391))then
return true
endif
if((GetSpellAbilityId()==1093677140))then
return true
endif
if((GetSpellAbilityId()==1093678384))then
return true
endif
if((GetSpellAbilityId()==1093677144))then
return true
endif
return false
endfunction
function Ul7 takes nothing returns boolean
if(not UI7())then
return false
endif
return true
endfunction
function U17 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function UJ7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function UK7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function UL7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677144))then
return false
endif
return true
endfunction
function UM7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678384))then
return false
endif
return true
endfunction
function UN7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function UO7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677140))then
return false
endif
return true
endfunction
function U07 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678391))then
return false
endif
return true
endfunction
function UP7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function UQ7 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function UR7 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function US7 takes nothing returns nothing
if(U07())then
call CreateTextTagUnitBJ("Itoryu iai...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function U17)))
else
if(UO7())then
call CreateTextTagUnitBJ("Itoryu...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function UN7)))
else
if(UM7())then
call CreateTextTagUnitBJ("Nitoryu iai...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function UJ7)))
else
if(UL7())then
call CreateTextTagUnitBJ("Santoryu...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function UK7)))
else
call DoNothing()
endif
endif
endif
endif
if(UR7())then
call ForGroupBJ(d6(GetPlayableMapRect()),function UP7)
call ForForce(GetPlayersAll(),function UQ7)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function U57 takes nothing returns nothing
set udg_Ec=CreateTrigger()
call TriggerAddCondition(udg_Ec,Condition(function Ul7))
call TriggerAddAction(udg_Ec,function US7)
endfunction
function UT7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678391))then
return false
endif
return true
endfunction
function Trig_Shishisonson_Func010Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[66])<=(5.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[104],false))))
endfunction
function UU7 takes nothing returns boolean
return(IsUnitAliveBJ(udg_hk[36])==true)
endfunction
function UV7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function UW7 takes nothing returns nothing
set udg_hk[35]=GetTriggerUnit()
set udg_hk[36]=GetSpellTargetUnit()
call AddSpecialEffectTargetUnitBJ("weapon",udg_hk[35],"BlueRibbonMissile.mdx")
set udg_nk=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.01)
set udg_ik[35]=GetUnitLoc(udg_hk[35])
set udg_ik[36]=GetUnitLoc(udg_hk[36])
set udg_ik[37]=PG(udg_ik[36],-100.00,AngleBetweenPoints(udg_ik[35],udg_ik[36]))
call SetUnitPositionLocFacingBJ(udg_hk[35],udg_ik[37],AngleBetweenPoints(udg_ik[35],udg_ik[36]))
call UnitDamageTargetBJ(udg_hk[35],udg_hk[36],(4.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_hk[35],true))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_hk[36],"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(UU7())then
call IssueTargetOrderBJ(udg_hk[35],"attack",udg_hk[36])
else
call DoNothing()
endif
call CreateTextTagUnitBJ("Shishisonson",udg_hk[35],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function UV7)))
set udg_Km[49]=GetUnitLoc(udg_hk[35])
call PlaySoundAtPointBJ(udg_Ir,100,udg_Km[49],0)
call RemoveLocation(udg_Km[49])
set udg_Km[49]=null
call TriggerSleepAction(0.25)
call DestroyEffectBJ(udg_nk)
set udg_hk[35]=null
set udg_hk[36]=null
call RemoveLocation(udg_ik[35])
set udg_ik[35]=null
call RemoveLocation(udg_ik[36])
set udg_ik[36]=null
call RemoveLocation(udg_ik[37])
set udg_ik[37]=null
endfunction
function UX7 takes nothing returns nothing
set udg_Fc=CreateTrigger()
call TriggerAddCondition(udg_Fc,Condition(function UT7))
call TriggerAddAction(udg_Fc,function UW7)
endfunction
function UY7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677140))then
return false
endif
return true
endfunction
function U27 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function UZ7 takes nothing returns nothing
call CreateTextTagUnitBJ("Sanjuroku Pondo Ho",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function U27)))
set udg_Sg[1]=GetUnitLoc(GetTriggerUnit())
call PlaySoundAtPointBJ(udg_hp,100,udg_Sg[1],0)
call RemoveLocation(udg_Sg[1])
set udg_Sg[1]=null
endfunction
function U_7 takes nothing returns nothing
set udg_Gc=CreateTrigger()
call TriggerAddCondition(udg_Gc,Condition(function UY7))
call TriggerAddAction(udg_Gc,function UZ7)
endfunction
function V47 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678384))then
return false
endif
return true
endfunction
function V77 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function V87 takes nothing returns nothing
set udg_A[15]=GetTriggerUnit()
set udg_B[10]=PG(GetUnitLoc(udg_A[15]),120.00,(GetUnitFacing(udg_A[15])+90.00))
set udg_B[11]=PG(GetUnitLoc(udg_A[15]),120.00,(GetUnitFacing(udg_A[15])-90.00))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[15]),udg_B[10],GetUnitFacing(udg_A[15]))
set udg_Zf[6]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677142,udg_Zf[6])
call SetUnitAbilityLevelSwapped(1093677142,udg_Zf[6],GetUnitAbilityLevelSwapped(1093678384,udg_A[15]))
set udg_dg[10]=PG(udg_B[10],256,GetUnitFacing(udg_A[15]))
call IssuePointOrderLocBJ(udg_Zf[6],"shockwave",udg_dg[10])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[6])
call RemoveLocation(udg_dg[10])
set udg_dg[10]=null
set udg_Zf[6]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[15]),udg_B[11],GetUnitFacing(udg_A[15]))
set udg_Zf[6]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677142,udg_Zf[6])
call SetUnitAbilityLevelSwapped(1093677142,udg_Zf[6],GetUnitAbilityLevelSwapped(1093678384,udg_A[15]))
set udg_dg[10]=PG(udg_B[11],256,GetUnitFacing(udg_A[15]))
call IssuePointOrderLocBJ(udg_Zf[6],"shockwave",udg_dg[10])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[6])
call RemoveLocation(udg_dg[10])
set udg_dg[10]=null
set udg_Zf[6]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[15]),udg_B[10],(GetUnitFacing(udg_A[15])+180.00))
set udg_Zf[6]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677142,udg_Zf[6])
call SetUnitAbilityLevelSwapped(1093677142,udg_Zf[6],GetUnitAbilityLevelSwapped(1093678384,udg_A[15]))
set udg_dg[10]=PG(udg_B[10],256,(GetUnitFacing(udg_A[15])+180.00))
call IssuePointOrderLocBJ(udg_Zf[6],"shockwave",udg_dg[10])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[6])
call RemoveLocation(udg_dg[10])
set udg_dg[10]=null
set udg_Zf[6]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[15]),udg_B[11],(GetUnitFacing(udg_A[15])+180.00))
set udg_Zf[6]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677142,udg_Zf[6])
call SetUnitAbilityLevelSwapped(1093677142,udg_Zf[6],GetUnitAbilityLevelSwapped(1093678384,udg_A[15]))
set udg_dg[10]=PG(udg_B[11],256,(GetUnitFacing(udg_A[15])+180.00))
call IssuePointOrderLocBJ(udg_Zf[6],"shockwave",udg_dg[10])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[6])
set udg_Zf[6]=null
call RemoveLocation(udg_dg[10])
set udg_dg[10]=null
call TriggerSleepAction(0.02)
call CreateTextTagUnitBJ("Rashomon",udg_A[15],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function V77)))
call PlaySoundAtPointBJ(udg_ws,100,udg_B[10],0)
set udg_A[15]=null
call RemoveLocation(udg_B[10])
set udg_B[10]=null
call RemoveLocation(udg_B[11])
set udg_B[11]=null
endfunction
function V97 takes nothing returns nothing
set udg_Hc=CreateTrigger()
call TriggerAddCondition(udg_Hc,Condition(function V47))
call TriggerAddAction(udg_Hc,function V87)
endfunction
function Vd7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677143))then
return false
endif
return true
endfunction
function Ve7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Vf7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[16]))
endfunction
function Vg7 takes nothing returns nothing
set udg_A[16]=GetTriggerUnit()
set udg_B[12]=GetSpellTargetLoc()
set udg_c[8]=AngleBetweenPoints(GetUnitLoc(udg_A[16]),udg_B[12])
set udg_N[2]=0
call SetUnitTimeScalePercent(udg_A[16],0.00)
call CreateTextTagUnitBJ("Santoryu Ogi...",udg_A[16],0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Ve7)))
set udg_Km[50]=GetUnitLoc(udg_A[16])
call PlaySoundAtPointBJ(udg_Ar,100,udg_Km[50],0)
call RemoveLocation(udg_Km[50])
set udg_Km[50]=null
call CreateTextTagUnitBJ("IIIIIIIIII",udg_A[16],0,10.00,100,100.00,100.00,0)
set udg_pk=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_pk,false)
call SetTextTagLifespanBJ(udg_pk,0.70)
call ShowTextTagForceBJ(false,udg_pk,t6(Condition(function Vf7)))
call ShowTextTagForceBJ(true,udg_pk,m6(GetOwningPlayer(udg_A[16])))
call EnableTrigger(udg_lc)
endfunction
function Vh7 takes nothing returns nothing
set udg_Ic=CreateTrigger()
call TriggerAddCondition(udg_Ic,Condition(function Vd7))
call TriggerAddAction(udg_Ic,function Vg7)
endfunction
function Vi7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[16])==true))then
return false
endif
return true
endfunction
function Vj7 takes nothing returns boolean
if(not(udg_N[2]<5))then
return false
endif
return true
endfunction
function Vk7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[16]))
endfunction
function Vm7 takes nothing returns boolean
if(not(udg_N[2]==5))then
return false
endif
return true
endfunction
function Vn7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[16]))
endfunction
function Vo7 takes nothing returns boolean
if(not(udg_N[2]==4))then
return false
endif
return true
endfunction
function Vp7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[16]))
endfunction
function Vq7 takes nothing returns boolean
if(not(udg_N[2]==3))then
return false
endif
return true
endfunction
function Vr7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[16]))
endfunction
function Vs7 takes nothing returns boolean
if(not(udg_N[2]==2))then
return false
endif
return true
endfunction
function Vt7 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[16]))
endfunction
function Vu7 takes nothing returns boolean
if(not(udg_N[2]==1))then
return false
endif
return true
endfunction
function Vv7 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_A[16])==true))then
return false
endif
return true
endfunction
function Vw7 takes nothing returns nothing
if(Vj7())then
set udg_N[2]=(udg_N[2]+1)
else
call DoNothing()
endif
if(Vu7())then
call DestroyTextTagBJ(udg_pk)
call CreateTextTagUnitBJ("|c000042ffII|rIIIIIIII",udg_A[16],0,10.00,100,100.00,100.00,0)
set udg_pk=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_pk,false)
call SetTextTagLifespanBJ(udg_pk,0.70)
call ShowTextTagForceBJ(false,udg_pk,t6(Condition(function Vt7)))
call ShowTextTagForceBJ(true,udg_pk,m6(GetOwningPlayer(udg_A[16])))
else
if(Vs7())then
call DestroyTextTagBJ(udg_pk)
call CreateTextTagUnitBJ("|c000042ffIIII|rIIIIII",udg_A[16],0,10.00,100,100.00,100.00,0)
set udg_pk=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_pk,false)
call SetTextTagLifespanBJ(udg_pk,0.70)
call ShowTextTagForceBJ(false,udg_pk,t6(Condition(function Vr7)))
call ShowTextTagForceBJ(true,udg_pk,m6(GetOwningPlayer(udg_A[16])))
else
if(Vq7())then
call DestroyTextTagBJ(udg_pk)
call CreateTextTagUnitBJ("|c000042ffIIIIII|rIIII",udg_A[16],0,10.00,100,100.00,100.00,0)
set udg_pk=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_pk,false)
call SetTextTagLifespanBJ(udg_pk,0.70)
call ShowTextTagForceBJ(false,udg_pk,t6(Condition(function Vp7)))
call ShowTextTagForceBJ(true,udg_pk,m6(GetOwningPlayer(udg_A[16])))
else
if(Vo7())then
call DestroyTextTagBJ(udg_pk)
call CreateTextTagUnitBJ("|c000042ffIIIIIIII|rII",udg_A[16],0,10.00,100,100.00,100.00,0)
set udg_pk=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_pk,false)
call SetTextTagLifespanBJ(udg_pk,0.70)
call ShowTextTagForceBJ(false,udg_pk,t6(Condition(function Vn7)))
call ShowTextTagForceBJ(true,udg_pk,m6(GetOwningPlayer(udg_A[16])))
else
if(Vm7())then
call DestroyTextTagBJ(udg_pk)
call CreateTextTagUnitBJ("|c000042ffIIIIIIIIII|r",udg_A[16],0,10.00,100,100.00,100.00,0)
set udg_pk=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_pk,false)
call SetTextTagLifespanBJ(udg_pk,0.70)
call ShowTextTagForceBJ(false,udg_pk,t6(Condition(function Vk7)))
call ShowTextTagForceBJ(true,udg_pk,m6(GetOwningPlayer(udg_A[16])))
call IssueImmediateOrderBJ(udg_A[16],"stop")
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endif
endif
endif
endif
if(Vv7())then
call DestroyTextTagBJ(udg_pk)
call DisableTrigger(GetTriggeringTrigger())
call SetUnitTimeScalePercent(udg_A[16],100.00)
set udg_A[16]=null
set udg_c[8]=0.00
set udg_N[2]=0
call RemoveLocation(udg_B[12])
set udg_B[12]=null
else
call DoNothing()
endif
endfunction
function Vx7 takes nothing returns nothing
set udg_lc=CreateTrigger()
call DisableTrigger(udg_lc)
call TriggerRegisterTimerEventPeriodic(udg_lc,0.65)
call TriggerAddCondition(udg_lc,Condition(function Vi7))
call TriggerAddAction(udg_lc,function Vw7)
endfunction
function Vy7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677143))then
return false
endif
return true
endfunction
function Vz7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function VA7 takes nothing returns boolean
if(not(udg_N[2]>=1))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[16])==true))then
return false
endif
if(not(IsUnitPausedBJ(udg_A[16])==false))then
return false
endif
if(not(IsUnitHiddenBJ(udg_A[16])==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[16],1112757326)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[16],1112560453)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[16],1110454360)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[16],1110454834)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[16],1110454835)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[16],1110454321)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[16],1110454323)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[16],1110454607)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[16],1110454320)==false))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[16],1112500344)==false))then
return false
endif
if(not(IsUnitInGroup(udg_A[16],udg_C4)==false))then
return false
endif
return true
endfunction
function Va7 takes nothing returns boolean
return(IsTriggerEnabled(udg_Kc)==false)
endfunction
function VB7 takes nothing returns boolean
if(not VA7())then
return false
endif
return true
endfunction
function Vb7 takes nothing returns nothing
call DisableTrigger(udg_lc)
if(VB7())then
call DestroyTextTagBJ(udg_pk)
call RemoveLocation(udg_B[12])
set udg_B[12]=null
set udg_B[12]=PG(GetUnitLoc(udg_A[16]),1500.00,udg_c[8])
set udg_ok=((5.50*I2R(udg_N[2]))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[16],true)))
call CreateTextTagUnitBJ("Sanzen Sekai",udg_A[16],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Vz7)))
call SetUnitTimeScalePercent(udg_A[16],100.00)
call SetUnitVertexColorBJ(udg_A[16],100,100,100,30.00)
call AddSpecialEffectTargetUnitBJ("hand right",udg_A[16],"BlueRibbonMissile.mdx")
set udg_qk[1]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand left",udg_A[16],"BlueRibbonMissile.mdx")
set udg_qk[2]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("chest",udg_A[16],"BlueRibbonMissile.mdx")
set udg_qk[3]=GetLastCreatedEffectBJ()
call SetUnitAnimation(udg_A[16],"spell")
call SetUnitPathing(udg_A[16],false)
set udg_Km[50]=GetUnitLoc(udg_A[16])
call PlaySoundAtPointBJ(udg_us,100,udg_Km[50],0)
call RemoveLocation(udg_Km[50])
set udg_Km[50]=null
call EnableTrigger(udg_Kc)
loop
exitwhen(Va7())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call DestroyEffectBJ(udg_qk[1])
call DestroyEffectBJ(udg_qk[2])
call DestroyEffectBJ(udg_qk[3])
call SetUnitVertexColorBJ(udg_A[16],100,100,100,0.00)
call SetUnitPathing(udg_A[16],true)
set udg_A[16]=null
set udg_c[8]=0.00
set udg_ok=0.00
set udg_N[2]=0
call RemoveLocation(udg_B[12])
set udg_B[12]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_rk)
else
call DestroyTextTagBJ(udg_pk)
call SetUnitTimeScalePercent(udg_A[16],100.00)
set udg_A[16]=null
set udg_c[8]=0.00
set udg_N[2]=0
call RemoveLocation(udg_B[12])
set udg_B[12]=null
endif
endfunction
function VC7 takes nothing returns nothing
set udg_Jc=CreateTrigger()
call TriggerAddCondition(udg_Jc,Condition(function Vy7))
call TriggerAddAction(udg_Jc,function Vb7)
endfunction
function Vc7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[16]))==true)
endfunction
function VD7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function VE7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function V37 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function VF7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_rk)==false)
endfunction
function VG7 takes nothing returns boolean
return GetBooleanAnd(V37(),VF7())
endfunction
function V67 takes nothing returns boolean
return GetBooleanAnd(VE7(),VG7())
endfunction
function VH7 takes nothing returns boolean
return GetBooleanAnd(VD7(),V67())
endfunction
function VI7 takes nothing returns boolean
return GetBooleanAnd(Vc7(),VH7())
endfunction
function Vl7 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_rk)
call UnitDamageTargetBJ(udg_A[16],GetEnumUnit(),udg_ok,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function V17 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function VJ7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_dg[11],udg_B[12])<=70.00))then
return false
endif
return true
endfunction
function VK7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_dg[11])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_dg[11])==true))then
return true
endif
return false
endfunction
function VL7 takes nothing returns boolean
if(not VK7())then
return false
endif
return true
endfunction
function VM7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_A[16])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_A[16])==true))then
return true
endif
return false
endfunction
function VN7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[16])==true))then
return false
endif
if(not VM7())then
return false
endif
return true
endfunction
function VO7 takes nothing returns boolean
if(not VN7())then
return false
endif
return true
endfunction
function V07 takes nothing returns nothing
if(VO7())then
set udg_dg[11]=PG(GetUnitLoc(udg_A[16]),62.00,udg_c[8])
if(VL7())then
if(VJ7())then
call RemoveLocation(udg_dg[11])
set udg_dg[11]=null
call DisableTrigger(GetTriggeringTrigger())
else
call SetUnitPositionLocFacingBJ(udg_A[16],udg_dg[11],udg_c[8])
set udg_G[6]=e6(350.00,udg_dg[11],Condition(function VI7))
call ForGroupBJ(udg_G[6],function Vl7)
call DestroyGroup(udg_G[6])
set udg_G[6]=null
call UG(350.00,udg_dg[11],function V17)
call RemoveLocation(udg_dg[11])
set udg_dg[11]=null
endif
else
call RemoveLocation(udg_dg[11])
set udg_dg[11]=null
call DisableTrigger(GetTriggeringTrigger())
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function VP7 takes nothing returns nothing
set udg_Kc=CreateTrigger()
call DisableTrigger(udg_Kc)
call TriggerRegisterTimerEventPeriodic(udg_Kc,0.02)
call TriggerAddAction(udg_Kc,function V07)
endfunction
function VQ7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677144))then
return false
endif
return true
endfunction
function VR7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[17]))==true)
endfunction
function VS7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function V57 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function VT7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function VU7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function VV7 takes nothing returns boolean
return GetBooleanAnd(VT7(),VU7())
endfunction
function VW7 takes nothing returns boolean
return GetBooleanAnd(V57(),VV7())
endfunction
function VX7 takes nothing returns boolean
return GetBooleanAnd(VS7(),VW7())
endfunction
function VY7 takes nothing returns boolean
return GetBooleanAnd(VR7(),VX7())
endfunction
function V27 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[17],GetEnumUnit(),(12.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[17],true))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
endfunction
function VZ7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function V_7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function W47 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1747988563)
endfunction
function W77 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function W87 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1747988564)
endfunction
function W97 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Wd7 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1747988563)
endfunction
function We7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Wf7 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1747988564)
endfunction
function Wg7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Wh7 takes nothing returns nothing
set udg_A[17]=GetSpellAbilityUnit()
set udg_N[509]=0
set udg_o9=GetUnitLoc(udg_A[17])
set udg_b[509]=1
loop
exitwhen udg_b[509]>6
call CreateNUnitsAtLoc(1,1747988563,GetOwningPlayer(udg_A[17]),udg_o9,bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"stand")
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),(150.00*I2R(udg_N[509])),0.00)
call SetUnitPositionLoc(GetLastCreatedUnit(),udg_o9)
call CreateNUnitsAtLoc(1,1747988563,GetOwningPlayer(udg_A[17]),udg_o9,bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"stand")
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),(150.00*I2R(udg_N[509])),0.00)
call SetUnitPositionLoc(GetLastCreatedUnit(),udg_o9)
call CreateNUnitsAtLoc(1,1747988563,GetOwningPlayer(udg_A[17]),udg_o9,bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"stand")
call SetUnitTimeScalePercent(GetLastCreatedUnit(),30.00)
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),(150.00*I2R(udg_N[509])),0.00)
call SetUnitPositionLoc(GetLastCreatedUnit(),udg_o9)
call CreateNUnitsAtLoc(1,1747988564,GetOwningPlayer(udg_A[17]),udg_o9,bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"stand")
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),(150.00*I2R(udg_N[509])),0.00)
call SetUnitPositionLoc(GetLastCreatedUnit(),udg_o9)
set udg_N[509]=(udg_N[509]+1)
set udg_b[509]=udg_b[509]+1
endloop
set udg_N[509]=0
set udg_b[509]=1
loop
exitwhen udg_b[509]>6
call CreateNUnitsAtLoc(1,1747988563,GetOwningPlayer(udg_A[17]),udg_o9,bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"stand")
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),(150.00*I2R(udg_N[509])),0.00)
call SetUnitPositionLoc(GetLastCreatedUnit(),udg_o9)
call CreateNUnitsAtLoc(1,1747988563,GetOwningPlayer(udg_A[17]),udg_o9,bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"stand")
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),(150.00*I2R(udg_N[509])),0.00)
call SetUnitPositionLoc(GetLastCreatedUnit(),udg_o9)
call CreateNUnitsAtLoc(1,1747988563,GetOwningPlayer(udg_A[17]),udg_o9,bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"stand")
call SetUnitTimeScalePercent(GetLastCreatedUnit(),30.00)
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),(150.00*I2R(udg_N[509])),0.00)
call SetUnitPositionLoc(GetLastCreatedUnit(),udg_o9)
call CreateNUnitsAtLoc(1,1747988564,GetOwningPlayer(udg_A[17]),udg_o9,bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"stand")
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),(150.00*I2R(udg_N[509])),0.00)
call SetUnitPositionLoc(GetLastCreatedUnit(),GetUnitLoc(GetLastCreatedUnit()))
set udg_N[509]=(udg_N[509]+1)
set udg_b[509]=udg_b[509]+1
endloop
set udg_G[509]=e6(400.00,GetUnitLoc(udg_A[17]),Condition(function VY7))
call ForGroupBJ(udg_G[509],function V27)
call CreateTextTagUnitBJ("Tatsumaki",udg_A[17],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function VZ7)))
call UG(600.00,udg_o9,function V_7)
set udg_A[17]=null
set udg_N[509]=0
call DestroyGroup(udg_G[509])
set udg_G[509]=null
call PlaySoundAtPointBJ(udg_Sr,100,udg_o9,0)
call RemoveLocation(udg_o9)
set udg_o9=null
call TriggerSleepAction(1.80)
set udg_p9=YG(GetPlayableMapRect(),Condition(function W47))
call ForGroupBJ(udg_p9,function W77)
call DestroyGroup(udg_p9)
set udg_p9=null
call TriggerSleepAction(0.80)
set udg_p9=YG(GetPlayableMapRect(),Condition(function W87))
call ForGroupBJ(udg_p9,function W97)
call DestroyGroup(udg_p9)
set udg_p9=null
call TriggerSleepAction(0.50)
set udg_p9=YG(GetPlayableMapRect(),Condition(function Wd7))
call ForGroupBJ(udg_p9,function We7)
call DestroyGroup(udg_p9)
set udg_p9=null
set udg_p9=YG(GetPlayableMapRect(),Condition(function Wf7))
call ForGroupBJ(udg_p9,function Wg7)
call DestroyGroup(udg_p9)
set udg_p9=null
set udg_N[509]=0
endfunction
function Wi7 takes nothing returns nothing
set udg_Lc=CreateTrigger()
call TriggerAddCondition(udg_Lc,Condition(function VQ7))
call TriggerAddAction(udg_Lc,function Wh7)
endfunction
function Wj7 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function Wk7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677146))then
return false
endif
if(not Wj7())then
return false
endif
return true
endfunction
function Wm7 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function Wn7 takes nothing returns nothing
set udg_Mc=CreateTrigger()
call TriggerAddCondition(udg_Mc,Condition(function Wk7))
call TriggerAddAction(udg_Mc,function Wm7)
endfunction
function Wo7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677146))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==false))then
return false
endif
return true
endfunction
function Wp7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Wq7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Wr7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_B[13])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_B[13])==true))then
return true
endif
return false
endfunction
function Ws7 takes nothing returns boolean
if(not Wr7())then
return false
endif
return true
endfunction
function Wt7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Wu7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[18]!=udg_x))then
return false
endif
if(not(udg_A[18]!=udg_y))then
return false
endif
return true
endfunction
function Wv7 takes nothing returns boolean
if(not Wu7())then
return false
endif
return true
endfunction
function Ww7 takes nothing returns nothing
set udg_A[18]=GetTriggerUnit()
set udg_a[3]=GetSpellTargetUnit()
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[3]))]=true
set udg_dg[12]=GetUnitLoc(udg_A[18])
call SetUnitPathing(udg_A[18],false)
call SetUnitAnimation(udg_A[18],"stand")
call SetUnitTimeScalePercent(udg_A[18],0.00)
call PauseUnitBJ(true,udg_A[18])
call PauseUnitBJ(true,udg_a[3])
call SetUnitInvulnerable(udg_A[18],true)
call SetUnitInvulnerable(udg_a[3],true)
call TriggerSleepAction(0.01)
call UnitAddAbilityBJ(1093677367,udg_A[18])
call CreateTextTagUnitBJ("KYUTORYU ASHURA...",udg_A[18],0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Wp7)))
set udg_Km[51]=GetUnitLoc(udg_A[18])
call PlaySoundAtPointBJ(udg_np,100,udg_Km[51],0)
call RemoveLocation(udg_Km[51])
set udg_Km[51]=null
call CreateNUnitsAtLoc(1,1747988548,GetOwningPlayer(udg_A[18]),udg_dg[12],(GetUnitFacing(udg_A[18])+120.00))
set udg_A[19]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677367,udg_A[19])
call SetUnitPathing(udg_A[19],false)
call SetUnitAnimation(udg_A[19],"stand")
call SetUnitTimeScalePercent(udg_A[19],0.00)
call CreateNUnitsAtLoc(1,1747988548,GetOwningPlayer(udg_A[18]),udg_dg[12],(GetUnitFacing(udg_A[18])-120.00))
set udg_A[20]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677367,udg_A[20])
call SetUnitPathing(udg_A[20],false)
call SetUnitAnimation(udg_A[20],"stand")
call SetUnitTimeScalePercent(udg_A[20],0.00)
call TriggerSleepAction(1.00)
call SetUnitInvulnerable(udg_a[3],false)
call RemoveLocation(udg_dg[12])
set udg_dg[12]=null
call TriggerSleepAction(0.03)
set udg_c[9]=AngleBetweenPoints(GetUnitLoc(udg_A[18]),GetUnitLoc(udg_a[3]))
set udg_B[13]=PG(GetUnitLoc(udg_a[3]),150.00,udg_c[9])
call PauseUnitBJ(false,udg_a[3])
if(Ws7())then
call UG(300.00,udg_B[13],function Wq7)
call SetUnitPositionLocFacingBJ(udg_A[18],udg_B[13],udg_c[9])
set udg_dg[12]=GetUnitLoc(udg_A[18])
call SetUnitPositionLocFacingBJ(udg_A[19],udg_dg[12],(GetUnitFacing(udg_A[18])+120.00))
call SetUnitPositionLocFacingBJ(udg_A[20],udg_dg[12],(GetUnitFacing(udg_A[18])-120.00))
else
call SetUnitPositionLocFacingBJ(udg_A[18],PG(GetUnitLoc(udg_a[3]),-80.00,udg_c[9]),udg_c[9])
set udg_dg[12]=GetUnitLoc(udg_A[18])
call SetUnitPositionLocFacingBJ(udg_A[19],udg_dg[12],(GetUnitFacing(udg_A[18])+120.00))
call SetUnitPositionLocFacingBJ(udg_A[20],udg_dg[12],(GetUnitFacing(udg_A[18])-120.00))
endif
call RemoveLocation(udg_dg[12])
set udg_dg[12]=null
set udg_q4[1]=(2000.00+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[18],false))*(11.00*I2R(GetUnitAbilityLevelSwapped(1093677146,udg_A[18])))))
call UnitDamageTargetBJ(udg_A[18],udg_a[3],udg_q4[1],ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
set udg_dg[12]=GetUnitLoc(udg_a[3])
call AddSpecialEffectLocBJ(udg_dg[12],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_a[3],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_a[3],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ((I2S(R2I(udg_q4[1]))+"!"),udg_a[3],0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.75)
call RemoveLocation(udg_dg[12])
set udg_dg[12]=null
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("origin",udg_a[3],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("MAKYUSEN",udg_A[18],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Wt7)))
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[3]))]=false
set udg_Km[51]=GetUnitLoc(udg_A[18])
call PlaySoundAtPointBJ(udg_vs,100,udg_Km[51],0)
call RemoveLocation(udg_Km[51])
set udg_Km[51]=null
call TriggerSleepAction(0.79)
call RemoveUnit(udg_A[19])
call RemoveUnit(udg_A[20])
call UnitRemoveAbilityBJ(1093677367,udg_A[18])
call TriggerSleepAction(0.01)
call PauseUnitBJ(false,udg_A[18])
call SetUnitInvulnerable(udg_A[18],false)
call SetUnitPathing(udg_A[18],true)
call SetUnitTimeScalePercent(udg_A[18],100.00)
call SetUnitAnimation(udg_A[18],"stand")
call SelectUnitForPlayerSingle(udg_A[18],GetOwningPlayer(udg_A[18]))
if(Wv7())then
call PauseUnitBJ(true,udg_A[18])
else
call DoNothing()
endif
set udg_A[18]=null
set udg_A[19]=null
set udg_A[20]=null
set udg_a[3]=null
set udg_c[9]=0.00
call RemoveLocation(udg_B[13])
set udg_B[13]=null
endfunction
function Wx7 takes nothing returns nothing
set udg_Nc=CreateTrigger()
call TriggerAddCondition(udg_Nc,Condition(function Wo7))
call TriggerAddAction(udg_Nc,function Ww7)
endfunction
function Wy7 takes nothing returns boolean
if(not(udg_tm==null))then
return false
endif
return true
endfunction
function Wz7 takes nothing returns nothing
if(Wy7())then
call DestroyTrigger(udg_Pc)
call DestroyTrigger(udg_Qc)
call DestroyTrigger(udg_Rc)
call DestroyTrigger(udg_Sc)
call DestroyTrigger(udg_Tc)
call DestroyTrigger(udg_Uc)
call DestroyTrigger(udg_Vc)
call DestroyTrigger(udg_Wc)
call DestroyTrigger(udg_Xc)
call DestroyTrigger(udg_Yc)
call DestroyTrigger(udg_Zc)
else
call TriggerRegisterUnitEvent(udg_Pc,udg_tm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_Qc,udg_tm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Sc,udg_tm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Tc,udg_tm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Uc,udg_tm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_Wc,udg_tm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_Xc,udg_tm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function WA7 takes nothing returns nothing
set udg_Oc=CreateTrigger()
call TriggerAddAction(udg_Oc,function Wz7)
endfunction
function Wa7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677648))then
return true
endif
if((GetSpellAbilityId()==1093677649))then
return true
endif
return false
endfunction
function WB7 takes nothing returns boolean
if(not Wa7())then
return false
endif
return true
endfunction
function Wb7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function WC7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677648))then
return true
endif
if((GetSpellAbilityId()==1093677649))then
return true
endif
return false
endfunction
function Wc7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false))then
return false
endif
if(not WC7())then
return false
endif
return true
endfunction
function WD7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677648))then
return true
endif
if((GetSpellAbilityId()==1093677649))then
return true
endif
return false
endfunction
function WE7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
if(not WD7())then
return false
endif
return true
endfunction
function W37 takes nothing returns nothing
if(WE7())then
call CreateTextTagUnitBJ("Diable Jambe...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Wb7)))
else
if(Wc7())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
else
call DoNothing()
endif
endif
endfunction
function WF7 takes nothing returns nothing
set udg_Pc=CreateTrigger()
call TriggerAddCondition(udg_Pc,Condition(function WB7))
call TriggerAddAction(udg_Pc,function W37)
endfunction
function WG7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677130))then
return false
endif
return true
endfunction
function W67 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[66]))==true)
endfunction
function WH7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function WI7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Wl7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function W17 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function WJ7 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function WK7 takes nothing returns boolean
return GetBooleanAnd(W17(),WJ7())
endfunction
function WL7 takes nothing returns boolean
return GetBooleanAnd(Wl7(),WK7())
endfunction
function WM7 takes nothing returns boolean
return GetBooleanAnd(WI7(),WL7())
endfunction
function WN7 takes nothing returns boolean
return GetBooleanAnd(WH7(),WM7())
endfunction
function WO7 takes nothing returns boolean
return GetBooleanAnd(W67(),WN7())
endfunction
function W07 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[66],GetEnumUnit(),udg_gk,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function WP7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[66],GetEnumUnit(),udg_gk,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function WQ7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[66]))]==true))then
return false
endif
return true
endfunction
function WR7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function WS7 takes nothing returns nothing
set udg_A[66]=GetTriggerUnit()
set udg_B[32]=GetUnitLoc(udg_A[66])
set udg_gk=(100.00+((1.50+(0.50*I2R(GetUnitAbilityLevelSwapped(1093677130,udg_A[66]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[66],true))))
set udg_G[16]=e6(300.00,udg_B[32],Condition(function WO7))
if(WQ7())then
call AddSpecialEffectTargetUnitBJ("origin",udg_A[66],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_gk=(udg_gk*1.20)
call ForGroupBJ(udg_G[16],function WP7)
else
call ForGroupBJ(udg_G[16],function W07)
endif
call EnableTrigger(udg_Rc)
call TriggerSleepAction(0.20)
call CreateTextTagUnitBJ("Party Table",udg_A[66],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function WR7)))
set udg_Km[52]=GetUnitLoc(udg_A[66])
call PlaySoundAtPointBJ(udg_mr,100,udg_Km[52],0)
call RemoveLocation(udg_Km[52])
set udg_Km[52]=null
call TriggerSleepAction(0.20)
call DisableTrigger(udg_Rc)
call RemoveLocation(udg_B[32])
set udg_B[32]=null
call DestroyGroup(udg_G[16])
set udg_G[16]=null
set udg_A[66]=null
set udg_gk=0.00
endfunction
function W57 takes nothing returns nothing
set udg_Qc=CreateTrigger()
call TriggerAddCondition(udg_Qc,Condition(function WG7))
call TriggerAddAction(udg_Qc,function WS7)
endfunction
function WT7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[66])==true))then
return false
endif
return true
endfunction
function WU7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function WV7 takes nothing returns boolean
if((RectContainsUnit(udg_sn,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_An,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_jo,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_ko,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_mo,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_no,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_oo,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_po,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_qo,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_ro,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_so,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_Ro,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_So,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_vo,GetEnumUnit())==true))then
return true
endif
if((RectContainsUnit(udg_xo,GetEnumUnit())==true))then
return true
endif
return false
endfunction
function WW7 takes nothing returns boolean
if(not WV7())then
return false
endif
return true
endfunction
function WX7 takes nothing returns nothing
if(WW7())then
set udg_dg[13]=PG(GetUnitLoc(GetEnumUnit()),-12.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_B[32]))
call SetUnitPositionLoc(GetEnumUnit(),udg_dg[13])
call SetUnitFacingToFaceLocTimed(GetEnumUnit(),udg_B[32],0)
call UG(200.00,udg_dg[13],function WU7)
call RemoveLocation(udg_dg[13])
set udg_dg[13]=null
else
call DoNothing()
endif
endfunction
function WY7 takes nothing returns nothing
call ForGroupBJ(udg_G[16],function WX7)
endfunction
function W27 takes nothing returns nothing
set udg_Rc=CreateTrigger()
call DisableTrigger(udg_Rc)
call TriggerRegisterTimerEventPeriodic(udg_Rc,0.03)
call TriggerAddCondition(udg_Rc,Condition(function WT7))
call TriggerAddAction(udg_Rc,function WY7)
endfunction
function WZ7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677643))then
return false
endif
return true
endfunction
function W_7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function X47 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_a[9])==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[68])==true))then
return false
endif
return true
endfunction
function X77 takes nothing returns boolean
return(GetRandomInt(1,100)<=60)
endfunction
function X87 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[68]))]==true))then
return false
endif
return true
endfunction
function X97 takes nothing returns boolean
if(not X47())then
return false
endif
return true
endfunction
function Xd7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[68])==true)
endfunction
function Xe7 takes nothing returns boolean
return(IsUnitPausedBJ(udg_a[9])==true)
endfunction
function Xf7 takes nothing returns nothing
set udg_A[68]=GetTriggerUnit()
set udg_a[9]=GetSpellTargetUnit()
set udg_kk=(2.50*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[68],true)))
call PauseUnitBJ(true,udg_A[68])
call PauseUnitBJ(true,udg_a[9])
call SetUnitPathing(udg_A[68],false)
call SetUnitTimeScalePercent(udg_A[68],200.00)
set udg_ik[5]=GetUnitLoc(udg_A[68])
call AddSpecialEffectLocBJ(udg_ik[5],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_ik[5])
set udg_ik[5]=null
call CreateTextTagUnitBJ("Veau Shot",udg_A[68],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function W_7)))
set udg_Km[53]=GetUnitLoc(udg_A[68])
call PlaySoundAtPointBJ(udg_js,100,udg_Km[53],0)
call RemoveLocation(udg_Km[53])
set udg_Km[53]=null
call TriggerSleepAction(0.01)
set udg_Cj[31]=1
loop
exitwhen udg_Cj[31]>5
if(X97())then
set udg_ik[4]=GetUnitLoc(udg_a[9])
set udg_ik[5]=GetUnitLoc(udg_A[68])
set udg_ik[6]=PG(udg_ik[4],-30.00,AngleBetweenPoints(udg_ik[4],udg_ik[5]))
set udg_dg[14]=PG(udg_ik[6],128.00,AngleBetweenPoints(udg_ik[4],udg_ik[5]))
call SetUnitPositionLocFacingLocBJ(udg_a[9],udg_ik[6],udg_ik[5])
call SetUnitPositionLocFacingLocBJ(udg_A[68],udg_dg[14],udg_ik[4])
call AddSpecialEffectLocBJ(udg_ik[5],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(X77())then
call SetUnitAnimation(udg_A[68],"attack")
else
call SetUnitAnimation(udg_A[68],"spell")
endif
call SetUnitAnimation(udg_a[9],"stand hit")
if(X87())then
call UnitDamageTargetBJ(udg_A[68],udg_a[9],(udg_kk*1.20),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_a[9],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_a[9],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call UnitDamageTargetBJ(udg_A[68],udg_a[9],udg_kk,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_a[9],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endif
call RemoveLocation(udg_dg[14])
set udg_dg[14]=null
call RemoveLocation(udg_ik[4])
set udg_ik[4]=null
call RemoveLocation(udg_ik[5])
set udg_ik[5]=null
call RemoveLocation(udg_ik[6])
set udg_ik[6]=null
call TriggerSleepAction(0.00)
else
call DoNothing()
endif
set udg_Cj[31]=udg_Cj[31]+1
endloop
if(Xd7())then
call PauseUnitBJ(false,udg_A[68])
else
call DoNothing()
endif
if(Xe7())then
call PauseUnitBJ(false,udg_a[9])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_A[68],100.00)
call SetUnitPathing(udg_A[68],true)
set udg_A[68]=null
set udg_a[9]=null
set udg_kk=0.00
endfunction
function Xg7 takes nothing returns nothing
set udg_Sc=CreateTrigger()
call TriggerAddCondition(udg_Sc,Condition(function WZ7))
call TriggerAddAction(udg_Sc,function Xf7)
endfunction
function Xh7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677645))then
return false
endif
return true
endfunction
function Xi7 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Xj7 takes nothing returns boolean
if(not(GetUnitTypeId(udg_Zf[8])==1311780916))then
return false
endif
return true
endfunction
function Xk7 takes nothing returns boolean
return(GetUnitTypeId(udg_Zf[8])==1311780916)
endfunction
function Xm7 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(udg_Zf[8]))]==true)
endfunction
function Xn7 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_Zf[8]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,udg_Zf[8])==0))then
return false
endif
return true
endfunction
function Xo7 takes nothing returns boolean
if(not Xn7())then
return false
endif
return true
endfunction
function Xp7 takes nothing returns nothing
set udg_Zf[8]=GetTriggerUnit()
if(Xj7())then
set udg_dg[15]=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1868853091,GetOwningPlayer(udg_Zf[8]),udg_dg[15],bj_UNIT_FACING)
call RemoveLocation(udg_dg[15])
set udg_dg[15]=null
set udg_dg[15]=GetUnitLoc(udg_Zf[8])
call AddSpecialEffectLocBJ(udg_dg[15],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call RemoveLocation(udg_dg[15])
set udg_dg[15]=null
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_Zf[8],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Km[54]=GetUnitLoc(udg_Zf[8])
call PlaySoundAtPointBJ(udg_Ip,100,udg_Km[54],0)
call RemoveLocation(udg_Km[54])
set udg_Km[54]=null
else
set udg_eg[3]=k6(GetOwningPlayer(udg_Zf[8]),1868853091)
call ForGroupBJ(udg_eg[3],function Xi7)
call DestroyGroup(udg_eg[3])
set udg_eg[3]=null
endif
if(Xk7())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Zf[8]))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_Zf[8]))]=false
endif
call TriggerSleepAction(0.50)
if(Xo7())then
if(Xm7())then
call UnitAddAbilityBJ(1093677913,udg_Zf[8])
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_Zf[8]=null
endfunction
function Xq7 takes nothing returns nothing
set udg_Tc=CreateTrigger()
call TriggerAddCondition(udg_Tc,Condition(function Xh7))
call TriggerAddAction(udg_Tc,function Xp7)
endfunction
function Xr7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677648))then
return false
endif
return true
endfunction
function Xs7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Xt7 takes nothing returns boolean
return(IsTriggerEnabled(udg_Vc)==true)
endfunction
function Xu7 takes nothing returns nothing
set udg_A[67]=GetTriggerUnit()
set udg_B[33]=GetSpellTargetLoc()
set udg_dg[16]=GetUnitLoc(udg_A[67])
set udg_c[14]=AngleBetweenPoints(udg_dg[16],udg_B[33])
call CreateNUnitsAtLoc(1,1747988816,GetOwningPlayer(udg_A[67]),udg_dg[16],(udg_c[14]-25.00))
set udg_hk[1]=GetLastCreatedUnit()
set udg_ik[1]=PG(udg_dg[16],1200.00,(udg_c[14]-25.00))
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_hk[1])
call CreateNUnitsAtLoc(1,1747988816,GetOwningPlayer(udg_A[67]),udg_dg[16],udg_c[14])
set udg_hk[2]=GetLastCreatedUnit()
set udg_ik[2]=PG(udg_dg[16],1200.00,udg_c[14])
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_hk[2])
call CreateNUnitsAtLoc(1,1747988816,GetOwningPlayer(udg_A[67]),udg_dg[16],(udg_c[14]+25.00))
set udg_hk[3]=GetLastCreatedUnit()
set udg_ik[3]=PG(udg_dg[16],1200.00,(udg_c[14]+25.00))
call UnitApplyTimedLifeBJ(5.00,1112820806,udg_hk[3])
call RemoveLocation(udg_dg[16])
set udg_dg[16]=null
call RemoveLocation(udg_B[33])
set udg_B[33]=null
call CreateTextTagUnitBJ("Frit Assortie",udg_A[67],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Xs7)))
set udg_Km[55]=GetUnitLoc(udg_A[67])
call PlaySoundAtPointBJ(udg_dq,100,udg_Km[55],0)
call RemoveLocation(udg_Km[55])
set udg_Km[55]=null
call EnableTrigger(udg_Vc)
call TriggerSleepAction(8.00)
if(Xt7())then
call DisableTrigger(udg_Vc)
else
call DoNothing()
endif
set udg_A[67]=null
set udg_c[14]=0.00
call RemoveLocation(udg_ik[1])
set udg_ik[1]=null
call RemoveLocation(udg_ik[2])
set udg_ik[2]=null
call RemoveLocation(udg_ik[3])
set udg_ik[3]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_jk)
endfunction
function Xv7 takes nothing returns nothing
set udg_Uc=CreateTrigger()
call TriggerAddCondition(udg_Uc,Condition(function Xr7))
call TriggerAddAction(udg_Uc,function Xu7)
endfunction
function Xw7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_jk)==false)
endfunction
function Xx7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[67]))==true)
endfunction
function Xy7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Xz7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function XA7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Xa7 takes nothing returns boolean
return GetBooleanAnd(Xz7(),XA7())
endfunction
function XB7 takes nothing returns boolean
return GetBooleanAnd(Xy7(),Xa7())
endfunction
function Xb7 takes nothing returns boolean
return GetBooleanAnd(Xx7(),XB7())
endfunction
function XC7 takes nothing returns boolean
return GetBooleanAnd(Xw7(),Xb7())
endfunction
function Trig_Frit_move_Func001Func002Func004Func002Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=udg_ng)
endfunction
function Xc7 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_jk)
call UnitDamageTargetBJ(udg_A[67],GetEnumUnit(),(500.00+(12.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[67],true)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function XD7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function XE7 takes nothing returns boolean
return(udg_Cj[30]==3)
endfunction
function X37 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_dg[16],udg_ik[udg_Cj[30]])<=60.00))then
return false
endif
return true
endfunction
function XF7 takes nothing returns nothing
set udg_Cj[30]=1
loop
exitwhen udg_Cj[30]>3
set udg_dg[16]=PG(GetUnitLoc(udg_hk[udg_Cj[30]]),50.00,(udg_c[14]+(-50.00+(25.00*I2R(udg_Cj[30])))))
if(X37())then
call KillUnit(udg_hk[udg_Cj[30]])
set udg_hk[udg_Cj[30]]=null
if(XE7())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call SetUnitPositionLocFacingBJ(udg_hk[udg_Cj[30]],udg_dg[16],(udg_c[14]+(-50.00+(25.00*I2R(udg_Cj[30])))))
set udg_eg[5917]=e6(240.00,udg_dg[16],Condition(function XC7))
call ForGroupBJ(udg_eg[5917],function Xc7)
call DestroyGroup(udg_eg[5917])
set udg_eg[5917]=null
call UG(240.00,udg_dg[16],function XD7)
endif
call RemoveLocation(udg_dg[16])
set udg_dg[16]=null
set udg_Cj[30]=udg_Cj[30]+1
endloop
endfunction
function XG7 takes nothing returns nothing
set udg_Vc=CreateTrigger()
call DisableTrigger(udg_Vc)
call TriggerRegisterTimerEventPeriodic(udg_Vc,0.03)
call TriggerAddAction(udg_Vc,function XF7)
endfunction
function X67 takes nothing returns boolean
if((GetSpellAbilityId()==1093677643))then
return true
endif
if((GetSpellAbilityId()==1093677649))then
return true
endif
return false
endfunction
function XH7 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
if((MG(GetSpellTargetUnit(),UNIT_TYPE_ANCIENT)==true))then
return true
endif
return false
endfunction
function XI7 takes nothing returns boolean
if(not X67())then
return false
endif
if(not XH7())then
return false
endif
return true
endfunction
function Xl7 takes nothing returns boolean
if(not XI7())then
return false
endif
return true
endfunction
function X17 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function XJ7 takes nothing returns nothing
set udg_Wc=CreateTrigger()
call TriggerAddCondition(udg_Wc,Condition(function Xl7))
call TriggerAddAction(udg_Wc,function X17)
endfunction
function XK7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677649))then
return false
endif
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
return true
endfunction
function XL7 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_a[10],1227894839)==true))then
return false
endif
return true
endfunction
function XM7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function XN7 takes nothing returns boolean
if(not(udg_a[10]!=null))then
return false
endif
return true
endfunction
function XO7 takes nothing returns nothing
set udg_A[69]=GetTriggerUnit()
set udg_a[10]=GetSpellTargetUnit()
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[10]))]=true
call PauseUnitBJ(true,udg_A[69])
call PauseUnitBJ(true,udg_a[10])
call SetUnitInvulnerable(udg_A[69],true)
call ResetUnitAnimation(udg_A[69])
call TriggerSleepAction(0.01)
set udg_dg[18]=GetUnitLoc(udg_a[10])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[69]),udg_dg[18],bj_UNIT_FACING)
set udg_Zf[10]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_Zf[10])
call IssueTargetOrderBJ(udg_Zf[10],"thunderbolt",udg_a[10])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[10])
call RemoveLocation(udg_dg[18])
set udg_dg[18]=null
set udg_Zf[10]=null
if(XL7())then
set udg_dg[18]=GetUnitLoc(udg_a[10])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[69]),udg_dg[18],bj_UNIT_FACING)
set udg_Zf[10]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_Zf[10])
call IssueTargetOrderBJ(udg_Zf[10],"thunderbolt",udg_a[10])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[10])
call RemoveLocation(udg_dg[18])
set udg_dg[18]=null
else
call DoNothing()
endif
set udg_dg[18]=GetUnitLoc(udg_A[69])
call AddSpecialEffectLocBJ(udg_dg[18],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[18])
set udg_dg[18]=null
call SetUnitAnimation(udg_A[69],"attack")
set udg_dg[18]=GetUnitLoc(udg_a[10])
set udg_dg[19]=PG(GetUnitLoc(udg_a[10]),75.00,GetRandomDirectionDeg())
call SetUnitPositionLocFacingLocBJ(udg_A[69],udg_dg[19],udg_dg[18])
call RemoveLocation(udg_dg[19])
set udg_dg[19]=null
call AddSpecialEffectLocBJ(udg_dg[18],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[18])
set udg_dg[18]=null
call SetUnitPathing(udg_a[10],false)
call CreateTextTagUnitBJ("FLAMBAGE SHOT",udg_A[69],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function XM7)))
set udg_Km[56]=GetUnitLoc(udg_A[69])
call PlaySoundAtPointBJ(udg_Vp,100,udg_Km[56],0)
call RemoveLocation(udg_Km[56])
set udg_Km[56]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_a[10],"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
set udg_mk[1]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("chest",udg_a[10],"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
set udg_mk[2]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand right",udg_a[10],"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
set udg_mk[3]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand left",udg_a[10],"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
set udg_mk[4]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("foot right",udg_a[10],"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
set udg_mk[5]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("foot left",udg_a[10],"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
set udg_mk[6]=GetLastCreatedEffectBJ()
call EnableTrigger(udg_Yc)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_Yc)
if(XN7())then
call TriggerExecute(udg_Zc)
else
call DoNothing()
endif
endfunction
function X07 takes nothing returns nothing
set udg_Xc=CreateTrigger()
call TriggerAddCondition(udg_Xc,Condition(function XK7))
call TriggerAddAction(udg_Xc,function XO7)
endfunction
function XP7 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[69]))]==true))then
return false
endif
if(not(udg_a[10]!=null))then
return false
endif
return true
endfunction
function XQ7 takes nothing returns boolean
if(not XP7())then
return false
endif
return true
endfunction
function XR7 takes nothing returns boolean
if(not(udg_a[10]!=null))then
return false
endif
return true
endfunction
function XS7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function X57 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_a[10])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_a[10])==true))then
return true
endif
return false
endfunction
function XT7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_a[10])==true))then
return false
endif
if(not X57())then
return false
endif
return true
endfunction
function XU7 takes nothing returns nothing
if(XT7())then
set udg_dg[18]=PG(GetUnitLoc(udg_a[10]),35.00,AngleBetweenPoints(GetUnitLoc(udg_A[69]),GetUnitLoc(udg_a[10])))
call SetUnitPositionLoc(udg_a[10],udg_dg[18])
call RemoveLocation(udg_dg[18])
set udg_dg[18]=null
call UnitDamageTargetBJ(udg_A[69],udg_a[10],((0.30*I2R(GetHeroLevel(udg_A[69])))*(I2R(GetUnitAbilityLevelSwapped(1093677645,udg_A[69]))*I2R(GetUnitAbilityLevelSwapped(1093677649,udg_A[69])))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
set udg_dg[18]=GetUnitLoc(udg_a[10])
call AddSpecialEffectLocBJ(udg_dg[18],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(300.00,udg_dg[18],function XS7)
call RemoveLocation(udg_dg[18])
set udg_dg[18]=null
else
call DisableTrigger(GetTriggeringTrigger())
if(XR7())then
call TriggerExecute(udg_Zc)
else
call DoNothing()
endif
endif
endfunction
function XV7 takes nothing returns nothing
set udg_Yc=CreateTrigger()
call DisableTrigger(udg_Yc)
call TriggerRegisterTimerEventPeriodic(udg_Yc,0.03)
call TriggerAddCondition(udg_Yc,Condition(function XQ7))
call TriggerAddAction(udg_Yc,function XU7)
endfunction
function XW7 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[69]!=udg_x))then
return false
endif
if(not(udg_A[69]!=udg_y))then
return false
endif
return true
endfunction
function XX7 takes nothing returns boolean
if(not XW7())then
return false
endif
return true
endfunction
function XY7 takes nothing returns nothing
set udg_dg[18]=GetUnitLoc(udg_a[10])
call AddSpecialEffectLocBJ(udg_dg[18],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[18],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[18],"war3mapImported\\ChaosExplosion.mdx")
set udg_P[9]=GetLastCreatedEffectBJ()
call UnitDamageTargetBJ(udg_A[69],udg_a[10],(1000.00*I2R(GetUnitAbilityLevelSwapped(1093677649,udg_A[69]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call SetTerrainTypeBJ(udg_dg[18],1332964706,-1,4,0)
call PauseUnitBJ(false,udg_A[69])
call PauseUnitBJ(false,udg_a[10])
call SetUnitInvulnerable(udg_A[69],false)
call SetUnitInvulnerable(udg_a[10],false)
call SetUnitPathing(udg_a[10],true)
call SetUnitTimeScalePercent(udg_A[69],100)
call ResetUnitAnimation(udg_A[69])
call SetUnitAnimation(udg_a[10],"stand hit critical")
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[10]))]=false
if(XX7())then
call PauseUnitBJ(true,udg_A[69])
else
call DoNothing()
endif
call SelectUnitForPlayerSingle(udg_A[69],GetOwningPlayer(udg_A[69]))
set udg_A[69]=null
set udg_a[10]=null
call RemoveLocation(udg_dg[18])
set udg_dg[18]=null
call DestroyEffectBJ(udg_mk[1])
call DestroyEffectBJ(udg_mk[2])
call DestroyEffectBJ(udg_mk[3])
call DestroyEffectBJ(udg_mk[4])
call DestroyEffectBJ(udg_mk[5])
call DestroyEffectBJ(udg_mk[6])
call TriggerSleepAction(1.50)
call DestroyEffectBJ(udg_P[9])
endfunction
function X27 takes nothing returns nothing
set udg_Zc=CreateTrigger()
call TriggerAddAction(udg_Zc,function XY7)
endfunction
function XZ7 takes nothing returns boolean
if(not(udg_um==null))then
return false
endif
return true
endfunction
function X_7 takes nothing returns nothing
if(XZ7())then
call DestroyTrigger(udg_eD)
call DestroyTrigger(udg_fD)
call DestroyTrigger(udg_gD)
call DestroyTrigger(udg_hD)
call DestroyTrigger(udg_iD)
call DestroyTrigger(udg_jD)
call DestroyTrigger(udg_kD)
call DestroyTrigger(udg_mD)
call DestroyTrigger(udg_nD)
call DestroyTrigger(udg_oD)
call DestroyTrigger(udg_pD)
else
call TriggerRegisterUnitEvent(udg_eD,udg_um,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_gD,udg_um,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_hD,udg_um,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_jD,udg_um,EVENT_UNIT_HERO_SKILL)
call TriggerRegisterUnitEvent(udg_kD,udg_um,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_mD,udg_um,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_oD,udg_um,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_pD,udg_um,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function Y47 takes nothing returns nothing
set udg_dD=CreateTrigger()
call TriggerAddAction(udg_dD,function X_7)
endfunction
function Y77 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678390))then
return false
endif
return true
endfunction
function Y87 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Y97 takes nothing returns boolean
return(IsUnitAliveBJ(udg_Zf[12])==true)
endfunction
function Yd7 takes nothing returns nothing
set udg_Zf[11]=GetTriggerUnit()
set udg_dg[90]=GetSpellTargetLoc()
set udg_c[5911]=AngleBetweenPoints(GetUnitLoc(udg_Zf[11]),udg_dg[90])
call RemoveLocation(udg_dg[90])
set udg_dg[90]=null
set udg_dg[90]=PG(GetUnitLoc(udg_Zf[11]),150.00,udg_c[5911])
call CreateTextTagUnitBJ("Thunder Ball",udg_Zf[11],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Y87)))
set udg_Km[57]=GetUnitLoc(udg_Zf[11])
call PlaySoundAtPointBJ(udg_Ur,100,udg_Km[57],0)
call RemoveLocation(udg_Km[57])
set udg_Km[57]=null
call TriggerSleepAction(0.01)
call SetUnitFacingToFaceLocTimed(udg_Zf[11],udg_dg[90],0)
call CreateNUnitsAtLoc(1,1747988814,GetOwningPlayer(udg_Zf[11]),udg_dg[90],udg_c[5911])
set udg_Zf[12]=GetLastCreatedUnit()
call RemoveLocation(udg_dg[90])
set udg_dg[90]=null
call EnableTrigger(udg_fD)
call TriggerSleepAction(0.40)
call DisableTrigger(udg_fD)
if(Y97())then
call KillUnit(udg_Zf[12])
else
call DoNothing()
endif
set udg_Zf[11]=null
set udg_Zf[12]=null
set udg_c[5911]=0.00
set bj_wantDestroyGroup=true
call GroupClear(udg_Yj)
endfunction
function Ye7 takes nothing returns nothing
set udg_eD=CreateTrigger()
call TriggerAddCondition(udg_eD,Condition(function Y77))
call TriggerAddAction(udg_eD,function Yd7)
endfunction
function Yf7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[110])==true))then
return false
endif
return true
endfunction
function Yg7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Yj)==false)
endfunction
function Yh7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Zf[11]))==true)
endfunction
function Yi7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Yj7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Yk7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Ym7 takes nothing returns boolean
return GetBooleanAnd(Yj7(),Yk7())
endfunction
function Yn7 takes nothing returns boolean
return GetBooleanAnd(Yi7(),Ym7())
endfunction
function Yo7 takes nothing returns boolean
return GetBooleanAnd(Yh7(),Yn7())
endfunction
function Yp7 takes nothing returns boolean
return GetBooleanAnd(Yg7(),Yo7())
endfunction
function Trig_TB_move_Func001Func005Func002Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=udg_ng)
endfunction
function Yq7 takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Yr7 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_Yj)
call UnitDamageTargetBJ(udg_Zf[11],GetEnumUnit(),(6.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Zf[11],true))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
if(Yq7())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Zf[11]),udg_dg[90],bj_UNIT_FACING)
set udg_Zf[13]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678403,udg_Zf[13])
call IssueTargetOrderBJ(udg_Zf[13],"slow",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[13])
set udg_Zf[13]=null
else
call DoNothing()
endif
endfunction
function Ys7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Yj)==false)
endfunction
function Yt7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Zf[11]))==true)
endfunction
function Yu7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Yv7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Yw7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Yx7 takes nothing returns boolean
return GetBooleanAnd(Yv7(),Yw7())
endfunction
function Yy7 takes nothing returns boolean
return GetBooleanAnd(Yu7(),Yx7())
endfunction
function Yz7 takes nothing returns boolean
return GetBooleanAnd(Yt7(),Yy7())
endfunction
function YA7 takes nothing returns boolean
return GetBooleanAnd(Ys7(),Yz7())
endfunction
function Trig_TB_move_Func001Func008Func002Func003Func001Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=udg_ng)
endfunction
function Ya7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Zf[11],GetEnumUnit(),(15.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Zf[11],true))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function YB7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_dg[90],udg_B[70])<=140.00))then
return false
endif
return true
endfunction
function Yb7 takes nothing returns boolean
if(not(udg_W==true))then
return false
endif
return true
endfunction
function Trig_TB_move_Func001Func009Func002Func002Func002Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=udg_ng)
endfunction
function YC7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_dg[90],udg_dg[91])<=500.00))then
return false
endif
return true
endfunction
function Yc7 takes nothing returns boolean
if(not(udg_A[110]!=null))then
return false
endif
return true
endfunction
function YD7 takes nothing returns boolean
if(not(udg_Zj==false))then
return false
endif
return true
endfunction
function YE7 takes nothing returns nothing
if(YD7())then
set udg_dg[90]=PG(GetUnitLoc(udg_Zf[12]),45.00,udg_c[5911])
call SetUnitPositionLocFacingBJ(udg_Zf[12],udg_dg[90],udg_c[5911])
set udg_eg[5911]=e6(220.00,udg_dg[90],Condition(function Yp7))
call ForGroupBJ(udg_eg[5911],function Yr7)
call DestroyGroup(udg_eg[5911])
set udg_eg[5911]=null
if(Yb7())then
if(YB7())then
call KillUnit(udg_Zf[12])
set udg_eg[5911]=e6(350.00,udg_B[70],Condition(function YA7))
call ForGroupBJ(udg_eg[5911],function Ya7)
call DestroyGroup(udg_eg[5911])
set udg_eg[5911]=null
call AddSpecialEffectLocBJ(udg_B[70],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_Zf[12]),udg_B[70],bj_UNIT_FACING)
set udg_Zf[13]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Zf[13],200.00,200.00,200.00)
call SetUnitTimeScalePercent(udg_Zf[13],60.00)
call UnitApplyTimedLifeBJ(3.00,1112820806,udg_Zf[13])
set udg_Zf[13]=null
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_Zf[12]),udg_B[70],bj_UNIT_FACING)
set udg_Zf[13]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Zf[13],250.00,250.00,250.00)
call SetUnitTimeScalePercent(udg_Zf[13],200.00)
call UnitApplyTimedLifeBJ(3.00,1112820806,udg_Zf[13])
set udg_Zf[13]=null
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Yc7())then
if(YC7())then
set udg_Zj=true
call SetUnitFlyHeightBJ(udg_Zf[12],850.00,2000.00)
call TriggerExecute(udg_iD)
else
call DoNothing()
endif
else
call DoNothing()
endif
call RemoveLocation(udg_dg[90])
set udg_dg[90]=null
else
if(Yf7())then
set udg_dg[90]=PG(GetUnitLoc(udg_Zf[12]),45.00,AngleBetweenPoints(GetUnitLoc(udg_Zf[12]),udg_dg[91]))
call SetUnitPositionLocFacingBJ(udg_Zf[12],udg_dg[90],AngleBetweenPoints(GetUnitLoc(udg_Zf[12]),udg_dg[91]))
call RemoveLocation(udg_dg[90])
set udg_dg[90]=null
else
call KillUnit(udg_Zf[12])
endif
endif
endfunction
function Y37 takes nothing returns nothing
set udg_fD=CreateTrigger()
call DisableTrigger(udg_fD)
call TriggerRegisterTimerEventPeriodic(udg_fD,0.03)
call TriggerAddAction(udg_fD,function YE7)
endfunction
function YF7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678389))then
return false
endif
return true
endfunction
function YG7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Y67 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function YH7 takes nothing returns boolean
if(not(udg_W==true))then
return false
endif
return true
endfunction
function YI7 takes nothing returns nothing
set udg_A[108]=GetTriggerUnit()
set udg_B[72]=GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ(1,1966092338,GetOwningPlayer(udg_A[108]),udg_B[72],udg_B[72])
set udg_Zf[14]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678407,udg_Zf[14])
call SetUnitAbilityLevelSwapped(1093678407,udg_Zf[14],GetUnitAbilityLevelSwapped(1093678389,udg_A[108]))
call IssueImmediateOrderBJ(udg_Zf[14],"thunderclap")
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[14])
set udg_Zf[14]=null
call AddSpecialEffectLocBJ(udg_B[72],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(YH7())then
call CreateTextTagUnitBJ("THUNDERLANCE TEMPO",udg_A[108],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function YG7)))
set udg_Km[58]=GetUnitLoc(udg_A[108])
call PlaySoundAtPointBJ(udg_Wr,100,udg_Km[58],0)
call RemoveLocation(udg_Km[58])
set udg_Km[58]=null
else
call CreateTextTagUnitBJ("Swing Arm",udg_A[108],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Y67)))
set udg_Km[58]=GetUnitLoc(udg_A[108])
call PlaySoundAtPointBJ(udg_Rr,100,udg_Km[58],0)
call RemoveLocation(udg_Km[58])
set udg_Km[58]=null
endif
set udg_A[108]=null
call RemoveLocation(udg_B[72])
set udg_B[72]=null
endfunction
function Yl7 takes nothing returns nothing
set udg_gD=CreateTrigger()
call TriggerAddCondition(udg_gD,Condition(function YF7))
call TriggerAddAction(udg_gD,function YI7)
endfunction
function Y17 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678393))then
return false
endif
return true
endfunction
function YJ7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function YK7 takes nothing returns nothing
set udg_A[109]=GetTriggerUnit()
set udg_dg[91]=GetSpellTargetLoc()
set udg_Zj=false
call CreateNUnitsAtLoc(1,1747988815,GetOwningPlayer(udg_A[109]),udg_dg[91],bj_UNIT_FACING)
set udg_A[110]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_A[110],200.00)
call UnitApplyTimedLifeBJ(15.00,1112820806,udg_A[110])
call CreateTextTagUnitBJ("Cloudy Tempo",udg_A[109],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function YJ7)))
set udg_Km[59]=GetUnitLoc(udg_A[109])
call PlaySoundAtPointBJ(udg_Bp,100,udg_Km[59],0)
call RemoveLocation(udg_Km[59])
set udg_Km[59]=null
call TriggerSleepAction(10.00)
call SetUnitTimeScalePercent(udg_A[110],100.00)
call KillUnit(udg_A[110])
set udg_A[109]=null
set udg_A[110]=null
set udg_Zj=false
call RemoveLocation(udg_dg[91])
set udg_dg[91]=null
endfunction
function YL7 takes nothing returns nothing
set udg_hD=CreateTrigger()
call TriggerAddCondition(udg_hD,Condition(function Y17))
call TriggerAddAction(udg_hD,function YK7)
endfunction
function YM7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function YN7 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function YO7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[109]))==true)
endfunction
function Y07 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function YP7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function YQ7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function YR7 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),GetOwningPlayer(udg_A[109]))==true)
endfunction
function YS7 takes nothing returns boolean
return GetBooleanAnd(YQ7(),YR7())
endfunction
function Y57 takes nothing returns boolean
return GetBooleanAnd(YP7(),YS7())
endfunction
function YT7 takes nothing returns boolean
return GetBooleanAnd(Y07(),Y57())
endfunction
function YU7 takes nothing returns boolean
return GetBooleanAnd(YO7(),YT7())
endfunction
function YV7 takes nothing returns boolean
return GetBooleanAnd(YN7(),YU7())
endfunction
function Trig_Thunderbolt_Tempo_Func002Func009Func001Func002Func001Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=udg_ng)
endfunction
function YW7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[109],GetEnumUnit(),((50.00+(50.00*I2R(GetUnitAbilityLevelSwapped(1093678393,udg_A[109]))))+((0.50+(0.50*I2R(GetUnitAbilityLevelSwapped(1093678393,udg_A[109]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_A[109],true)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"war3mapImported\\Great Lightning.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function YX7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[110])==true))then
return false
endif
return true
endfunction
function YY7 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[110])==true))then
return false
endif
return true
endfunction
function Y27 takes nothing returns nothing
call TriggerSleepAction(0.20)
if(YY7())then
call CreateTextTagUnitBJ("Thunderbolt Tempo",udg_A[109],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function YM7)))
set udg_Km[60]=GetUnitLoc(udg_A[109])
call PlaySoundAtPointBJ(udg_Vr,100,udg_Km[60],0)
call RemoveLocation(udg_Km[60])
set udg_Km[60]=null
set udg_Cj[25]=1
loop
exitwhen udg_Cj[25]>6
if(YX7())then
set udg_eg[5912]=e6(800.00,udg_dg[91],Condition(function YV7))
call ForGroupBJ(udg_eg[5912],function YW7)
call DestroyGroup(udg_eg[5912])
set udg_eg[5912]=null
call TriggerSleepAction(1.00)
else
call DoNothing()
endif
set udg_Cj[25]=udg_Cj[25]+1
endloop
else
call DoNothing()
endif
endfunction
function YZ7 takes nothing returns nothing
set udg_iD=CreateTrigger()
call TriggerAddAction(udg_iD,function Y27)
endfunction
function Y_7 takes nothing returns boolean
if(not(GetLearnedSkillBJ()==1093681480))then
return false
endif
if(not(GetUnitTypeId(GetLearningUnit())==1160785969))then
return false
endif
return true
endfunction
function Z47 takes nothing returns boolean
if(not Y_7())then
return false
endif
return true
endfunction
function Z77 takes nothing returns nothing
set udg_Tf=GetLearningUnit()
set udg_B[1010]=GetRectCenter(udg_qo)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Tf),udg_B[1010],bj_UNIT_FACING)
set udg_Sf=GetLastCreatedUnit()
call UnitAddItemByIdSwapped(1227895632,udg_Sf)
call RemoveLocation(udg_B[1010])
set udg_B[1010]=null
set udg_Tf=null
call DisableTrigger(GetTriggeringTrigger())
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Z87 takes nothing returns nothing
set udg_jD=CreateTrigger()
call TriggerAddCondition(udg_jD,Condition(function Z47))
call TriggerAddAction(udg_jD,function Z77)
endfunction
function Z97 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681480))then
return false
endif
return true
endfunction
function Zd7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Ze7 takes nothing returns nothing
set udg_Rf=GetTriggerUnit()
set udg_b[1010]=1
loop
exitwhen udg_b[1010]>4
call UnitUseItemTarget(udg_Sf,UnitItemInSlotBJ(udg_Sf,1),udg_Rf)
set udg_b[1010]=udg_b[1010]+1
endloop
call CreateTextTagUnitBJ("Mirage Tempo",udg_Rf,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Zd7)))
set udg_Km[61]=GetUnitLoc(udg_Rf)
call PlaySoundAtPointBJ(udg_hr,100,udg_Km[61],0)
call RemoveLocation(udg_Km[61])
set udg_Km[61]=null
set udg_Rf=null
endfunction
function Zf7 takes nothing returns nothing
set udg_kD=CreateTrigger()
call TriggerAddCondition(udg_kD,Condition(function Z97))
call TriggerAddAction(udg_kD,function Ze7)
endfunction
function Zg7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678405))then
return false
endif
return true
endfunction
function Zh7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function Zi7 takes nothing returns nothing
set udg_ek=GetTriggerUnit()
set udg_dg[5913]=GetSpellTargetLoc()
set udg_c[5913]=AngleBetweenPoints(GetUnitLoc(udg_ek),udg_dg[5913])
call RemoveLocation(udg_dg[5913])
set udg_dg[5913]=null
set udg_dg[5913]=PG(GetUnitLoc(udg_ek),150.00,udg_c[5913])
set udg_dg[5914]=PG(udg_dg[5913],2500.00,udg_c[5913])
call CreateTextTagUnitBJ("Cyclone Tempo",udg_ek,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Zh7)))
set udg_Km[62]=GetUnitLoc(udg_ek)
call PlaySoundAtPointBJ(udg_Fp,100,udg_Km[62],0)
call RemoveLocation(udg_Km[62])
set udg_Km[62]=null
call TriggerSleepAction(0.01)
call SetUnitFacingToFaceLocTimed(udg_ek,udg_dg[5913],0)
call CreateNUnitsAtLoc(1,1747988813,GetOwningPlayer(udg_ek),udg_dg[5913],udg_c[5913])
set udg_fk=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_fk,180.00)
call SetUnitScalePercent(udg_fk,70.00,70.00,70.00)
call RemoveLocation(udg_dg[5913])
set udg_dg[5913]=null
call EnableTrigger(udg_nD)
call TriggerSleepAction(8.00)
set udg_ek=null
set udg_fk=null
set udg_c[5913]=0.00
call RemoveLocation(udg_dg[5914])
set udg_dg[5914]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_dk)
endfunction
function Zj7 takes nothing returns nothing
set udg_mD=CreateTrigger()
call TriggerAddCondition(udg_mD,Condition(function Zg7))
call TriggerAddAction(udg_mD,function Zi7)
endfunction
function Zk7 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_dk)==false)
endfunction
function Zm7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_ek))==true)
endfunction
function Zn7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Zo7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Zp7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Zq7 takes nothing returns boolean
return GetBooleanAnd(Zo7(),Zp7())
endfunction
function Zr7 takes nothing returns boolean
return GetBooleanAnd(Zn7(),Zq7())
endfunction
function Zs7 takes nothing returns boolean
return GetBooleanAnd(Zm7(),Zr7())
endfunction
function Zt7 takes nothing returns boolean
return GetBooleanAnd(Zk7(),Zs7())
endfunction
function Trig_Cyclone_move_Func002Func004Func002Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=udg_ng)
endfunction
function Zu7 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_dg[5913])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_dg[5913])==true))then
return true
endif
return false
endfunction
function Zv7 takes nothing returns boolean
if(not(IsUnitPausedBJ(GetEnumUnit())==false))then
return false
endif
if(not(IsUnitHiddenBJ(GetEnumUnit())==false))then
return false
endif
if(not Zu7())then
return false
endif
return true
endfunction
function Zw7 takes nothing returns boolean
if(not Zv7())then
return false
endif
return true
endfunction
function Zx7 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_dk)
call UnitDamageTargetBJ(udg_ek,GetEnumUnit(),((6.00+(2.00*I2R(GetUnitAbilityLevelSwapped(1093678405,udg_ek))))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_ek,true))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
if(Zw7())then
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_dg[5913],AngleBetweenPoints(udg_dg[5913],GetUnitLoc(GetEnumUnit())))
else
call DoNothing()
endif
endfunction
function Zy7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function Zz7 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_dg[5913],udg_dg[5914])<=60.00))then
return false
endif
return true
endfunction
function ZA7 takes nothing returns nothing
set udg_dg[5913]=PG(GetUnitLoc(udg_fk),30.00,udg_c[5913])
if(Zz7())then
call SetUnitTimeScalePercent(udg_fk,100)
call KillUnit(udg_fk)
call DisableTrigger(GetTriggeringTrigger())
else
call SetUnitPositionLocFacingBJ(udg_fk,udg_dg[5913],udg_c[5913])
set udg_eg[5913]=e6(200.00,udg_dg[5913],Condition(function Zt7))
call ForGroupBJ(udg_eg[5913],function Zx7)
call DestroyGroup(udg_eg[5913])
set udg_eg[5913]=null
call UG(200.00,udg_dg[5913],function Zy7)
endif
call RemoveLocation(udg_dg[5913])
set udg_dg[5913]=null
endfunction
function Za7 takes nothing returns nothing
set udg_nD=CreateTrigger()
call DisableTrigger(udg_nD)
call TriggerRegisterTimerEventPeriodic(udg_nD,0.03)
call TriggerAddAction(udg_nD,function ZA7)
endfunction
function ZB7 takes nothing returns boolean
if((GetSpellAbilityId()==1093678408))then
return true
endif
if((GetSpellAbilityId()==1093679175))then
return true
endif
return false
endfunction
function Zb7 takes nothing returns boolean
if(not ZB7())then
return false
endif
return true
endfunction
function ZC7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679175))then
return false
endif
return true
endfunction
function Zc7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678408))then
return false
endif
return true
endfunction
function ZD7 takes nothing returns boolean
if(not(udg_W==true))then
return false
endif
return true
endfunction
function ZE7 takes nothing returns nothing
set udg_Om=GetTriggerUnit()
set udg_B[70]=PG(GetUnitLoc(udg_Om),300.00,GetUnitFacing(udg_Om))
if(Zc7())then
set udg_q4[502]=(I2R(GetUnitAbilityLevelSwapped(1093678408,udg_Om))*(8.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Om,true))))
else
if(ZC7())then
set udg_q4[502]=(I2R(GetUnitAbilityLevelSwapped(1093679175,udg_Om))*(8.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Om,true))))
else
call DoNothing()
endif
endif
call AddSpecialEffectLocBJ(udg_B[70],"war3mapImported\\OutlandStorm.mdx")
set udg_P[70]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("weapon",udg_Om,"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
set udg_P[71]=GetLastCreatedEffectBJ()
set udg_W=true
call TriggerSleepAction(40.00)
if(ZD7())then
set udg_W=false
set udg_Om=null
set udg_N[111]=0
set udg_C[111]=0
set udg_q4[502]=0.00
call DestroyEffectBJ(udg_P[70])
call DestroyEffectBJ(udg_P[71])
call RemoveLocation(udg_B[70])
set udg_B[70]=null
call RemoveLocation(udg_B[71])
set udg_B[71]=null
else
call DoNothing()
endif
endfunction
function Z37 takes nothing returns nothing
set udg_oD=CreateTrigger()
call TriggerAddCondition(udg_oD,Condition(function Zb7))
call TriggerAddAction(udg_oD,function ZE7)
endfunction
function ZF7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678389))then
return false
endif
if(not(udg_W==true))then
return false
endif
return true
endfunction
function ZG7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Z67 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Om))==true)
endfunction
function ZH7 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function ZI7 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Zl7 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Z17 takes nothing returns boolean
return GetBooleanAnd(ZI7(),Zl7())
endfunction
function ZJ7 takes nothing returns boolean
return GetBooleanAnd(ZH7(),Z17())
endfunction
function ZK7 takes nothing returns boolean
return GetBooleanAnd(Z67(),ZJ7())
endfunction
function ZL7 takes nothing returns boolean
return GetBooleanAnd(ZG7(),ZK7())
endfunction
function ZM7 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Om,GetEnumUnit(),udg_q4[502],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function ZN7 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function ZO7 takes nothing returns nothing
set udg_N[111]=0
set udg_B[71]=GetSpellTargetLoc()
call AddLightningLoc("CLPB",udg_B[70],udg_B[71])
set udg_S[111]=GetLastCreatedLightningBJ()
call AddLightningLoc("CLSB",udg_B[70],udg_B[71])
set udg_S[112]=GetLastCreatedLightningBJ()
call AddLightningLoc("FORK",udg_B[70],udg_B[71])
set udg_S[113]=GetLastCreatedLightningBJ()
set udg_C[111]=R2I((DistanceBetweenPoints(udg_B[70],udg_B[71])/300.00))
set udg_b[111]=1
loop
exitwhen udg_b[111]>udg_C[111]
set udg_dg[22]=PG(udg_B[70],I2R(udg_N[111]),AngleBetweenPoints(udg_B[70],udg_B[71]))
set udg_eg[4]=e6(360.00,udg_dg[22],Condition(function ZL7))
call ForGroupBJ(udg_eg[4],function ZM7)
call AddSpecialEffectLocBJ(udg_dg[22],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(300.00,udg_dg[22],function ZN7)
set udg_N[111]=(udg_N[111]+300)
call RemoveLocation(udg_dg[22])
set udg_dg[22]=null
call DestroyGroup(udg_eg[4])
set udg_eg[4]=null
set udg_b[111]=udg_b[111]+1
endloop
set udg_W=false
set udg_Om=null
set udg_N[111]=0
set udg_C[111]=0
set udg_q4[502]=0.00
call DestroyEffectBJ(udg_P[70])
call DestroyEffectBJ(udg_P[71])
call RemoveLocation(udg_B[70])
set udg_B[70]=null
call RemoveLocation(udg_B[71])
set udg_B[71]=null
call TriggerSleepAction(1.60)
call DestroyLightningBJ(udg_S[111])
call DestroyLightningBJ(udg_S[112])
call DestroyLightningBJ(udg_S[113])
endfunction
function Z07 takes nothing returns nothing
set udg_pD=CreateTrigger()
call TriggerAddCondition(udg_pD,Condition(function ZF7))
call TriggerAddAction(udg_pD,function ZO7)
endfunction
function ZP7 takes nothing returns boolean
if(not(udg_vm==null))then
return false
endif
return true
endfunction
function ZQ7 takes nothing returns nothing
if(ZP7())then
call DestroyTrigger(udg_rD)
call DestroyTrigger(udg_sD)
call DestroyTrigger(udg_tD)
call DestroyTrigger(udg_uD)
call DestroyTrigger(udg_vD)
call DestroyTrigger(udg_wD)
call DestroyTrigger(udg_xD)
call DestroyTrigger(udg_yD)
call DestroyTrigger(udg_zD)
else
call TriggerRegisterUnitEvent(udg_rD,udg_vm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_sD,udg_vm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_tD,udg_vm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_uD,udg_vm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_vD,udg_vm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_wD,udg_vm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_xD,udg_vm,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_yD,udg_vm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function ZR7 takes nothing returns nothing
set udg_qD=CreateTrigger()
call TriggerAddAction(udg_qD,function ZQ7)
endfunction
function ZS7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677881))then
return true
endif
if((GetSpellAbilityId()==1093677879))then
return true
endif
if((GetSpellAbilityId()==1093677617))then
return true
endif
return false
endfunction
function Z57 takes nothing returns boolean
if(not ZS7())then
return false
endif
return true
endfunction
function ZT7 takes nothing returns boolean
if((GetSpellAbilityId()==1093677881))then
return true
endif
if((GetSpellAbilityId()==1093677879))then
return true
endif
return false
endfunction
function ZU7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function ZV7 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function ZW7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677617))then
return false
endif
return true
endfunction
function ZX7 takes nothing returns boolean
if(not ZT7())then
return false
endif
return true
endfunction
function ZY7 takes nothing returns nothing
if(ZX7())then
call CreateTextTagUnitBJ("Cien Fleur...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function ZU7)))
else
if(ZW7())then
call CreateTextTagUnitBJ("Ochenta Fleur...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function ZV7)))
else
call DoNothing()
endif
endif
endfunction
function Z27 takes nothing returns nothing
set udg_rD=CreateTrigger()
call TriggerAddCondition(udg_rD,Condition(function Z57))
call TriggerAddAction(udg_rD,function ZY7)
endfunction
function ZZ7 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677879))then
return false
endif
return true
endfunction
function Z_7 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[77]))==true)
endfunction
function d48 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function d78 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function d88 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function d98 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function dd8 takes nothing returns boolean
return GetBooleanAnd(d88(),d98())
endfunction
function de8 takes nothing returns boolean
return GetBooleanAnd(d78(),dd8())
endfunction
function df8 takes nothing returns boolean
return GetBooleanAnd(d48(),de8())
endfunction
function dg8 takes nothing returns boolean
return GetBooleanAnd(Z_7(),df8())
endfunction
function dh8 takes nothing returns nothing
set udg_dg[23]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[77]),udg_dg[23],bj_UNIT_FACING)
set udg_Zf[25]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678137,udg_Zf[25])
call SetUnitAbilityLevelSwapped(1093678137,udg_Zf[25],1)
call IssueTargetOrderBJ(udg_Zf[25],"ensnare",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[25])
set udg_Zf[25]=null
call UnitDamageTargetBJ(udg_A[77],GetEnumUnit(),((110.00+(115.00*I2R(GetUnitAbilityLevelSwapped(1093677879,udg_A[77]))))+(3.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_A[77],true)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[23])
set udg_dg[23]=null
endfunction
function di8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function dj8 takes nothing returns nothing
set udg_A[77]=GetTriggerUnit()
set udg_G[24]=e6(350.00,GetSpellTargetLoc(),Condition(function dg8))
call ForGroupBJ(udg_G[24],function dh8)
call CreateTextTagUnitBJ("Spider Net",udg_A[77],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function di8)))
set udg_Km[63]=GetUnitLoc(udg_A[77])
call PlaySoundAtPointBJ(udg_Mr,100,udg_Km[63],0)
call RemoveLocation(udg_Km[63])
set udg_Km[63]=null
set udg_A[77]=null
call DestroyGroup(udg_G[24])
set udg_G[24]=null
endfunction
function dk8 takes nothing returns nothing
set udg_sD=CreateTrigger()
call TriggerAddCondition(udg_sD,Condition(function ZZ7))
call TriggerAddAction(udg_sD,function dj8)
endfunction
function dm8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677139))then
return false
endif
return true
endfunction
function dn8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function do8 takes nothing returns nothing
call CreateTextTagUnitBJ("Dose Fleur",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function dn8)))
set udg_Km[64]=GetUnitLoc(GetTriggerUnit())
call PlaySoundAtPointBJ(udg_Jp,100,udg_Km[64],0)
call RemoveLocation(udg_Km[64])
set udg_Km[64]=null
call AddSpecialEffectTargetUnitBJ("origin",GetSpellTargetUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function dp8 takes nothing returns nothing
set udg_tD=CreateTrigger()
call TriggerAddCondition(udg_tD,Condition(function dm8))
call TriggerAddAction(udg_tD,function do8)
endfunction
function dq8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677398))then
return false
endif
return true
endfunction
function dr8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[78]))==true)
endfunction
function ds8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function dt8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function du8 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454606)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454607)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454320)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454321)==true))then
return false
endif
return true
endfunction
function dv8 takes nothing returns boolean
if(not du8())then
return false
endif
return true
endfunction
function dw8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function dx8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function dy8 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454606)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454607)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454320)==true))then
return false
endif
return true
endfunction
function dz8 takes nothing returns boolean
if(not dy8())then
return false
endif
return true
endfunction
function dA8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function da8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function dB8 takes nothing returns boolean
if((UnitHasBuffBJ(GetEnumUnit(),1110454606)==true))then
return true
endif
if((UnitHasBuffBJ(GetEnumUnit(),1110454607)==true))then
return true
endif
return false
endfunction
function db8 takes nothing returns boolean
if(not dB8())then
return false
endif
return true
endfunction
function dC8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function dc8 takes nothing returns boolean
if((UnitHasBuffBJ(GetEnumUnit(),1110454322)==true))then
return true
endif
if((UnitHasBuffBJ(GetEnumUnit(),1110454323)==true))then
return true
endif
return false
endfunction
function dD8 takes nothing returns boolean
if(not dc8())then
return false
endif
return true
endfunction
function dE8 takes nothing returns nothing
if(dv8())then
call UnitDamageTargetBJ(udg_A[78],GetEnumUnit(),(700.00+((I2R(GetUnitAbilityLevelSwapped(1093677398,udg_A[78]))*(I2R(GetHeroLevel(udg_A[78]))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_A[78],true))))/16.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ("Cuatra Mano CLUTCH!!",udg_A[78],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function ds8)))
call CreateTextTagUnitBJ("!!!",GetEnumUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function dt8)))
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Units\\Undead\\Abomination\\AbominationExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitRemoveBuffBJ(1110454321,GetEnumUnit())
else
call DoNothing()
endif
if(dz8())then
call UnitDamageTargetBJ(udg_A[78],GetEnumUnit(),(500.00+((I2R(GetUnitAbilityLevelSwapped(1093677398,udg_A[78]))*(I2R(GetHeroLevel(udg_A[78]))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_A[78],true))))/16.00)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ("Dose Fleur CLUTCH!!",udg_A[78],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function dw8)))
call CreateTextTagUnitBJ("!",GetEnumUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function dx8)))
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitRemoveBuffBJ(1110454320,GetEnumUnit())
else
call DoNothing()
endif
if(db8())then
call UnitDamageTargetBJ(udg_A[78],GetEnumUnit(),(400.00+((I2R(GetUnitAbilityLevelSwapped(1093677398,udg_A[78]))*(I2R(GetHeroLevel(udg_A[78]))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_A[78],true))))/16.00)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ("Spider Net CLUTCH!!",udg_A[78],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function dA8)))
call CreateTextTagUnitBJ("!",GetEnumUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function da8)))
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitRemoveBuffBJ(1110454606,GetEnumUnit())
call UnitRemoveBuffBJ(1110454607,GetEnumUnit())
else
call DoNothing()
endif
if(dD8())then
call UnitDamageTargetBJ(udg_A[78],GetEnumUnit(),750.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ("!",GetEnumUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function dC8)))
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitRemoveBuffBJ(1110454322,GetEnumUnit())
call UnitRemoveBuffBJ(1110454323,GetEnumUnit())
else
call DoNothing()
endif
endfunction
function d38 takes nothing returns nothing
set udg_A[78]=GetTriggerUnit()
set udg_eg[5]=e6(2000.00,GetUnitLoc(udg_A[78]),Condition(function dr8))
call ForGroupBJ(udg_eg[5],function dE8)
set udg_Km[65]=GetUnitLoc(udg_A[78])
call PlaySoundAtPointBJ(udg_bp,100,udg_Km[65],0)
call RemoveLocation(udg_Km[65])
set udg_Km[65]=null
set udg_A[78]=null
call DestroyGroup(udg_eg[5])
set udg_eg[5]=null
endfunction
function dF8 takes nothing returns nothing
set udg_uD=CreateTrigger()
call TriggerAddCondition(udg_uD,Condition(function dq8))
call TriggerAddAction(udg_uD,function d38)
endfunction
function dG8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677617))then
return false
endif
return true
endfunction
function d68 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function dH8 takes nothing returns nothing
set udg_Zf[26]=GetTriggerUnit()
set udg_Zf[27]=GetSpellTargetUnit()
set udg_dg[24]=GetUnitLoc(udg_Zf[27])
call CreateTextTagUnitBJ("Cuatra Mano",udg_Zf[26],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function d68)))
set udg_Km[66]=GetUnitLoc(udg_Zf[26])
call PlaySoundAtPointBJ(udg_Dp,100,udg_Km[66],0)
call RemoveLocation(udg_Km[66])
set udg_Km[66]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_Zf[27],"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[24],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Zf[26]=null
set udg_Zf[27]=null
call RemoveLocation(udg_dg[24])
set udg_dg[24]=null
endfunction
function dI8 takes nothing returns nothing
set udg_vD=CreateTrigger()
call TriggerAddCondition(udg_vD,Condition(function dG8))
call TriggerAddAction(udg_vD,function dH8)
endfunction
function dl8 takes nothing returns boolean
if((GetSpellAbilityId()==1093679184))then
return true
endif
if((GetSpellAbilityId()==1093679185))then
return true
endif
return false
endfunction
function d18 takes nothing returns boolean
if(not dl8())then
return false
endif
return true
endfunction
function dJ8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679185))then
return false
endif
return true
endfunction
function dK8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679184))then
return false
endif
return true
endfunction
function dL8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_I8))==true)
endfunction
function dM8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function dN8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function dO8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function d08 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function dP8 takes nothing returns boolean
return GetBooleanAnd(dO8(),d08())
endfunction
function dQ8 takes nothing returns boolean
return GetBooleanAnd(dN8(),dP8())
endfunction
function dR8 takes nothing returns boolean
return GetBooleanAnd(dM8(),dQ8())
endfunction
function dS8 takes nothing returns boolean
return GetBooleanAnd(dL8(),dR8())
endfunction
function d58 takes nothing returns nothing
call UnitDamageTargetBJ(udg_I8,GetEnumUnit(),udg_M8,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function dT8 takes nothing returns boolean
if(not(udg_vg==true))then
return false
endif
return true
endfunction
function dU8 takes nothing returns boolean
if(not(udg_vg==true))then
return false
endif
return true
endfunction
function dV8 takes nothing returns nothing
set udg_I8=GetTriggerUnit()
set udg_L8=GetTriggerUnit()
set udg_vg=true
if(dK8())then
set udg_J8=6
set udg_M8=((7.00+I2R(GetUnitAbilityLevelSwapped(1093679184,udg_I8)))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_I8,true)))
else
if(dJ8())then
set udg_J8=8
set udg_M8=((7.00+I2R(GetUnitAbilityLevelSwapped(1093679185,udg_I8)))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_I8,true)))
else
call DoNothing()
endif
endif
set udg_K8=1
loop
exitwhen udg_K8>udg_J8
if(dT8())then
set udg_l8=e6(500.00,GetUnitLoc(udg_L8),Condition(function dS8))
call ForGroupBJ(udg_l8,function d58)
set udg_dg[25]=PG(GetUnitLoc(udg_L8),120.00,0)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),240.00,0)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),360.00,0)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),480.00,0)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),120.00,45.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),240.00,45.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),360.00,45.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),480.00,45.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),120.00,90.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),240.00,90.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),360.00,90.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),480.00,90.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),120.00,135.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),240.00,135.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),360.00,135.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),480.00,135.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),120.00,180.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),240.00,180.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),360.00,180.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),480.00,180.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),120.00,225.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),240.00,225.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),360.00,225.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),480.00,225.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),120.00,270.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),240.00,270.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),360.00,270.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),480.00,270.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),120.00,315.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),240.00,315.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),360.00,315.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
set udg_dg[25]=PG(GetUnitLoc(udg_L8),480.00,315.00)
call AddSpecialEffectLocBJ(udg_dg[25],"Fleur.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[25])
set udg_dg[25]=null
call DestroyGroup(udg_l8)
set udg_l8=null
call TriggerSleepAction(1.00)
else
call DoNothing()
endif
set udg_K8=udg_K8+1
endloop
if(dU8())then
set udg_vg=false
set udg_I8=null
set udg_L8=null
set udg_J8=0
set udg_M8=0.00
else
call DoNothing()
endif
endfunction
function dW8 takes nothing returns nothing
set udg_wD=CreateTrigger()
call TriggerAddCondition(udg_wD,Condition(function d18))
call TriggerAddAction(udg_wD,function dV8)
endfunction
function dX8 takes nothing returns boolean
if(not(udg_vg==true))then
return false
endif
if(not(GetUnitTypeId(GetDyingUnit())==1160785968))then
return false
endif
return true
endfunction
function dY8 takes nothing returns boolean
if(not dX8())then
return false
endif
return true
endfunction
function d28 takes nothing returns boolean
if(not(GetDyingUnit()==udg_I8))then
return false
endif
return true
endfunction
function dZ8 takes nothing returns nothing
if(d28())then
set udg_vg=false
set udg_I8=null
set udg_L8=null
set udg_J8=0
set udg_M8=0.00
else
call DoNothing()
endif
endfunction
function d_8 takes nothing returns nothing
set udg_xD=CreateTrigger()
call TriggerAddCondition(udg_xD,Condition(function dY8))
call TriggerAddAction(udg_xD,function dZ8)
endfunction
function e48 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677881))then
return false
endif
return true
endfunction
function e78 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function e88 takes nothing returns boolean
if(not(udg_I8!=null))then
return false
endif
return true
endfunction
function e98 takes nothing returns boolean
return(udg_z==false)
endfunction
function ed8 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_A[79]))]==true)
endfunction
function ee8 takes nothing returns boolean
if(not(udg_I8!=null))then
return false
endif
return true
endfunction
function ef8 takes nothing returns boolean
if(not(udg_A[80]!=null))then
return false
endif
return true
endfunction
function eg8 takes nothing returns nothing
set udg_A[79]=GetTriggerUnit()
set udg_B[39]=GetUnitLoc(udg_A[79])
set udg_B[40]=GetSpellTargetLoc()
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[79]))]=true
call PauseUnitBJ(true,udg_A[79])
call SetUnitInvulnerable(udg_A[79],true)
call CreateTextTagUnitBJ("Wing",udg_A[79],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function e78)))
set udg_Km[67]=GetUnitLoc(udg_A[79])
call PlaySoundAtPointBJ(udg_ns,100,udg_Km[67],0)
call RemoveLocation(udg_Km[67])
set udg_Km[67]=null
call TriggerSleepAction(0.01)
call ShowUnitHide(udg_A[79])
call CreateNUnitsAtLocFacingLocBJ(1,1747988536,GetOwningPlayer(udg_A[79]),udg_B[39],udg_B[40])
set udg_A[80]=GetLastCreatedUnit()
if(e88())then
set udg_L8=udg_A[80]
else
call DoNothing()
endif
call PauseUnitBJ(true,udg_A[80])
call SetUnitAnimation(udg_A[80],"spell")
call SetUnitTimeScalePercent(udg_A[80],40.00)
call SetUnitFlyHeightBJ(udg_A[80],500.00,500.00)
call SetUnitInvulnerable(udg_A[80],true)
call AddSpecialEffectTargetUnitBJ("chest",udg_A[80],"war3mapImported\\AWING.MDX")
call EnableTrigger(udg_zD)
call TriggerSleepAction(0.70)
call SetUnitFlyHeightBJ(udg_A[80],0.00,2000.00)
call TriggerSleepAction(0.20)
call DisableTrigger(udg_zD)
if(ef8())then
set udg_dg[26]=GetUnitLoc(udg_A[80])
call ShowUnitShow(udg_A[79])
call SetUnitPositionLocFacingBJ(udg_A[79],udg_dg[26],AngleBetweenPoints(udg_B[39],udg_B[40]))
call RemoveUnit(udg_A[80])
call PauseUnitBJ(false,udg_A[79])
call SelectUnitForPlayerSingle(udg_A[79],GetOwningPlayer(udg_A[79]))
call SetUnitTimeScalePercent(udg_A[79],100.00)
call SetUnitInvulnerable(udg_A[79],false)
if(e98())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_A[79]),udg_dg[26],0.00)
else
call DoNothing()
endif
if(ed8())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_A[79]),udg_A[79],0,0,false)
else
call DoNothing()
endif
if(ee8())then
set udg_L8=udg_A[79]
else
call DoNothing()
endif
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[79]))]=false
set udg_A[79]=null
set udg_A[80]=null
call RemoveLocation(udg_B[39])
set udg_B[39]=null
call RemoveLocation(udg_B[40])
set udg_B[40]=null
call RemoveLocation(udg_dg[26])
set udg_dg[26]=null
else
call DoNothing()
endif
endfunction
function eh8 takes nothing returns nothing
set udg_yD=CreateTrigger()
call TriggerAddCondition(udg_yD,Condition(function e48))
call TriggerAddAction(udg_yD,function eg8)
endfunction
function ei8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[79])==true))then
return false
endif
return true
endfunction
function ej8 takes nothing returns boolean
return(udg_z==false)
endfunction
function ek8 takes nothing returns boolean
if(not(udg_I8!=null))then
return false
endif
return true
endfunction
function em8 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_A[80])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_A[80])==true))then
return true
endif
return false
endfunction
function en8 takes nothing returns boolean
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[79]))]==true))then
return false
endif
if(not em8())then
return false
endif
return true
endfunction
function eo8 takes nothing returns boolean
if(not en8())then
return false
endif
return true
endfunction
function ep8 takes nothing returns nothing
if(eo8())then
set udg_B[41]=GetUnitLoc(udg_A[80])
set udg_B[42]=PG(udg_B[41],(DistanceBetweenPoints(udg_B[39],udg_B[40])/50.00),GetUnitFacing(udg_A[80]))
call RemoveLocation(udg_B[41])
set udg_B[41]=null
call SetUnitPositionLoc(udg_A[80],udg_B[42])
call RemoveLocation(udg_B[42])
set udg_B[42]=null
else
call DisableTrigger(GetTriggeringTrigger())
set udg_dg[26]=GetUnitLoc(udg_A[80])
call ShowUnitShow(udg_A[79])
call SetUnitPositionLocFacingBJ(udg_A[79],udg_dg[26],AngleBetweenPoints(udg_B[39],udg_B[40]))
call RemoveUnit(udg_A[80])
call PauseUnitBJ(false,udg_A[79])
call SelectUnitForPlayerSingle(udg_A[79],GetOwningPlayer(udg_A[79]))
call SetUnitTimeScalePercent(udg_A[79],100.00)
call SetUnitInvulnerable(udg_A[79],false)
if(ej8())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_A[79]),udg_dg[26],0.00)
else
call DoNothing()
endif
if(ek8())then
set udg_L8=udg_A[79]
else
call DoNothing()
endif
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[79]))]=false
set udg_A[79]=null
set udg_A[80]=null
call RemoveLocation(udg_B[39])
set udg_B[39]=null
call RemoveLocation(udg_B[40])
set udg_B[40]=null
call RemoveLocation(udg_dg[26])
set udg_dg[26]=null
endif
endfunction
function eq8 takes nothing returns nothing
set udg_zD=CreateTrigger()
call DisableTrigger(udg_zD)
call TriggerRegisterTimerEventPeriodic(udg_zD,0.03)
call TriggerAddCondition(udg_zD,Condition(function ei8))
call TriggerAddAction(udg_zD,function ep8)
endfunction
function er8 takes nothing returns boolean
if(not(udg_wm==null))then
return false
endif
return true
endfunction
function es8 takes nothing returns nothing
if(er8())then
call DestroyTrigger(udg_aD)
call DestroyTrigger(udg_BD)
call DestroyTrigger(udg_bD)
call DestroyTrigger(udg_CD)
call DestroyTrigger(udg_cD)
call DestroyTrigger(udg_DD)
call DestroyTrigger(udg_ED)
call DestroyTrigger(udg_FD)
call DestroyTrigger(udg_GD)
call DestroyTrigger(udg_HD)
call DestroyTrigger(udg_ID)
call DestroyTrigger(udg_lD)
call DestroyTrigger(udg_JD)
call DestroyTrigger(udg_KD)
call DestroyTrigger(udg_LD)
else
call TriggerRegisterUnitEvent(udg_aD,udg_wm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_bD,udg_wm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_CD,udg_wm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_DD,udg_wm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_ED,udg_wm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_ID,udg_wm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_lD,udg_wm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_KD,udg_wm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function et8 takes nothing returns nothing
set udg_AD=CreateTrigger()
call TriggerAddAction(udg_AD,function es8)
endfunction
function eu8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678135))then
return false
endif
return true
endfunction
function ev8 takes nothing returns boolean
return(UnitHasBuffBJ(udg_g8,1110454580)==true)
endfunction
function ew8 takes nothing returns nothing
set udg_g8=GetTriggerUnit()
set udg_f8=0.00
call SelectUnitRemoveForPlayer(udg_g8,GetOwningPlayer(udg_g8))
call IssueImmediateOrderBJ(udg_g8,"stop")
call SetUnitAnimation(udg_g8,"spell")
call UnitRemoveAbilityBJ(1093678135,udg_g8)
call UnitAddAbilityBJ(1093679183,udg_g8)
call AddSpecialEffectTargetUnitBJ("origin",udg_g8,"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitTimeScalePercent(udg_g8,10.00)
if(ev8())then
call UnitRemoveBuffBJ(1110454580,udg_g8)
else
call DoNothing()
endif
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.01)
call PauseUnitBJ(true,udg_g8)
call SelectUnitAddForPlayer(udg_g8,GetOwningPlayer(udg_g8))
call TriggerSleepAction(2.99)
call PauseUnitBJ(false,udg_g8)
call UnitRemoveBuffBJ(1110454584,udg_g8)
call SetUnitTimeScalePercent(udg_g8,100.00)
endfunction
function ex8 takes nothing returns nothing
set udg_aD=CreateTrigger()
call TriggerAddCondition(udg_aD,Condition(function eu8))
call TriggerAddAction(udg_aD,function ew8)
endfunction
function ey8 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),1110454584)==true))then
return false
endif
if(not(GetEventDamage()<30000.00))then
return false
endif
return true
endfunction
function ez8 takes nothing returns boolean
if(not ey8())then
return false
endif
return true
endfunction
function eA8 takes nothing returns nothing
set udg_f8=(udg_f8+GetEventDamage())
call SetUnitLifeBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+GetEventDamage()))
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Weapons\\PriestMissile\\PriestMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function ea8 takes nothing returns nothing
set udg_BD=CreateTrigger()
call DisableTrigger(udg_BD)
call TriggerAddCondition(udg_BD,Condition(function ez8))
call TriggerAddAction(udg_BD,function eA8)
endfunction
function eB8 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function eb8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679183))then
return false
endif
if(not eB8())then
return false
endif
return true
endfunction
function eC8 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function ec8 takes nothing returns nothing
set udg_bD=CreateTrigger()
call TriggerAddCondition(udg_bD,Condition(function eb8))
call TriggerAddAction(udg_bD,function eC8)
endfunction
function eD8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679183))then
return false
endif
return true
endfunction
function eE8 takes nothing returns boolean
return(udg_f8!=0.00)
endfunction
function e38 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_g8)==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_g8)<=udg_i8))then
return false
endif
return true
endfunction
function eF8 takes nothing returns boolean
if((udg_z==true))then
return true
endif
if((udg_d4==true))then
return true
endif
if((udg_Q7==true))then
return true
endif
return false
endfunction
function eG8 takes nothing returns boolean
if(not eF8())then
return false
endif
return true
endfunction
function e68 takes nothing returns boolean
if(not e38())then
return false
endif
return true
endfunction
function eH8 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_g8)==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_g8)>udg_i8))then
return false
endif
return true
endfunction
function eI8 takes nothing returns boolean
if(not eH8())then
return false
endif
return true
endfunction
function el8 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_g8!=udg_x))then
return false
endif
if(not(udg_g8!=udg_y))then
return false
endif
return true
endfunction
function e18 takes nothing returns boolean
if(not el8())then
return false
endif
return true
endfunction
function eJ8 takes nothing returns boolean
return(IsTriggerEnabled(udg_aD)==false)
endfunction
function eK8 takes nothing returns nothing
set udg_h8=GetSpellTargetUnit()
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_g8))]=true
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_h8))]=true
call SelectUnitRemoveForPlayer(udg_g8,GetOwningPlayer(udg_g8))
call UnitRemoveAbilityBJ(1093679183,udg_g8)
call UnitAddAbilityBJ(1093678135,udg_g8)
call IssueImmediateOrderBJ(udg_g8,"berserk")
set udg_i8=(0.30*udg_f8)
if(eE8())then
set udg_f8=(udg_f8+200.00)
else
call DoNothing()
endif
call TriggerSleepAction(0.01)
call PauseUnitBJ(true,udg_g8)
call PauseUnitBJ(true,udg_h8)
call SetUnitAnimation(udg_g8,"attack")
set udg_dg[27]=GetUnitLoc(udg_h8)
call AddSpecialEffectLocBJ(udg_dg[27],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[27],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[27])
set udg_dg[27]=null
call UnitDamageTargetBJ(udg_g8,udg_h8,udg_f8,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call SetUnitPathing(udg_h8,false)
if(eI8())then
call SetUnitLifeBJ(udg_g8,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_g8)-udg_i8))
call AddSpecialEffectTargetUnitBJ("origin",udg_g8,"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(e68())then
call AddSpecialEffectTargetUnitBJ("origin",udg_g8,"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(eG8())then
call SetUnitLifeBJ(udg_g8,1.00)
else
call SetUnitLifeBJ(udg_g8,0.00)
call DisplayTimedTextToForce(GetPlayersAll(),3.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(udg_g8))]+" has killed himself!"))
endif
else
call DoNothing()
endif
endif
set udg_Km[68]=GetUnitLoc(udg_g8)
call PlaySoundAtPointBJ(udg_Jq,100,udg_Km[68],0)
call RemoveLocation(udg_Km[68])
set udg_Km[68]=null
call EnableTrigger(udg_cD)
call TriggerSleepAction(0.30)
call DisableTrigger(udg_cD)
call PauseUnitBJ(false,udg_g8)
call PauseUnitBJ(false,udg_h8)
call SetUnitPathing(udg_h8,true)
call ResetUnitAnimation(udg_g8)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_g8))]=false
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_h8))]=false
if(e18())then
call PauseUnitBJ(true,udg_g8)
else
call DoNothing()
endif
call SelectUnitForPlayerSingle(udg_g8,GetOwningPlayer(udg_g8))
set udg_g8=null
set udg_h8=null
set udg_i8=0.00
set udg_f8=0.00
if(eJ8())then
call EnableTrigger(udg_aD)
else
call DoNothing()
endif
endfunction
function eL8 takes nothing returns nothing
set udg_CD=CreateTrigger()
call TriggerAddCondition(udg_CD,Condition(function eD8))
call TriggerAddAction(udg_CD,function eK8)
endfunction
function eM8 takes nothing returns boolean
if(not(udg_h8!=null))then
return false
endif
return true
endfunction
function eN8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function eO8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function e08 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_dg[27])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_dg[27])==true))then
return true
endif
return false
endfunction
function eP8 takes nothing returns boolean
if(not e08())then
return false
endif
return true
endfunction
function eQ8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function eR8 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function eS8 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function e58 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_h8)==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_h8)==true))then
return true
endif
return false
endfunction
function eT8 takes nothing returns boolean
if(not e58())then
return false
endif
return true
endfunction
function eU8 takes nothing returns nothing
if(eT8())then
set udg_dg[27]=PG(GetUnitLoc(udg_h8),45.00,AngleBetweenPoints(GetUnitLoc(udg_g8),GetUnitLoc(udg_h8)))
if(eP8())then
call SetUnitPositionLoc(udg_h8,udg_dg[27])
call AddSpecialEffectLocBJ(udg_dg[27],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(300.00,udg_dg[27],function eN8)
call RemoveLocation(udg_dg[27])
set udg_dg[27]=null
set udg_dg[27]=PG(GetUnitLoc(udg_g8),15.00,AngleBetweenPoints(GetUnitLoc(udg_h8),GetUnitLoc(udg_g8)))
call SetUnitPositionLoc(udg_g8,udg_dg[27])
call AddSpecialEffectLocBJ(udg_dg[27],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(200.00,udg_dg[27],function eO8)
call RemoveLocation(udg_dg[27])
set udg_dg[27]=null
else
call RemoveLocation(udg_dg[27])
set udg_dg[27]=null
call DisableTrigger(GetTriggeringTrigger())
endif
if(eS8())then
call ForGroupBJ(d6(GetPlayableMapRect()),function eQ8)
call ForForce(GetPlayersAll(),function eR8)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function eV8 takes nothing returns nothing
set udg_cD=CreateTrigger()
call DisableTrigger(udg_cD)
call TriggerRegisterTimerEventPeriodic(udg_cD,0.03)
call TriggerAddCondition(udg_cD,Condition(function eM8))
call TriggerAddAction(udg_cD,function eU8)
endfunction
function eW8 takes nothing returns boolean
if((GetSpellAbilityId()==1093678136))then
return true
endif
if((GetSpellAbilityId()==1093677904))then
return true
endif
if((GetSpellAbilityId()==1093678146))then
return true
endif
if((GetSpellAbilityId()==1093678147))then
return true
endif
return false
endfunction
function eX8 takes nothing returns boolean
if(not eW8())then
return false
endif
return true
endfunction
function eY8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function e28 takes nothing returns nothing
call CreateTextTagUnitBJ("Hissatsu...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function eY8)))
endfunction
function eZ8 takes nothing returns nothing
set udg_DD=CreateTrigger()
call TriggerAddCondition(udg_DD,Condition(function eX8))
call TriggerAddAction(udg_DD,function e28)
endfunction
function e_8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678136))then
return false
endif
if(not(GetUnitTypeId(GetSpellAbilityUnit())==1311780919))then
return false
endif
return true
endfunction
function f48 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function f78 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[87]))==true)
endfunction
function f88 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function f98 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function fd8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function fe8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function ff8 takes nothing returns boolean
return GetBooleanAnd(fd8(),fe8())
endfunction
function fg8 takes nothing returns boolean
return GetBooleanAnd(f98(),ff8())
endfunction
function fh8 takes nothing returns boolean
return GetBooleanAnd(f88(),fg8())
endfunction
function fi8 takes nothing returns boolean
return GetBooleanAnd(f78(),fh8())
endfunction
function fj8 takes nothing returns nothing
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=true
endfunction
function fk8 takes nothing returns boolean
if(not(udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]==true))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454324)==false))then
return false
endif
return true
endfunction
function fm8 takes nothing returns boolean
if(not(IsUnitDeadBJ(GetEnumUnit())==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_q4[690]))then
return false
endif
return true
endfunction
function fn8 takes nothing returns boolean
if(not fm8())then
return false
endif
return true
endfunction
function fo8 takes nothing returns boolean
if(not(IsUnitDeadBJ(GetEnumUnit())==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_q4[690]))then
return false
endif
return true
endfunction
function fp8 takes nothing returns boolean
if(not fo8())then
return false
endif
return true
endfunction
function fq8 takes nothing returns boolean
if(not fk8())then
return false
endif
return true
endfunction
function fr8 takes nothing returns nothing
if(fq8())then
if(fp8())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_q4[690]))
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(fn8())then
call UnitDamageTargetBJ(udg_A[87],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
endfunction
function fs8 takes nothing returns boolean
return(IsTriggerEnabled(udg_FD)==true)
endfunction
function ft8 takes nothing returns boolean
return(IsUnitDeadBJ(udg_A[88])==false)
endfunction
function fu8 takes nothing returns boolean
return(MG(udg_A[88],UNIT_TYPE_HERO)==false)
endfunction
function fv8 takes nothing returns boolean
return(udg_A[88]!=null)
endfunction
function fw8 takes nothing returns boolean
return GetBooleanAnd(fu8(),fv8())
endfunction
function fx8 takes nothing returns boolean
return GetBooleanAnd(ft8(),fw8())
endfunction
function fy8 takes nothing returns nothing
set udg_Z7[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]=false
endfunction
function fz8 takes nothing returns nothing
set udg_A[87]=GetSpellAbilityUnit()
set udg_B[690]=GetSpellTargetLoc()
set udg_q4[690]=(60.00+(20.00*I2R(GetUnitAbilityLevelSwapped(1093678136,udg_A[87]))))
set udg_dg[28]=GetUnitLoc(udg_A[87])
call CreateNUnitsAtLocFacingLocBJ(1,1747988547,GetOwningPlayer(udg_A[87]),udg_dg[28],udg_B[690])
set udg_A[88]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_A[88])
call RemoveLocation(udg_dg[28])
set udg_dg[28]=null
call EnableTrigger(udg_FD)
call CreateTextTagUnitBJ("Kaenboshi",udg_A[87],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function f48)))
set udg_Km[69]=GetUnitLoc(udg_A[87])
call PlaySoundAtPointBJ(udg_Qq,100,udg_Km[69],0)
call RemoveLocation(udg_Km[69])
set udg_Km[69]=null
call TriggerSleepAction(0.01)
call AddSpecialEffectLocBJ(udg_B[690],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[690],"Abilities\\Weapons\\DemolisherFireMissile\\DemolisherFireMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_G[690]=e6(330.00,udg_B[690],Condition(function fi8))
call ForGroupBJ(udg_G[690],function fj8)
set udg_Y7[udg_N[690]]=1
loop
exitwhen udg_Y7[udg_N[690]]>9
call ForGroupBJ(udg_G[690],function fr8)
call TriggerSleepAction(0.90)
if(fs8())then
call DisableTrigger(udg_FD)
else
call DoNothing()
endif
if(fx8())then
call RemoveUnit(udg_A[88])
else
call DoNothing()
endif
set udg_Y7[udg_N[690]]=udg_Y7[udg_N[690]]+1
endloop
set udg_A[87]=null
set udg_A[88]=null
set udg_q4[690]=0.00
call ForGroupBJ(udg_G[690],function fy8)
call DestroyGroup(udg_G[690])
set udg_G[690]=null
call RemoveLocation(udg_B[690])
set udg_B[690]=null
endfunction
function fA8 takes nothing returns nothing
set udg_ED=CreateTrigger()
call TriggerAddCondition(udg_ED,Condition(function e_8))
call TriggerAddAction(udg_ED,function fz8)
endfunction
function fa8 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_B[690],GetUnitLoc(udg_A[88]))<70.00))then
return false
endif
if(not(MG(udg_A[88],UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function fB8 takes nothing returns boolean
return(IsUnitDeadBJ(udg_A[88])==false)
endfunction
function fb8 takes nothing returns boolean
if(not fa8())then
return false
endif
return true
endfunction
function fC8 takes nothing returns nothing
set udg_dg[28]=PG(GetUnitLoc(udg_A[88]),47.00,AngleBetweenPoints(GetUnitLoc(udg_A[88]),udg_B[690]))
call SetUnitPositionLocFacingLocBJ(udg_A[88],udg_dg[28],udg_B[690])
call RemoveLocation(udg_dg[28])
set udg_dg[28]=null
if(fb8())then
call DisableTrigger(GetTriggeringTrigger())
if(fB8())then
call RemoveUnit(udg_A[88])
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function fc8 takes nothing returns nothing
set udg_FD=CreateTrigger()
call DisableTrigger(udg_FD)
call TriggerRegisterTimerEventPeriodic(udg_FD,0.03)
call TriggerAddAction(udg_FD,function fC8)
endfunction
function fD8 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),1110454326)==true))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())==1311780919))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
return true
endfunction
function fE8 takes nothing returns boolean
if(not fD8())then
return false
endif
return true
endfunction
function f38 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093677877,udg_s9[5])==5))then
return false
endif
return true
endfunction
function fF8 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=7))then
return false
endif
return true
endfunction
function fG8 takes nothing returns nothing
if(fF8())then
set udg_s9[5]=GetAttacker()
set udg_E9[2]=GetUnitLoc(udg_s9[5])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_s9[5]),udg_E9[2],bj_UNIT_FACING)
set udg_F9[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677878,udg_F9[2])
if(f38())then
call SetUnitAbilityLevelSwapped(1093677878,udg_F9[2],2)
else
call SetUnitAbilityLevelSwapped(1093677878,udg_F9[2],1)
endif
call IssueTargetOrderBJ(udg_F9[2],"unholyfrenzy",udg_s9[5])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_F9[2])
call RemoveLocation(udg_E9[2])
set udg_E9[2]=null
set udg_s9[5]=null
set udg_F9[2]=null
else
call DoNothing()
endif
endfunction
function f68 takes nothing returns nothing
set udg_GD=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_GD,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_GD,Condition(function fE8))
call TriggerAddAction(udg_GD,function fG8)
endfunction
function fH8 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),1110454580)==true))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())==1162031160))then
return false
endif
return true
endfunction
function fI8 takes nothing returns boolean
if(not fH8())then
return false
endif
return true
endfunction
function fl8 takes nothing returns nothing
set udg_G9[1]=GetAttacker()
set udg_G9[2]=GetAttackedUnitBJ()
call UnitDamageTargetBJ(udg_G9[1],udg_G9[2],(1.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_G9[1],true))),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
set udg_G9[1]=null
set udg_G9[2]=null
endfunction
function f18 takes nothing returns nothing
set udg_HD=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_HD,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_HD,Condition(function fI8))
call TriggerAddAction(udg_HD,function fl8)
endfunction
function fJ8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677904))then
return false
endif
return true
endfunction
function fK8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function fL8 takes nothing returns nothing
call CreateTextTagUnitBJ("Rokuren mamushi boshi",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function fK8)))
set udg_Km[70]=GetUnitLoc(GetTriggerUnit())
call PlaySoundAtPointBJ(udg_vr,100,udg_Km[70],0)
call RemoveLocation(udg_Km[70])
set udg_Km[70]=null
endfunction
function fM8 takes nothing returns nothing
set udg_ID=CreateTrigger()
call TriggerAddCondition(udg_ID,Condition(function fJ8))
call TriggerAddAction(udg_ID,function fL8)
endfunction
function fN8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678147))then
return false
endif
return true
endfunction
function fO8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function f08 takes nothing returns boolean
return(IsTriggerEnabled(udg_JD)==false)
endfunction
function fP8 takes nothing returns nothing
set udg_A[90]=GetTriggerUnit()
set udg_dg[29]=GetSpellTargetLoc()
set udg_dg[30]=GetUnitLoc(udg_A[90])
set udg_Ik[58]=AngleBetweenPoints(udg_dg[30],udg_dg[29])
set udg_Ik[59]=0.00
call CreateTextTagUnitBJ("Hinotori Boshi",udg_A[90],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function fO8)))
call CreateNUnitsAtLoc(1,1747989042,GetOwningPlayer(udg_A[90]),udg_dg[30],udg_Ik[58])
set udg_Zf[20]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(8.00,1112820806,udg_Zf[20])
call RemoveLocation(udg_dg[29])
set udg_dg[29]=null
call RemoveLocation(udg_dg[30])
set udg_dg[30]=null
set udg_Km[71]=GetUnitLoc(udg_A[90])
call PlaySoundAtPointBJ(udg_xq,100,udg_Km[71],0)
call RemoveLocation(udg_Km[71])
set udg_Km[71]=null
call SetUnitFacingTimed(udg_A[90],udg_Ik[58],0.00)
call EnableTrigger(udg_JD)
loop
exitwhen(f08())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
set bj_wantDestroyGroup=true
call GroupClear(udg_hm)
set udg_A[90]=null
set udg_Ik[58]=0.00
set udg_Ik[59]=0.00
endfunction
function fQ8 takes nothing returns nothing
set udg_lD=CreateTrigger()
call TriggerAddCondition(udg_lD,Condition(function fN8))
call TriggerAddAction(udg_lD,function fP8)
endfunction
function fR8 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_hm)==false)
endfunction
function fS8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[90]))==true)
endfunction
function f58 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function fT8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function fU8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function fV8 takes nothing returns boolean
return GetBooleanAnd(fT8(),fU8())
endfunction
function fW8 takes nothing returns boolean
return GetBooleanAnd(f58(),fV8())
endfunction
function fX8 takes nothing returns boolean
return GetBooleanAnd(fS8(),fW8())
endfunction
function fY8 takes nothing returns boolean
return GetBooleanAnd(fR8(),fX8())
endfunction
function f28 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_hm)
call UnitDamageTargetBJ(udg_A[90],GetEnumUnit(),(500.00+((7.00+(1.00*I2R(GetUnitAbilityLevelSwapped(1093678147,udg_A[90]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[90],true)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function fZ8 takes nothing returns boolean
if(not(udg_Ik[59]>=2000.00))then
return false
endif
return true
endfunction
function f_8 takes nothing returns nothing
set udg_Ik[59]=(udg_Ik[59]+50.00)
set udg_dg[29]=GetUnitLoc(udg_Zf[20])
set udg_dg[30]=PG(udg_dg[29],50.00,udg_Ik[58])
call SetUnitPositionLocFacingBJ(udg_Zf[20],udg_dg[30],udg_Ik[58])
set udg_lk[59]=e6(300.00,udg_dg[30],Condition(function fY8))
call ForGroupBJ(udg_lk[59],function f28)
call DestroyGroup(udg_lk[59])
set udg_lk[59]=null
call RemoveLocation(udg_dg[29])
set udg_dg[29]=null
call RemoveLocation(udg_dg[30])
set udg_dg[30]=null
if(fZ8())then
call KillUnit(udg_Zf[20])
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function g48 takes nothing returns nothing
set udg_JD=CreateTrigger()
call DisableTrigger(udg_JD)
call TriggerRegisterTimerEventPeriodic(udg_JD,0.03)
call TriggerAddAction(udg_JD,function f_8)
endfunction
function g78 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678146))then
return false
endif
return true
endfunction
function g88 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function g98 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function gd8 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_A[89]))==true)
endfunction
function ge8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function gf8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function gg8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function gh8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function gi8 takes nothing returns boolean
return(GetFilterUnit()!=udg_A7)
endfunction
function gj8 takes nothing returns boolean
return(GetFilterUnit()!=udg_l4)
endfunction
function gk8 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==false)
endfunction
function gm8 takes nothing returns boolean
return GetBooleanAnd(gj8(),gk8())
endfunction
function gn8 takes nothing returns boolean
return GetBooleanAnd(gi8(),gm8())
endfunction
function go8 takes nothing returns boolean
return GetBooleanAnd(gh8(),gn8())
endfunction
function gp8 takes nothing returns boolean
return GetBooleanAnd(gg8(),go8())
endfunction
function gq8 takes nothing returns boolean
return GetBooleanAnd(gf8(),gp8())
endfunction
function gr8 takes nothing returns boolean
return GetBooleanAnd(ge8(),gq8())
endfunction
function gs8 takes nothing returns boolean
return GetBooleanAnd(gd8(),gr8())
endfunction
function gt8 takes nothing returns boolean
return GetBooleanAnd(g98(),gs8())
endfunction
function gu8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function gv8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[89]))==true)
endfunction
function gw8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function gx8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function gy8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function gz8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function gA8 takes nothing returns boolean
return(GetFilterUnit()!=udg_A7)
endfunction
function ga8 takes nothing returns boolean
return(GetFilterUnit()!=udg_l4)
endfunction
function gB8 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==false)
endfunction
function gb8 takes nothing returns boolean
return GetBooleanAnd(ga8(),gB8())
endfunction
function gC8 takes nothing returns boolean
return GetBooleanAnd(gA8(),gb8())
endfunction
function gc8 takes nothing returns boolean
return GetBooleanAnd(gz8(),gC8())
endfunction
function gD8 takes nothing returns boolean
return GetBooleanAnd(gy8(),gc8())
endfunction
function gE8 takes nothing returns boolean
return GetBooleanAnd(gx8(),gD8())
endfunction
function g38 takes nothing returns boolean
return GetBooleanAnd(gw8(),gE8())
endfunction
function gF8 takes nothing returns boolean
return GetBooleanAnd(gv8(),g38())
endfunction
function gG8 takes nothing returns boolean
return GetBooleanAnd(gu8(),gF8())
endfunction
function g68 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894839)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454583)==true))then
return false
endif
return true
endfunction
function gH8 takes nothing returns boolean
if(not g68())then
return false
endif
return true
endfunction
function gI8 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[89],GetEnumUnit(),udg_q4[691],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[89]),udg_B[691],bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678914,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
if(gH8())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[89]),udg_B[691],bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678914,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
else
call DoNothing()
endif
endfunction
function gl8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function g18 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_A[89]))==true)
endfunction
function gJ8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function gK8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function gL8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function gM8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function gN8 takes nothing returns boolean
return(GetFilterUnit()!=udg_A7)
endfunction
function gO8 takes nothing returns boolean
return(GetFilterUnit()!=udg_l4)
endfunction
function g08 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==false)
endfunction
function gP8 takes nothing returns boolean
return GetBooleanAnd(gO8(),g08())
endfunction
function gQ8 takes nothing returns boolean
return GetBooleanAnd(gN8(),gP8())
endfunction
function gR8 takes nothing returns boolean
return GetBooleanAnd(gM8(),gQ8())
endfunction
function gS8 takes nothing returns boolean
return GetBooleanAnd(gL8(),gR8())
endfunction
function g58 takes nothing returns boolean
return GetBooleanAnd(gK8(),gS8())
endfunction
function gT8 takes nothing returns boolean
return GetBooleanAnd(gJ8(),g58())
endfunction
function gU8 takes nothing returns boolean
return GetBooleanAnd(g18(),gT8())
endfunction
function gV8 takes nothing returns boolean
return GetBooleanAnd(gl8(),gU8())
endfunction
function gW8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function gX8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[89]))==true)
endfunction
function gY8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function g28 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function gZ8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function g_8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function h48 takes nothing returns boolean
return(GetFilterUnit()!=udg_A7)
endfunction
function h78 takes nothing returns boolean
return(GetFilterUnit()!=udg_l4)
endfunction
function h88 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==false)
endfunction
function h98 takes nothing returns boolean
return GetBooleanAnd(h78(),h88())
endfunction
function hd8 takes nothing returns boolean
return GetBooleanAnd(h48(),h98())
endfunction
function he8 takes nothing returns boolean
return GetBooleanAnd(g_8(),hd8())
endfunction
function hf8 takes nothing returns boolean
return GetBooleanAnd(gZ8(),he8())
endfunction
function hg8 takes nothing returns boolean
return GetBooleanAnd(g28(),hf8())
endfunction
function hh8 takes nothing returns boolean
return GetBooleanAnd(gY8(),hg8())
endfunction
function hi8 takes nothing returns boolean
return GetBooleanAnd(gX8(),hh8())
endfunction
function hj8 takes nothing returns boolean
return GetBooleanAnd(gW8(),hi8())
endfunction
function hk8 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894839)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454583)==true))then
return false
endif
return true
endfunction
function hm8 takes nothing returns boolean
if(not hk8())then
return false
endif
return true
endfunction
function hn8 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[89],GetEnumUnit(),udg_q4[691],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[89]),udg_B[691],bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678914,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
if(hm8())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[89]),udg_B[691],bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678914,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
else
call DoNothing()
endif
endfunction
function ho8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function hp8 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_A[89]))==true)
endfunction
function hq8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function hr8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function hs8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function ht8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function hu8 takes nothing returns boolean
return(GetFilterUnit()!=udg_A7)
endfunction
function hv8 takes nothing returns boolean
return(GetFilterUnit()!=udg_l4)
endfunction
function hw8 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==false)
endfunction
function hx8 takes nothing returns boolean
return GetBooleanAnd(hv8(),hw8())
endfunction
function hy8 takes nothing returns boolean
return GetBooleanAnd(hu8(),hx8())
endfunction
function hz8 takes nothing returns boolean
return GetBooleanAnd(ht8(),hy8())
endfunction
function hA8 takes nothing returns boolean
return GetBooleanAnd(hs8(),hz8())
endfunction
function ha8 takes nothing returns boolean
return GetBooleanAnd(hr8(),hA8())
endfunction
function hB8 takes nothing returns boolean
return GetBooleanAnd(hq8(),ha8())
endfunction
function hb8 takes nothing returns boolean
return GetBooleanAnd(hp8(),hB8())
endfunction
function hC8 takes nothing returns boolean
return GetBooleanAnd(ho8(),hb8())
endfunction
function hc8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function hD8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[89]))==true)
endfunction
function hE8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function h38 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function hF8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function hG8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function h68 takes nothing returns boolean
return(GetFilterUnit()!=udg_A7)
endfunction
function hH8 takes nothing returns boolean
return(GetFilterUnit()!=udg_l4)
endfunction
function hI8 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==false)
endfunction
function hl8 takes nothing returns boolean
return GetBooleanAnd(hH8(),hI8())
endfunction
function h18 takes nothing returns boolean
return GetBooleanAnd(h68(),hl8())
endfunction
function hJ8 takes nothing returns boolean
return GetBooleanAnd(hG8(),h18())
endfunction
function hK8 takes nothing returns boolean
return GetBooleanAnd(hF8(),hJ8())
endfunction
function hL8 takes nothing returns boolean
return GetBooleanAnd(h38(),hK8())
endfunction
function hM8 takes nothing returns boolean
return GetBooleanAnd(hE8(),hL8())
endfunction
function hN8 takes nothing returns boolean
return GetBooleanAnd(hD8(),hM8())
endfunction
function hO8 takes nothing returns boolean
return GetBooleanAnd(hc8(),hN8())
endfunction
function h08 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894839)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454583)==true))then
return false
endif
return true
endfunction
function hP8 takes nothing returns boolean
if(not h08())then
return false
endif
return true
endfunction
function hQ8 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[89],GetEnumUnit(),udg_q4[691],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[89]),udg_B[691],bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678914,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
if(hP8())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[89]),udg_B[691],bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678914,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
else
call DoNothing()
endif
endfunction
function hR8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function hS8 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_A[89]))==true)
endfunction
function h58 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function hT8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function hU8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function hV8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function hW8 takes nothing returns boolean
return(GetFilterUnit()!=udg_A7)
endfunction
function hX8 takes nothing returns boolean
return(GetFilterUnit()!=udg_l4)
endfunction
function hY8 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==false)
endfunction
function h28 takes nothing returns boolean
return GetBooleanAnd(hX8(),hY8())
endfunction
function hZ8 takes nothing returns boolean
return GetBooleanAnd(hW8(),h28())
endfunction
function h_8 takes nothing returns boolean
return GetBooleanAnd(hV8(),hZ8())
endfunction
function i48 takes nothing returns boolean
return GetBooleanAnd(hU8(),h_8())
endfunction
function i78 takes nothing returns boolean
return GetBooleanAnd(hT8(),i48())
endfunction
function i88 takes nothing returns boolean
return GetBooleanAnd(h58(),i78())
endfunction
function i98 takes nothing returns boolean
return GetBooleanAnd(hS8(),i88())
endfunction
function id8 takes nothing returns boolean
return GetBooleanAnd(hR8(),i98())
endfunction
function ie8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function if8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[89]))==true)
endfunction
function ig8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function ih8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ii8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function ij8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function ik8 takes nothing returns boolean
return(GetFilterUnit()!=udg_A7)
endfunction
function im8 takes nothing returns boolean
return(GetFilterUnit()!=udg_l4)
endfunction
function in8 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==false)
endfunction
function io8 takes nothing returns boolean
return GetBooleanAnd(im8(),in8())
endfunction
function ip8 takes nothing returns boolean
return GetBooleanAnd(ik8(),io8())
endfunction
function iq8 takes nothing returns boolean
return GetBooleanAnd(ij8(),ip8())
endfunction
function ir8 takes nothing returns boolean
return GetBooleanAnd(ii8(),iq8())
endfunction
function is8 takes nothing returns boolean
return GetBooleanAnd(ih8(),ir8())
endfunction
function it8 takes nothing returns boolean
return GetBooleanAnd(ig8(),is8())
endfunction
function iu8 takes nothing returns boolean
return GetBooleanAnd(if8(),it8())
endfunction
function iv8 takes nothing returns boolean
return GetBooleanAnd(ie8(),iu8())
endfunction
function iw8 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894839)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454583)==true))then
return false
endif
return true
endfunction
function ix8 takes nothing returns boolean
if(not iw8())then
return false
endif
return true
endfunction
function iy8 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[89],GetEnumUnit(),udg_q4[691],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[89]),udg_B[691],bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678914,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
if(ix8())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[89]),udg_B[691],bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678914,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
else
call DoNothing()
endif
endfunction
function iz8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function iA8 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_A[89]))==true)
endfunction
function ia8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function iB8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ib8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function iC8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function ic8 takes nothing returns boolean
return(GetFilterUnit()!=udg_A7)
endfunction
function iD8 takes nothing returns boolean
return(GetFilterUnit()!=udg_l4)
endfunction
function iE8 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==false)
endfunction
function i38 takes nothing returns boolean
return GetBooleanAnd(iD8(),iE8())
endfunction
function iF8 takes nothing returns boolean
return GetBooleanAnd(ic8(),i38())
endfunction
function iG8 takes nothing returns boolean
return GetBooleanAnd(iC8(),iF8())
endfunction
function i68 takes nothing returns boolean
return GetBooleanAnd(ib8(),iG8())
endfunction
function iH8 takes nothing returns boolean
return GetBooleanAnd(iB8(),i68())
endfunction
function iI8 takes nothing returns boolean
return GetBooleanAnd(ia8(),iH8())
endfunction
function il8 takes nothing returns boolean
return GetBooleanAnd(iA8(),iI8())
endfunction
function i18 takes nothing returns boolean
return GetBooleanAnd(iz8(),il8())
endfunction
function iJ8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function iK8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[89]))==true)
endfunction
function iL8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function iM8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function iN8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function iO8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function i08 takes nothing returns boolean
return(GetFilterUnit()!=udg_A7)
endfunction
function iP8 takes nothing returns boolean
return(GetFilterUnit()!=udg_l4)
endfunction
function iQ8 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==false)
endfunction
function iR8 takes nothing returns boolean
return GetBooleanAnd(iP8(),iQ8())
endfunction
function iS8 takes nothing returns boolean
return GetBooleanAnd(i08(),iR8())
endfunction
function i58 takes nothing returns boolean
return GetBooleanAnd(iO8(),iS8())
endfunction
function iT8 takes nothing returns boolean
return GetBooleanAnd(iN8(),i58())
endfunction
function iU8 takes nothing returns boolean
return GetBooleanAnd(iM8(),iT8())
endfunction
function iV8 takes nothing returns boolean
return GetBooleanAnd(iL8(),iU8())
endfunction
function iW8 takes nothing returns boolean
return GetBooleanAnd(iK8(),iV8())
endfunction
function iX8 takes nothing returns boolean
return GetBooleanAnd(iJ8(),iW8())
endfunction
function iY8 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetEnumUnit(),1227894839)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454583)==true))then
return false
endif
return true
endfunction
function i28 takes nothing returns boolean
if(not iY8())then
return false
endif
return true
endfunction
function iZ8 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[89],GetEnumUnit(),udg_q4[691],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[89]),udg_B[691],bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678914,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
if(i28())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[89]),udg_B[691],bj_UNIT_FACING)
call UnitAddAbilityBJ(1093678914,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"curse",GetEnumUnit())
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
else
call DoNothing()
endif
endfunction
function i_8 takes nothing returns boolean
return(IsTriggerEnabled(udg_LD)==true)
endfunction
function j48 takes nothing returns boolean
return(IsUnitDeadBJ(udg_d8)==false)
endfunction
function j78 takes nothing returns boolean
return(MG(udg_d8,UNIT_TYPE_HERO)==false)
endfunction
function j88 takes nothing returns boolean
return(udg_d8!=null)
endfunction
function j98 takes nothing returns boolean
return GetBooleanAnd(j78(),j88())
endfunction
function jd8 takes nothing returns boolean
return GetBooleanAnd(j48(),j98())
endfunction
function je8 takes nothing returns nothing
set udg_A[89]=GetTriggerUnit()
set udg_B[691]=GetSpellTargetLoc()
set udg_c[50]=AngleBetweenPoints(GetUnitLoc(udg_A[89]),udg_B[691])
set udg_H[691]=GetRandomReal(0,360.00)
set udg_q4[691]=(1400.00+(40.00*I2R(GetHeroLevel(udg_A[89]))))
set udg_dg[31]=GetUnitLoc(udg_A[89])
call CreateNUnitsAtLocFacingLocBJ(1,1747988547,GetOwningPlayer(udg_A[89]),udg_dg[31],udg_B[691])
set udg_d8=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_d8)
call RemoveLocation(udg_dg[31])
set udg_dg[31]=null
call EnableTrigger(udg_LD)
call CreateTextTagUnitBJ("Atlas Suisei",udg_A[89],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function g88)))
set udg_Km[72]=GetUnitLoc(udg_A[89])
call PlaySoundAtPointBJ(udg_pp,100,udg_Km[72],0)
call RemoveLocation(udg_Km[72])
set udg_Km[72]=null
call TriggerSleepAction(0.01)
set udg_b[691]=0
loop
exitwhen udg_b[691]>7
call TriggerSleepAction(0.01)
set udg_B[692]=PG(udg_B[691],(250.00*I2R(udg_b[691])),(udg_H[691]+72.00))
set udg_B[693]=PG(udg_B[691],(250.00*I2R(udg_b[691])),(udg_H[691]+144.00))
set udg_B[694]=PG(udg_B[691],(250.00*I2R(udg_b[691])),(udg_H[691]+216.00))
set udg_B[695]=PG(udg_B[691],(250.00*I2R(udg_b[691])),(udg_H[691]+288.00))
set udg_B[696]=PG(udg_B[691],(250.00*I2R(udg_b[691])),(udg_H[691]+360.00))
call AddSpecialEffectLocBJ(udg_B[692],"Abilities\\Weapons\\DemolisherFireMissile\\DemolisherFireMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[692],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[693],"Abilities\\Weapons\\DemolisherFireMissile\\DemolisherFireMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[693],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[694],"Abilities\\Weapons\\DemolisherFireMissile\\DemolisherFireMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[694],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[695],"Abilities\\Weapons\\DemolisherFireMissile\\DemolisherFireMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[695],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[696],"Abilities\\Weapons\\DemolisherFireMissile\\DemolisherFireMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_B[696],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_eg[6]=e6(250.00,udg_B[692],Condition(function gt8))
call ForGroupBJ(e6(250.00,udg_B[692],Condition(function gG8)),function gI8)
call DestroyGroup(udg_eg[6])
set udg_eg[6]=null
set udg_eg[6]=e6(250.00,udg_B[693],Condition(function gV8))
call ForGroupBJ(e6(250.00,udg_B[693],Condition(function hj8)),function hn8)
call DestroyGroup(udg_eg[6])
set udg_eg[6]=null
set udg_eg[6]=e6(250.00,udg_B[694],Condition(function hC8))
call ForGroupBJ(e6(250.00,udg_B[694],Condition(function hO8)),function hQ8)
call DestroyGroup(udg_eg[6])
set udg_eg[6]=null
set udg_eg[6]=e6(250.00,udg_B[695],Condition(function id8))
call ForGroupBJ(e6(250.00,udg_B[695],Condition(function iv8)),function iy8)
call DestroyGroup(udg_eg[6])
set udg_eg[6]=null
set udg_eg[6]=e6(250.00,udg_B[696],Condition(function i18))
call ForGroupBJ(e6(250.00,udg_B[696],Condition(function iX8)),function iZ8)
call DestroyGroup(udg_eg[6])
set udg_eg[6]=null
call RemoveLocation(udg_B[692])
set udg_B[692]=null
call RemoveLocation(udg_B[693])
set udg_B[693]=null
call RemoveLocation(udg_B[694])
set udg_B[694]=null
call RemoveLocation(udg_B[695])
set udg_B[695]=null
call RemoveLocation(udg_B[696])
set udg_B[696]=null
if(i_8())then
call DisableTrigger(udg_LD)
else
call DoNothing()
endif
if(jd8())then
call RemoveUnit(udg_d8)
else
call DoNothing()
endif
set udg_b[691]=udg_b[691]+1
endloop
set udg_d8=null
set udg_c[50]=0.00
set udg_H[691]=0.00
set udg_q4[691]=0.00
call RemoveLocation(udg_B[691])
set udg_B[691]=null
call TriggerSleepAction(40.00)
set udg_A[89]=null
endfunction
function jf8 takes nothing returns nothing
set udg_KD=CreateTrigger()
call TriggerAddCondition(udg_KD,Condition(function g78))
call TriggerAddAction(udg_KD,function je8)
endfunction
function jg8 takes nothing returns boolean
if(not(udg_d8!=null))then
return false
endif
return true
endfunction
function jh8 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_B[691],GetUnitLoc(udg_d8))<70.00))then
return false
endif
if(not(MG(udg_d8,UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function ji8 takes nothing returns boolean
return(IsUnitDeadBJ(udg_d8)==false)
endfunction
function jj8 takes nothing returns boolean
if(not jh8())then
return false
endif
return true
endfunction
function jk8 takes nothing returns nothing
set udg_dg[31]=PG(GetUnitLoc(udg_d8),47.00,AngleBetweenPoints(GetUnitLoc(udg_d8),udg_B[691]))
call SetUnitPositionLocFacingLocBJ(udg_d8,udg_dg[31],udg_B[691])
call RemoveLocation(udg_dg[31])
set udg_dg[31]=null
if(jj8())then
call DisableTrigger(GetTriggeringTrigger())
if(ji8())then
call RemoveUnit(udg_d8)
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function jm8 takes nothing returns nothing
set udg_LD=CreateTrigger()
call DisableTrigger(udg_LD)
call TriggerRegisterTimerEventPeriodic(udg_LD,0.03)
call TriggerAddCondition(udg_LD,Condition(function jg8))
call TriggerAddAction(udg_LD,function jk8)
endfunction
function jn8 takes nothing returns boolean
if(not(udg_xm==null))then
return false
endif
return true
endfunction
function jo8 takes nothing returns nothing
if(jn8())then
call DestroyTrigger(udg_ND)
call DestroyTrigger(udg_OD)
call DestroyTrigger(udg_PD)
call DestroyTrigger(udg_QD)
call DestroyTrigger(udg_RD)
call DestroyTrigger(udg_SD)
call DestroyTrigger(udg_TD)
call DestroyTrigger(udg_UD)
call DestroyTrigger(udg_VD)
call DestroyTrigger(udg_WD)
call DestroyTrigger(udg_XD)
call DestroyTrigger(udg_YD)
call DestroyTrigger(udg_ZD)
call DestroyTrigger(udg_dE)
call DestroyTrigger(udg_eE)
call DestroyTrigger(udg_fE)
else
call TriggerRegisterUnitEvent(udg_ND,udg_xm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_PD,udg_xm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_RD,udg_xm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_SD,udg_xm,EVENT_UNIT_HERO_SKILL)
call TriggerRegisterUnitEvent(udg_UD,udg_xm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_eE,udg_xm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function jp8 takes nothing returns nothing
set udg_MD=CreateTrigger()
call TriggerAddAction(udg_MD,function jo8)
endfunction
function jq8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681473))then
return false
endif
return true
endfunction
function jr8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function js8 takes nothing returns nothing
set udg_A[1000]=GetTriggerUnit()
set udg_B[1000]=GetSpellTargetLoc()
set udg_c[1000]=AngleBetweenPoints(GetUnitLoc(udg_A[1000]),udg_B[1000])
set udg_B[1001]=PG(GetUnitLoc(udg_A[1000]),220.00,udg_c[1000])
call CreateTextTagUnitBJ("Nemuriuta: Furan",udg_A[1000],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function jr8)))
set udg_Km[73]=GetUnitLoc(udg_A[1000])
call PlaySoundAtPointBJ(udg_jr,100,udg_Km[73],0)
call RemoveLocation(udg_Km[73])
set udg_Km[73]=null
call TriggerSleepAction(0.10)
call SetUnitFacingToFaceLocTimed(udg_A[1000],udg_B[1000],0)
call CreateNUnitsAtLoc(1,1747988791,GetOwningPlayer(udg_A[1000]),udg_B[1001],udg_c[1000])
set udg_A[1001]=GetLastCreatedUnit()
call RemoveLocation(udg_B[1001])
set udg_B[1001]=null
call EnableTrigger(udg_OD)
call TriggerSleepAction(0.40)
call DisableTrigger(udg_OD)
call RemoveUnit(udg_A[1001])
set udg_A[1000]=null
set udg_A[1001]=null
set udg_c[1000]=0.00
call RemoveLocation(udg_B[1000])
set udg_B[1000]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_Ef)
endfunction
function jt8 takes nothing returns nothing
set udg_ND=CreateTrigger()
call TriggerAddCondition(udg_ND,Condition(function jq8))
call TriggerAddAction(udg_ND,function js8)
endfunction
function ju8 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Ef)==false)
endfunction
function jv8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[1000]))==true)
endfunction
function jw8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function jx8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function jy8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function jz8 takes nothing returns boolean
return GetBooleanAnd(jx8(),jy8())
endfunction
function jA8 takes nothing returns boolean
return GetBooleanAnd(jw8(),jz8())
endfunction
function ja8 takes nothing returns boolean
return GetBooleanAnd(jv8(),jA8())
endfunction
function jB8 takes nothing returns boolean
return GetBooleanAnd(ju8(),ja8())
endfunction
function jb8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=udg_ng)
endfunction
function jC8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])>udg_ng))then
return false
endif
return true
endfunction
function jc8 takes nothing returns nothing
set udg_y9[1000]=GetEnumUnit()
call GroupAddUnitSimple(udg_y9[1000],udg_Ef)
set udg_ng=(250.00+(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])*0.12))
if(jC8())then
call SetUnitLifeBJ(udg_y9[1000],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])-udg_ng))
else
if(jb8())then
call UnitDamageTargetBJ(udg_A[1000],udg_y9[1000],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[1000]),udg_B[1001],bj_UNIT_FACING)
set udg_A[1002]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681474,udg_A[1002])
call IssueTargetOrderBJ(udg_A[1002],"sleep",udg_y9[1000])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[1002])
set udg_A[1002]=null
set udg_y9[1000]=null
set udg_ng=0.00
endfunction
function jD8 takes nothing returns nothing
set udg_B[1001]=PG(GetUnitLoc(udg_A[1001]),45.00,udg_c[1000])
call SetUnitPositionLocFacingBJ(udg_A[1001],udg_B[1001],udg_c[1000])
call RemoveLocation(udg_B[1001])
set udg_B[1001]=null
set udg_B[1001]=GetUnitLoc(udg_A[1001])
set udg_Df[1]=e6(300.00,udg_B[1001],Condition(function jB8))
call ForGroupBJ(udg_Df[1],function jc8)
call DestroyGroup(udg_Df[1])
set udg_Df[1]=null
call RemoveLocation(udg_B[1001])
set udg_B[1001]=null
endfunction
function jE8 takes nothing returns nothing
set udg_OD=CreateTrigger()
call DisableTrigger(udg_OD)
call TriggerRegisterTimerEventPeriodic(udg_OD,0.03)
call TriggerAddAction(udg_OD,function jD8)
endfunction
function j38 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681478))then
return false
endif
return true
endfunction
function jF8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function jG8 takes nothing returns boolean
if(not(udg_A[1004]!=null))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[1004])==true))then
return false
endif
return true
endfunction
function j68 takes nothing returns boolean
if(not jG8())then
return false
endif
return true
endfunction
function jH8 takes nothing returns boolean
return(IsTriggerEnabled(udg_QD)==false)
endfunction
function jI8 takes nothing returns boolean
if(not(udg_A[1004]!=null))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[1004])==true))then
return false
endif
return true
endfunction
function jl8 takes nothing returns boolean
if(not jI8())then
return false
endif
return true
endfunction
function j18 takes nothing returns nothing
set udg_A[1004]=GetTriggerUnit()
set udg_q4[1004]=(360.00+((2.50+(1.50*I2R(GetUnitAbilityLevelSwapped(1093681478,udg_A[1004]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[1004],true))))
call PauseUnitBJ(true,udg_A[1004])
call SetUnitPathing(udg_A[1004],false)
call SetUnitAnimation(udg_A[1004],"spell slam")
call CreateTextTagUnitBJ("Gavotte Bond Avant",udg_A[1004],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function jF8)))
set udg_Km[74]=GetUnitLoc(udg_A[1004])
call PlaySoundAtPointBJ(udg_fq,100,udg_Km[74],0)
call RemoveLocation(udg_Km[74])
set udg_Km[74]=null
set udg_Zi[27]=0.00
call TriggerSleepAction(0.10)
if(j68())then
call SetUnitTimeScalePercent(udg_A[1004],30.00)
set udg_c[1004]=GetUnitFacing(udg_A[1004])
else
call DoNothing()
endif
call EnableTrigger(udg_QD)
loop
exitwhen(jH8())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call SetUnitPathing(udg_A[1004],true)
call SetUnitTimeScalePercent(udg_A[1004],100.00)
if(jl8())then
call PauseUnitBJ(false,udg_A[1004])
call ResetUnitAnimation(udg_A[1004])
else
call DoNothing()
endif
set udg_A[1004]=null
set udg_q4[1004]=0.00
set udg_c[1004]=0.00
set udg_Zi[27]=0.00
set bj_wantDestroyGroup=true
call GroupClear(udg_Ff)
endfunction
function jJ8 takes nothing returns nothing
set udg_PD=CreateTrigger()
call TriggerAddCondition(udg_PD,Condition(function j38))
call TriggerAddAction(udg_PD,function j18)
endfunction
function jK8 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Ff)==false)
endfunction
function jL8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[1004]))==true)
endfunction
function jM8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function jN8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function jO8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function j08 takes nothing returns boolean
return GetBooleanAnd(jN8(),jO8())
endfunction
function jP8 takes nothing returns boolean
return GetBooleanAnd(jM8(),j08())
endfunction
function jQ8 takes nothing returns boolean
return GetBooleanAnd(jL8(),jP8())
endfunction
function jR8 takes nothing returns boolean
return GetBooleanAnd(jK8(),jQ8())
endfunction
function Trig_DS_move_Func001Func004Func010Func003Func001Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=300.00)
endfunction
function Trig_DS_move_Func001Func004Func010Func003Func001C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])>300.00))then
return false
endif
return true
endfunction
function jS8 takes nothing returns nothing
set udg_y9[1004]=GetEnumUnit()
call GroupAddUnitSimple(udg_y9[1004],udg_Ff)
call UnitDamageTargetBJ(udg_A[1004],udg_y9[1004],udg_q4[1004],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_y9[1004],"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_y9[1004]=null
endfunction
function j58 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function jT8 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_vo,udg_B[1004])==true))then
return true
endif
if((RectContainsLoc(udg_xo,udg_B[1004])==true))then
return true
endif
return false
endfunction
function jU8 takes nothing returns boolean
if(not jT8())then
return false
endif
return true
endfunction
function jV8 takes nothing returns boolean
if(not(udg_Zi[27]>=23.00))then
return false
endif
return true
endfunction
function jW8 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_A[1004])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_A[1004])==true))then
return true
endif
return false
endfunction
function jX8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[1004])==true))then
return false
endif
if(not jW8())then
return false
endif
return true
endfunction
function jY8 takes nothing returns boolean
if(not jX8())then
return false
endif
return true
endfunction
function j28 takes nothing returns nothing
if(jY8())then
set udg_Zi[27]=(udg_Zi[27]+1)
set udg_B[1004]=PG(GetUnitLoc(udg_A[1004]),40.00,udg_c[1004])
if(jU8())then
call SetUnitPositionLocFacingBJ(udg_A[1004],udg_B[1004],udg_c[1004])
call RemoveLocation(udg_B[1004])
set udg_B[1004]=null
set udg_B[1004]=PG(GetUnitLoc(udg_A[1004]),140.00,udg_c[1004])
call AddSpecialEffectLocBJ(udg_B[1004],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Df[2]=e6(220.00,udg_B[1004],Condition(function jR8))
call ForGroupBJ(udg_Df[2],function jS8)
call DestroyGroup(udg_Df[2])
set udg_Df[2]=null
call UG(220.00,udg_B[1004],function j58)
call RemoveLocation(udg_B[1004])
set udg_B[1004]=null
else
call RemoveLocation(udg_B[1004])
set udg_B[1004]=null
endif
if(jV8())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function jZ8 takes nothing returns nothing
set udg_QD=CreateTrigger()
call DisableTrigger(udg_QD)
call TriggerRegisterTimerEventPeriodic(udg_QD,0.03)
call TriggerAddAction(udg_QD,function j28)
endfunction
function j_8 takes nothing returns boolean
if((GetSpellAbilityId()==1093681476))then
return true
endif
if((GetSpellAbilityId()==1093681477))then
return true
endif
return false
endfunction
function k48 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function k78 takes nothing returns boolean
if(not j_8())then
return false
endif
if(not k48())then
return false
endif
return true
endfunction
function k88 takes nothing returns boolean
if(not k78())then
return false
endif
return true
endfunction
function k98 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function kd8 takes nothing returns nothing
set udg_RD=CreateTrigger()
call TriggerAddCondition(udg_RD,Condition(function k88))
call TriggerAddAction(udg_RD,function k98)
endfunction
function ke8 takes nothing returns boolean
if(not(GetLearnedSkillBJ()==1093681476))then
return false
endif
if(not(GetUnitTypeId(GetLearningUnit())==1311780948))then
return false
endif
return true
endfunction
function kf8 takes nothing returns boolean
if(not ke8())then
return false
endif
return true
endfunction
function kg8 takes nothing returns nothing
set udg_Xf=GetLearningUnit()
call EnableTrigger(udg_XD)
call TriggerRegisterPlayerKeyEventBJ(udg_XD,GetOwningPlayer(udg_Xf),bj_KEYEVENTTYPE_DEPRESS,bj_KEYEVENTKEY_LEFT)
call EnableTrigger(udg_YD)
call TriggerRegisterPlayerKeyEventBJ(udg_YD,GetOwningPlayer(udg_Xf),bj_KEYEVENTTYPE_DEPRESS,bj_KEYEVENTKEY_RIGHT)
call EnableTrigger(udg_ZD)
call TriggerRegisterPlayerKeyEventBJ(udg_ZD,GetOwningPlayer(udg_Xf),bj_KEYEVENTTYPE_DEPRESS,bj_KEYEVENTKEY_UP)
call EnableTrigger(udg_dE)
call TriggerRegisterPlayerKeyEventBJ(udg_dE,GetOwningPlayer(udg_Xf),bj_KEYEVENTTYPE_DEPRESS,bj_KEYEVENTKEY_DOWN)
call DisableTrigger(GetTriggeringTrigger())
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function kh8 takes nothing returns nothing
set udg_SD=CreateTrigger()
call TriggerAddCondition(udg_SD,Condition(function kf8))
call TriggerAddAction(udg_SD,function kg8)
endfunction
function ki8 takes nothing returns boolean
if(not(GetAttackedUnitBJ()==udg_a[1006]))then
return false
endif
if(not(udg_a[1006]!=null))then
return false
endif
return true
endfunction
function kj8 takes nothing returns boolean
if(not ki8())then
return false
endif
return true
endfunction
function kk8 takes nothing returns nothing
call IssueImmediateOrderBJ(GetAttacker(),"stop")
endfunction
function km8 takes nothing returns nothing
set udg_TD=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_TD,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_TD,Condition(function kj8))
call TriggerAddAction(udg_TD,function kk8)
endfunction
function kn8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681476))then
return false
endif
return true
endfunction
function ko8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function kp8 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_A[1006]))]==false))then
return false
endif
return true
endfunction
function kq8 takes nothing returns boolean
if(not(udg_a[1006]!=null))then
return false
endif
if(not(IsUnitAliveBJ(udg_a[1006])==true))then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(udg_A[1006]),GetUnitLoc(udg_a[1006]))<=400.00))then
return false
endif
return true
endfunction
function kr8 takes nothing returns boolean
return(udg_Kf==true)
endfunction
function ks8 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_A[1006]))]==false))then
return false
endif
return true
endfunction
function kt8 takes nothing returns boolean
return(IsTriggerEnabled(udg_VD)==true)
endfunction
function ku8 takes nothing returns boolean
if(not(udg_N[1006]>=6))then
return false
endif
if(not(udg_N[1006]<=12))then
return false
endif
return true
endfunction
function kv8 takes nothing returns boolean
if(not(udg_N[1006]==9))then
return false
endif
return true
endfunction
function kw8 takes nothing returns boolean
if((udg_N[1006]==8))then
return true
endif
if((udg_N[1006]==10))then
return true
endif
return false
endfunction
function kx8 takes nothing returns boolean
if(not kw8())then
return false
endif
return true
endfunction
function ky8 takes nothing returns boolean
if((udg_N[1006]==6))then
return true
endif
if((udg_N[1006]==7))then
return true
endif
if((udg_N[1006]==11))then
return true
endif
if((udg_N[1006]==12))then
return true
endif
return false
endfunction
function kz8 takes nothing returns boolean
if(not ky8())then
return false
endif
return true
endfunction
function kA8 takes nothing returns boolean
if(not ku8())then
return false
endif
return true
endfunction
function ka8 takes nothing returns boolean
if(not kq8())then
return false
endif
return true
endfunction
function kB8 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetOwningPlayer(udg_A[1006]))]==false))then
return false
endif
return true
endfunction
function kb8 takes nothing returns boolean
return(IsTriggerEnabled(udg_VD)==true)
endfunction
function kC8 takes nothing returns boolean
if(not(udg_A[1006]!=null))then
return false
endif
return true
endfunction
function kc8 takes nothing returns nothing
set udg_A[1006]=GetTriggerUnit()
set udg_a[1006]=GetSpellTargetUnit()
set udg_q4[1006]=(7.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[1006],false)))
set udg_Hf=true
set udg_N[1006]=0
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[1006]))]=true
set udg_B[1006]=PG(GetUnitLoc(udg_A[1006]),40.00,270.00)
call SetUnitFacingToFaceUnitTimed(udg_A[1006],udg_a[1006],0)
call PauseUnitBJ(true,udg_A[1006])
call PauseUnitBJ(true,udg_a[1006])
call SetUnitInvulnerable(udg_A[1006],true)
call SetUnitInvulnerable(udg_a[1006],true)
call SetUnitTimeScalePercent(udg_A[1006],200.00)
call CreateTextTagUnitBJ("Polka: Remise",udg_A[1006],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function ko8)))
if(kp8())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_A[1006]),udg_A[1006],0,0,false)
else
call DoNothing()
endif
set udg_Km[75]=GetUnitLoc(udg_A[1006])
call PlaySoundAtPointBJ(udg_nr,100,udg_Km[75],0)
call RemoveLocation(udg_Km[75])
set udg_Km[75]=null
call TriggerSleepAction(0.75)
set udg_Jf[1]=1
loop
exitwhen udg_Jf[1]>7
if(ka8())then
call TriggerExecute(udg_WD)
loop
exitwhen(kr8())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call DestroyTextTagBJ(udg_Mf)
call DestroyTextTagBJ(udg_Of)
if(kA8())then
set udg_q4[1006]=(7.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_A[1006],false)))
if(kz8())then
call CreateTextTagUnitBJ("|c0080FF80BAD|r",udg_a[1006],0,12.00,100,0.00,0.00,0)
set udg_Mf=GetLastCreatedTextTag()
set udg_Nf=(udg_q4[1006]*0.40)
call SetUnitAnimation(udg_A[1006],"attack")
else
if(kx8())then
call CreateTextTagUnitBJ("|c0080FF80GOOD|r",udg_a[1006],0,12.00,100,0.00,0.00,0)
set udg_Mf=GetLastCreatedTextTag()
set udg_Nf=(udg_q4[1006]*0.65)
call SetUnitAnimation(udg_A[1006],"attack")
else
if(kv8())then
call CreateTextTagUnitBJ("|c000080FFPERFECT|r",udg_a[1006],0,12.00,100,0.00,0.00,0)
set udg_Mf=GetLastCreatedTextTag()
set udg_Nf=udg_q4[1006]
call SetUnitAnimation(udg_A[1006],"spell slam")
call AddSpecialEffectTargetUnitBJ("origin",udg_a[1006],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
endif
call UnitDamageTargetBJ(udg_A[1006],udg_a[1006],udg_Nf,ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call SetTextTagVelocityBJ(udg_Mf,100.00,90)
call SetTextTagPermanentBJ(udg_Mf,false)
call SetTextTagLifespanBJ(udg_Mf,1.50)
else
call CreateTextTagUnitBJ("|c00FFFF80MISS!!|r",udg_a[1006],0,12.00,100,0.00,0.00,0)
set udg_Mf=GetLastCreatedTextTag()
call SetTextTagVelocityBJ(udg_Mf,100.00,90)
call SetTextTagPermanentBJ(udg_Mf,false)
call SetTextTagLifespanBJ(udg_Mf,1.50)
endif
call TriggerSleepAction(0.00)
call SetUnitInvulnerable(udg_a[1006],true)
else
call PauseUnitBJ(false,udg_A[1006])
call PauseUnitBJ(false,udg_a[1006])
call SetUnitInvulnerable(udg_A[1006],false)
call SetUnitInvulnerable(udg_a[1006],false)
call SetUnitTimeScalePercent(udg_A[1006],100.00)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[1006]))]=false
if(ks8())then
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_A[1006]),0)
else
call DoNothing()
endif
call SelectUnitForPlayerSingle(udg_A[1006],GetOwningPlayer(udg_A[1006]))
if(kt8())then
call DisableTrigger(udg_VD)
else
call DoNothing()
endif
set udg_A[1006]=null
set udg_a[1006]=null
set udg_q4[1006]=0.00
set udg_Hf=false
set udg_Kf=true
set udg_N[1006]=0
call RemoveLocation(udg_B[1006])
set udg_B[1006]=null
endif
set udg_Jf[1]=udg_Jf[1]+1
endloop
if(kC8())then
call PauseUnitBJ(false,udg_A[1006])
call PauseUnitBJ(false,udg_a[1006])
call SetUnitInvulnerable(udg_A[1006],false)
call SetUnitInvulnerable(udg_a[1006],false)
call SetUnitTimeScalePercent(udg_A[1006],100.00)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[1006]))]=false
if(kB8())then
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_A[1006]),0)
else
call DoNothing()
endif
call SelectUnitForPlayerSingle(udg_A[1006],GetOwningPlayer(udg_A[1006]))
if(kb8())then
call DisableTrigger(udg_VD)
else
call DoNothing()
endif
set udg_A[1006]=null
set udg_a[1006]=null
set udg_q4[1006]=0.00
set udg_Hf=false
set udg_N[1006]=0
set udg_Kf=true
call RemoveLocation(udg_B[1006])
set udg_B[1006]=null
else
call DoNothing()
endif
endfunction
function kD8 takes nothing returns nothing
set udg_UD=CreateTrigger()
call TriggerAddCondition(udg_UD,Condition(function kn8))
call TriggerAddAction(udg_UD,function kc8)
endfunction
function kE8 takes nothing returns boolean
if(not(udg_Hf==true))then
return false
endif
return true
endfunction
function k38 takes nothing returns boolean
if((IsUnitDeadBJ(udg_a[1006])==true))then
return true
endif
if((udg_a[1006]==null))then
return true
endif
if((DistanceBetweenPoints(GetUnitLoc(udg_A[1006]),GetUnitLoc(udg_a[1006]))>400.00))then
return true
endif
return false
endfunction
function kF8 takes nothing returns boolean
if(not k38())then
return false
endif
return true
endfunction
function kG8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_a[1006])==true))then
return false
endif
if(not(udg_Hf==true))then
return false
endif
if(not(udg_Kf==false))then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(udg_A[1006]),GetUnitLoc(udg_a[1006]))<=400.00))then
return false
endif
return true
endfunction
function k68 takes nothing returns boolean
if(not(udg_N[1006]<=18))then
return false
endif
return true
endfunction
function kH8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function kI8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function kl8 takes nothing returns boolean
if(not(udg_N[1006]==16))then
return false
endif
return true
endfunction
function k18 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function kJ8 takes nothing returns boolean
if(not(udg_N[1006]==15))then
return false
endif
return true
endfunction
function kK8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function kL8 takes nothing returns boolean
if(not(udg_N[1006]==14))then
return false
endif
return true
endfunction
function kM8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function kN8 takes nothing returns boolean
if(not(udg_N[1006]==13))then
return false
endif
return true
endfunction
function kO8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function k08 takes nothing returns boolean
if(not(udg_N[1006]==12))then
return false
endif
return true
endfunction
function kP8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function kQ8 takes nothing returns boolean
if(not(udg_N[1006]==11))then
return false
endif
return true
endfunction
function kR8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function kS8 takes nothing returns boolean
if(not(udg_N[1006]==10))then
return false
endif
return true
endfunction
function k58 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function kT8 takes nothing returns boolean
if(not(udg_N[1006]==9))then
return false
endif
return true
endfunction
function kU8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function kV8 takes nothing returns boolean
if(not(udg_N[1006]==8))then
return false
endif
return true
endfunction
function kW8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function kX8 takes nothing returns boolean
if(not(udg_N[1006]==7))then
return false
endif
return true
endfunction
function kY8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function k28 takes nothing returns boolean
if(not(udg_N[1006]==6))then
return false
endif
return true
endfunction
function kZ8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function k_8 takes nothing returns boolean
if(not(udg_N[1006]==5))then
return false
endif
return true
endfunction
function m48 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function m78 takes nothing returns boolean
if(not(udg_N[1006]==4))then
return false
endif
return true
endfunction
function m88 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function m98 takes nothing returns boolean
if(not(udg_N[1006]==3))then
return false
endif
return true
endfunction
function md8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function me8 takes nothing returns boolean
if(not(udg_N[1006]==2))then
return false
endif
return true
endfunction
function mf8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function mg8 takes nothing returns boolean
if(not(udg_N[1006]==1))then
return false
endif
return true
endfunction
function mh8 takes nothing returns boolean
if(not kG8())then
return false
endif
return true
endfunction
function mi8 takes nothing returns nothing
if(mh8())then
if(k68())then
set udg_N[1006]=(udg_N[1006]+1)
else
call DoNothing()
endif
if(mg8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function mf8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(me8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("|c00400000I|rIII|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function md8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(m98())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("I|c00400000I|rII|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function m88)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(m78())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("II|c00400000I|rI|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function m48)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(k_8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("III|c00400000I|r|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kZ8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(k28())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c00400000I|r|c0006FF83I|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kY8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(kX8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83I|r|c00400000I|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kW8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(kV8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83II|r|c00400000I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kU8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(kT8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83II|r|c0000C161I|r|c00400000I|r|c0000C161I|r|c0006FF83II|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function k58)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(kS8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83II|r|c0000C161I|r|c00008442I|r|c00400000I|r|c0006FF83II|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kR8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(kQ8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c00400000I|r|c0006FF83I|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kP8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(k08())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83I|r|c00400000I|rIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kO8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(kN8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|r|c00400000I|rIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kM8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(kL8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rI|c00400000I|rII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kK8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(kJ8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rII|c00400000I|rI",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function k18)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
if(kl8())then
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIII|c0006FF83II|r|c0000C161I|r|c00008442I|r|c0000C161I|r|c0006FF83II|rIII|c00400000I|r",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kI8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
else
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIIIIIIIIIIIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function kH8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
call DisableTrigger(GetTriggeringTrigger())
set udg_Kf=true
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
call DisableTrigger(GetTriggeringTrigger())
set udg_Kf=true
if(kF8())then
call PauseUnitBJ(false,udg_A[1006])
call PauseUnitBJ(false,udg_a[1006])
call SetUnitInvulnerable(udg_A[1006],false)
call SetUnitInvulnerable(udg_a[1006],false)
call SetUnitTimeScalePercent(udg_A[1006],100.00)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[1006]))]=false
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_A[1006]),0)
set udg_A[1006]=null
set udg_a[1006]=null
set udg_q4[1006]=0.00
set udg_Hf=false
set udg_Kf=true
set udg_N[1006]=0
call DestroyTextTagBJ(udg_If)
else
call DoNothing()
endif
endif
endfunction
function mj8 takes nothing returns nothing
set udg_VD=CreateTrigger()
call DisableTrigger(udg_VD)
call TriggerRegisterTimerEventPeriodic(udg_VD,0.05)
call TriggerAddCondition(udg_VD,Condition(function kE8))
call TriggerAddAction(udg_VD,function mi8)
endfunction
function mk8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function mm8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function mn8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function mo8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function mp8 takes nothing returns boolean
if((udg_Gf==13))then
return true
endif
if((udg_Gf==14))then
return true
endif
if((udg_Gf==15))then
return true
endif
if((udg_Gf==16))then
return true
endif
return false
endfunction
function mq8 takes nothing returns boolean
if(not mp8())then
return false
endif
return true
endfunction
function mr8 takes nothing returns boolean
if((udg_Gf==9))then
return true
endif
if((udg_Gf==10))then
return true
endif
if((udg_Gf==11))then
return true
endif
if((udg_Gf==12))then
return true
endif
return false
endfunction
function ms8 takes nothing returns boolean
if(not mr8())then
return false
endif
return true
endfunction
function mt8 takes nothing returns boolean
if((udg_Gf==5))then
return true
endif
if((udg_Gf==6))then
return true
endif
if((udg_Gf==7))then
return true
endif
if((udg_Gf==8))then
return true
endif
return false
endfunction
function mu8 takes nothing returns boolean
if(not mt8())then
return false
endif
return true
endfunction
function mv8 takes nothing returns boolean
if((udg_Gf==1))then
return true
endif
if((udg_Gf==2))then
return true
endif
if((udg_Gf==3))then
return true
endif
if((udg_Gf==4))then
return true
endif
return false
endfunction
function mw8 takes nothing returns boolean
if(not mv8())then
return false
endif
return true
endfunction
function mx8 takes nothing returns nothing
call DisableTrigger(udg_VD)
set udg_Gf=GetRandomInt(1,16)
if(mw8())then
set udg_Lf=1
call CreateTextTagLocBJ("|c007DFFBEpress LEFT|r",udg_B[1006],0,12.00,100,100,100,0)
set udg_Of=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Of,false)
call SetTextTagLifespanBJ(udg_Of,0.70)
call ShowTextTagForceBJ(false,udg_Of,t6(Condition(function mk8)))
call ShowTextTagForceBJ(true,udg_Of,m6(GetOwningPlayer(udg_A[1006])))
else
if(mu8())then
set udg_Lf=2
call CreateTextTagLocBJ("|c007DFFBEpress RIGHT|r",udg_B[1006],0,12.00,100,100,100,0)
set udg_Of=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Of,false)
call SetTextTagLifespanBJ(udg_Of,0.70)
call ShowTextTagForceBJ(false,udg_Of,t6(Condition(function mm8)))
call ShowTextTagForceBJ(true,udg_Of,m6(GetOwningPlayer(udg_A[1006])))
else
if(ms8())then
set udg_Lf=3
call CreateTextTagLocBJ("|c007DFFBEpress UP|r",udg_B[1006],0,12.00,100,100,100,0)
set udg_Of=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Of,false)
call SetTextTagLifespanBJ(udg_Of,0.70)
call ShowTextTagForceBJ(false,udg_Of,t6(Condition(function mn8)))
call ShowTextTagForceBJ(true,udg_Of,m6(GetOwningPlayer(udg_A[1006])))
else
if(mq8())then
set udg_Lf=4
call CreateTextTagLocBJ("|c007DFFBEpress DOWN|r",udg_B[1006],0,12.00,100,100,100,0)
set udg_Of=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_Of,false)
call SetTextTagLifespanBJ(udg_Of,0.70)
call ShowTextTagForceBJ(false,udg_Of,t6(Condition(function mo8)))
call ShowTextTagForceBJ(true,udg_Of,m6(GetOwningPlayer(udg_A[1006])))
else
call DoNothing()
endif
endif
endif
endif
set udg_Gf=0
set udg_N[1006]=0
set udg_Kf=false
set udg_Nf=0.00
call TriggerSleepAction(0.01)
call EnableTrigger(udg_VD)
endfunction
function my8 takes nothing returns nothing
set udg_WD=CreateTrigger()
call TriggerAddAction(udg_WD,function mx8)
endfunction
function mz8 takes nothing returns boolean
if(not(udg_N[1006]!=0))then
return false
endif
if(not(udg_Hf==true))then
return false
endif
if(not(udg_Kf==false))then
return false
endif
return true
endfunction
function mA8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function ma8 takes nothing returns boolean
if(not(udg_Lf==1))then
return false
endif
return true
endfunction
function mB8 takes nothing returns nothing
if(ma8())then
call DisableTrigger(udg_VD)
set udg_Kf=true
call SetUnitInvulnerable(udg_a[1006],false)
else
call DisableTrigger(udg_VD)
set udg_N[1006]=16
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIIIIIIIIIIIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function mA8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
set udg_Kf=true
endif
endfunction
function mb8 takes nothing returns nothing
set udg_XD=CreateTrigger()
call DisableTrigger(udg_XD)
call TriggerAddCondition(udg_XD,Condition(function mz8))
call TriggerAddAction(udg_XD,function mB8)
endfunction
function mC8 takes nothing returns boolean
if(not(udg_N[1006]!=0))then
return false
endif
if(not(udg_Hf==true))then
return false
endif
if(not(udg_Kf==false))then
return false
endif
return true
endfunction
function mc8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function mD8 takes nothing returns boolean
if(not(udg_Lf==2))then
return false
endif
return true
endfunction
function mE8 takes nothing returns nothing
if(mD8())then
call DisableTrigger(udg_VD)
set udg_Kf=true
call SetUnitInvulnerable(udg_a[1006],false)
else
call DisableTrigger(udg_VD)
set udg_N[1006]=16
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIIIIIIIIIIIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function mc8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
set udg_Kf=true
endif
endfunction
function m38 takes nothing returns nothing
set udg_YD=CreateTrigger()
call DisableTrigger(udg_YD)
call TriggerAddCondition(udg_YD,Condition(function mC8))
call TriggerAddAction(udg_YD,function mE8)
endfunction
function mF8 takes nothing returns boolean
if(not(udg_N[1006]!=0))then
return false
endif
if(not(udg_Hf==true))then
return false
endif
if(not(udg_Kf==false))then
return false
endif
return true
endfunction
function mG8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function m68 takes nothing returns boolean
if(not(udg_Lf==3))then
return false
endif
return true
endfunction
function mH8 takes nothing returns nothing
if(m68())then
call DisableTrigger(udg_VD)
set udg_Kf=true
call SetUnitInvulnerable(udg_a[1006],false)
else
call DisableTrigger(udg_VD)
set udg_N[1006]=16
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIIIIIIIIIIIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function mG8)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
set udg_Kf=true
endif
endfunction
function mI8 takes nothing returns nothing
set udg_ZD=CreateTrigger()
call DisableTrigger(udg_ZD)
call TriggerAddCondition(udg_ZD,Condition(function mF8))
call TriggerAddAction(udg_ZD,function mH8)
endfunction
function ml8 takes nothing returns boolean
if(not(udg_N[1006]!=0))then
return false
endif
if(not(udg_Hf==true))then
return false
endif
if(not(udg_Kf==false))then
return false
endif
return true
endfunction
function m18 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(udg_A[1006]))
endfunction
function mJ8 takes nothing returns boolean
if(not(udg_Lf==4))then
return false
endif
return true
endfunction
function mK8 takes nothing returns nothing
if(mJ8())then
call DisableTrigger(udg_VD)
set udg_Kf=true
call SetUnitInvulnerable(udg_a[1006],false)
else
call DisableTrigger(udg_VD)
set udg_N[1006]=16
call DestroyTextTagBJ(udg_If)
call CreateTextTagUnitBJ("IIIIIIIIIIIIIII",udg_A[1006],0,10.00,100,100.00,100.00,0)
set udg_If=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_If,false)
call SetTextTagLifespanBJ(udg_If,0.70)
call ShowTextTagForceBJ(false,udg_If,t6(Condition(function m18)))
call ShowTextTagForceBJ(true,udg_If,m6(GetOwningPlayer(udg_A[1006])))
set udg_Kf=true
endif
endfunction
function mL8 takes nothing returns nothing
set udg_dE=CreateTrigger()
call DisableTrigger(udg_dE)
call TriggerAddCondition(udg_dE,Condition(function ml8))
call TriggerAddAction(udg_dE,function mK8)
endfunction
function mM8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681477))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==false))then
return false
endif
return true
endfunction
function mN8 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_B[1009])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_B[1009])==true))then
return true
endif
return false
endfunction
function mO8 takes nothing returns boolean
if(not mN8())then
return false
endif
return true
endfunction
function m08 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[1008],1110454611)==true)
endfunction
function mP8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function mQ8 takes nothing returns boolean
return(DistanceBetweenPoints(GetUnitLoc(udg_A[1009]),udg_B[1009])<=75.00)
endfunction
function mR8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function mS8 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[1008]!=udg_x))then
return false
endif
if(not(udg_A[1008]!=udg_y))then
return false
endif
return true
endfunction
function m58 takes nothing returns boolean
if(not mS8())then
return false
endif
return true
endfunction
function mT8 takes nothing returns nothing
set udg_A[1008]=GetTriggerUnit()
set udg_a[1008]=GetSpellTargetUnit()
set udg_B[1008]=GetUnitLoc(udg_a[1008])
set udg_c[1008]=AngleBetweenPoints(GetUnitLoc(udg_A[1008]),udg_B[1008])
set udg_B[1009]=PG(udg_B[1008],200.00,udg_c[1008])
if(mO8())then
call DoNothing()
else
call RemoveLocation(udg_B[1009])
set udg_B[1009]=null
set udg_B[1009]=PG(udg_B[1008],-160.00,udg_c[1008])
endif
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[1008]))]=true
set udg_q4[1008]=(2000.00+((35.00*I2R(GetUnitAbilityLevelSwapped(1093681477,udg_A[1008])))*I2R(GetHeroLevel(udg_A[1008]))))
if(m08())then
call UnitRemoveBuffBJ(1110454611,udg_A[1008])
else
call DoNothing()
endif
call SetUnitPathing(udg_A[1008],false)
call PauseUnitBJ(true,udg_A[1008])
call PauseUnitBJ(true,udg_a[1008])
call SetUnitInvulnerable(udg_A[1008],true)
call SetUnitInvulnerable(udg_a[1008],true)
call RemoveLocation(udg_B[1008])
set udg_B[1008]=null
call TriggerSleepAction(0.01)
set udg_B[1008]=GetUnitLoc(udg_A[1008])
call ShowUnitHide(udg_A[1008])
call CreateNUnitsAtLoc(1,1747988792,GetOwningPlayer(udg_A[1008]),udg_B[1008],udg_c[1008])
set udg_A[1009]=GetLastCreatedUnit()
call SetUnitPathing(udg_A[1009],false)
call SetUnitTimeScalePercent(udg_A[1009],40.00)
call SetUnitVertexColorBJ(udg_A[1009],100,100,100,50.00)
call IssuePointOrderLocBJ(udg_A[1009],"smart",udg_B[1009])
call RemoveLocation(udg_B[1008])
set udg_B[1008]=null
call CreateTextTagUnitBJ("Hanauta sanchou...",udg_A[1009],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function mP8)))
loop
exitwhen(mQ8())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
set udg_B[1008]=GetUnitLoc(udg_A[1009])
call ShowUnitShow(udg_A[1008])
call SetUnitPositionLocFacingBJ(udg_A[1008],udg_B[1008],udg_c[1008])
call RemoveLocation(udg_B[1009])
set udg_B[1009]=null
set udg_B[1009]=PG(udg_B[1008],-600.00,udg_c[1008])
call SetUnitPositionLocFacingBJ(udg_A[1009],udg_B[1009],udg_c[1008])
call SetUnitTimeScalePercent(udg_A[1008],75.00)
call SetUnitTimeScalePercent(udg_A[1009],75.00)
call SetUnitAnimation(udg_A[1008],"spell slam")
call SetUnitAnimation(udg_A[1009],"spell slam")
call EnableTrigger(udg_fE)
call TriggerSleepAction(0.10)
call DisableTrigger(udg_fE)
call SetUnitInvulnerable(udg_a[1008],false)
call TriggerSleepAction(0.01)
call RemoveLocation(udg_B[1008])
set udg_B[1008]=null
set udg_B[1008]=GetUnitLoc(udg_a[1008])
call RemoveUnit(udg_A[1009])
call PauseUnitBJ(false,udg_a[1008])
call UnitDamageTargetBJ(udg_A[1008],udg_a[1008],udg_q4[1008],ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectLocBJ(udg_B[1008],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_a[1008],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_a[1008],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ((I2S(R2I(udg_q4[1008]))+"!"),udg_a[1008],0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call CreateTextTagUnitBJ("YAHAZUGIRI",udg_A[1008],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function mR8)))
call SetUnitVertexColorBJ(udg_A[1008],100,100,100,0.00)
set udg_Km[76]=GetUnitLoc(udg_A[1008])
call PlaySoundAtPointBJ(udg_os,100,udg_Km[76],0)
call RemoveLocation(udg_Km[76])
set udg_Km[76]=null
call TriggerSleepAction(0.20)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[1008]))]=false
call TriggerSleepAction(0.50)
call PauseUnitBJ(false,udg_A[1008])
call SetUnitInvulnerable(udg_A[1008],false)
call SetUnitPathing(udg_A[1008],true)
call SetUnitTimeScalePercent(udg_A[1008],100.00)
call ResetUnitAnimation(udg_A[1008])
call SelectUnitForPlayerSingle(udg_A[1008],GetOwningPlayer(udg_A[1008]))
if(m58())then
call PauseUnitBJ(true,udg_A[1008])
else
call DoNothing()
endif
set udg_A[1008]=null
set udg_A[1009]=null
set udg_a[1008]=null
set udg_c[1008]=0.00
call RemoveLocation(udg_B[1008])
call RemoveLocation(udg_B[1009])
set udg_B[1008]=null
set udg_B[1009]=null
endfunction
function mU8 takes nothing returns nothing
set udg_eE=CreateTrigger()
call TriggerAddCondition(udg_eE,Condition(function mM8))
call TriggerAddAction(udg_eE,function mT8)
endfunction
function mV8 takes nothing returns boolean
if(not(DistanceBetweenPoints(GetUnitLoc(udg_A[1009]),udg_B[1008])>=100.00))then
return false
endif
return true
endfunction
function mW8 takes nothing returns nothing
if(mV8())then
call RemoveLocation(udg_B[1009])
set udg_B[1009]=null
set udg_B[1009]=PG(GetUnitLoc(udg_A[1009]),50.00,udg_c[1008])
call SetUnitPositionLoc(udg_A[1009],udg_B[1009])
call AddSpecialEffectLocBJ(udg_B[1009],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function mX8 takes nothing returns nothing
set udg_fE=CreateTrigger()
call DisableTrigger(udg_fE)
call TriggerRegisterTimerEventPeriodic(udg_fE,0.03)
call TriggerAddAction(udg_fE,function mW8)
endfunction
function mY8 takes nothing returns boolean
if(not(udg_ym==null))then
return false
endif
return true
endfunction
function m28 takes nothing returns nothing
if(mY8())then
call DestroyTrigger(udg_hE)
call DestroyTrigger(udg_iE)
call DestroyTrigger(udg_jE)
call DestroyTrigger(udg_kE)
call DestroyTrigger(udg_mE)
call DestroyTrigger(udg_nE)
call DestroyTrigger(udg_oE)
call DestroyTrigger(udg_pE)
call DestroyTrigger(udg_qE)
call DestroyTrigger(udg_rE)
call DestroyTrigger(udg_sE)
call DestroyTrigger(udg_tE)
else
call TriggerRegisterUnitEvent(udg_hE,udg_ym,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_iE,udg_ym,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_kE,udg_ym,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_mE,udg_ym,EVENT_UNIT_SPELL_FINISH)
call TriggerRegisterUnitEvent(udg_nE,udg_ym,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_oE,udg_ym,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_rE,udg_ym,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_tE,udg_ym,EVENT_UNIT_DEATH)
endif
endfunction
function mZ8 takes nothing returns nothing
set udg_gE=CreateTrigger()
call TriggerAddAction(udg_gE,function m28)
endfunction
function m_8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681737))then
return false
endif
return true
endfunction
function n48 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function n78 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Zf[23]))==true)
endfunction
function n88 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function n98 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function nd8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ne8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function nf8 takes nothing returns boolean
return GetBooleanAnd(nd8(),ne8())
endfunction
function ng8 takes nothing returns boolean
return GetBooleanAnd(n98(),nf8())
endfunction
function nh8 takes nothing returns boolean
return GetBooleanAnd(n88(),ng8())
endfunction
function ni8 takes nothing returns boolean
return GetBooleanAnd(n78(),nh8())
endfunction
function nj8 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Zf[23],GetEnumUnit(),(150.00+(3.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Zf[23],true)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function nk8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function nm8 takes nothing returns nothing
set udg_Zf[23]=GetTriggerUnit()
set udg_dg[5239]=GetSpellTargetLoc()
set udg_H[5239]=AngleBetweenPoints(GetUnitLoc(udg_Zf[23]),udg_dg[5239])
call CreateTextTagUnitBJ("El Thor",udg_Zf[23],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function n48)))
set udg_Km[77]=GetUnitLoc(udg_Zf[23])
call PlaySoundAtPointBJ(udg_Op,100,udg_Km[77],0)
call RemoveLocation(udg_Km[77])
set udg_Km[77]=null
set udg_Cj[1]=0
loop
exitwhen udg_Cj[1]>(GetUnitAbilityLevelSwapped(1093681737,udg_Zf[23])-1)
set udg_dg[34]=PG(udg_dg[5239],(180.00*I2R(udg_Cj[1])),udg_H[5239])
set udg_cj[1]=e6(250.00,udg_dg[34],Condition(function ni8))
call ForGroupBJ(udg_cj[1],function nj8)
call AddSpecialEffectLocBJ(udg_dg[34],"war3mapImported\\LightningWrath.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[34],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1747988568,GetOwningPlayer(udg_Zf[23]),udg_dg[34],bj_UNIT_FACING)
set udg_Zf[24]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Zf[24],100,100,100)
call SetUnitTimeScalePercent(udg_Zf[24],60.00)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[24])
call UG(250.00,udg_dg[34],function nk8)
call RemoveLocation(udg_dg[34])
set udg_dg[34]=null
call DestroyGroup(udg_cj[1])
set udg_cj[1]=null
call TriggerSleepAction(0.00)
set udg_Cj[1]=udg_Cj[1]+1
endloop
set udg_Zf[23]=null
set udg_Zf[24]=null
set udg_Zf[25]=null
set udg_H[5239]=0.00
call RemoveLocation(udg_dg[5239])
set udg_dg[5239]=null
endfunction
function nn8 takes nothing returns nothing
set udg_hE=CreateTrigger()
call TriggerAddCondition(udg_hE,Condition(function m_8))
call TriggerAddAction(udg_hE,function nm8)
endfunction
function no8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677656))then
return false
endif
return true
endfunction
function np8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function nq8 takes nothing returns nothing
set udg_Zf[26]=GetTriggerUnit()
set udg_dg[35]=GetUnitLoc(udg_Zf[26])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Zf[26]),udg_dg[35],bj_UNIT_FACING)
set udg_Zf[27]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677878,udg_Zf[27])
call SetUnitAbilityLevelSwapped(1093677878,udg_Zf[27],3)
call IssueTargetOrderBJ(udg_Zf[27],"unholyfrenzy",udg_Zf[26])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[27])
call CreateTextTagUnitBJ("Gloam Paddling",udg_Zf[26],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function np8)))
set udg_Km[78]=GetUnitLoc(udg_Zf[26])
call PlaySoundAtPointBJ(udg_kq,100,udg_Km[78],0)
call RemoveLocation(udg_Km[78])
set udg_Km[78]=null
set udg_Zf[26]=null
set udg_Zf[27]=null
call RemoveLocation(udg_dg[35])
set udg_dg[35]=null
endfunction
function nr8 takes nothing returns nothing
set udg_iE=CreateTrigger()
call TriggerAddCondition(udg_iE,Condition(function no8))
call TriggerAddAction(udg_iE,function nq8)
endfunction
function ns8 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),1110454613)==true))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())==1160785970))then
return false
endif
if(not(MG(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
if(not(MG(GetAttackedUnitBJ(),UNIT_TYPE_MECHANICAL)==false))then
return false
endif
if(not(MG(GetAttackedUnitBJ(),UNIT_TYPE_MAGIC_IMMUNE)==false))then
return false
endif
if(not(IsUnitHiddenBJ(GetAttacker())==false))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
return true
endfunction
function nt8 takes nothing returns boolean
if(not ns8())then
return false
endif
return true
endfunction
function nu8 takes nothing returns nothing
set udg_A[71]=GetAttacker()
set udg_a[11]=GetAttackedUnitBJ()
call UnitDamageTargetBJ(udg_A[71],udg_a[11],((1.00+(0.30*I2R(GetUnitAbilityLevelSwapped(1093677656,udg_A[71]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_A[71],true))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_a[11],"Abilities\\Spells\\Human\\ManaFlare\\ManaFlareBoltImpact.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_a[11],"Abilities\\Spells\\Human\\StormBolt\\StormBoltMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_A[71]=null
set udg_a[11]=null
endfunction
function nv8 takes nothing returns nothing
set udg_jE=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_jE,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_jE,Condition(function nt8))
call TriggerAddAction(udg_jE,function nu8)
endfunction
function nw8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677657))then
return false
endif
return true
endfunction
function nx8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function ny8 takes nothing returns nothing
call CreateTextTagUnitBJ("\"one million volt...\"",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function nx8)))
endfunction
function nz8 takes nothing returns nothing
set udg_kE=CreateTrigger()
call TriggerAddCondition(udg_kE,Condition(function nw8))
call TriggerAddAction(udg_kE,function ny8)
endfunction
function nA8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677657))then
return false
endif
return true
endfunction
function na8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function nB8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[72]))==true)
endfunction
function nb8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function nC8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function nc8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function nD8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function nE8 takes nothing returns boolean
return GetBooleanAnd(nc8(),nD8())
endfunction
function n38 takes nothing returns boolean
return GetBooleanAnd(nC8(),nE8())
endfunction
function nF8 takes nothing returns boolean
return GetBooleanAnd(nb8(),n38())
endfunction
function nG8 takes nothing returns boolean
return GetBooleanAnd(nB8(),nF8())
endfunction
function n68 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[72],GetEnumUnit(),((5.00+(3.00*I2R(GetUnitAbilityLevelSwapped(1093677657,udg_A[72]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_A[72],true))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function nH8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function nI8 takes nothing returns nothing
set udg_A[72]=GetTriggerUnit()
set udg_dg[36]=GetUnitLoc(udg_A[72])
call CreateTextTagUnitBJ("Vari",udg_A[72],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function na8)))
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_A[72]),udg_dg[36],bj_UNIT_FACING)
call SetUnitScalePercent(GetLastCreatedUnit(),1400.00,1400.00,1400.00)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),20.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_A[72]),udg_dg[36],bj_UNIT_FACING)
call SetUnitScalePercent(GetLastCreatedUnit(),1400.00,1400.00,1400.00)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),50.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_A[72]),udg_dg[36],bj_UNIT_FACING)
call SetUnitScalePercent(GetLastCreatedUnit(),1400.00,1400.00,1400.00)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),70.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_A[72]),udg_dg[36],bj_UNIT_FACING)
call SetUnitScalePercent(GetLastCreatedUnit(),1400.00,1400.00,1400.00)
call UnitApplyTimedLifeBJ(5.00,1112820806,GetLastCreatedUnit())
call AddSpecialEffectLocBJ(udg_dg[36],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_G[20]=e6(1600.00,udg_dg[36],Condition(function nG8))
call ForGroupBJ(udg_G[20],function n68)
call UG(1650.00,udg_dg[36],function nH8)
call SetTerrainTypeBJ(udg_dg[36],1499755634,-1,7,0)
set udg_A[72]=null
call PlaySoundAtPointBJ(udg_lr,100,udg_dg[36],0)
call DestroyGroup(udg_G[20])
set udg_G[20]=null
call RemoveLocation(udg_dg[36])
set udg_dg[36]=null
endfunction
function nl8 takes nothing returns nothing
set udg_mE=CreateTrigger()
call TriggerAddCondition(udg_mE,Condition(function nA8))
call TriggerAddAction(udg_mE,function nI8)
endfunction
function n18 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677653))then
return false
endif
return true
endfunction
function nJ8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function nK8 takes nothing returns boolean
if(not(udg_Dj!=null))then
return false
endif
return true
endfunction
function nL8 takes nothing returns nothing
set udg_Dj=GetTriggerUnit()
set udg_Fj[1]=(25+(5*GetUnitAbilityLevelSwapped(1093677653,udg_Dj)))
set udg_Fj[2]=(5+(3*GetUnitAbilityLevelSwapped(1093677653,udg_Dj)))
set udg_Gj=(2.50*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Dj,true)))
call AddWeatherEffectSaveLast(GetPlayableMapRect(),1380739186)
set udg_Q[2]=GetLastCreatedWeatherEffect()
call EnableWeatherEffect(udg_Q[2],true)
call CreateTextTagUnitBJ("Mamaragan",udg_Dj,0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function nJ8)))
set udg_Sg[3]=GetUnitLoc(udg_A[73])
call PlaySoundAtPointBJ(udg_Xr,100,udg_Sg[3],0)
call RemoveLocation(udg_Sg[3])
set udg_Sg[3]=null
call EnableTrigger(udg_pE)
call EnableTrigger(udg_qE)
call TriggerSleepAction(15.00)
if(nK8())then
call DisableTrigger(udg_pE)
call DisableTrigger(udg_qE)
set udg_Dj=null
set udg_Fj[1]=0
set udg_Fj[2]=0
set udg_Gj=0.00
call EnableWeatherEffect(udg_Q[2],false)
call RemoveWeatherEffectBJ(udg_Q[2])
else
call DoNothing()
endif
endfunction
function nM8 takes nothing returns nothing
set udg_nE=CreateTrigger()
call TriggerAddCondition(udg_nE,Condition(function n18))
call TriggerAddAction(udg_nE,function nL8)
endfunction
function nN8 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Dj))then
return false
endif
return true
endfunction
function nO8 takes nothing returns nothing
call DisableTrigger(udg_pE)
call DisableTrigger(udg_qE)
set udg_Dj=null
set udg_Fj[1]=0
set udg_Fj[2]=0
set udg_Gj=0.00
call EnableWeatherEffect(udg_Q[2],false)
call RemoveWeatherEffectBJ(udg_Q[2])
endfunction
function n08 takes nothing returns nothing
set udg_oE=CreateTrigger()
call TriggerAddCondition(udg_oE,Condition(function nN8))
call TriggerAddAction(udg_oE,function nO8)
endfunction
function nP8 takes nothing returns boolean
if(not(udg_Dj!=udg_x))then
return false
endif
if(not(udg_Dj!=udg_y))then
return false
endif
return true
endfunction
function nQ8 takes nothing returns boolean
if((udg_Dj==udg_x))then
return true
endif
if((udg_Dj==udg_y))then
return true
endif
if(nP8())then
return true
endif
return false
endfunction
function nR8 takes nothing returns boolean
if(not(IsUnitEnemy(GetSpellAbilityUnit(),GetOwningPlayer(udg_Dj))==true))then
return false
endif
if(not(MG(GetSpellAbilityUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not nQ8())then
return false
endif
return true
endfunction
function nS8 takes nothing returns boolean
if(not nR8())then
return false
endif
return true
endfunction
function n58 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ej[1])<=udg_Gj)
endfunction
function nT8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ej[1])>udg_Gj))then
return false
endif
return true
endfunction
function nU8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function nV8 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=udg_Fj[1]))then
return false
endif
return true
endfunction
function nW8 takes nothing returns nothing
if(nV8())then
set udg_Ej[1]=GetSpellAbilityUnit()
set udg_dg[37]=GetUnitLoc(udg_Ej[1])
if(nT8())then
call SetUnitLifeBJ(udg_Ej[1],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ej[1])-udg_Gj))
else
if(n58())then
call UnitDamageTargetBJ(udg_Dj,udg_Ej[1],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call CreateNUnitsAtLoc(1,1966092339,GetOwningPlayer(udg_Dj),udg_dg[37],bj_UNIT_FACING)
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),1000.00,0.00)
call UnitAddAbilityBJ(1093678920,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",udg_Ej[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,1966092339,GetOwningPlayer(udg_Dj),udg_dg[37],bj_UNIT_FACING)
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),1000.00,0.00)
call UnitAddAbilityBJ(1093677654,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",udg_Ej[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
call AddSpecialEffectLocBJ(udg_dg[37],"war3mapImported\\LightningWrath.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[37],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(250.00,udg_dg[37],function nU8)
call RemoveLocation(udg_dg[37])
set udg_dg[37]=null
set udg_Ej[1]=null
else
call DoNothing()
endif
endfunction
function nX8 takes nothing returns nothing
set udg_pE=CreateTrigger()
call DisableTrigger(udg_pE)
call TriggerRegisterAnyUnitEventBJ(udg_pE,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_pE,Condition(function nS8))
call TriggerAddAction(udg_pE,function nW8)
endfunction
function nY8 takes nothing returns boolean
if(not(udg_Dj!=udg_x))then
return false
endif
if(not(udg_Dj!=udg_y))then
return false
endif
return true
endfunction
function n28 takes nothing returns boolean
if((udg_Dj==udg_x))then
return true
endif
if((udg_Dj==udg_y))then
return true
endif
if(nY8())then
return true
endif
return false
endfunction
function nZ8 takes nothing returns boolean
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(udg_Dj))==true))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitAlly(GetAttackedUnitBJ(),GetOwningPlayer(udg_Dj))==true))then
return false
endif
if(not n28())then
return false
endif
return true
endfunction
function n_8 takes nothing returns boolean
if(not nZ8())then
return false
endif
return true
endfunction
function o48 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ej[2])<=udg_Gj)
endfunction
function o78 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ej[2])>udg_Gj))then
return false
endif
return true
endfunction
function o88 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function o98 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=udg_Fj[2]))then
return false
endif
return true
endfunction
function od8 takes nothing returns nothing
if(o98())then
set udg_Ej[2]=GetAttacker()
set udg_dg[7193]=GetUnitLoc(udg_Ej[2])
if(o78())then
call SetUnitLifeBJ(udg_Ej[2],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Ej[2])-udg_Gj))
else
if(o48())then
call UnitDamageTargetBJ(udg_Dj,udg_Ej[2],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call CreateNUnitsAtLoc(1,1966092339,GetOwningPlayer(udg_Dj),udg_dg[7193],bj_UNIT_FACING)
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),1000.00,0.00)
call UnitAddAbilityBJ(1093678920,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",udg_Ej[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,1966092339,GetOwningPlayer(udg_Dj),udg_dg[7193],bj_UNIT_FACING)
call SetUnitFlyHeightBJ(GetLastCreatedUnit(),1000.00,0.00)
call UnitAddAbilityBJ(1093677654,GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",udg_Ej[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
call AddSpecialEffectLocBJ(udg_dg[7193],"war3mapImported\\LightningWrath.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[7193],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(250.00,udg_dg[7193],function o88)
call RemoveLocation(udg_dg[7193])
set udg_dg[7193]=null
set udg_Ej[2]=null
else
call DoNothing()
endif
endfunction
function oe8 takes nothing returns nothing
set udg_qE=CreateTrigger()
call DisableTrigger(udg_qE)
call TriggerRegisterAnyUnitEventBJ(udg_qE,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_qE,Condition(function n_8))
call TriggerAddAction(udg_qE,function od8)
endfunction
function of8 takes nothing returns boolean
if((GetSpellAbilityId()==1093678919))then
return true
endif
if((GetSpellAbilityId()==1093677658))then
return true
endif
return false
endfunction
function og8 takes nothing returns boolean
if(not of8())then
return false
endif
return true
endfunction
function oh8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function oi8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Hj[1]))==true)
endfunction
function oj8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function ok8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function om8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function on8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function oo8 takes nothing returns boolean
return GetBooleanAnd(om8(),on8())
endfunction
function op8 takes nothing returns boolean
return GetBooleanAnd(ok8(),oo8())
endfunction
function oq8 takes nothing returns boolean
return GetBooleanAnd(oj8(),op8())
endfunction
function or8 takes nothing returns boolean
return GetBooleanAnd(oi8(),oq8())
endfunction
function os8 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Hj[1],GetEnumUnit(),udg_Jj,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function ot8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function ou8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Hj[1])==true))then
return false
endif
if(not(DistanceBetweenPoints(udg_Ij[3],udg_Ij[4])<=700.00))then
return false
endif
if(not(IsTriggerEnabled(udg_sE)==true))then
return false
endif
return true
endfunction
function ov8 takes nothing returns boolean
if(not ou8())then
return false
endif
return true
endfunction
function ow8 takes nothing returns nothing
set udg_Hj[1]=GetTriggerUnit()
set udg_Ij[1]=GetSpellTargetLoc()
set udg_Jj=((27.50+(2.50*I2R(GetUnitAbilityLevelSwapped(1093678919,udg_Hj[1]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Hj[1],true)))
set udg_lj=1
call CreateNUnitsAtLoc(1,1747988812,GetOwningPlayer(udg_Hj[1]),udg_Ij[1],GetRandomDirectionDeg())
set udg_Hj[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677872,udg_Hj[2])
call AddSpecialEffectTargetUnitBJ("origin",udg_Hj[1],"Lightning_Ball_Tail_FX.mdx")
set udg_Kj=GetLastCreatedEffectBJ()
call CreateTextTagUnitBJ("RAIGO",udg_Hj[1],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function oh8)))
call RemoveLocation(udg_Ij[1])
set udg_Ij[1]=null
set udg_Km[79]=GetUnitLoc(udg_Hj[1])
call PlaySoundAtPointBJ(udg_qr,100,udg_Km[79],0)
call RemoveLocation(udg_Km[79])
set udg_Km[79]=null
call EnableTrigger(udg_sE)
call TriggerSleepAction(12.00)
set udg_Ij[3]=GetUnitLoc(udg_Hj[2])
set udg_Ij[4]=GetUnitLoc(udg_Hj[1])
if(ov8())then
call DisableTrigger(udg_sE)
set udg_cj[2]=e6(3000.00,udg_Ij[3],Condition(function or8))
call ForGroupBJ(udg_cj[2],function os8)
call DestroyGroup(udg_cj[2])
set udg_cj[2]=null
set udg_Cj[2]=1
loop
exitwhen udg_Cj[2]>12
call CreateNUnitsAtLoc(1,1747988528,GetOwningPlayer(udg_Hj[1]),udg_Ij[3],bj_UNIT_FACING)
set udg_Hj[4]=GetLastCreatedUnit()
call SetUnitFlyHeightBJ(udg_Hj[4],860.00,0.00)
call SetUnitPositionLoc(udg_Hj[4],udg_Ij[3])
call SetUnitScalePercent(udg_Hj[4],1600.00,1600.00,1600.00)
call SetUnitTimeScalePercent(udg_Hj[4],(10.00*I2R(udg_Cj[2])))
call UnitApplyTimedLifeBJ(4.00,1112820806,udg_Hj[4])
set udg_Hj[4]=null
set udg_Cj[2]=udg_Cj[2]+1
endloop
call UG(2000.00,udg_Ij[3],function ot8)
call TriggerExecute(udg_tE)
else
call DoNothing()
endif
call RemoveLocation(udg_Ij[3])
set udg_Ij[3]=null
call RemoveLocation(udg_Ij[4])
set udg_Ij[4]=null
endfunction
function ox8 takes nothing returns nothing
set udg_rE=CreateTrigger()
call TriggerAddCondition(udg_rE,Condition(function og8))
call TriggerAddAction(udg_rE,function ow8)
endfunction
function oy8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Hj[1])==true))then
return false
endif
if(not(UnitHasBuffBJ(udg_Hj[1],1112437609)==false))then
return false
endif
if(not(DistanceBetweenPoints(udg_Ij[1],udg_Ij[2])<=700.00))then
return false
endif
return true
endfunction
function oz8 takes nothing returns boolean
if(not oy8())then
return false
endif
return true
endfunction
function oA8 takes nothing returns nothing
set udg_Ij[1]=GetUnitLoc(udg_Hj[2])
set udg_Ij[2]=GetUnitLoc(udg_Hj[1])
if(oz8())then
call SetUnitLifeBJ(udg_Hj[1],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Hj[1])+12.00))
call IssueTargetOrderBJ(udg_Hj[2],"fingerofdeath",udg_Hj[1])
call SetUnitScalePercent(udg_Hj[2],(1.20*I2R(udg_lj)),(1.20*I2R(udg_lj)),(1.20*I2R(udg_lj)))
call SetUnitFlyHeightBJ(udg_Hj[2],(1.20*I2R(udg_lj)),0.00)
call SetUnitPositionLoc(udg_Hj[2],udg_Ij[1])
call CreateNUnitsAtLoc(1,1747988814,GetOwningPlayer(udg_Hj[1]),udg_Ij[1],bj_UNIT_FACING)
set udg_Hj[3]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Hj[3],(3.00*I2R(udg_lj)),(3.00*I2R(udg_lj)),(3.00*I2R(udg_lj)))
call SetUnitFlyHeightBJ(udg_Hj[3],(2.30*I2R(udg_lj)),0.00)
call SetUnitPositionLoc(udg_Hj[3],udg_Ij[1])
call UnitApplyTimedLifeBJ(0.10,1112820806,udg_Hj[3])
set udg_Hj[3]=null
else
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_tE)
endif
call RemoveLocation(udg_Ij[1])
set udg_Ij[1]=null
call RemoveLocation(udg_Ij[2])
set udg_Ij[2]=null
set udg_lj=(udg_lj+1)
endfunction
function oa8 takes nothing returns nothing
set udg_sE=CreateTrigger()
call DisableTrigger(udg_sE)
call TriggerRegisterTimerEventPeriodic(udg_sE,0.04)
call TriggerAddAction(udg_sE,function oA8)
endfunction
function oB8 takes nothing returns boolean
if(not(GetDyingUnit()==udg_Hj[1]))then
return false
endif
return true
endfunction
function ob8 takes nothing returns nothing
call RemoveUnit(udg_Hj[2])
call DestroyEffectBJ(udg_Kj)
set udg_Jj=0.00
set udg_lj=0
set udg_Hj[1]=null
set udg_Hj[2]=null
endfunction
function oC8 takes nothing returns nothing
set udg_tE=CreateTrigger()
call TriggerAddCondition(udg_tE,Condition(function oB8))
call TriggerAddAction(udg_tE,function ob8)
endfunction
function oc8 takes nothing returns boolean
if(not(udg_zm==null))then
return false
endif
return true
endfunction
function oD8 takes nothing returns nothing
if(oc8())then
call DestroyTrigger(udg_vE)
call DestroyTrigger(udg_wE)
call DestroyTrigger(udg_xE)
call DestroyTrigger(udg_yE)
call DestroyTrigger(udg_zE)
call DestroyTrigger(udg_AE)
call DestroyTrigger(udg_aE)
call DestroyTrigger(udg_BE)
else
call TriggerRegisterUnitEvent(udg_vE,udg_zm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_wE,udg_zm,EVENT_UNIT_ATTACKED)
call TriggerRegisterUnitEvent(udg_xE,udg_zm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_yE,udg_zm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_zE,udg_zm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_AE,udg_zm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_BE,udg_zm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function oE8 takes nothing returns nothing
set udg_uE=CreateTrigger()
call TriggerAddAction(udg_uE,function oD8)
endfunction
function o38 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677876))then
return false
endif
return true
endfunction
function oF8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function oG8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function o68 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function oH8 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function oI8 takes nothing returns nothing
call CreateTextTagUnitBJ("Enkai...",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function oF8)))
if(oH8())then
call ForGroupBJ(d6(GetPlayableMapRect()),function oG8)
call ForForce(GetPlayersAll(),function o68)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function ol8 takes nothing returns nothing
set udg_vE=CreateTrigger()
call TriggerAddCondition(udg_vE,Condition(function o38))
call TriggerAddAction(udg_vE,function oI8)
endfunction
function o18 takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())==1311780917))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_ANCIENT)==false))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetAttackedUnitBJ()))==true))then
return false
endif
return true
endfunction
function oJ8 takes nothing returns boolean
if(not o18())then
return false
endif
return true
endfunction
function oK8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Lj[1])<=udg_Mj[0])
endfunction
function oL8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Lj[1])>udg_Mj[0]))then
return false
endif
return true
endfunction
function oM8 takes nothing returns nothing
set udg_Lj[0]=GetAttackedUnitBJ()
set udg_Lj[1]=GetAttacker()
set udg_Mj[0]=(0.05*GetUnitStateSwap(UNIT_STATE_LIFE,udg_Lj[1]))
if(oL8())then
call SetUnitLifeBJ(udg_Lj[1],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Lj[1])-udg_Mj[0]))
else
if(oK8())then
call UnitDamageTargetBJ(udg_Lj[0],udg_Lj[1],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectTargetUnitBJ("chest",udg_Lj[1],"Environment\\SmallBuildingFire\\SmallBuildingFire2.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Lj[0]=null
set udg_Lj[1]=null
set udg_Mj[0]=0.00
endfunction
function oN8 takes nothing returns nothing
set udg_wE=CreateTrigger()
call TriggerAddCondition(udg_wE,Condition(function oJ8))
call TriggerAddAction(udg_wE,function oM8)
endfunction
function oO8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677873))then
return false
endif
return true
endfunction
function o08 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function oP8 takes nothing returns nothing
set udg_A[86]=GetTriggerUnit()
set udg_dg[38]=GetSpellTargetLoc()
set udg_dg[39]=GetUnitLoc(udg_A[86])
set udg_dg[40]=PG(udg_dg[39],256,AngleBetweenPoints(udg_dg[39],udg_dg[38]))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[86]),udg_dg[39],AngleBetweenPoints(udg_dg[39],udg_dg[38]))
call SetUnitScalePercent(GetLastCreatedUnit(),300.00,300.00,300.00)
call UnitAddAbilityBJ(1093677650,GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped(1093677650,GetLastCreatedUnit(),GetUnitAbilityLevelSwapped(1093677873,udg_A[86]))
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"shockwave",udg_dg[40])
call UnitApplyTimedLifeBJ(1.00,1112820806,GetLastCreatedUnit())
call CreateTextTagUnitBJ("Hiken",udg_A[86],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function o08)))
call PlaySoundAtPointBJ(udg_vq,100,udg_dg[39],0)
set udg_A[86]=null
call RemoveLocation(udg_dg[38])
set udg_dg[38]=null
call RemoveLocation(udg_dg[39])
set udg_dg[39]=null
call RemoveLocation(udg_dg[40])
set udg_dg[40]=null
endfunction
function oQ8 takes nothing returns nothing
set udg_xE=CreateTrigger()
call TriggerAddCondition(udg_xE,Condition(function oO8))
call TriggerAddAction(udg_xE,function oP8)
endfunction
function oR8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679174))then
return false
endif
return true
endfunction
function oS8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function o58 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function oT8 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_Lj[2]))==true)
endfunction
function oU8 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function oV8 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==false)
endfunction
function oW8 takes nothing returns boolean
return GetBooleanAnd(oU8(),oV8())
endfunction
function oX8 takes nothing returns boolean
return GetBooleanAnd(oT8(),oW8())
endfunction
function oY8 takes nothing returns boolean
return GetBooleanAnd(o58(),oX8())
endfunction
function o28 takes nothing returns boolean
return GetBooleanAnd(oS8(),oY8())
endfunction
function oZ8 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_Oj[2])==false)
endfunction
function o_8 takes nothing returns nothing
set udg_Lj[3]=GetEnumUnit()
endfunction
function Trig_Fire_Shield_Func010Func001Func002Func001002 takes nothing returns nothing
set udg_zg=GetEnumUnit()
endfunction
function p48 takes nothing returns boolean
if(not(udg_Lj[3]==null))then
return false
endif
return true
endfunction
function p78 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Lj[2]))==true)
endfunction
function p88 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function p98 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function pd8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function pe8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function pf8 takes nothing returns boolean
return GetBooleanAnd(pd8(),pe8())
endfunction
function pg8 takes nothing returns boolean
return GetBooleanAnd(p98(),pf8())
endfunction
function ph8 takes nothing returns boolean
return GetBooleanAnd(p88(),pg8())
endfunction
function pi8 takes nothing returns boolean
return GetBooleanAnd(p78(),ph8())
endfunction
function pj8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_Mj[2])
endfunction
function pk8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_Mj[2]))then
return false
endif
return true
endfunction
function pm8 takes nothing returns nothing
if(pk8())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_Mj[2]))
else
if(pj8())then
call UnitDamageTargetBJ(udg_Lj[2],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function pn8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Lj[2])==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_Lj[3])==true))then
return false
endif
return true
endfunction
function po8 takes nothing returns boolean
if(not pn8())then
return false
endif
return true
endfunction
function pp8 takes nothing returns boolean
if(not(udg_Lj[3]!=null))then
return false
endif
return true
endfunction
function pq8 takes nothing returns nothing
set udg_Lj[2]=GetTriggerUnit()
set udg_Lj[3]=null
set udg_Nj[2]=GetSpellTargetLoc()
set udg_Mj[2]=((50.00+(30.00*I2R(GetUnitAbilityLevelSwapped(1093679174,udg_Lj[2]))))+(4.00*I2R(GetHeroLevel(udg_Lj[2]))))
set udg_Mj[2]=(udg_Mj[2]*0.50)
set udg_Km[80]=GetUnitLoc(udg_Lj[2])
call PlaySoundAtPointBJ(udg_Tp,100,udg_Km[80],0)
call RemoveLocation(udg_Km[80])
set udg_Km[80]=null
set udg_Cj[5]=1
loop
exitwhen udg_Cj[5]>32
if(p48())then
set udg_Oj[2]=u6(1,e6((5.00*I2R(udg_Cj[5])),udg_Nj[2],Condition(function o28)))
if(oZ8())then
call ForGroupBJ(udg_Oj[2],function o_8)
else
call DoNothing()
endif
call DestroyGroup(udg_Oj[2])
set udg_Oj[2]=null
else
call DoNothing()
endif
set udg_Cj[5]=udg_Cj[5]+1
endloop
if(pp8())then
call AddSpecialEffectTargetUnitBJ("chest",udg_Lj[3],"Abilities\\Spells\\Other\\ImmolationRed\\ImmolationRedTarget.mdl")
set udg_Pj=GetLastCreatedEffectBJ()
set udg_Cj[6]=1
loop
exitwhen udg_Cj[6]>12
if(po8())then
set udg_Nj[3]=GetUnitLoc(udg_Lj[3])
set udg_Oj[3]=e6(220.00,udg_Nj[3],Condition(function pi8))
call ForGroupBJ(udg_Oj[3],function pm8)
call DestroyGroup(udg_Oj[3])
set udg_Oj[3]=null
call RemoveLocation(udg_Nj[3])
set udg_Nj[3]=null
call TriggerSleepAction(0.50)
else
call DestroyEffectBJ(udg_Pj)
set udg_Lj[2]=null
set udg_Lj[3]=null
set udg_Mj[2]=0.00
endif
set udg_Cj[6]=udg_Cj[6]+1
endloop
call DestroyEffectBJ(udg_Pj)
else
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_Lj[2])),4.00," |cffffcc00No valid target found|r")
endif
call RemoveLocation(udg_Nj[2])
set udg_Nj[2]=null
set udg_Lj[2]=null
set udg_Lj[3]=null
set udg_Mj[2]=0.00
endfunction
function pr8 takes nothing returns nothing
set udg_yE=CreateTrigger()
call TriggerAddCondition(udg_yE,Condition(function oR8))
call TriggerAddAction(udg_yE,function pq8)
endfunction
function ps8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677876))then
return false
endif
return true
endfunction
function pt8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Zf[30]))==true)
endfunction
function pu8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function pv8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function pw8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function px8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function py8 takes nothing returns boolean
return GetBooleanAnd(pw8(),px8())
endfunction
function pz8 takes nothing returns boolean
return GetBooleanAnd(pv8(),py8())
endfunction
function pA8 takes nothing returns boolean
return GetBooleanAnd(pu8(),pz8())
endfunction
function pa8 takes nothing returns boolean
return GetBooleanAnd(pt8(),pA8())
endfunction
function pB8 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Zf[30],GetEnumUnit(),((5.00+(5.00*I2R(GetUnitAbilityLevelSwapped(1093677876,udg_Zf[30]))))*I2R(GetHeroLevel(udg_Zf[30]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function pb8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function pC8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function pc8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_Mj[4])
endfunction
function pD8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_Mj[4]))then
return false
endif
return true
endfunction
function pE8 takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_Qj)==false))then
return false
endif
return true
endfunction
function p38 takes nothing returns boolean
if(not(IsUnitAliveBJ(GetEnumUnit())==true))then
return false
endif
return true
endfunction
function pF8 takes nothing returns nothing
if(p38())then
if(pE8())then
if(pD8())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_Mj[4]))
else
if(pc8())then
call UnitDamageTargetBJ(udg_Zf[30],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
else
call GroupAddUnitSimple(GetEnumUnit(),udg_Qj)
endif
endfunction
function pG8 takes nothing returns nothing
set udg_Zf[30]=GetTriggerUnit()
set udg_dg[41]=GetUnitLoc(udg_Zf[30])
set udg_Mj[4]=(125.00+(25.00*I2R(GetUnitAbilityLevelSwapped(1093677876,udg_Zf[30]))))
set udg_Mj[4]=(udg_Mj[4]*0.50)
set udg_Oj[4]=e6(350.00,udg_dg[41],Condition(function pa8))
call AddSpecialEffectLocBJ(udg_dg[41],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(udg_Oj[4],function pB8)
call UG(350.00,udg_dg[41],function pb8)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Zf[30]),udg_dg[41],bj_UNIT_FACING)
set udg_Hk[11]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681739,udg_Hk[11])
call IssueImmediateOrderBJ(udg_Hk[11],"thunderclap")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Hk[11])
set udg_Hk[11]=null
call CreateTextTagUnitBJ("Hibashira",udg_Zf[30],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function pC8)))
set udg_Km[81]=GetUnitLoc(udg_Zf[30])
call PlaySoundAtPointBJ(udg_rq,100,udg_Km[81],0)
call RemoveLocation(udg_Km[81])
set udg_Km[81]=null
set udg_Cj[7]=1
loop
exitwhen udg_Cj[7]>6
call ForGroupBJ(udg_Oj[4],function pF8)
call TriggerSleepAction(0.50)
set udg_Cj[7]=udg_Cj[7]+1
endloop
set udg_Zf[30]=null
set udg_Mj[4]=0.00
call DestroyGroup(udg_Oj[4])
set udg_Oj[4]=null
call RemoveLocation(udg_dg[41])
set udg_dg[41]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_Qj)
endfunction
function p68 takes nothing returns nothing
set udg_zE=CreateTrigger()
call TriggerAddCondition(udg_zE,Condition(function ps8))
call TriggerAddAction(udg_zE,function pG8)
endfunction
function pH8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677875))then
return false
endif
return true
endfunction
function pI8 takes nothing returns boolean
if((GetUnitAbilityLevelSwapped(1093677875,udg_A[74])==1))then
return true
endif
if((GetUnitAbilityLevelSwapped(1093677875,udg_A[74])==2))then
return true
endif
return false
endfunction
function pl8 takes nothing returns boolean
if(not pI8())then
return false
endif
return true
endfunction
function p18 takes nothing returns boolean
if((GetUnitAbilityLevelSwapped(1093677875,udg_A[74])==3))then
return true
endif
if((GetUnitAbilityLevelSwapped(1093677875,udg_A[74])==4))then
return true
endif
return false
endfunction
function pJ8 takes nothing returns boolean
if(not p18())then
return false
endif
return true
endfunction
function pK8 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093677875,udg_A[74])==5))then
return false
endif
return true
endfunction
function pL8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function pM8 takes nothing returns boolean
if(not(udg_Rj==3))then
return false
endif
return true
endfunction
function pN8 takes nothing returns boolean
if(not(udg_Rj>=2))then
return false
endif
return true
endfunction
function pO8 takes nothing returns boolean
if(not(udg_Rj>=2))then
return false
endif
return true
endfunction
function p08 takes nothing returns boolean
if(not(udg_Rj==3))then
return false
endif
return true
endfunction
function pP8 takes nothing returns boolean
if(not(udg_Rj>=2))then
return false
endif
return true
endfunction
function pQ8 takes nothing returns boolean
if(not(udg_Rj==3))then
return false
endif
return true
endfunction
function pR8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function pS8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[74]))==true)
endfunction
function p58 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function pT8 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),GetOwningPlayer(udg_A[74]))==true)
endfunction
function pU8 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function pV8 takes nothing returns boolean
return GetBooleanAnd(pT8(),pU8())
endfunction
function pW8 takes nothing returns boolean
return GetBooleanAnd(p58(),pV8())
endfunction
function pX8 takes nothing returns boolean
return GetBooleanAnd(pS8(),pW8())
endfunction
function pY8 takes nothing returns boolean
return GetBooleanAnd(pR8(),pX8())
endfunction
function p28 takes nothing returns nothing
set udg_Uj[1]=GetEnumUnit()
endfunction
function pZ8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_eg[10])==false))then
return false
endif
return true
endfunction
function p_8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function q48 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[74]))==true)
endfunction
function q78 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function q88 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),GetOwningPlayer(udg_A[74]))==true)
endfunction
function q98 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function qd8 takes nothing returns boolean
return(GetFilterUnit()!=udg_Uj[1])
endfunction
function qe8 takes nothing returns boolean
return GetBooleanAnd(q98(),qd8())
endfunction
function qf8 takes nothing returns boolean
return GetBooleanAnd(q88(),qe8())
endfunction
function qg8 takes nothing returns boolean
return GetBooleanAnd(q78(),qf8())
endfunction
function qh8 takes nothing returns boolean
return GetBooleanAnd(q48(),qg8())
endfunction
function qi8 takes nothing returns boolean
return GetBooleanAnd(p_8(),qh8())
endfunction
function qj8 takes nothing returns nothing
set udg_Uj[2]=GetEnumUnit()
endfunction
function qk8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_eg[10])==false))then
return false
endif
return true
endfunction
function qm8 takes nothing returns boolean
if(not(udg_Rj>=2))then
return false
endif
return true
endfunction
function qn8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function qo8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[74]))==true)
endfunction
function qp8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function qq8 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),GetOwningPlayer(udg_A[74]))==true)
endfunction
function qr8 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function qs8 takes nothing returns boolean
return(GetFilterUnit()!=udg_Uj[1])
endfunction
function qt8 takes nothing returns boolean
return(GetFilterUnit()!=udg_Uj[2])
endfunction
function qu8 takes nothing returns boolean
return GetBooleanAnd(qs8(),qt8())
endfunction
function qv8 takes nothing returns boolean
return GetBooleanAnd(qr8(),qu8())
endfunction
function qw8 takes nothing returns boolean
return GetBooleanAnd(qq8(),qv8())
endfunction
function qx8 takes nothing returns boolean
return GetBooleanAnd(qp8(),qw8())
endfunction
function qy8 takes nothing returns boolean
return GetBooleanAnd(qo8(),qx8())
endfunction
function qz8 takes nothing returns boolean
return GetBooleanAnd(qn8(),qy8())
endfunction
function qA8 takes nothing returns nothing
set udg_Uj[3]=GetEnumUnit()
endfunction
function qa8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_eg[10])==false))then
return false
endif
return true
endfunction
function qB8 takes nothing returns boolean
if(not(udg_Rj==3))then
return false
endif
return true
endfunction
function qb8 takes nothing returns boolean
if(not(udg_Uj[1]!=null))then
return false
endif
return true
endfunction
function qC8 takes nothing returns boolean
if(not(udg_Uj[2]!=null))then
return false
endif
return true
endfunction
function qc8 takes nothing returns boolean
if(not(udg_Uj[3]!=null))then
return false
endif
return true
endfunction
function qD8 takes nothing returns boolean
if((udg_Uj[1]!=null))then
return true
endif
if((udg_Uj[2]!=null))then
return true
endif
if((udg_Uj[3]!=null))then
return true
endif
return false
endfunction
function qE8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[74])==true))then
return false
endif
if(not qD8())then
return false
endif
return true
endfunction
function q38 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function qF8 takes nothing returns boolean
if(not qE8())then
return false
endif
return true
endfunction
function qG8 takes nothing returns boolean
return(IsTriggerEnabled(udg_aE)==true)
endfunction
function q68 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function qH8 takes nothing returns nothing
set udg_A[74]=GetTriggerUnit()
set udg_B[37]=GetUnitLoc(udg_A[74])
if(pK8())then
set udg_Rj=3
else
if(pJ8())then
set udg_Rj=2
else
if(pl8())then
set udg_Rj=1
else
call DoNothing()
endif
endif
endif
set udg_H[7]=(360.00/I2R(udg_Rj))
set udg_Mj[8]=(650.00+(150.00*I2R(GetUnitAbilityLevelSwapped(1093677875,udg_A[74]))))
set udg_Uj[1]=null
set udg_Uj[2]=null
set udg_Uj[3]=null
call CreateNUnitsAtLoc(1,1747988529,GetOwningPlayer(udg_A[74]),udg_B[37],120.00)
set udg_Sj[1]=GetLastCreatedUnit()
call SetUnitFlyHeightBJ(udg_Sj[1],500.00,500.00)
call EnableTrigger(udg_aE)
set udg_Tj=1
call CreateTextTagUnitBJ("Hotarubi",udg_A[74],0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function pL8)))
set udg_Km[82]=GetUnitLoc(udg_A[74])
call PlaySoundAtPointBJ(udg_ts,100,udg_Km[82],0)
call RemoveLocation(udg_Km[82])
set udg_Km[82]=null
call TriggerSleepAction(1.20)
if(pN8())then
call CreateNUnitsAtLoc(1,1747988529,GetOwningPlayer(udg_A[74]),udg_B[37],240.00)
set udg_Sj[2]=GetLastCreatedUnit()
call SetUnitFlyHeightBJ(udg_Sj[2],500.00,0.00)
call SetUnitPositionLoc(udg_Sj[2],udg_B[37])
if(pM8())then
call CreateNUnitsAtLoc(1,1747988529,GetOwningPlayer(udg_A[74]),udg_B[37],240.00)
set udg_Sj[3]=GetLastCreatedUnit()
call SetUnitFlyHeightBJ(udg_Sj[3],500.00,0.00)
call SetUnitPositionLoc(udg_Sj[3],udg_B[37])
else
call DoNothing()
endif
set udg_Tj=2
call TriggerSleepAction(0.50)
else
call DoNothing()
endif
set udg_b[22]=1
loop
exitwhen udg_b[22]>10
set udg_q9=GetUnitLoc(udg_Sj[1])
call CreateNUnitsAtLoc(1,1747988529,GetOwningPlayer(udg_A[74]),udg_q9,((120.00-((udg_H[7]/10.00)*5.00))+((udg_H[7]/10.00)*I2R(udg_b[22]))))
set udg_Sj[(udg_b[22]+9)]=GetLastCreatedUnit()
call SetUnitFlyHeightBJ(udg_Sj[(udg_b[22]+9)],500.00,0.00)
call SetUnitPositionLoc(udg_Sj[(udg_b[22]+9)],udg_q9)
call RemoveLocation(udg_q9)
set udg_q9=null
call SetUnitFlyHeightBJ(udg_Sj[(udg_b[22]+9)],GetRandomReal(300.00,750.00),1000.00)
if(pO8())then
set udg_q9=GetUnitLoc(udg_Sj[2])
call CreateNUnitsAtLoc(1,1747988529,GetOwningPlayer(udg_A[74]),udg_q9,((240.00-((udg_H[7]/10.00)*5.00))+((udg_H[7]/10.00)*I2R(udg_b[22]))))
set udg_Sj[(udg_b[22]+19)]=GetLastCreatedUnit()
call SetUnitFlyHeightBJ(udg_Sj[(udg_b[22]+19)],500.00,0.00)
call SetUnitPositionLoc(udg_Sj[(udg_b[22]+19)],udg_q9)
call RemoveLocation(udg_q9)
set udg_q9=null
call SetUnitFlyHeightBJ(udg_Sj[(udg_b[22]+19)],GetRandomReal(300.00,750.00),1000.00)
else
call DoNothing()
endif
if(p08())then
set udg_q9=GetUnitLoc(udg_Sj[3])
call CreateNUnitsAtLoc(1,1747988529,GetOwningPlayer(udg_A[74]),udg_q9,((0.00-((udg_H[7]/10.00)*5.00))+((udg_H[7]/10.00)*I2R(udg_b[22]))))
set udg_Sj[(udg_b[22]+29)]=GetLastCreatedUnit()
call SetUnitFlyHeightBJ(udg_Sj[(udg_b[22]+29)],500.00,0.00)
call SetUnitPositionLoc(udg_Sj[(udg_b[22]+29)],udg_q9)
call RemoveLocation(udg_q9)
set udg_q9=null
call SetUnitFlyHeightBJ(udg_Sj[(udg_b[22]+29)],GetRandomReal(300.00,750.00),1000.00)
else
call DoNothing()
endif
set udg_b[22]=udg_b[22]+1
endloop
call RemoveLocation(udg_B[37])
set udg_B[37]=null
set udg_Nj[16]=GetUnitLoc(udg_Sj[1])
call RemoveUnit(udg_Sj[1])
set udg_Sj[1]=null
if(pP8())then
set udg_Nj[17]=GetUnitLoc(udg_Sj[2])
call RemoveUnit(udg_Sj[2])
set udg_Sj[2]=null
else
call DoNothing()
endif
if(pQ8())then
set udg_Nj[18]=GetUnitLoc(udg_Sj[3])
call RemoveUnit(udg_Sj[3])
set udg_Sj[3]=null
else
call DoNothing()
endif
set udg_Tj=3
call TriggerSleepAction(0.60)
set udg_G[22]=e6(2000.00,udg_Nj[16],Condition(function pY8))
set udg_eg[10]=u6(1,udg_G[22])
if(pZ8())then
call ForGroupBJ(udg_eg[10],function p28)
else
call DoNothing()
endif
call DestroyGroup(udg_eg[10])
set udg_eg[10]=null
call DestroyGroup(udg_G[22])
set udg_G[22]=null
call RemoveLocation(udg_Nj[16])
set udg_Nj[16]=null
if(qm8())then
set udg_G[22]=e6(2000.00,udg_Nj[17],Condition(function qi8))
set udg_eg[10]=u6(1,udg_G[22])
if(qk8())then
call ForGroupBJ(udg_eg[10],function qj8)
else
call DoNothing()
endif
call DestroyGroup(udg_eg[10])
set udg_eg[10]=null
call DestroyGroup(udg_G[22])
set udg_G[22]=null
call RemoveLocation(udg_Nj[17])
set udg_Nj[17]=null
else
call DoNothing()
endif
if(qB8())then
set udg_G[22]=e6(2000.00,udg_Nj[18],Condition(function qz8))
set udg_eg[10]=u6(1,udg_G[22])
if(qa8())then
call ForGroupBJ(udg_eg[10],function qA8)
else
call DoNothing()
endif
call DestroyGroup(udg_eg[10])
set udg_eg[10]=null
call DestroyGroup(udg_G[22])
set udg_G[22]=null
call RemoveLocation(udg_Nj[18])
set udg_Nj[18]=null
else
call DoNothing()
endif
set udg_Cj[14]=1
loop
exitwhen udg_Cj[14]>10
if(qb8())then
call SetUnitFlyHeightBJ(udg_Sj[(udg_Cj[14]+9)],0.00,GetRandomReal(600.00,1500.00))
else
call RemoveUnit(udg_Sj[(udg_Cj[14]+9)])
set udg_Sj[(udg_Cj[14]+9)]=null
endif
if(qC8())then
call SetUnitFlyHeightBJ(udg_Sj[(udg_Cj[14]+19)],0.00,GetRandomReal(600.00,1500.00))
else
call RemoveUnit(udg_Sj[(udg_Cj[14]+19)])
set udg_Sj[(udg_Cj[14]+19)]=null
endif
if(qc8())then
call SetUnitFlyHeightBJ(udg_Sj[(udg_Cj[14]+29)],0.00,GetRandomReal(600.00,1500.00))
else
call RemoveUnit(udg_Sj[(udg_Cj[14]+29)])
set udg_Sj[(udg_Cj[14]+29)]=null
endif
set udg_Cj[14]=udg_Cj[14]+1
endloop
if(qF8())then
call CreateTextTagUnitBJ("Hidaruma",udg_A[74],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function q38)))
set udg_Km[82]=GetUnitLoc(udg_A[74])
call PlaySoundAtPointBJ(udg_sq,100,udg_Km[82],0)
call RemoveLocation(udg_Km[82])
set udg_Km[82]=null
else
call DoNothing()
endif
set udg_Tj=4
call TriggerSleepAction(6.00)
if(qG8())then
call DisableTrigger(udg_aE)
else
call DoNothing()
endif
set udg_eg[11]=k6(GetOwningPlayer(udg_A[74]),1747988529)
call ForGroupBJ(udg_eg[11],function q68)
call DestroyGroup(udg_eg[11])
set udg_eg[11]=null
set udg_A[74]=null
set udg_Uj[1]=null
set udg_Uj[2]=null
set udg_Uj[3]=null
set udg_H[7]=0.00
set udg_Mj[8]=0.00
set udg_Tj=0
set udg_Rj=0
endfunction
function qI8 takes nothing returns nothing
set udg_AE=CreateTrigger()
call TriggerAddCondition(udg_AE,Condition(function pH8))
call TriggerAddAction(udg_AE,function qH8)
endfunction
function ql8 takes nothing returns boolean
if(not(udg_Tj==1))then
return false
endif
return true
endfunction
function q18 takes nothing returns boolean
if(not(udg_Rj==3))then
return false
endif
return true
endfunction
function qJ8 takes nothing returns boolean
if(not(udg_Tj==2))then
return false
endif
return true
endfunction
function qK8 takes nothing returns boolean
if(not(udg_Rj>=2))then
return false
endif
return true
endfunction
function qL8 takes nothing returns boolean
if(not(udg_Rj==3))then
return false
endif
return true
endfunction
function qM8 takes nothing returns boolean
if(not(udg_Tj==3))then
return false
endif
return true
endfunction
function qN8 takes nothing returns boolean
if(not(udg_Uj[1]!=null))then
return false
endif
return true
endfunction
function qO8 takes nothing returns boolean
if(not(udg_Rj>=2))then
return false
endif
if(not(udg_Uj[2]!=null))then
return false
endif
return true
endfunction
function q08 takes nothing returns boolean
if(not qO8())then
return false
endif
return true
endfunction
function qP8 takes nothing returns boolean
if(not(udg_Rj==3))then
return false
endif
if(not(udg_Uj[3]!=null))then
return false
endif
return true
endfunction
function qQ8 takes nothing returns boolean
if(not qP8())then
return false
endif
return true
endfunction
function qR8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Uj[1])<=udg_Mj[8])
endfunction
function qS8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Uj[1])>udg_Mj[8]))then
return false
endif
return true
endfunction
function q58 takes nothing returns boolean
if(not(udg_Uj[1]!=null))then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(udg_Uj[1]),GetUnitLoc(udg_Sj[10]))<=120.00))then
return false
endif
return true
endfunction
function qT8 takes nothing returns boolean
if(not q58())then
return false
endif
return true
endfunction
function qU8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Uj[2])<=udg_Mj[8])
endfunction
function qV8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Uj[2])>udg_Mj[8]))then
return false
endif
return true
endfunction
function qW8 takes nothing returns boolean
if(not(udg_Rj>=2))then
return false
endif
if(not(udg_Uj[2]!=null))then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(udg_Uj[2]),GetUnitLoc(udg_Sj[20]))<=120.00))then
return false
endif
return true
endfunction
function qX8 takes nothing returns boolean
if(not qW8())then
return false
endif
return true
endfunction
function qY8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Uj[3])<=udg_Mj[8])
endfunction
function q28 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Uj[3])>udg_Mj[8]))then
return false
endif
return true
endfunction
function qZ8 takes nothing returns boolean
if(not(udg_Rj==3))then
return false
endif
if(not(udg_Uj[3]!=null))then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(udg_Uj[3]),GetUnitLoc(udg_Sj[30]))<=120.00))then
return false
endif
return true
endfunction
function q_8 takes nothing returns boolean
if(not qZ8())then
return false
endif
return true
endfunction
function r48 takes nothing returns boolean
if(not(udg_Tj==4))then
return false
endif
return true
endfunction
function r78 takes nothing returns nothing
if(ql8())then
set udg_Nj[6]=GetUnitLoc(udg_Sj[1])
call SetUnitPositionLoc(udg_Sj[1],udg_Nj[6])
call RemoveLocation(udg_Nj[6])
set udg_Nj[6]=null
else
call DoNothing()
endif
if(qJ8())then
set udg_Nj[6]=PG(GetUnitLoc(udg_Sj[1]),20.00,120.00)
call SetUnitPositionLoc(udg_Sj[1],udg_Nj[6])
call RemoveLocation(udg_Nj[6])
set udg_Nj[6]=null
set udg_Nj[7]=PG(GetUnitLoc(udg_Sj[2]),20.00,240.00)
call SetUnitPositionLoc(udg_Sj[2],udg_Nj[7])
call RemoveLocation(udg_Nj[7])
set udg_Nj[7]=null
if(q18())then
set udg_Nj[8]=PG(GetUnitLoc(udg_Sj[3]),20.00,0.00)
call SetUnitPositionLoc(udg_Sj[3],udg_Nj[8])
call RemoveLocation(udg_Nj[8])
set udg_Nj[8]=null
else
call DoNothing()
endif
else
call DoNothing()
endif
if(qM8())then
set udg_Cj[10]=1
loop
exitwhen udg_Cj[10]>10
set udg_Nj[6]=PG(GetUnitLoc(udg_Sj[(udg_Cj[10]+9)]),20.00,GetUnitFacing(udg_Sj[(udg_Cj[10]+9)]))
call SetUnitPositionLoc(udg_Sj[(udg_Cj[10]+9)],udg_Nj[6])
call RemoveLocation(udg_Nj[6])
set udg_Nj[6]=null
if(qK8())then
set udg_Nj[7]=PG(GetUnitLoc(udg_Sj[(udg_Cj[10]+19)]),20.00,GetUnitFacing(udg_Sj[(udg_Cj[10]+19)]))
call SetUnitPositionLoc(udg_Sj[(udg_Cj[10]+19)],udg_Nj[7])
call RemoveLocation(udg_Nj[7])
set udg_Nj[7]=null
else
call DoNothing()
endif
if(qL8())then
set udg_Nj[8]=PG(GetUnitLoc(udg_Sj[(udg_Cj[10]+29)]),20.00,GetUnitFacing(udg_Sj[(udg_Cj[10]+29)]))
call SetUnitPositionLoc(udg_Sj[(udg_Cj[10]+29)],udg_Nj[8])
call RemoveLocation(udg_Nj[8])
set udg_Nj[8]=null
else
call DoNothing()
endif
set udg_Cj[10]=udg_Cj[10]+1
endloop
else
call DoNothing()
endif
if(r48())then
set udg_Cj[11]=1
loop
exitwhen udg_Cj[11]>10
if(qN8())then
set udg_Nj[6]=PG(GetUnitLoc(udg_Sj[(udg_Cj[11]+9)]),25.00,AngleBetweenPoints(GetUnitLoc(udg_Sj[(udg_Cj[11]+9)]),GetUnitLoc(udg_Uj[1])))
call SetUnitPositionLoc(udg_Sj[(udg_Cj[11]+9)],udg_Nj[6])
call RemoveLocation(udg_Nj[6])
set udg_Nj[6]=null
else
call DoNothing()
endif
if(q08())then
set udg_Nj[7]=PG(GetUnitLoc(udg_Sj[(udg_Cj[11]+19)]),25.00,AngleBetweenPoints(GetUnitLoc(udg_Sj[(udg_Cj[11]+19)]),GetUnitLoc(udg_Uj[2])))
call SetUnitPositionLoc(udg_Sj[(udg_Cj[11]+19)],udg_Nj[7])
call RemoveLocation(udg_Nj[7])
set udg_Nj[7]=null
else
call DoNothing()
endif
if(qQ8())then
set udg_Nj[8]=PG(GetUnitLoc(udg_Sj[(udg_Cj[11]+29)]),25.00,AngleBetweenPoints(GetUnitLoc(udg_Sj[(udg_Cj[11]+29)]),GetUnitLoc(udg_Uj[3])))
call SetUnitPositionLoc(udg_Sj[(udg_Cj[11]+29)],udg_Nj[8])
call RemoveLocation(udg_Nj[8])
set udg_Nj[8]=null
else
call DoNothing()
endif
set udg_Cj[11]=udg_Cj[11]+1
endloop
if(qT8())then
set udg_dg[42]=GetUnitLoc(udg_Uj[1])
if(qS8())then
call SetUnitLifeBJ(udg_Uj[1],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Uj[1])-udg_Mj[8]))
else
if(qR8())then
call UnitDamageTargetBJ(udg_A[74],udg_Uj[1],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectLocBJ(udg_dg[42],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[42],"war3mapImported\\ChaosExplosion.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[74]),udg_dg[42],bj_UNIT_FACING)
set udg_Lj[15]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_Lj[15])
call IssueTargetOrderBJ(udg_Lj[15],"thunderbolt",udg_Uj[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Lj[15])
set udg_Lj[15]=null
call SetTerrainTypeBJ(udg_dg[42],1332964706,-1,4,0)
call RemoveLocation(udg_dg[42])
set udg_dg[42]=null
set udg_Uj[1]=null
set udg_Cj[12]=1
loop
exitwhen udg_Cj[12]>10
call RemoveUnit(udg_Sj[(udg_Cj[12]+9)])
set udg_Sj[(udg_Cj[12]+9)]=null
set udg_Cj[12]=udg_Cj[12]+1
endloop
else
call DoNothing()
endif
if(qX8())then
set udg_dg[42]=GetUnitLoc(udg_Uj[2])
if(qV8())then
call SetUnitLifeBJ(udg_Uj[2],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Uj[2])-udg_Mj[8]))
else
if(qU8())then
call UnitDamageTargetBJ(udg_A[74],udg_Uj[2],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectLocBJ(udg_dg[42],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[42],"war3mapImported\\ChaosExplosion.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[74]),udg_dg[42],bj_UNIT_FACING)
set udg_Lj[15]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_Lj[15])
call IssueTargetOrderBJ(udg_Lj[15],"thunderbolt",udg_Uj[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Lj[15])
set udg_Lj[15]=null
call SetTerrainTypeBJ(udg_dg[42],1332964706,-1,4,0)
call RemoveLocation(udg_dg[42])
set udg_dg[42]=null
set udg_Uj[2]=null
set udg_Cj[12]=1
loop
exitwhen udg_Cj[12]>10
call RemoveUnit(udg_Sj[(udg_Cj[12]+19)])
set udg_Sj[(udg_Cj[12]+19)]=null
set udg_Cj[12]=udg_Cj[12]+1
endloop
else
call DoNothing()
endif
if(q_8())then
set udg_dg[42]=GetUnitLoc(udg_Uj[3])
if(q28())then
call SetUnitLifeBJ(udg_Uj[3],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Uj[3])-udg_Mj[8]))
else
if(qY8())then
call UnitDamageTargetBJ(udg_A[74],udg_Uj[3],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectLocBJ(udg_dg[42],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_dg[42],"war3mapImported\\ChaosExplosion.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[74]),udg_dg[42],bj_UNIT_FACING)
set udg_Lj[15]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_Lj[15])
call IssueTargetOrderBJ(udg_Lj[15],"thunderbolt",udg_Uj[3])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Lj[15])
set udg_Lj[15]=null
call SetTerrainTypeBJ(udg_dg[42],1332964706,-1,4,0)
call RemoveLocation(udg_dg[42])
set udg_dg[42]=null
set udg_Uj[3]=null
set udg_Cj[12]=1
loop
exitwhen udg_Cj[12]>10
call RemoveUnit(udg_Sj[(udg_Cj[12]+29)])
set udg_Sj[(udg_Cj[12]+29)]=null
set udg_Cj[12]=udg_Cj[12]+1
endloop
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function r88 takes nothing returns nothing
set udg_aE=CreateTrigger()
call DisableTrigger(udg_aE)
call TriggerRegisterTimerEventPeriodic(udg_aE,0.03)
call TriggerAddAction(udg_aE,function r78)
endfunction
function r98 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677889))then
return false
endif
return true
endfunction
function rd8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function re8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[75])==true))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[75],1112437609)==false))then
return false
endif
return true
endfunction
function rf8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function rg8 takes nothing returns boolean
return(IsUnitDeadBJ(udg_A[75])==true)
endfunction
function rh8 takes nothing returns boolean
if(not re8())then
return false
endif
return true
endfunction
function ri8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function rj8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[75]))==true)
endfunction
function rk8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function rm8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function rn8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ro8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function rp8 takes nothing returns boolean
return GetBooleanAnd(rn8(),ro8())
endfunction
function rq8 takes nothing returns boolean
return GetBooleanAnd(rm8(),rp8())
endfunction
function rr8 takes nothing returns boolean
return GetBooleanAnd(rk8(),rq8())
endfunction
function rs8 takes nothing returns boolean
return GetBooleanAnd(rj8(),rr8())
endfunction
function rt8 takes nothing returns nothing
call UnitDamageTargetBJ(udg_A[75],GetEnumUnit(),(3000.00+(30.00*(I2R(GetUnitAbilityLevelSwapped(1093677889,udg_A[75]))*I2R(GetHeroLevel(udg_A[75]))))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
set udg_dg[38]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_dg[38],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[38])
set udg_dg[38]=null
endfunction
function ru8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[75])==true))then
return false
endif
if(not(UnitHasBuffBJ(udg_A[75],1112437609)==false))then
return false
endif
return true
endfunction
function rv8 takes nothing returns boolean
if(not ru8())then
return false
endif
return true
endfunction
function rw8 takes nothing returns boolean
return(IsUnitPausedBJ(udg_A[75])==true)
endfunction
function rx8 takes nothing returns nothing
set udg_A[75]=GetTriggerUnit()
call PauseUnitBJ(true,udg_A[75])
call SetUnitAnimation(udg_A[75],"spell two")
call CreateTextTagUnitBJ("DAIENKAI",udg_A[75],0,10.00,100,100.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.70)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function rd8)))
set udg_Km[83]=GetUnitLoc(udg_A[75])
call PlaySoundAtPointBJ(udg_ss,100,udg_Km[83],0)
call RemoveLocation(udg_Km[83])
set udg_Km[83]=null
call TriggerSleepAction(1.00)
set udg_dg[38]=GetUnitLoc(udg_A[75])
if(rh8())then
call CreateTextTagUnitBJ("ENTEI",udg_A[75],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function rf8)))
set udg_Km[83]=GetUnitLoc(udg_A[75])
call PlaySoundAtPointBJ(udg_Pp,100,udg_Km[83],0)
call RemoveLocation(udg_Km[83])
set udg_Km[83]=null
call CreateNUnitsAtLoc(1,1747988530,GetOwningPlayer(udg_A[75]),udg_dg[38],bj_UNIT_FACING)
set udg_A[76]=GetLastCreatedUnit()
call SetUnitFlyHeightBJ(udg_A[76],300.00,0.00)
call SetUnitPositionLoc(udg_A[76],udg_dg[38])
else
if(rg8())then
set udg_A[75]=null
else
call DoNothing()
endif
endif
call TriggerSleepAction(2.00)
if(rv8())then
call RemoveUnit(udg_A[76])
call CreateNUnitsAtLoc(1,1747988546,GetOwningPlayer(udg_A[75]),udg_dg[38],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,1112820806,GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,1747988535,GetOwningPlayer(udg_A[75]),udg_dg[38],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,1112820806,GetLastCreatedUnit())
call SetTerrainTypeBJ(udg_dg[38],1332964706,-1,8,0)
call AddSpecialEffectLocBJ(udg_dg[38],"war3mapImported\\A-Bomb.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(1000.00,udg_dg[38],function ri8)
set udg_G[23]=e6(1000.00,udg_dg[38],Condition(function rs8))
call RemoveLocation(udg_dg[38])
set udg_dg[38]=null
call ForGroupBJ(udg_G[23],function rt8)
call DestroyGroup(udg_G[23])
set udg_G[23]=null
else
call DoNothing()
endif
call TriggerSleepAction(0.01)
if(rw8())then
call PauseUnitBJ(false,udg_A[75])
else
call DoNothing()
endif
call ResetUnitAnimation(udg_A[75])
set udg_A[75]=null
set udg_A[76]=null
endfunction
function ry8 takes nothing returns nothing
set udg_BE=CreateTrigger()
call TriggerAddCondition(udg_BE,Condition(function r98))
call TriggerAddAction(udg_BE,function rx8)
endfunction
function rz8 takes nothing returns boolean
if(not(udg_Am==null))then
return false
endif
return true
endfunction
function rA8 takes nothing returns nothing
if(rz8())then
call DestroyTrigger(udg_CE)
call DestroyTrigger(udg_cE)
call DestroyTrigger(udg_DE)
call DestroyTrigger(udg_EE)
call DestroyTrigger(udg_FE)
call DestroyTrigger(udg_GE)
call DestroyTrigger(udg_HE)
call DestroyTrigger(udg_IE)
call DestroyTrigger(udg_lE)
call DestroyTrigger(udg_JE)
else
call TriggerRegisterUnitEvent(udg_CE,udg_Am,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_cE,udg_Am,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_DE,udg_Am,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_EE,udg_Am,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_GE,udg_Am,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(udg_HE,udg_Am,EVENT_UNIT_ATTACKED)
call TriggerRegisterUnitEvent(udg_IE,udg_Am,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_lE,udg_Am,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_JE,udg_Am,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function ra8 takes nothing returns nothing
set udg_bE=CreateTrigger()
call TriggerAddAction(udg_bE,function rA8)
endfunction
function rB8 takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())==1311780918))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())==1311780951))then
return true
endif
return false
endfunction
function rb8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678671))then
return false
endif
if(not rB8())then
return false
endif
return true
endfunction
function rC8 takes nothing returns boolean
if(not rb8())then
return false
endif
return true
endfunction
function rc8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function rD8 takes nothing returns nothing
call CreateTextTagUnitBJ("Soru",GetTriggerUnit(),0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.88)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function rc8)))
endfunction
function rE8 takes nothing returns nothing
set udg_CE=CreateTrigger()
call TriggerAddCondition(udg_CE,Condition(function rC8))
call TriggerAddAction(udg_CE,function rD8)
endfunction
function r38 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678669))then
return false
endif
return true
endfunction
function rF8 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[413]))]==true))then
return false
endif
return true
endfunction
function rG8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function r68 takes nothing returns nothing
set udg_A[413]=GetTriggerUnit()
set udg_dg[45]=GetUnitLoc(udg_A[413])
set udg_dg[46]=GetSpellTargetLoc()
set udg_dg[47]=PG(udg_dg[45],256,AngleBetweenPoints(udg_dg[45],udg_dg[46]))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[413]),udg_dg[45],AngleBetweenPoints(udg_dg[45],udg_dg[46]))
set udg_Zf[45]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Zf[45],550.00,550.00,550.00)
if(rF8())then
call UnitAddAbilityBJ(1093681495,udg_Zf[45])
call SetUnitAbilityLevelSwapped(1093681495,udg_Zf[45],GetUnitAbilityLevelSwapped(1093678669,udg_A[413]))
call IssuePointOrderLocBJ(udg_Zf[45],"carrionswarm",udg_dg[47])
else
call UnitAddAbilityBJ(1093678921,udg_Zf[45])
call SetUnitAbilityLevelSwapped(1093678921,udg_Zf[45],GetUnitAbilityLevelSwapped(1093678669,udg_A[413]))
call IssuePointOrderLocBJ(udg_Zf[45],"carrionswarm",udg_dg[47])
endif
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[45])
call CreateTextTagUnitBJ("Rankyaku",udg_A[413],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function rG8)))
call PlaySoundAtPointBJ(udg_Xq,100,udg_dg[45],0)
set udg_A[413]=null
set udg_Zf[45]=null
call RemoveLocation(udg_dg[45])
set udg_dg[45]=null
call RemoveLocation(udg_dg[46])
set udg_dg[46]=null
call RemoveLocation(udg_dg[47])
set udg_dg[47]=null
endfunction
function rH8 takes nothing returns nothing
set udg_cE=CreateTrigger()
call TriggerAddCondition(udg_cE,Condition(function r38))
call TriggerAddAction(udg_cE,function r68)
endfunction
function rI8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678905))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())==1311780918))then
return false
endif
return true
endfunction
function rl8 takes nothing returns boolean
if(not rI8())then
return false
endif
return true
endfunction
function r18 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function rJ8 takes nothing returns nothing
set udg_A[414]=GetTriggerUnit()
set udg_a[404]=GetSpellTargetUnit()
set udg_c[404]=AngleBetweenPoints(GetUnitLoc(udg_A[414]),GetUnitLoc(udg_a[404]))
call AddSpecialEffectTargetUnitBJ("origin",udg_A[414],"Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl")
set udg_P[406]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.09)
set udg_dg[48]=PG(GetUnitLoc(udg_a[404]),-80.00,udg_c[404])
call SetUnitPositionLocFacingBJ(udg_A[414],udg_dg[48],udg_c[404])
call CreateTextTagUnitBJ("Shigan",udg_A[414],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function r18)))
call PlaySoundAtPointBJ(udg_Gr,100,udg_dg[48],0)
call RemoveLocation(udg_dg[48])
set udg_dg[48]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_a[404],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_A[414]=null
set udg_a[404]=null
set udg_c[404]=0.00
call TriggerSleepAction(0.50)
call DestroyEffectBJ(udg_P[406])
endfunction
function rK8 takes nothing returns nothing
set udg_DE=CreateTrigger()
call TriggerAddCondition(udg_DE,Condition(function rl8))
call TriggerAddAction(udg_DE,function rJ8)
endfunction
function rL8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678905))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())==1311780951))then
return false
endif
return true
endfunction
function rM8 takes nothing returns boolean
if(not rL8())then
return false
endif
return true
endfunction
function rN8 takes nothing returns boolean
return(IsTriggerEnabled(udg_FE)==true)
endfunction
function rO8 takes nothing returns boolean
if(not(udg_A[414]!=null))then
return false
endif
return true
endfunction
function r08 takes nothing returns nothing
set udg_A[414]=GetTriggerUnit()
set udg_a[404]=GetSpellTargetUnit()
call AddSpecialEffectTargetUnitBJ("chest",udg_A[414],"Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl")
set udg_P[406]=GetLastCreatedEffectBJ()
call PauseUnitBJ(true,udg_A[414])
call SetUnitPathing(udg_A[414],false)
call SelectUnitRemoveForPlayer(udg_A[414],GetOwningPlayer(udg_A[414]))
call SetUnitTimeScalePercent(udg_A[414],220.00)
call SetUnitAnimation(udg_A[414],"spell slam")
call TriggerSleepAction(0.01)
call EnableTrigger(udg_FE)
call TriggerSleepAction(3.00)
if(rN8())then
call DisableTrigger(udg_FE)
else
call DoNothing()
endif
if(rO8())then
call PauseUnitBJ(false,udg_A[414])
call SetUnitPathing(udg_A[414],true)
call SetUnitTimeScalePercent(udg_A[414],100.00)
call SelectUnitForPlayerSingle(udg_A[414],GetOwningPlayer(udg_A[414]))
set udg_A[414]=null
set udg_a[404]=null
set udg_c[404]=0.00
call DestroyEffectBJ(udg_P[406])
else
call DoNothing()
endif
endfunction
function rP8 takes nothing returns nothing
set udg_EE=CreateTrigger()
call TriggerAddCondition(udg_EE,Condition(function rM8))
call TriggerAddAction(udg_EE,function r08)
endfunction
function rQ8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_A[414])==true))then
return false
endif
return true
endfunction
function rR8 takes nothing returns boolean
return(IsUnitAliveBJ(udg_a[404])==true)
endfunction
function rS8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function r58 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_dg[387],udg_dg[48])<128.00))then
return false
endif
return true
endfunction
function rT8 takes nothing returns nothing
set udg_dg[48]=GetUnitLoc(udg_a[404])
set udg_c[404]=AngleBetweenPoints(GetUnitLoc(udg_A[414]),udg_dg[48])
set udg_dg[387]=PG(GetUnitLoc(udg_A[414]),80.00,udg_c[404])
call SetUnitPositionLocFacingBJ(udg_A[414],udg_dg[387],udg_c[404])
if(r58())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[414]),udg_dg[48],bj_UNIT_FACING)
set udg_Zf[387]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681496,udg_Zf[387])
call SetUnitAbilityLevelSwapped(1093681496,udg_Zf[387],GetUnitAbilityLevelSwapped(1093678905,udg_A[414]))
call IssueImmediateOrderBJ(udg_Zf[387],"stomp")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Zf[387])
call AddSpecialEffectTargetUnitBJ("origin",udg_a[404],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Zf[387]=null
call PauseUnitBJ(false,udg_A[414])
call SetUnitPathing(udg_A[414],true)
call SetUnitTimeScalePercent(udg_A[414],100.00)
call SelectUnitForPlayerSingle(udg_A[414],GetOwningPlayer(udg_A[414]))
if(rR8())then
call IssueTargetOrderBJ(udg_A[414],"attack",udg_a[404])
else
call DoNothing()
endif
set udg_A[414]=null
set udg_a[404]=null
set udg_c[404]=0.00
call CreateTextTagUnitBJ("Shigan",udg_A[414],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function rS8)))
call PlaySoundAtPointBJ(udg_Gr,100,udg_dg[48],0)
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.01)
call DestroyEffectBJ(udg_P[406])
else
call DoNothing()
endif
call RemoveLocation(udg_dg[387])
set udg_dg[387]=null
call RemoveLocation(udg_dg[48])
set udg_dg[48]=null
endfunction
function rU8 takes nothing returns nothing
set udg_FE=CreateTrigger()
call DisableTrigger(udg_FE)
call TriggerRegisterTimerEventPeriodic(udg_FE,0.03)
call TriggerAddCondition(udg_FE,Condition(function rQ8))
call TriggerAddAction(udg_FE,function rT8)
endfunction
function rV8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678916))then
return false
endif
return true
endfunction
function rW8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function rX8 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[415],1110454350)==true)
endfunction
function rY8 takes nothing returns nothing
set udg_A[415]=GetTriggerUnit()
set udg_dg[49]=GetUnitLoc(udg_A[415])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[415]),udg_dg[49],bj_UNIT_FACING)
set udg_A[416]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678915,udg_A[416])
call IssueTargetOrderBJ(udg_A[416],"innerfire",udg_A[415])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[416])
call CreateTextTagUnitBJ("Tekkai",udg_A[415],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function rW8)))
call AddSpecialEffectTargetUnitBJ("origin",udg_A[415],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call PlaySoundAtPointBJ(udg_Yq,100,udg_dg[49],0)
call RemoveLocation(udg_dg[49])
set udg_dg[49]=null
set udg_A[416]=null
call TriggerSleepAction((3.00+I2R(GetUnitAbilityLevelSwapped(1093678916,udg_A[415]))))
if(rX8())then
call UnitRemoveBuffBJ(1110454350,udg_A[415])
else
call DoNothing()
endif
set udg_A[415]=null
endfunction
function r28 takes nothing returns nothing
set udg_GE=CreateTrigger()
call TriggerAddCondition(udg_GE,Condition(function rV8))
call TriggerAddAction(udg_GE,function rY8)
endfunction
function rZ8 takes nothing returns boolean
if((GetUnitTypeId(GetAttackedUnitBJ())==1311780918))then
return true
endif
if((GetUnitTypeId(GetAttackedUnitBJ())==1311780951))then
return true
endif
return false
endfunction
function r_8 takes nothing returns boolean
if(not rZ8())then
return false
endif
if(not(UnitHasBuffBJ(GetAttackedUnitBJ(),1110454350)==true))then
return false
endif
if(not(UnitHasBuffBJ(GetAttacker(),1110454324)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetAttacker(),1110454582)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetAttacker(),1110454576)==false))then
return false
endif
if(not(UnitHasBuffBJ(GetAttacker(),1110454616)==false))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!=1429221460))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!=1429221429))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!=1429221430))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!=1429221431))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!=1429221432))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!=1211117891))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!=1211117892))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!=1211117893))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())!=1211117642))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_RANGED_ATTACKER)==false))then
return false
endif
if(not(MG(GetAttacker(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetTriggerUnit()))==true))then
return false
endif
return true
endfunction
function s48 takes nothing returns boolean
if(not r_8())then
return false
endif
return true
endfunction
function s78 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function s88 takes nothing returns boolean
if((RectContainsLoc(udg_sn,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_An,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_jo,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_ko,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_mo,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_no,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_oo,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_po,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_qo,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_ro,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_so,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_Ro,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
if((RectContainsLoc(udg_So,PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405]))==true))then
return true
endif
return false
endfunction
function s98 takes nothing returns boolean
if(not s88())then
return false
endif
return true
endfunction
function sd8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function se8 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function sf8 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function sg8 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=20))then
return false
endif
return true
endfunction
function sh8 takes nothing returns nothing
if(sg8())then
set udg_A[417]=GetAttackedUnitBJ()
set udg_a[405]=GetAttacker()
set udg_c[405]=AngleBetweenPoints(GetUnitLoc(udg_A[417]),GetUnitLoc(udg_a[405]))
call UnitDamageTargetBJ(udg_A[417],udg_a[405],GetRandomReal(150.00,800.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
if(s98())then
set udg_dg[50]=PG(GetUnitLoc(udg_a[405]),90.00,udg_c[405])
call SetUnitPositionLoc(udg_a[405],udg_dg[50])
call IssueImmediateOrderBJ(udg_a[405],"stop")
call UG(250.00,udg_dg[50],function s78)
call AddSpecialEffectTargetUnitBJ("origin",udg_a[405],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[417]),udg_dg[50],bj_UNIT_FACING)
set udg_A[418]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678917,udg_A[418])
call IssueTargetOrderBJ(udg_A[418],"slow",udg_a[405])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[418])
set udg_A[418]=null
call RemoveLocation(udg_dg[50])
set udg_dg[50]=null
else
call DoNothing()
endif
set udg_A[417]=null
set udg_A[418]=null
set udg_a[405]=null
set udg_c[405]=0.00
if(sf8())then
call ForGroupBJ(d6(GetPlayableMapRect()),function sd8)
call ForForce(GetPlayersAll(),function se8)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function si8 takes nothing returns nothing
set udg_HE=CreateTrigger()
call TriggerAddCondition(udg_HE,Condition(function s48))
call TriggerAddAction(udg_HE,function sh8)
endfunction
function sj8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678165))then
return false
endif
return true
endfunction
function sk8 takes nothing returns boolean
return(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_xi))]==false)
endfunction
function sm8 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_xi))]==true))then
return false
endif
return true
endfunction
function sn8 takes nothing returns boolean
return(udg_s4[GetConvertedPlayerId(GetOwningPlayer(udg_xi))]==true)
endfunction
function so8 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_xi))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677913,udg_xi)==0))then
return false
endif
return true
endfunction
function sp8 takes nothing returns boolean
if(not so8())then
return false
endif
return true
endfunction
function sq8 takes nothing returns nothing
set udg_xi=GetTriggerUnit()
if(sk8())then
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_xi))]=true
else
set udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_xi))]=false
endif
if(sm8())then
set udg_dg[1333]=GetUnitLoc(udg_xi)
call AddSpecialEffectLocBJ(udg_dg[1333],"Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[1333])
set udg_dg[1333]=null
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
if(sp8())then
if(sn8())then
call UnitAddAbilityBJ(1093677913,udg_xi)
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_xi=null
endfunction
function sr8 takes nothing returns nothing
set udg_IE=CreateTrigger()
call TriggerAddCondition(udg_IE,Condition(function sj8))
call TriggerAddAction(udg_IE,function sq8)
endfunction
function ss8 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function st8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678386))then
return false
endif
if(not ss8())then
return false
endif
return true
endfunction
function su8 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function sv8 takes nothing returns nothing
set udg_lE=CreateTrigger()
call TriggerAddCondition(udg_lE,Condition(function st8))
call TriggerAddAction(udg_lE,function su8)
endfunction
function sw8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678386))then
return false
endif
return true
endfunction
function sx8 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_a[406],1227894839)==true))then
return false
endif
return true
endfunction
function sy8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function sz8 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[421]))]==true))then
return false
endif
return true
endfunction
function sA8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function sa8 takes nothing returns boolean
if(not(udg_L[GetConvertedPlayerId(GetOwningPlayer(udg_A[421]))]==true))then
return false
endif
return true
endfunction
function sB8 takes nothing returns nothing
set udg_A[421]=GetTriggerUnit()
set udg_a[406]=GetSpellTargetUnit()
set udg_B[414]=GetUnitLoc(udg_A[421])
set udg_c[407]=AngleBetweenPoints(udg_B[414],GetUnitLoc(udg_a[406]))
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[406]))]=true
set udg_yi=(2000.00+(7.00*(I2R(GetHeroLevel(udg_A[421]))*(I2R(GetUnitAbilityLevelSwapped(1093678386,udg_A[421]))*5.00))))
call PauseUnitBJ(true,udg_A[421])
call PauseUnitBJ(true,udg_a[406])
call SetUnitInvulnerable(udg_A[421],true)
call SetUnitInvulnerable(udg_a[406],true)
call AddSpecialEffectTargetUnitBJ("chest",udg_A[421],"Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl")
set udg_P[407]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("origin",udg_A[421],"Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl")
set udg_P[408]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand right",udg_A[421],"Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl")
set udg_P[409]=GetLastCreatedEffectBJ()
call TriggerSleepAction(0.01)
set udg_dg[51]=GetUnitLoc(udg_a[406])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[421]),udg_dg[51],bj_UNIT_FACING)
set udg_Zf[46]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_Zf[46])
call IssueTargetOrderBJ(udg_Zf[46],"thunderbolt",udg_a[406])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[46])
set udg_Zf[46]=null
if(sx8())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[421]),udg_dg[51],bj_UNIT_FACING)
set udg_Zf[46]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677127,udg_Zf[46])
call IssueTargetOrderBJ(udg_Zf[46],"thunderbolt",udg_a[406])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[46])
set udg_Zf[46]=null
else
call DoNothing()
endif
call SetUnitAnimation(udg_A[421],"stand ready")
call RemoveLocation(udg_dg[51])
set udg_dg[51]=null
set udg_dg[51]=PG(GetUnitLoc(udg_a[406]),-80.00,udg_c[407])
call SetUnitPositionLocFacingBJ(udg_A[421],udg_dg[51],udg_c[407])
call RemoveLocation(udg_dg[51])
set udg_dg[51]=null
set udg_b[402]=0
loop
exitwhen udg_b[402]>(R2I(DistanceBetweenPoints(udg_B[414],GetUnitLoc(udg_a[406])))/100)
set udg_dg[51]=PG(udg_B[414],(100.00*I2R(udg_b[402])),udg_c[407])
call AddSpecialEffectLocBJ(udg_dg[51],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[51])
set udg_dg[51]=null
set udg_b[402]=udg_b[402]+1
endloop
if(sz8())then
call CreateTextTagUnitBJ("SAIDAIRIN",udg_A[421],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.50)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function sy8)))
else
call DoNothing()
endif
call TriggerSleepAction(0.57)
call SetUnitInvulnerable(udg_a[406],false)
call UnitRemoveBuffBJ(1112560453,udg_a[406])
call CreateTextTagUnitBJ("ROKUOGAN",udg_A[421],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),0.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function sA8)))
set udg_Sg[2]=GetUnitLoc(udg_A[421])
call PlaySoundAtPointBJ(udg_ur,100,udg_Sg[2],0)
call RemoveLocation(udg_Sg[2])
set udg_Sg[2]=null
call TriggerSleepAction(0.03)
if(sa8())then
set udg_yi=(udg_yi*1.25)
call SetUnitAnimation(udg_A[421],"attack")
else
call SetUnitAnimation(udg_A[421],"stand ready")
endif
call UnitDamageTargetBJ(udg_A[421],udg_a[406],udg_yi,ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ((I2S(R2I(udg_yi))+"!"),udg_a[406],0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.70)
call DestroyEffectBJ(udg_P[407])
call DestroyEffectBJ(udg_P[408])
call DestroyEffectBJ(udg_P[409])
set udg_dg[51]=GetUnitLoc(udg_A[421])
call AddSpecialEffectLocBJ(udg_dg[51],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[51])
set udg_dg[51]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_a[406],"Objects\\Spawnmodels\\Undead\\UDeathSmall\\UDeathSmall.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_dg[51]=GetUnitLoc(udg_a[406])
call AddSpecialEffectLocBJ(udg_dg[51],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[51])
set udg_dg[51]=null
call TriggerSleepAction(0.10)
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[406]))]=false
call PauseUnitBJ(false,udg_a[406])
call PauseUnitBJ(false,udg_A[421])
call SetUnitInvulnerable(udg_A[421],false)
call ResetUnitAnimation(udg_A[421])
set udg_c[407]=0.00
set udg_A[421]=null
set udg_a[406]=null
set udg_yi=0.00
call RemoveLocation(udg_B[414])
set udg_B[414]=null
endfunction
function sb8 takes nothing returns nothing
set udg_JE=CreateTrigger()
call TriggerAddCondition(udg_JE,Condition(function sw8))
call TriggerAddAction(udg_JE,function sB8)
endfunction
function sC8 takes nothing returns boolean
if(not(udg_am==null))then
return false
endif
return true
endfunction
function sc8 takes nothing returns nothing
if(sC8())then
call DestroyTrigger(udg_LE)
call DestroyTrigger(udg_ME)
call DestroyTrigger(udg_NE)
call DestroyTrigger(udg_OE)
call DestroyTrigger(udg_PE)
call DestroyTrigger(udg_QE)
call DestroyTrigger(udg_RE)
call DestroyTrigger(udg_SE)
call DestroyTrigger(udg_TE)
call DestroyTrigger(udg_UE)
else
call TriggerRegisterUnitEvent(udg_LE,udg_am,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_NE,udg_am,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_PE,udg_am,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_SE,udg_am,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_UE,udg_am,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function sD8 takes nothing returns nothing
set udg_KE=CreateTrigger()
call TriggerAddAction(udg_KE,function sc8)
endfunction
function sE8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678416))then
return false
endif
return true
endfunction
function s38 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function sF8 takes nothing returns boolean
return(IsTriggerEnabled(udg_ME)==false)
endfunction
function sG8 takes nothing returns nothing
set udg_jm[0]=GetTriggerUnit()
set udg_km[0]=GetUnitLoc(udg_jm[0])
set udg_km[1]=GetSpellTargetLoc()
set udg_nm[0]=((100.00+(100.00*I2R(GetUnitAbilityLevelSwapped(1093678416,udg_jm[0]))))+((2.00+(0.50*I2R(GetUnitAbilityLevelSwapped(1093678416,udg_jm[0]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_jm[0],true))))
set udg_nm[1]=AngleBetweenPoints(udg_km[0],udg_km[1])
set udg_nm[2]=0.00
call RemoveLocation(udg_km[1])
set udg_km[1]=null
call CreateTextTagUnitBJ("Desert Spada",udg_jm[0],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function s38)))
set udg_Km[84]=GetUnitLoc(udg_jm[0])
call PlaySoundAtPointBJ(udg_Hp,100,udg_Km[84],0)
call RemoveLocation(udg_Km[84])
set udg_Km[84]=null
call EnableTrigger(udg_ME)
loop
exitwhen(sF8())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
set udg_jm[0]=null
set udg_nm[0]=0.00
set udg_nm[1]=0.00
set udg_nm[2]=0.00
call RemoveLocation(udg_km[0])
set udg_km[0]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_om)
endfunction
function s68 takes nothing returns nothing
set udg_LE=CreateTrigger()
call TriggerAddCondition(udg_LE,Condition(function sE8))
call TriggerAddAction(udg_LE,function sG8)
endfunction
function sH8 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_om)==false)
endfunction
function sI8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_jm[0]))==true)
endfunction
function sl8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function s18 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function sJ8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function sK8 takes nothing returns boolean
return GetBooleanAnd(s18(),sJ8())
endfunction
function sL8 takes nothing returns boolean
return GetBooleanAnd(sl8(),sK8())
endfunction
function sM8 takes nothing returns boolean
return GetBooleanAnd(sI8(),sL8())
endfunction
function sN8 takes nothing returns boolean
return GetBooleanAnd(sH8(),sM8())
endfunction
function Trig_Spada_move_Func008Func002Func001Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=300.00)
endfunction
function Trig_Spada_move_Func008Func002Func001C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])>300.00))then
return false
endif
return true
endfunction
function sO8 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_om)
call UnitDamageTargetBJ(udg_jm[0],GetEnumUnit(),udg_nm[0],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function s08 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function sP8 takes nothing returns boolean
if(not(udg_nm[2]>=1400.00))then
return false
endif
return true
endfunction
function sQ8 takes nothing returns nothing
set udg_nm[2]=(udg_nm[2]+70.00)
set udg_km[1]=PG(udg_km[0],udg_nm[2],udg_nm[1])
call AddSpecialEffectLocBJ(udg_km[1],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_km[1],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_mm[0]=e6(140.00,udg_km[1],Condition(function sN8))
call ForGroupBJ(udg_mm[0],function sO8)
call DestroyGroup(udg_mm[0])
set udg_mm[0]=null
call UG(140.00,udg_km[1],function s08)
call RemoveLocation(udg_km[1])
set udg_km[1]=null
if(sP8())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function sR8 takes nothing returns nothing
set udg_ME=CreateTrigger()
call DisableTrigger(udg_ME)
call TriggerRegisterTimerEventPeriodic(udg_ME,0.03)
call TriggerAddAction(udg_ME,function sQ8)
endfunction
function sS8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678918))then
return false
endif
return true
endfunction
function s58 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function sT8 takes nothing returns boolean
return(IsTriggerEnabled(udg_OE)==false)
endfunction
function sU8 takes nothing returns nothing
set udg_jm[3]=GetTriggerUnit()
set udg_jm[4]=GetSpellTargetUnit()
set udg_nm[3]=(6.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_jm[3],false)))
set udg_nm[3]=(udg_nm[3]/20.00)
set udg_nm[4]=0.00
call AddSpecialEffectTargetUnitBJ("chest",udg_jm[4],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("Barchan",udg_jm[3],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function s58)))
set udg_Km[85]=GetUnitLoc(udg_jm[3])
call PlaySoundAtPointBJ(udg_rp,100,udg_Km[85],0)
call RemoveLocation(udg_Km[85])
set udg_Km[85]=null
call EnableTrigger(udg_OE)
loop
exitwhen(sT8())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
set udg_jm[3]=null
set udg_jm[4]=null
set udg_nm[3]=0.00
set udg_nm[3]=0.00
set udg_nm[4]=0.00
endfunction
function sV8 takes nothing returns nothing
set udg_NE=CreateTrigger()
call TriggerAddCondition(udg_NE,Condition(function sS8))
call TriggerAddAction(udg_NE,function sU8)
endfunction
function sW8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_jm[4])<=udg_nm[3])
endfunction
function sX8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_jm[4])>udg_nm[3]))then
return false
endif
return true
endfunction
function sY8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_jm[4])==true))then
return false
endif
return true
endfunction
function s28 takes nothing returns boolean
if(not(udg_nm[4]>=20.00))then
return false
endif
return true
endfunction
function sZ8 takes nothing returns nothing
set udg_nm[4]=(udg_nm[4]+1)
if(sY8())then
if(sX8())then
call SetUnitLifeBJ(udg_jm[4],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_jm[4])-udg_nm[3]))
else
if(sW8())then
call UnitDamageTargetBJ(udg_jm[3],udg_jm[4],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
else
call DisableTrigger(GetTriggeringTrigger())
endif
if(s28())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function s_8 takes nothing returns nothing
set udg_OE=CreateTrigger()
call DisableTrigger(udg_OE)
call TriggerRegisterTimerEventPeriodic(udg_OE,0.02)
call TriggerAddAction(udg_OE,function sZ8)
endfunction
function t48 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681972))then
return false
endif
return true
endfunction
function t78 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function t88 takes nothing returns nothing
set udg_jm[5]=GetTriggerUnit()
set udg_km[5]=GetSpellTargetLoc()
set udg_nm[5]=((175.00+(25.00*I2R(GetUnitAbilityLevelSwapped(1093681972,udg_jm[5]))))+(5.00*I2R(GetHeroLevel(udg_jm[5]))))
set udg_nm[5]=(udg_nm[5]*0.25)
set udg_nm[6]=(1.75+(0.25*I2R(GetUnitAbilityLevelSwapped(1093681972,udg_jm[5]))))
call AddSpecialEffectLocBJ(udg_km[5],"-Girasole-.mdx")
set udg_qm[5]=GetLastCreatedEffectBJ()
call TerrainDeformationCraterBJ(7.00,false,udg_km[5],400.00,800.00)
set udg_pm=GetLastCreatedTerrainDeformation()
call CreateTextTagUnitBJ("Desert Girasole",udg_jm[5],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function t78)))
set udg_Km[86]=GetUnitLoc(udg_jm[5])
call PlaySoundAtPointBJ(udg_Gp,100,udg_Km[86],0)
call RemoveLocation(udg_Km[86])
set udg_Km[86]=null
call EnableTrigger(udg_QE)
call EnableTrigger(udg_RE)
call TriggerSleepAction(udg_nm[6])
call DisableTrigger(udg_QE)
call DisableTrigger(udg_RE)
call RemoveLocation(udg_km[5])
set udg_km[5]=null
call TerrainDeformationStopBJ(udg_pm,1.00)
call DestroyEffectBJ(udg_qm[5])
set udg_jm[5]=null
set udg_nm[5]=0.00
set udg_nm[6]=0.00
endfunction
function t98 takes nothing returns nothing
set udg_PE=CreateTrigger()
call TriggerAddCondition(udg_PE,Condition(function t48))
call TriggerAddAction(udg_PE,function t88)
endfunction
function td8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function te8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_jm[5]))==true)
endfunction
function tf8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function tg8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function th8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function ti8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function tj8 takes nothing returns boolean
return GetBooleanAnd(th8(),ti8())
endfunction
function tk8 takes nothing returns boolean
return GetBooleanAnd(tg8(),tj8())
endfunction
function tm8 takes nothing returns boolean
return GetBooleanAnd(tf8(),tk8())
endfunction
function tn8 takes nothing returns boolean
return GetBooleanAnd(te8(),tm8())
endfunction
function to8 takes nothing returns boolean
return GetBooleanAnd(td8(),tn8())
endfunction
function tp8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_nm[5])
endfunction
function tq8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_nm[5]))then
return false
endif
return true
endfunction
function tr8 takes nothing returns nothing
if(tq8())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_nm[5]))
else
if(tp8())then
call UnitDamageTargetBJ(udg_jm[5],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
endfunction
function ts8 takes nothing returns nothing
set udg_mm[5]=e6(400.00,udg_km[5],Condition(function to8))
call ForGroupBJ(udg_mm[5],function tr8)
call DestroyGroup(udg_mm[5])
set udg_mm[5]=null
endfunction
function tt8 takes nothing returns nothing
set udg_QE=CreateTrigger()
call DisableTrigger(udg_QE)
call TriggerRegisterTimerEventPeriodic(udg_QE,0.25)
call TriggerAddAction(udg_QE,function ts8)
endfunction
function tu8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function tv8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_jm[5]))==true)
endfunction
function tw8 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function tx8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ty8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function tz8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function tA8 takes nothing returns boolean
return(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]==false)
endfunction
function ta8 takes nothing returns boolean
return GetBooleanAnd(tz8(),tA8())
endfunction
function tB8 takes nothing returns boolean
return GetBooleanAnd(ty8(),ta8())
endfunction
function tb8 takes nothing returns boolean
return GetBooleanAnd(tx8(),tB8())
endfunction
function tC8 takes nothing returns boolean
return GetBooleanAnd(tw8(),tb8())
endfunction
function tc8 takes nothing returns boolean
return GetBooleanAnd(tv8(),tC8())
endfunction
function tD8 takes nothing returns boolean
return GetBooleanAnd(tu8(),tc8())
endfunction
function tE8 takes nothing returns nothing
set udg_km[6]=GetUnitLoc(GetEnumUnit())
set udg_km[7]=PG(udg_km[6],5.00,AngleBetweenPoints(udg_km[6],udg_km[5]))
call SetUnitPositionLoc(GetEnumUnit(),udg_km[7])
call RemoveLocation(udg_km[6])
set udg_km[6]=null
call RemoveLocation(udg_km[7])
set udg_km[7]=null
endfunction
function t38 takes nothing returns nothing
set udg_mm[6]=e6(400.00,udg_km[5],Condition(function tD8))
call ForGroupBJ(udg_mm[6],function tE8)
call DestroyGroup(udg_mm[6])
set udg_mm[6]=null
set udg_km[6]=PG(udg_km[5],GetRandomReal(0,400.00),GetRandomReal(0,360.00))
call AddSpecialEffectLocBJ(udg_km[6],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_km[6])
set udg_km[6]=null
set udg_km[6]=PG(udg_km[5],GetRandomReal(0,400.00),GetRandomReal(0,360.00))
call AddSpecialEffectLocBJ(udg_km[6],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_km[6])
set udg_km[6]=null
endfunction
function tF8 takes nothing returns nothing
set udg_RE=CreateTrigger()
call DisableTrigger(udg_RE)
call TriggerRegisterTimerEventPeriodic(udg_RE,0.03)
call TriggerAddAction(udg_RE,function t38)
endfunction
function tG8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681977))then
return false
endif
return true
endfunction
function t68 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function tH8 takes nothing returns boolean
return(IsTriggerEnabled(udg_TE)==false)
endfunction
function tI8 takes nothing returns boolean
return(udg_jm[9]!=null)
endfunction
function tl8 takes nothing returns boolean
return(IsUnitAliveBJ(udg_jm[9])==true)
endfunction
function t18 takes nothing returns boolean
return GetBooleanAnd(tI8(),tl8())
endfunction
function tJ8 takes nothing returns nothing
set udg_jm[8]=GetTriggerUnit()
set udg_km[8]=GetUnitLoc(udg_jm[8])
set udg_km[9]=GetSpellTargetLoc()
set udg_nm[8]=((11.00+(1.00*I2R(GetUnitAbilityLevelSwapped(1093681977,udg_jm[8]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_jm[8],false)))
set udg_nm[8]=(udg_nm[8]/10.00)
set udg_nm[9]=AngleBetweenPoints(udg_km[8],udg_km[9])
set udg_nm[10]=0.00
set udg_nm[11]=0.00
set udg_km[10]=PG(udg_km[8],150.00,udg_nm[9])
call CreateNUnitsAtLoc(1,1747989043,GetOwningPlayer(udg_jm[8]),udg_km[10],udg_nm[8])
set udg_jm[9]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_jm[9])
call RemoveLocation(udg_km[9])
set udg_km[9]=null
call RemoveLocation(udg_km[10])
set udg_km[10]=null
call CreateTextTagUnitBJ("Sables Pesado",udg_jm[8],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function t68)))
set udg_Km[87]=GetUnitLoc(udg_jm[8])
call PlaySoundAtPointBJ(udg_yr,100,udg_Km[87],0)
call RemoveLocation(udg_Km[87])
set udg_Km[87]=null
call EnableTrigger(udg_TE)
loop
exitwhen(tH8())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
if(t18())then
call KillUnit(udg_jm[9])
else
call DoNothing()
endif
call RemoveLocation(udg_km[8])
set udg_km[8]=null
set udg_jm[8]=null
set udg_jm[9]=null
set udg_jm[10]=null
set udg_nm[8]=0.00
set udg_nm[9]=0.00
set udg_nm[10]=0.00
set udg_nm[11]=0.00
endfunction
function tK8 takes nothing returns nothing
set udg_SE=CreateTrigger()
call TriggerAddCondition(udg_SE,Condition(function tG8))
call TriggerAddAction(udg_SE,function tJ8)
endfunction
function tL8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_jm[10])<=udg_nm[8])
endfunction
function tM8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_jm[10])>udg_nm[8]))then
return false
endif
return true
endfunction
function tN8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function tO8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_jm[8]))==true)
endfunction
function t08 takes nothing returns boolean
return(GetFilterUnit()!=udg_jm[10])
endfunction
function tP8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function tQ8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function tR8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function tS8 takes nothing returns boolean
return GetBooleanAnd(tQ8(),tR8())
endfunction
function t58 takes nothing returns boolean
return GetBooleanAnd(tP8(),tS8())
endfunction
function tT8 takes nothing returns boolean
return GetBooleanAnd(t08(),t58())
endfunction
function tU8 takes nothing returns boolean
return GetBooleanAnd(tO8(),tT8())
endfunction
function tV8 takes nothing returns boolean
return GetBooleanAnd(tN8(),tU8())
endfunction
function tW8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=(udg_nm[8]*0.40))
endfunction
function tX8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>(udg_nm[8]*0.40)))then
return false
endif
return true
endfunction
function tY8 takes nothing returns nothing
if(tX8())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-(udg_nm[8]*0.40)))
else
if(tW8())then
call UnitDamageTargetBJ(udg_jm[8],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
endfunction
function t28 takes nothing returns boolean
return(udg_jm[9]!=null)
endfunction
function tZ8 takes nothing returns boolean
return(IsUnitAliveBJ(udg_jm[9])==true)
endfunction
function t_8 takes nothing returns boolean
return GetBooleanAnd(t28(),tZ8())
endfunction
function u48 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_jm[10])==true))then
return false
endif
return true
endfunction
function u78 takes nothing returns boolean
return(udg_jm[9]!=null)
endfunction
function u88 takes nothing returns boolean
return(IsUnitAliveBJ(udg_jm[9])==true)
endfunction
function u98 takes nothing returns boolean
return GetBooleanAnd(u78(),u88())
endfunction
function ud8 takes nothing returns boolean
if(not(udg_nm[11]>=10.00))then
return false
endif
return true
endfunction
function ue8 takes nothing returns boolean
return(IsUnitVisible(GetFilterUnit(),GetOwningPlayer(udg_jm[8]))==true)
endfunction
function uf8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ug8 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function uh8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_jm[8]))==true)
endfunction
function ui8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function uj8 takes nothing returns boolean
return GetBooleanAnd(uh8(),ui8())
endfunction
function uk8 takes nothing returns boolean
return GetBooleanAnd(ug8(),uj8())
endfunction
function um8 takes nothing returns boolean
return GetBooleanAnd(uf8(),uk8())
endfunction
function un8 takes nothing returns boolean
return GetBooleanAnd(ue8(),um8())
endfunction
function uo8 takes nothing returns nothing
set udg_jm[10]=GetEnumUnit()
endfunction
function up8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_mm[9])==true))then
return false
endif
return true
endfunction
function uq8 takes nothing returns boolean
return(udg_jm[9]!=null)
endfunction
function ur8 takes nothing returns boolean
return(IsUnitAliveBJ(udg_jm[9])==true)
endfunction
function us8 takes nothing returns boolean
return GetBooleanAnd(uq8(),ur8())
endfunction
function ut8 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_km[8],udg_km[10])>=1000.00))then
return false
endif
return true
endfunction
function uu8 takes nothing returns boolean
if(not(udg_nm[10]==0.00))then
return false
endif
return true
endfunction
function uv8 takes nothing returns nothing
if(uu8())then
set udg_km[10]=GetUnitLoc(udg_jm[9])
set udg_km[9]=PG(udg_km[10],60.00,udg_nm[9])
call SetUnitPositionLocFacingBJ(udg_jm[9],udg_km[9],udg_nm[9])
set udg_mm[9]=u6(1,e6(200.00,udg_km[9],Condition(function un8)))
if(up8())then
call DoNothing()
else
call ForGroupBJ(udg_mm[9],function uo8)
set udg_nm[10]=1.00
endif
call DestroyGroup(udg_mm[9])
set udg_mm[9]=null
if(ut8())then
if(us8())then
call KillUnit(udg_jm[9])
else
call DoNothing()
endif
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call RemoveLocation(udg_km[9])
set udg_km[9]=null
call RemoveLocation(udg_km[10])
set udg_km[10]=null
else
set udg_nm[11]=(udg_nm[11]+1)
if(u48())then
if(tM8())then
call SetUnitLifeBJ(udg_jm[10],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_jm[10])-udg_nm[8]))
else
if(tL8())then
call UnitDamageTargetBJ(udg_jm[8],udg_jm[10],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
set udg_km[9]=GetUnitLoc(udg_jm[10])
set udg_mm[10]=e6(220.00,udg_km[9],Condition(function tV8))
call ForGroupBJ(udg_mm[10],function tY8)
call SetUnitPositionLocFacingBJ(udg_jm[9],udg_km[9],GetUnitFacing(udg_jm[10]))
call DestroyGroup(udg_mm[10])
set udg_mm[10]=null
call RemoveLocation(udg_km[9])
set udg_km[9]=null
else
if(t_8())then
call KillUnit(udg_jm[9])
else
call DoNothing()
endif
call DisableTrigger(GetTriggeringTrigger())
endif
if(ud8())then
if(u98())then
call KillUnit(udg_jm[9])
else
call DoNothing()
endif
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endif
endfunction
function uw8 takes nothing returns nothing
set udg_TE=CreateTrigger()
call DisableTrigger(udg_TE)
call TriggerRegisterTimerEventPeriodic(udg_TE,0.04)
call TriggerAddAction(udg_TE,function uv8)
endfunction
function ux8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681750))then
return false
endif
return true
endfunction
function uy8 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function uz8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_jm[12]))==true)
endfunction
function uA8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function ua8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function uB8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function ub8 takes nothing returns boolean
return GetBooleanAnd(ua8(),uB8())
endfunction
function uC8 takes nothing returns boolean
return GetBooleanAnd(uA8(),ub8())
endfunction
function uc8 takes nothing returns boolean
return GetBooleanAnd(uz8(),uC8())
endfunction
function uD8 takes nothing returns boolean
return GetBooleanAnd(uy8(),uc8())
endfunction
function Trig_Ground_Death_Func014Func002Func003Func002Func001Func001Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=300.00)
endfunction
function Trig_Ground_Death_Func014Func002Func003Func002Func001Func001C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])>300.00))then
return false
endif
return true
endfunction
function Trig_Ground_Death_Func014Func002Func003Func002Func002Func001Func001001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])<=300.00)
endfunction
function Trig_Ground_Death_Func014Func002Func003Func002Func002Func001C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_y9[1000])>300.00))then
return false
endif
return true
endfunction
function uE8 takes nothing returns boolean
if(not(MG(GetEnumUnit(),UNIT_TYPE_ANCIENT)==false))then
return false
endif
return true
endfunction
function u38 takes nothing returns nothing
set udg_nm[13]=(udg_nm[12]*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
if(uE8())then
call UnitDamageTargetBJ(udg_jm[12],GetEnumUnit(),udg_nm[13],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call UnitDamageTargetBJ(udg_jm[12],GetEnumUnit(),(udg_nm[13]*0.50),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endif
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_nm[13]=0.00
endfunction
function uF8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_jm[12])==true))then
return false
endif
if(not(DistanceBetweenPoints(udg_km[13],udg_km[12])<=200.00))then
return false
endif
return true
endfunction
function uG8 takes nothing returns boolean
if(not uF8())then
return false
endif
return true
endfunction
function u68 takes nothing returns boolean
return(udg_mn==true)
endfunction
function uH8 takes nothing returns nothing
set udg_jm[12]=GetTriggerUnit()
set udg_km[12]=GetUnitLoc(udg_jm[12])
set udg_nm[12]=0.37
set udg_mn=false
call PauseUnitBJ(true,udg_jm[12])
call SetUnitTimeScalePercent(udg_jm[12],30.00)
call SetUnitAnimation(udg_jm[12],"spell two")
call UnitAddAbilityBJ(1093682007,udg_jm[12])
set udg_Km[88]=GetUnitLoc(udg_jm[12])
call PlaySoundAtPointBJ(udg_oq,100,udg_Km[88],0)
call RemoveLocation(udg_Km[88])
set udg_Km[88]=null
call TriggerSleepAction(0.40)
set udg_Cj[98]=1
loop
exitwhen udg_Cj[98]>10
set udg_km[13]=GetUnitLoc(udg_jm[12])
if(uG8())then
call SetTerrainTypeBJ(udg_km[12],1466200687,-1,udg_Cj[98],0)
set udg_mm[12]=e6((200.00+(100.00*I2R(udg_Cj[98]))),udg_km[12],Condition(function uD8))
call ForGroupBJ(udg_mm[12],function u38)
call DestroyGroup(udg_mm[12])
set udg_mm[12]=null
call TriggerSleepAction(0.07)
set udg_nm[12]=(udg_nm[12]*0.85)
else
call DoNothing()
endif
call RemoveLocation(udg_km[13])
set udg_km[13]=null
set udg_Cj[98]=udg_Cj[98]+1
endloop
set udg_mn=true
call TriggerSleepAction(0.01)
loop
exitwhen(u68())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call PauseUnitBJ(false,udg_jm[12])
call SetUnitTimeScalePercent(udg_jm[12],100.00)
call ResetUnitAnimation(udg_jm[12])
call UnitRemoveAbilityBJ(1093682007,udg_jm[12])
set udg_jm[12]=null
set udg_nm[12]=0.00
call RemoveLocation(udg_km[12])
set udg_km[12]=null
endfunction
function uI8 takes nothing returns nothing
set udg_UE=CreateTrigger()
call TriggerAddCondition(udg_UE,Condition(function ux8))
call TriggerAddAction(udg_UE,function uH8)
endfunction
function ul8 takes nothing returns boolean
if(not(udg_Bm==null))then
return false
endif
return true
endfunction
function u18 takes nothing returns nothing
if(ul8())then
call DestroyTrigger(udg_WE)
call DestroyTrigger(udg_ZE)
call DestroyTrigger(udg_d3)
call DestroyTrigger(udg_e3)
call DestroyTrigger(udg_f3)
call DestroyTrigger(udg_g3)
call DestroyTrigger(udg_h3)
call DestroyTrigger(udg_i3)
call DestroyTrigger(udg_j3)
call DestroyTrigger(udg_k3)
else
call TriggerRegisterUnitEvent(udg_WE,udg_Bm,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_ZE,udg_Bm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_d3,udg_Bm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_g3,udg_Bm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_h3,udg_Bm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_i3,udg_Bm,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(udg_j3,udg_Bm,EVENT_UNIT_HERO_SKILL)
call TriggerRegisterUnitEvent(udg_k3,udg_Bm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function uJ8 takes nothing returns nothing
set udg_VE=CreateTrigger()
call TriggerAddAction(udg_VE,function u18)
endfunction
function uK8 takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())==1311780947))then
return false
endif
return true
endfunction
function uL8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_A[1011]))
endfunction
function uM8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function uN8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function uO8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function u08 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function uP8 takes nothing returns boolean
return GetBooleanAnd(uO8(),u08())
endfunction
function uQ8 takes nothing returns boolean
return GetBooleanAnd(uN8(),uP8())
endfunction
function uR8 takes nothing returns boolean
return GetBooleanAnd(uM8(),uQ8())
endfunction
function uS8 takes nothing returns boolean
return GetBooleanAnd(uL8(),uR8())
endfunction
function u58 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function uT8 takes nothing returns nothing
set udg_A[1011]=GetDyingUnit()
set udg_Uf[1011]=GetPlayableMapRect()
set udg_G[1011]=YG(udg_Uf[1011],Condition(function uS8))
call ForGroupBJ(udg_G[1011],function u58)
call DestroyGroup(udg_G[1011])
set udg_G[1011]=null
set udg_A[1011]=null
set udg_Uf[1011]=null
endfunction
function uU8 takes nothing returns nothing
set udg_WE=CreateTrigger()
call TriggerAddCondition(udg_WE,Condition(function uK8))
call TriggerAddAction(udg_WE,function uT8)
endfunction
function uV8 takes nothing returns boolean
if(not(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])==1311780947))then
return false
endif
if(not(MG(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function uW8 takes nothing returns boolean
if(not uV8())then
return false
endif
return true
endfunction
function uX8 takes nothing returns boolean
if(not(GetHeroLevel(GetDyingUnit())<=GetHeroLevel(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])))then
return false
endif
return true
endfunction
function uY8 takes nothing returns boolean
return(GetFilterPlayer()!=GetOwningPlayer(GetKillingUnitBJ()))
endfunction
function u28 takes nothing returns nothing
if(uX8())then
set udg_We=1
else
set udg_We=2
endif
call CreateTextTagUnitBJ(("+"+(I2S(udg_We)+" INT")),GetDyingUnit(),0,12.00,25.00,58.00,100.00,0)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function uY8)))
call ShowTextTagForceBJ(true,GetLastCreatedTextTag(),m6(GetOwningPlayer(GetKillingUnitBJ())))
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_m[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))],bj_MODIFYMETHOD_ADD,udg_We)
set udg_We=0
endfunction
function uZ8 takes nothing returns nothing
set udg_XE=CreateTrigger()
call DisableTrigger(udg_XE)
call TriggerRegisterAnyUnitEventBJ(udg_XE,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_XE,Condition(function uW8))
call TriggerAddAction(udg_XE,function u28)
endfunction
function u_8 takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())==1311780947))then
return false
endif
if(not(MG(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(udg_ff==true))then
return false
endif
return true
endfunction
function v48 takes nothing returns boolean
if(not u_8())then
return false
endif
return true
endfunction
function v78 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=30))then
return false
endif
return true
endfunction
function v88 takes nothing returns nothing
set udg_hk[20]=GetAttacker()
set udg_hk[21]=GetAttackedUnitBJ()
if(v78())then
call UnitDamageTargetBJ(udg_hk[20],udg_hk[21],(2.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_hk[20],true))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
set udg_ik[20]=GetUnitLoc(udg_hk[21])
call CreateTextTagLocBJ(("|c0000FFFF"+(I2S(R2I((2.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_hk[20],true)))))+"!|r")),udg_ik[20],0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.60)
call RemoveLocation(udg_ik[20])
set udg_ik[20]=null
else
call DoNothing()
endif
set udg_hk[20]=null
set udg_hk[21]=null
endfunction
function v98 takes nothing returns nothing
set udg_YE=CreateTrigger()
call DisableTrigger(udg_YE)
call TriggerRegisterAnyUnitEventBJ(udg_YE,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_YE,Condition(function v48))
call TriggerAddAction(udg_YE,function v88)
endfunction
function vd8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679438))then
return false
endif
return true
endfunction
function ve8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function vf8 takes nothing returns nothing
set udg_A[890]=GetSpellAbilityUnit()
call CreateTextTagUnitBJ("Brick Bat",udg_A[890],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function ve8)))
set udg_Km[89]=GetUnitLoc(udg_A[890])
call PlaySoundAtPointBJ(udg_vp,100,udg_Km[89],0)
call RemoveLocation(udg_Km[89])
set udg_Km[89]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_A[890],"units\\nightelf\\SpiritOfVengeance\\SpiritOfVengeance.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_A[890]=null
endfunction
function vg8 takes nothing returns nothing
set udg_ZE=CreateTrigger()
call TriggerAddCondition(udg_ZE,Condition(function vd8))
call TriggerAddAction(udg_ZE,function vf8)
endfunction
function vh8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681479))then
return false
endif
return true
endfunction
function vi8 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681479,udg_A[891])==5))then
return false
endif
return true
endfunction
function vj8 takes nothing returns boolean
if((GetUnitAbilityLevelSwapped(1093681479,udg_A[891])==3))then
return true
endif
if((GetUnitAbilityLevelSwapped(1093681479,udg_A[891])==4))then
return true
endif
return false
endfunction
function vk8 takes nothing returns boolean
if(not vj8())then
return false
endif
return true
endfunction
function vm8 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681479,udg_A[891])<=2))then
return false
endif
return true
endfunction
function vn8 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681479,udg_A[891])==5))then
return false
endif
return true
endfunction
function vo8 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681479,udg_A[891])==4))then
return false
endif
return true
endfunction
function vp8 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681479,udg_A[891])==3))then
return false
endif
return true
endfunction
function vq8 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681479,udg_A[891])==2))then
return false
endif
return true
endfunction
function vr8 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093681479,udg_A[891])==1))then
return false
endif
return true
endfunction
function vs8 takes nothing returns nothing
set udg_A[891]=GetTriggerUnit()
set udg_Pf=GetSpellTargetUnit()
set udg_Km[90]=GetUnitLoc(udg_A[891])
call PlaySoundAtPointBJ(udg_lp,100,udg_Km[90],0)
call RemoveLocation(udg_Km[90])
set udg_Km[90]=null
if(vm8())then
set udg_Xe=1
else
if(vk8())then
set udg_Xe=2
else
if(vi8())then
set udg_Xe=3
else
call DoNothing()
endif
endif
endif
set udg_b[891]=1
loop
exitwhen udg_b[891]>udg_Xe
set udg_B[891]=PG(GetUnitLoc(udg_Pf),150.00,GetRandomDirectionDeg())
if(vr8())then
call CreateNUnitsAtLoc(1,1747988569,GetOwningPlayer(udg_A[891]),udg_B[891],GetUnitFacing(udg_A[891]))
set udg_A[892]=GetLastCreatedUnit()
else
if(vq8())then
call CreateNUnitsAtLoc(1,1747988570,GetOwningPlayer(udg_A[891]),udg_B[891],GetUnitFacing(udg_A[891]))
set udg_A[892]=GetLastCreatedUnit()
else
if(vp8())then
call CreateNUnitsAtLoc(1,1747988784,GetOwningPlayer(udg_A[891]),udg_B[891],GetUnitFacing(udg_A[891]))
set udg_A[892]=GetLastCreatedUnit()
else
if(vo8())then
call CreateNUnitsAtLoc(1,1747988785,GetOwningPlayer(udg_A[891]),udg_B[891],GetUnitFacing(udg_A[891]))
set udg_A[892]=GetLastCreatedUnit()
else
if(vn8())then
call CreateNUnitsAtLoc(1,1747988786,GetOwningPlayer(udg_A[891]),udg_B[891],GetUnitFacing(udg_A[891]))
set udg_A[892]=GetLastCreatedUnit()
else
call DoNothing()
endif
endif
endif
endif
endif
call AddSpecialEffectTargetUnitBJ("origin",udg_A[892],"units\\nightelf\\SpiritOfVengeance\\SpiritOfVengeance.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitApplyTimedLifeBJ((15.00+(5.00*I2R(GetUnitAbilityLevelSwapped(1093681479,udg_A[891])))),1112820806,udg_A[892])
set udg_A[892]=null
call RemoveLocation(udg_B[891])
set udg_B[891]=null
set udg_b[891]=udg_b[891]+1
endloop
call RemoveUnit(udg_Pf)
set udg_A[891]=null
set udg_Pf=null
endfunction
function vt8 takes nothing returns nothing
set udg_d3=CreateTrigger()
call TriggerAddCondition(udg_d3,Condition(function vh8))
call TriggerAddAction(udg_d3,function vs8)
endfunction
function vu8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679442))then
return false
endif
return true
endfunction
function vv8 takes nothing returns boolean
if(not(IsUnitPausedBJ(udg_A[894])==false))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_A[894]))]==false))then
return false
endif
return true
endfunction
function vw8 takes nothing returns boolean
if(not(IsUnitInGroup(udg_A[894],udg_C4)==true))then
return false
endif
if(not(IsUnitPausedBJ(udg_A[894])==true))then
return false
endif
return true
endfunction
function vx8 takes nothing returns boolean
if(not vw8())then
return false
endif
return true
endfunction
function vy8 takes nothing returns boolean
if(not vv8())then
return false
endif
return true
endfunction
function vz8 takes nothing returns nothing
set udg_A[893]=GetTriggerUnit()
set udg_A[894]=udg_m[GetConvertedPlayerId(GetOwningPlayer(udg_A[893]))]
set udg_B[893]=GetUnitLoc(udg_A[893])
set udg_B[894]=GetUnitLoc(udg_A[894])
set udg_c[893]=GetUnitFacing(udg_A[893])
set udg_c[894]=GetUnitFacing(udg_A[894])
if(vy8())then
call SetUnitPositionLocFacingBJ(udg_A[893],udg_B[894],udg_c[894])
call SetUnitPositionLocFacingBJ(udg_A[894],udg_B[893],udg_c[893])
call AddSpecialEffectTargetUnitBJ("origin",udg_A[893],"units\\nightelf\\SpiritOfVengeance\\SpiritOfVengeance.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_A[894],"units\\nightelf\\SpiritOfVengeance\\SpiritOfVengeance.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_A[893]),udg_B[893],0)
call SelectUnitForPlayerSingle(udg_A[894],GetOwningPlayer(udg_A[894]))
if(vx8())then
call GroupRemoveUnitSimple(udg_A[894],udg_C4)
call PauseUnitBJ(false,udg_A[894])
call SetUnitTimeScalePercent(udg_A[894],100)
else
call DoNothing()
endif
else
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_A[893])),4.00," |cffffcc00Your hero is paused|r")
endif
set udg_A[893]=null
set udg_A[894]=null
set udg_c[893]=0.00
set udg_c[894]=0.00
call RemoveLocation(udg_B[893])
set udg_B[893]=null
call RemoveLocation(udg_B[894])
set udg_B[894]=null
endfunction
function vA8 takes nothing returns nothing
set udg_e3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_e3,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_e3,Condition(function vu8))
call TriggerAddAction(udg_e3,function vz8)
endfunction
function va8 takes nothing returns boolean
if((GetUnitTypeId(GetDyingUnit())==1747988569))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())==1747988570))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())==1747988784))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())==1747988785))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())==1747988786))then
return true
endif
return false
endfunction
function vB8 takes nothing returns boolean
if(not va8())then
return false
endif
return true
endfunction
function vb8 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[895])==1747988786))then
return false
endif
return true
endfunction
function vC8 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[895])==1747988785))then
return false
endif
return true
endfunction
function vc8 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[895])==1747988784))then
return false
endif
return true
endfunction
function vD8 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[895])==1747988570))then
return false
endif
return true
endfunction
function vE8 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[895])==1747988569))then
return false
endif
return true
endfunction
function v38 takes nothing returns boolean
if((GetUnitTypeId(udg_A[895])==1747988785))then
return true
endif
if((GetUnitTypeId(udg_A[895])==1747988786))then
return true
endif
return false
endfunction
function vF8 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[895])==1747988786))then
return false
endif
return true
endfunction
function vG8 takes nothing returns boolean
if(not(GetUnitTypeId(udg_A[895])==1747988785))then
return false
endif
return true
endfunction
function v68 takes nothing returns boolean
if(not v38())then
return false
endif
return true
endfunction
function vH8 takes nothing returns nothing
set udg_A[895]=GetDyingUnit()
set udg_B[895]=GetUnitLoc(udg_A[895])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[895]),udg_B[895],bj_UNIT_FACING)
set udg_A[896]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_A[896],200.00,200.00,200.00)
call UnitAddAbilityBJ(1093681456,udg_A[896])
if(vE8())then
call SetUnitAbilityLevelSwapped(1093681456,udg_A[896],3)
else
if(vD8())then
call SetUnitAbilityLevelSwapped(1093681456,udg_A[896],4)
else
if(vc8())then
call SetUnitAbilityLevelSwapped(1093681456,udg_A[896],5)
else
if(vC8())then
call SetUnitAbilityLevelSwapped(1093681456,udg_A[896],6)
else
if(vb8())then
call SetUnitAbilityLevelSwapped(1093681456,udg_A[896],7)
else
call DoNothing()
endif
endif
endif
endif
endif
call IssueTargetOrderBJ(udg_A[896],"deathcoil",udg_m[GetConvertedPlayerId(GetOwningPlayer(udg_A[895]))])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[896])
set udg_A[896]=null
if(v68())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[895]),udg_B[895],bj_UNIT_FACING)
set udg_A[896]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681457,udg_A[896])
if(vG8())then
call SetUnitAbilityLevelSwapped(1093681457,udg_A[896],1)
else
if(vF8())then
call SetUnitAbilityLevelSwapped(1093681457,udg_A[896],2)
else
call DoNothing()
endif
endif
call IssueImmediateOrderBJ(udg_A[896],"fanofknives")
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[896])
set udg_A[896]=null
else
call DoNothing()
endif
set udg_A[895]=null
call RemoveLocation(udg_B[895])
set udg_B[895]=null
endfunction
function vI8 takes nothing returns nothing
set udg_f3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_f3,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_f3,Condition(function vB8))
call TriggerAddAction(udg_f3,function vH8)
endfunction
function vl8 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
if((RectContainsUnit(udg_vo,GetTriggerUnit())==true))then
return true
endif
if((RectContainsUnit(udg_xo,GetTriggerUnit())==true))then
return true
endif
return false
endfunction
function v18 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679449))then
return false
endif
if(not vl8())then
return false
endif
return true
endfunction
function vJ8 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function vK8 takes nothing returns nothing
set udg_g3=CreateTrigger()
call TriggerAddCondition(udg_g3,Condition(function v18))
call TriggerAddAction(udg_g3,function vJ8)
endfunction
function vL8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679449))then
return false
endif
return true
endfunction
function vM8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[899])<=200.00)
endfunction
function vN8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[899])>200.00))then
return false
endif
return true
endfunction
function vO8 takes nothing returns boolean
if(not(udg_a[899]!=null))then
return false
endif
if(not(IsUnitAliveBJ(udg_a[899])==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_A[899])==true))then
return false
endif
if(not(UnitHasBuffBJ(udg_a[899],1110454614)==true))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_MANA,udg_A[899])>=udg_Qf))then
return false
endif
return true
endfunction
function v08 takes nothing returns boolean
return(GetUnitLifePercent(udg_A[899])==100.00)
endfunction
function vP8 takes nothing returns boolean
if(not vO8())then
return false
endif
return true
endfunction
function vQ8 takes nothing returns boolean
if((udg_a[899]!=null))then
return true
endif
if((UnitHasBuffBJ(udg_a[899],1110454614)==true))then
return true
endif
return false
endfunction
function vR8 takes nothing returns boolean
if(not vQ8())then
return false
endif
return true
endfunction
function vS8 takes nothing returns nothing
set udg_A[899]=GetTriggerUnit()
set udg_a[899]=GetSpellTargetUnit()
set udg_C[899]=(1+GetUnitAbilityLevelSwapped(1093679449,udg_A[899]))
set udg_Qf=(35.00+(15.00*I2R(GetUnitAbilityLevelSwapped(1093679449,udg_A[899]))))
set udg_Km[91]=GetUnitLoc(udg_A[899])
call PlaySoundAtPointBJ(udg_Er,100,udg_Km[91],0)
call RemoveLocation(udg_Km[91])
set udg_Km[91]=null
call TriggerSleepAction(0.01)
set udg_b[897]=1
loop
exitwhen udg_b[897]>udg_C[899]
if(vP8())then
if(vN8())then
call SetUnitLifeBJ(udg_a[899],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[899])-200.00))
else
if(vM8())then
call UnitDamageTargetBJ(udg_A[899],udg_a[899],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call SetUnitManaBJ(udg_A[899],(GetUnitStateSwap(UNIT_STATE_MANA,udg_A[899])-udg_Qf))
set udg_B[897]=GetUnitLoc(udg_a[899])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[899]),udg_B[897],bj_UNIT_FACING)
set udg_A[898]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_A[898],200.00,200.00,200.00)
call UnitAddAbilityBJ(1093681456,udg_A[898])
call SetUnitAbilityLevelSwapped(1093681456,udg_A[898],2)
if(v08())then
call SetUnitLifeBJ(udg_A[899],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_A[899])-50.00))
else
call DoNothing()
endif
call IssueTargetOrderBJ(udg_A[898],"deathcoil",udg_A[899])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[898])
set udg_A[898]=null
call RemoveLocation(udg_B[897])
set udg_B[897]=null
call TriggerSleepAction(1.00)
else
call IssueImmediateOrderBJ(udg_A[899],"stop")
set udg_A[899]=null
set udg_a[899]=null
set udg_Qf=0.00
endif
set udg_b[897]=udg_b[897]+1
endloop
if(vR8())then
call IssueImmediateOrderBJ(udg_A[899],"stop")
set udg_A[899]=null
set udg_a[899]=null
set udg_Qf=0.00
else
call DoNothing()
endif
endfunction
function v58 takes nothing returns nothing
set udg_h3=CreateTrigger()
call TriggerAddCondition(udg_h3,Condition(function vL8))
call TriggerAddAction(udg_h3,function vS8)
endfunction
function vT8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679449))then
return false
endif
return true
endfunction
function vU8 takes nothing returns nothing
set udg_a[899]=null
endfunction
function vV8 takes nothing returns nothing
set udg_i3=CreateTrigger()
call TriggerAddCondition(udg_i3,Condition(function vT8))
call TriggerAddAction(udg_i3,function vU8)
endfunction
function vW8 takes nothing returns boolean
if(not(GetLearnedSkillBJ()==1093679448))then
return false
endif
if(not(GetUnitTypeId(GetLearningUnit())==1311780947))then
return false
endif
return true
endfunction
function vX8 takes nothing returns boolean
if(not vW8())then
return false
endif
return true
endfunction
function vY8 takes nothing returns nothing
set udg_ff=true
call DisableTrigger(GetTriggeringTrigger())
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function v28 takes nothing returns nothing
set udg_j3=CreateTrigger()
call TriggerAddCondition(udg_j3,Condition(function vX8))
call TriggerAddAction(udg_j3,function vY8)
endfunction
function vZ8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679450))then
return false
endif
return true
endfunction
function v_8 takes nothing returns nothing
set udg_gf[1]=GetTriggerUnit()
set udg_hf=GetUnitLoc(udg_gf[1])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_gf[1]),udg_hf,bj_UNIT_FACING)
set udg_gf[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681459,udg_gf[2])
call SetUnitAbilityLevelSwapped(1093681459,udg_gf[2],GetUnitAbilityLevelSwapped(1093679450,udg_gf[1]))
call IssueTargetOrderBJ(udg_gf[2],"innerfire",udg_gf[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_gf[2])
set udg_gf[2]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_gf[1],"Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_gf[1],"units\\nightelf\\SpiritOfVengeance\\SpiritOfVengeance.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitScalePercent(udg_gf[1],175.00,175.00,175.00)
set udg_Km[92]=GetUnitLoc(udg_gf[1])
call PlaySoundAtPointBJ(udg_Er,100,udg_Km[92],0)
call RemoveLocation(udg_Km[92])
set udg_Km[92]=null
set udg_gf[1]=null
call RemoveLocation(udg_hf)
set udg_hf=null
endfunction
function w48 takes nothing returns nothing
set udg_k3=CreateTrigger()
call TriggerAddCondition(udg_k3,Condition(function vZ8))
call TriggerAddAction(udg_k3,function v_8)
endfunction
function w78 takes nothing returns boolean
if(not(udg_bm==null))then
return false
endif
return true
endfunction
function w88 takes nothing returns nothing
if(w78())then
call DestroyTrigger(udg_n3)
call DestroyTrigger(udg_o3)
call DestroyTrigger(udg_p3)
call DestroyTrigger(udg_q3)
call DestroyTrigger(udg_r3)
call DestroyTrigger(udg_s3)
call DestroyTrigger(udg_t3)
call DestroyTrigger(udg_u3)
call DestroyTrigger(udg_v3)
else
call TriggerRegisterUnitEvent(udg_n3,udg_bm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_q3,udg_bm,EVENT_UNIT_HERO_SKILL)
call TriggerRegisterUnitEvent(udg_r3,udg_bm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_t3,udg_bm,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(udg_u3,udg_bm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_v3,udg_bm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function w98 takes nothing returns nothing
set udg_m3=CreateTrigger()
call TriggerAddAction(udg_m3,function w88)
endfunction
function wd8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681751))then
return false
endif
return true
endfunction
function we8 takes nothing returns boolean
return(IsTriggerEnabled(udg_o3)==false)
endfunction
function wf8 takes nothing returns nothing
set udg_Hk[0]=GetTriggerUnit()
set udg_Jk[0]=GetSpellTargetLoc()
set udg_Ik[0]=AngleBetweenPoints(GetUnitLoc(udg_Hk[0]),udg_Jk[0])
set udg_Ik[1]=100.00
set udg_Ik[2]=((100.00+(100.00*I2R(GetUnitAbilityLevelSwapped(1093681751,udg_Hk[0]))))+((1.00+I2R(GetUnitAbilityLevelSwapped(1093681751,udg_Hk[0])))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Hk[0],true))))
set udg_Jk[1]=PG(GetUnitLoc(udg_Hk[0]),100.00,udg_Ik[0])
call CreateNUnitsAtLoc(1,1747988824,GetOwningPlayer(udg_Hk[0]),udg_Jk[1],udg_Ik[0])
set udg_Hk[1]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(10.00,1112820806,udg_Hk[1])
call RemoveLocation(udg_Jk[0])
set udg_Jk[0]=null
call EnableTrigger(udg_o3)
loop
exitwhen(we8())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
set udg_Hk[0]=null
set udg_Hk[1]=null
set udg_Ik[0]=0.00
set udg_Ik[1]=0.00
set udg_Ik[2]=0.00
call RemoveLocation(udg_Jk[1])
set udg_Jk[1]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_Kk)
endfunction
function wg8 takes nothing returns nothing
set udg_n3=CreateTrigger()
call TriggerAddCondition(udg_n3,Condition(function wd8))
call TriggerAddAction(udg_n3,function wf8)
endfunction
function wh8 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Kk)==false)
endfunction
function wi8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Hk[0]))==true)
endfunction
function wj8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function wk8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function wm8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function wn8 takes nothing returns boolean
return GetBooleanAnd(wk8(),wm8())
endfunction
function wo8 takes nothing returns boolean
return GetBooleanAnd(wj8(),wn8())
endfunction
function wp8 takes nothing returns boolean
return GetBooleanAnd(wi8(),wo8())
endfunction
function wq8 takes nothing returns boolean
return GetBooleanAnd(wh8(),wp8())
endfunction
function wr8 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_Kk)
call UnitDamageTargetBJ(udg_Hk[0],GetEnumUnit(),udg_Ik[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function ws8 takes nothing returns boolean
if(not(udg_Ik[1]>=1100.00))then
return false
endif
return true
endfunction
function wt8 takes nothing returns nothing
set udg_Ik[1]=(udg_Ik[1]+50.00)
set udg_Jk[0]=PG(udg_Jk[1],udg_Ik[1],udg_Ik[0])
call SetUnitPositionLocFacingBJ(udg_Hk[1],udg_Jk[0],udg_Ik[0])
set udg_lk[0]=e6(200.00,udg_Jk[0],Condition(function wq8))
call ForGroupBJ(udg_lk[0],function wr8)
call DestroyGroup(udg_lk[0])
set udg_lk[0]=null
call RemoveLocation(udg_Jk[0])
set udg_Jk[0]=null
if(ws8())then
call KillUnit(udg_Hk[1])
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function wu8 takes nothing returns nothing
set udg_o3=CreateTrigger()
call DisableTrigger(udg_o3)
call TriggerRegisterTimerEventPeriodic(udg_o3,0.03)
call TriggerAddAction(udg_o3,function wt8)
endfunction
function wv8 takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped(1093682009,GetTriggerUnit())!=0))then
return false
endif
if(not(MG(GetEventDamageSource(),UNIT_TYPE_ANCIENT)==false))then
return false
endif
if(not(MG(GetEventDamageSource(),UNIT_TYPE_MELEE_ATTACKER)==true))then
return false
endif
if(not(IsUnitEnemy(GetEventDamageSource(),GetOwningPlayer(GetTriggerUnit()))==true))then
return false
endif
if(not(GetEventDamage()<5000.00))then
return false
endif
return true
endfunction
function ww8 takes nothing returns boolean
if(not wv8())then
return false
endif
return true
endfunction
function wx8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Hk[41])<=udg_Ik[41])
endfunction
function wy8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Hk[41])>udg_Ik[41]))then
return false
endif
return true
endfunction
function wz8 takes nothing returns nothing
set udg_Hk[40]=GetTriggerUnit()
set udg_Hk[41]=GetEventDamageSource()
set udg_Ik[41]=(0.15*GetEventDamage())
if(wy8())then
call SetUnitLifeBJ(udg_Hk[41],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Hk[41])-udg_Ik[41]))
else
if(wx8())then
call UnitDamageTargetBJ(udg_Hk[40],udg_Hk[41],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
set udg_Hk[40]=null
set udg_Hk[41]=null
set udg_Ik[41]=0.00
endfunction
function wA8 takes nothing returns nothing
set udg_p3=CreateTrigger()
call TriggerAddCondition(udg_p3,Condition(function ww8))
call TriggerAddAction(udg_p3,function wz8)
endfunction
function wa8 takes nothing returns boolean
if(not(GetLearnedSkillBJ()==1093682009))then
return false
endif
return true
endfunction
function wB8 takes nothing returns nothing
call SetUnitAbilityLevelSwapped(1093682008,GetLearningUnit(),(GetUnitAbilityLevelSwapped(1093682009,GetLearningUnit())+1))
endfunction
function wb8 takes nothing returns nothing
set udg_q3=CreateTrigger()
call TriggerAddCondition(udg_q3,Condition(function wa8))
call TriggerAddAction(udg_q3,function wB8)
endfunction
function wC8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681752))then
return false
endif
return true
endfunction
function wc8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function wD8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Hk[3])==true))then
return false
endif
return true
endfunction
function wE8 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Lk)==false)
endfunction
function w38 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Hk[3]))==true)
endfunction
function wF8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function wG8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function w68 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function wH8 takes nothing returns boolean
return GetBooleanAnd(wG8(),w68())
endfunction
function wI8 takes nothing returns boolean
return GetBooleanAnd(wF8(),wH8())
endfunction
function wl8 takes nothing returns boolean
return GetBooleanAnd(w38(),wI8())
endfunction
function w18 takes nothing returns boolean
return GetBooleanAnd(wE8(),wl8())
endfunction
function wJ8 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_Lk)
call UnitDamageTargetBJ(udg_Hk[3],GetEnumUnit(),(udg_Ik[4]*0.30),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function wK8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function wL8 takes nothing returns boolean
return(UnitHasBuffBJ(udg_Hk[3],1110454354)==true)
endfunction
function wM8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Hk[3])==true))then
return false
endif
return true
endfunction
function wN8 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_lk[2])==false)
endfunction
function wO8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function w08 takes nothing returns boolean
if(not(udg_Hk[3]!=null))then
return false
endif
return true
endfunction
function wP8 takes nothing returns nothing
set udg_Hk[3]=GetTriggerUnit()
set udg_Jk[2]=GetUnitLoc(udg_Hk[3])
set udg_Jk[3]=GetSpellTargetLoc()
set udg_Ik[3]=AngleBetweenPoints(udg_Jk[2],udg_Jk[3])
set udg_Ik[4]=((150.00+(50.00*I2R(GetUnitAbilityLevelSwapped(1093681752,udg_Hk[3]))))+((3.50+(0.50*I2R(GetUnitAbilityLevelSwapped(1093681752,udg_Hk[3]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Hk[3],true))))
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_Hk[3]))]=true
call CreateTextTagUnitBJ("Slapping Pad Style",udg_Hk[3],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function wc8)))
set udg_Km[93]=GetUnitLoc(udg_Hk[3])
call PlaySoundAtPointBJ(udg_Pr,100,udg_Km[93],0)
call RemoveLocation(udg_Km[93])
set udg_Km[93]=null
call RemoveLocation(udg_Jk[3])
set udg_Jk[3]=null
set udg_Cj[81]=1
loop
exitwhen udg_Cj[81]>3
set udg_Jk[3]=PG(udg_Jk[2],GetRandomReal(30.00,90.00),(udg_Ik[3]+90.00))
call CreateNUnitsAtLoc(1,1747988825,GetOwningPlayer(udg_Hk[3]),udg_Jk[3],udg_Ik[3])
set udg_Hk[2]=GetLastCreatedUnit()
call SetUnitAnimation(udg_Hk[2],"stand")
set udg_Hk[2]=null
call RemoveLocation(udg_Jk[3])
set udg_Jk[3]=null
set udg_Jk[3]=PG(udg_Jk[2],GetRandomReal(30.00,90.00),(udg_Ik[3]-90.00))
call CreateNUnitsAtLoc(1,1747988825,GetOwningPlayer(udg_Hk[3]),udg_Jk[3],udg_Ik[3])
set udg_Hk[2]=GetLastCreatedUnit()
call SetUnitAnimation(udg_Hk[2],"stand")
set udg_Hk[2]=null
call RemoveLocation(udg_Jk[3])
set udg_Jk[3]=null
set udg_Cj[81]=udg_Cj[81]+1
endloop
call EnableTrigger(udg_s3)
set udg_Cj[80]=1
loop
exitwhen udg_Cj[80]>25
if(wD8())then
set udg_Cj[81]=1
loop
exitwhen udg_Cj[81]>2
set udg_Jk[3]=PG(udg_Jk[2],GetRandomReal(30.00,90.00),(udg_Ik[3]+90.00))
call CreateNUnitsAtLoc(1,1747988825,GetOwningPlayer(udg_Hk[3]),udg_Jk[3],udg_Ik[3])
set udg_Hk[2]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_Hk[2],100,100,100,100.00)
call SetUnitAnimation(udg_Hk[2],"stand")
set udg_Hk[2]=null
call RemoveLocation(udg_Jk[3])
set udg_Jk[3]=null
set udg_Jk[3]=PG(udg_Jk[2],GetRandomReal(30.00,90.00),(udg_Ik[3]-90.00))
call CreateNUnitsAtLoc(1,1747988825,GetOwningPlayer(udg_Hk[3]),udg_Jk[3],udg_Ik[3])
set udg_Hk[2]=GetLastCreatedUnit()
call SetUnitVertexColorBJ(udg_Hk[2],100,100,100,100.00)
call SetUnitAnimation(udg_Hk[2],"stand")
set udg_Hk[2]=null
call RemoveLocation(udg_Jk[3])
set udg_Jk[3]=null
set udg_Cj[81]=udg_Cj[81]+1
endloop
call TriggerSleepAction(0.15)
else
call DoNothing()
endif
if(wM8())then
set udg_Cj[82]=1
loop
exitwhen udg_Cj[82]>10
set udg_Jk[3]=PG(udg_Jk[2],(60.00*I2R(udg_Cj[82])),udg_Ik[3])
set udg_lk[3]=e6(200.00,udg_Jk[3],Condition(function w18))
call ForGroupBJ(udg_lk[3],function wJ8)
call UG(200.00,udg_Jk[3],function wK8)
call DestroyGroup(udg_lk[3])
set udg_lk[3]=null
call RemoveLocation(udg_Jk[3])
set udg_Jk[3]=null
set udg_Cj[82]=udg_Cj[82]+1
endloop
set bj_wantDestroyGroup=true
call GroupClear(udg_Lk)
if(wL8())then
call UnitRemoveBuffBJ(1110454354,udg_Hk[3])
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_Cj[80]=udg_Cj[80]+1
endloop
call DisableTrigger(udg_s3)
if(w08())then
call IssueImmediateOrderBJ(udg_Hk[3],"stop")
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_Hk[3]))]=false
set udg_Hk[3]=null
set udg_Ik[3]=0.00
set udg_Ik[4]=0.00
call RemoveLocation(udg_Jk[2])
set udg_Jk[2]=null
set udg_lk[2]=g6(1747988825)
if(wN8())then
call ForGroupBJ(udg_lk[2],function wO8)
else
call DoNothing()
endif
call DestroyGroup(udg_lk[2])
set udg_lk[2]=null
else
call DoNothing()
endif
endfunction
function wQ8 takes nothing returns nothing
set udg_r3=CreateTrigger()
call TriggerAddCondition(udg_r3,Condition(function wC8))
call TriggerAddAction(udg_r3,function wP8)
endfunction
function wR8 takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_Jk[2],udg_Jk[4])<=600.00))then
return false
endif
return true
endfunction
function wS8 takes nothing returns nothing
set udg_Jk[4]=PG(GetUnitLoc(GetEnumUnit()),GetRandomReal(16.00,22.00),udg_Ik[3])
if(wR8())then
call SetUnitPositionLoc(GetEnumUnit(),udg_Jk[4])
call SetUnitVertexColorBJ(GetEnumUnit(),100,100.00,100.00,0)
else
call RemoveUnit(GetEnumUnit())
endif
call RemoveLocation(udg_Jk[4])
set udg_Jk[4]=null
endfunction
function w58 takes nothing returns nothing
set udg_lk[2]=g6(1747988825)
call ForGroupBJ(udg_lk[2],function wS8)
call DestroyGroup(udg_lk[2])
set udg_lk[2]=null
endfunction
function wT8 takes nothing returns nothing
set udg_s3=CreateTrigger()
call DisableTrigger(udg_s3)
call TriggerRegisterTimerEventPeriodic(udg_s3,0.03)
call TriggerAddAction(udg_s3,function w58)
endfunction
function wU8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681752))then
return false
endif
return true
endfunction
function wV8 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_lk[2])==false)
endfunction
function wW8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function wX8 takes nothing returns boolean
if(not(udg_Hk[3]!=null))then
return false
endif
return true
endfunction
function wY8 takes nothing returns nothing
if(wX8())then
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_Hk[3]))]=false
set udg_Hk[3]=null
set udg_Ik[3]=0.00
set udg_Ik[4]=0.00
call RemoveLocation(udg_Jk[2])
set udg_Jk[2]=null
set udg_lk[2]=g6(1747988825)
if(wV8())then
call ForGroupBJ(udg_lk[2],function wW8)
else
call DoNothing()
endif
call DestroyGroup(udg_lk[2])
set udg_lk[2]=null
else
call DoNothing()
endif
endfunction
function w28 takes nothing returns nothing
set udg_t3=CreateTrigger()
call TriggerAddCondition(udg_t3,Condition(function wU8))
call TriggerAddAction(udg_t3,function wY8)
endfunction
function wZ8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093681753))then
return false
endif
return true
endfunction
function w_8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function x48 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function x78 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_Hk[5]))==true)
endfunction
function x88 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function x98 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function xd8 takes nothing returns boolean
return(GetFilterUnit()!=udg_a[1006])
endfunction
function xe8 takes nothing returns boolean
return GetBooleanAnd(x98(),xd8())
endfunction
function xf8 takes nothing returns boolean
return GetBooleanAnd(x88(),xe8())
endfunction
function xg8 takes nothing returns boolean
return GetBooleanAnd(x78(),xf8())
endfunction
function xh8 takes nothing returns boolean
return GetBooleanAnd(x48(),xg8())
endfunction
function xi8 takes nothing returns boolean
return GetBooleanAnd(w_8(),xh8())
endfunction
function xj8 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_lk[5])==false)
endfunction
function xk8 takes nothing returns nothing
set udg_Mk=GetEnumUnit()
endfunction
function Trig_Pain_Repel_Func005Func001Func002Func001002 takes nothing returns nothing
set udg_zg=GetEnumUnit()
endfunction
function xm8 takes nothing returns boolean
if(not(udg_Mk==null))then
return false
endif
return true
endfunction
function xn8 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_Hk[5])==false))then
return false
endif
if(not(IsUnitDeadBJ(udg_Mk)==false))then
return false
endif
if(not(udg_Hk[5]!=null))then
return false
endif
return true
endfunction
function xo8 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function xp8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Hk[5]))==true)
endfunction
function xq8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function xr8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function xs8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function xt8 takes nothing returns boolean
return GetBooleanAnd(xr8(),xs8())
endfunction
function xu8 takes nothing returns boolean
return GetBooleanAnd(xq8(),xt8())
endfunction
function xv8 takes nothing returns boolean
return GetBooleanAnd(xp8(),xu8())
endfunction
function xw8 takes nothing returns boolean
return GetBooleanAnd(xo8(),xv8())
endfunction
function xx8 takes nothing returns boolean
return(udg_Ik[6]>udg_Ik[5])
endfunction
function xy8 takes nothing returns boolean
return(udg_Ik[7]>(udg_Ik[5]*0.50))
endfunction
function xz8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_Ik[6])
endfunction
function xA8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_Ik[6]))then
return false
endif
return true
endfunction
function xa8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_MANA,GetEnumUnit())>udg_Ik[7]))then
return false
endif
return true
endfunction
function xB8 takes nothing returns boolean
if(not(udg_Ik[6]>0.00))then
return false
endif
return true
endfunction
function xb8 takes nothing returns nothing
if(xA8())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_Ik[6]))
else
if(xz8())then
call UnitDamageTargetBJ(udg_Hk[5],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
if(xa8())then
call SetUnitManaBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetEnumUnit())-udg_Ik[7]))
else
call SetUnitManaBJ(GetEnumUnit(),0.00)
endif
if(xB8())then
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endfunction
function xC8 takes nothing returns boolean
return(IsUnitPausedBJ(udg_Mk)==false)
endfunction
function xc8 takes nothing returns boolean
if(not xn8())then
return false
endif
return true
endfunction
function xD8 takes nothing returns boolean
if(not(udg_Mk!=null))then
return false
endif
return true
endfunction
function xE8 takes nothing returns boolean
if(not(udg_Mk!=null))then
return false
endif
return true
endfunction
function x38 takes nothing returns nothing
set udg_Hk[5]=GetTriggerUnit()
set udg_Mk=null
set udg_Jk[5]=GetSpellTargetLoc()
set udg_Ik[5]=(2.20*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Hk[5],true)))
set udg_Cj[83]=1
loop
exitwhen udg_Cj[83]>32
if(xm8())then
set udg_lk[5]=u6(1,e6((5.00*I2R(udg_Cj[83])),udg_Jk[5],Condition(function xi8)))
if(xj8())then
call ForGroupBJ(udg_lk[5],function xk8)
else
call DoNothing()
endif
call DestroyGroup(udg_lk[5])
set udg_lk[5]=null
else
call DoNothing()
endif
set udg_Cj[83]=udg_Cj[83]+1
endloop
call RemoveLocation(udg_Jk[5])
set udg_Jk[5]=null
if(xD8())then
call AddSpecialEffectTargetUnitBJ("origin",udg_Mk,"-PawAura-.mdx")
set udg_Nk=GetLastCreatedEffectBJ()
set udg_Cj[84]=1
loop
exitwhen udg_Cj[84]>10
if(xc8())then
call SetUnitLifeBJ(udg_Mk,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_Mk)+udg_Ik[5]))
call SetUnitManaBJ(udg_Mk,(GetUnitStateSwap(UNIT_STATE_MANA,udg_Mk)+(udg_Ik[5]*0.50)))
set udg_Jk[5]=GetUnitLoc(udg_Mk)
set udg_lk[5]=e6(350.00,udg_Jk[5],Condition(function xw8))
set udg_Ik[6]=(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_Mk)-GetUnitStateSwap(UNIT_STATE_LIFE,udg_Mk))
if(xx8())then
set udg_Ik[6]=udg_Ik[5]
else
call DoNothing()
endif
set udg_Ik[7]=(GetUnitStateSwap(UNIT_STATE_MAX_MANA,udg_Mk)-GetUnitStateSwap(UNIT_STATE_MANA,udg_Mk))
if(xy8())then
set udg_Ik[7]=(udg_Ik[5]*0.50)
else
call DoNothing()
endif
call ForGroupBJ(udg_lk[5],function xb8)
call DestroyGroup(udg_lk[5])
set udg_lk[5]=null
call RemoveLocation(udg_Jk[5])
set udg_Jk[5]=null
set udg_Ik[6]=0.00
set udg_Ik[7]=0.00
if(xC8())then
call UnitRemoveBuffsBJ(bj_REMOVEBUFFS_NEGATIVE,udg_Mk)
else
call DoNothing()
endif
call TriggerSleepAction(1.00)
else
set udg_Hk[5]=null
set udg_Mk=null
call DestroyEffectBJ(udg_Nk)
endif
set udg_Cj[84]=udg_Cj[84]+1
endloop
else
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_Hk[5])),4.00," |cffffcc00No valid target found|r")
endif
set udg_Hk[5]=null
set udg_Ik[5]=0.00
if(xE8())then
set udg_Mk=null
call DestroyEffectBJ(udg_Nk)
else
call DoNothing()
endif
endfunction
function xF8 takes nothing returns nothing
set udg_u3=CreateTrigger()
call TriggerAddCondition(udg_u3,Condition(function wZ8))
call TriggerAddAction(udg_u3,function x38)
endfunction
function xG8 takes nothing returns boolean
if((GetSpellAbilityId()==1093678925))then
return true
endif
if((GetSpellAbilityId()==1093678387))then
return true
endif
return false
endfunction
function x68 takes nothing returns boolean
if(not xG8())then
return false
endif
return true
endfunction
function xH8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678387))then
return false
endif
return true
endfunction
function xI8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678925))then
return false
endif
return true
endfunction
function xl8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function x18 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function xJ8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Hk[8]))==true)
endfunction
function xK8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function xL8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function xM8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function xN8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function xO8 takes nothing returns boolean
return GetBooleanAnd(xM8(),xN8())
endfunction
function x08 takes nothing returns boolean
return GetBooleanAnd(xL8(),xO8())
endfunction
function xP8 takes nothing returns boolean
return GetBooleanAnd(xK8(),x08())
endfunction
function xQ8 takes nothing returns boolean
return GetBooleanAnd(xJ8(),xP8())
endfunction
function xR8 takes nothing returns nothing
call UnitDamageTargetBJ(udg_Hk[8],GetEnumUnit(),udg_Ik[8],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function xS8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Hk[8])==true))then
return false
endif
if(not(udg_Hk[8]!=null))then
return false
endif
return true
endfunction
function x58 takes nothing returns boolean
if(not xS8())then
return false
endif
return true
endfunction
function xT8 takes nothing returns boolean
return(IsUnitPausedBJ(udg_Hk[8])==true)
endfunction
function xU8 takes nothing returns nothing
set udg_Hk[8]=GetTriggerUnit()
if(xI8())then
set udg_Ik[8]=(1000.00+((10.00+(4.00*I2R(GetUnitAbilityLevelSwapped(1093678925,udg_Hk[8]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Hk[8],true))))
else
if(xH8())then
set udg_Ik[8]=(1000.00+((10.00+(4.00*I2R(GetUnitAbilityLevelSwapped(1093678387,udg_Hk[8]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_Hk[8],true))))
else
call DoNothing()
endif
endif
call PauseUnitBJ(true,udg_Hk[8])
call SetUnitTimeScalePercent(udg_Hk[8],150.00)
call SetUnitAnimation(udg_Hk[8],"spell three")
call TriggerSleepAction(2.00)
if(x58())then
call SetUnitTimeScalePercent(udg_Hk[8],100.00)
call SetUnitAnimation(udg_Hk[8],"spell two")
call TriggerSleepAction(0.05)
set udg_Jk[8]=GetUnitLoc(udg_Hk[8])
call CreateTextTagUnitBJ("URSUS SHOCK",udg_Hk[8],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function xl8)))
set udg_Km[94]=GetUnitLoc(udg_Hk[8])
call PlaySoundAtPointBJ(udg_is,100,udg_Km[94],0)
call RemoveLocation(udg_Km[94])
set udg_Km[94]=null
call AddSpecialEffectLocBJ(udg_Jk[8],"-UrsusShock-.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UG(900.00,udg_Jk[8],function x18)
set udg_lk[8]=e6(900.00,udg_Jk[8],Condition(function xQ8))
call ForGroupBJ(udg_lk[8],function xR8)
call DestroyGroup(udg_lk[8])
set udg_lk[8]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Hk[8]),udg_Jk[8],bj_UNIT_FACING)
set udg_Hk[9]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681754,udg_Hk[9])
call IssueImmediateOrderBJ(udg_Hk[9],"thunderclap")
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Hk[9])
set udg_Hk[9]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_Hk[8]),udg_Jk[8],bj_UNIT_FACING)
set udg_Hk[9]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681968,udg_Hk[9])
call IssuePointOrderLocBJ(udg_Hk[9],"silence",udg_Jk[8])
call UnitApplyTimedLifeBJ(2.00,1112820806,udg_Hk[9])
set udg_Hk[9]=null
call RemoveLocation(udg_Jk[8])
set udg_Jk[8]=null
else
call DoNothing()
endif
call TriggerSleepAction(0.01)
if(xT8())then
call PauseUnitBJ(false,udg_Hk[8])
else
call DoNothing()
endif
call SetUnitTimeScalePercent(udg_Hk[8],100.00)
call ResetUnitAnimation(udg_Hk[8])
set udg_Hk[8]=null
set udg_Ik[8]=0.00
endfunction
function xV8 takes nothing returns nothing
set udg_v3=CreateTrigger()
call TriggerAddCondition(udg_v3,Condition(function x68))
call TriggerAddAction(udg_v3,function xU8)
endfunction
function xW8 takes nothing returns boolean
if(not(udg_Cm==null))then
return false
endif
return true
endfunction
function xX8 takes nothing returns nothing
if(xW8())then
call DestroyTrigger(udg_x3)
call DestroyTrigger(udg_y3)
call DestroyTrigger(udg_z3)
call DestroyTrigger(udg_A3)
call DestroyTrigger(udg_a3)
call DestroyTrigger(udg_B3)
call DestroyTrigger(udg_b3)
call DestroyTrigger(udg_C3)
call DestroyTrigger(udg_c3)
call DestroyTrigger(udg_D3)
else
call TriggerRegisterUnitEvent(udg_x3,udg_Cm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_z3,udg_Cm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_a3,udg_Cm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_B3,udg_Cm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_b3,udg_Cm,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_C3,udg_Cm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function xY8 takes nothing returns nothing
set udg_w3=CreateTrigger()
call TriggerAddAction(udg_w3,function xX8)
endfunction
function x28 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679169))then
return false
endif
return true
endfunction
function xZ8 takes nothing returns nothing
set udg_A[500]=GetTriggerUnit()
set udg_N[500]=0
set udg_q4[500]=((1.50+(0.25*I2R(GetUnitAbilityLevelSwapped(1093679169,udg_A[500]))))*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[500],false)))
set udg_dg[52]=GetUnitLoc(udg_A[500])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[500]),udg_dg[52],bj_UNIT_FACING)
set udg_Zf[52]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677878,udg_Zf[52])
call SetUnitAbilityLevelSwapped(1093677878,udg_Zf[52],4)
call IssueTargetOrderBJ(udg_Zf[52],"unholyfrenzy",udg_A[500])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[52])
call RemoveLocation(udg_dg[52])
set udg_dg[52]=null
set udg_Km[95]=GetUnitLoc(udg_A[500])
call PlaySoundAtPointBJ(udg_Zq,100,udg_Km[95],0)
call RemoveLocation(udg_Km[95])
set udg_Km[95]=null
endfunction
function x_8 takes nothing returns nothing
set udg_x3=CreateTrigger()
call TriggerAddCondition(udg_x3,Condition(function x28))
call TriggerAddAction(udg_x3,function xZ8)
endfunction
function y48 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),1110454576)==true))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())==1311780920))then
return false
endif
if(not(IsUnitHiddenBJ(GetAttacker())==false))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(udg_A[500]!=null))then
return false
endif
return true
endfunction
function y78 takes nothing returns boolean
if(not y48())then
return false
endif
return true
endfunction
function y88 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=(6+(4*GetUnitAbilityLevelSwapped(1093679169,udg_A[500])))))then
return false
endif
return true
endfunction
function y98 takes nothing returns boolean
if(not(udg_N[500]==3))then
return false
endif
return true
endfunction
function yd8 takes nothing returns nothing
set udg_N[500]=(udg_N[500]+1)
set udg_a[500]=GetAttackedUnitBJ()
set udg_dg[53]=GetUnitLoc(udg_A[500])
call UnitDamageTargetBJ(udg_A[500],udg_a[500],udg_q4[500],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call CreateTextTagLocBJ((I2S(R2I(udg_q4[500]))+"!"),udg_dg[53],0,11.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.60)
if(y88())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[500]),udg_dg[53],bj_UNIT_FACING)
set udg_A[509]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093679176,udg_A[509])
call IssueTargetOrderBJ(udg_A[509],"slow",udg_a[500])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_A[509])
set udg_A[509]=null
else
call DoNothing()
endif
if(y98())then
call UnitRemoveBuffBJ(1110454576,udg_A[500])
set udg_A[500]=null
set udg_a[500]=null
set udg_N[500]=0
set udg_q4[500]=0.00
else
call DoNothing()
endif
set udg_a[500]=null
call RemoveLocation(udg_dg[53])
set udg_dg[53]=null
endfunction
function ye8 takes nothing returns nothing
set udg_y3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_y3,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_y3,Condition(function y78))
call TriggerAddAction(udg_y3,function yd8)
endfunction
function yf8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677368))then
return false
endif
return true
endfunction
function yg8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function yh8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[66])<=(5.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[104],false))))
endfunction
function yi8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[66])>(5.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[104],false)))))then
return false
endif
return true
endfunction
function yj8 takes nothing returns boolean
return(IsUnitAliveBJ(udg_a[66])==true)
endfunction
function yk8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function ym8 takes nothing returns nothing
set udg_A[104]=GetTriggerUnit()
set udg_a[66]=GetSpellTargetUnit()
set udg_B[500]=GetUnitLoc(udg_A[104])
set udg_dg[54]=GetUnitLoc(udg_a[66])
set udg_B[66]=PG(GetUnitLoc(udg_a[66]),-100.00,AngleBetweenPoints(udg_B[500],udg_dg[54]))
set udg_N[501]=0
call CreateNUnitsAtLocFacingLocBJ(1,1747988551,GetOwningPlayer(udg_A[104]),udg_B[500],udg_dg[54])
set udg_A[501]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_A[501],70.00)
call SetUnitAnimation(udg_A[501],"spell")
call SetUnitVertexColorBJ(udg_A[104],100,100,100,100.00)
call UnitApplyTimedLifeBJ(3.00,1112820806,udg_A[501])
call TriggerSleepAction(0.01)
call SetUnitPositionLocFacingBJ(udg_A[104],udg_B[66],AngleBetweenPoints(udg_B[500],udg_dg[54]))
call UG(250.00,udg_B[66],function yg8)
if(yi8())then
call SetUnitLifeBJ(udg_a[66],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_a[66])-(5.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[104],false)))))
else
if(yh8())then
call UnitDamageTargetBJ(udg_A[104],udg_a[66],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
call AddSpecialEffectLocBJ(udg_dg[54],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(yj8())then
call IssueTargetOrderBJ(udg_A[104],"attack",udg_a[66])
else
call DoNothing()
endif
set udg_Km[96]=GetUnitLoc(udg_A[104])
call PlaySoundAtPointBJ(udg_dr,100,udg_Km[96],0)
call RemoveLocation(udg_Km[96])
set udg_Km[96]=null
call EnableTrigger(udg_A3)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_A3)
call RemoveLocation(udg_B[66])
set udg_B[66]=null
call RemoveLocation(udg_B[500])
set udg_B[500]=null
call RemoveLocation(udg_dg[54])
set udg_dg[54]=null
call RemoveUnit(udg_A[501])
call SetUnitVertexColorBJ(udg_A[104],100,100,100,0)
set udg_A[104]=null
set udg_A[501]=null
set udg_a[66]=null
set udg_N[501]=0
set udg_eg[54]=g6(1747988551)
call ForGroupBJ(udg_eg[54],function yk8)
call DestroyGroup(udg_eg[54])
set udg_eg[54]=null
endfunction
function yn8 takes nothing returns nothing
set udg_z3=CreateTrigger()
call TriggerAddCondition(udg_z3,Condition(function yf8))
call TriggerAddAction(udg_z3,function ym8)
endfunction
function yo8 takes nothing returns boolean
if(not(udg_N[501]<20))then
return false
endif
return true
endfunction
function yp8 takes nothing returns nothing
set udg_N[501]=(udg_N[501]+1)
if(yo8())then
call SetUnitVertexColorBJ(udg_A[501],100,100,100,(5.00*I2R(udg_N[501])))
call SetUnitVertexColorBJ(udg_A[104],100,100,100,(100.00-(5.00*I2R(udg_N[501]))))
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function yq8 takes nothing returns nothing
set udg_A3=CreateTrigger()
call DisableTrigger(udg_A3)
call TriggerRegisterTimerEventPeriodic(udg_A3,0.05)
call TriggerAddAction(udg_A3,function yp8)
endfunction
function yr8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677912))then
return false
endif
return true
endfunction
function ys8 takes nothing returns nothing
set udg_A[105]=GetSpellAbilityUnit()
set udg_dg[55]=GetUnitLoc(udg_A[105])
set udg_dg[56]=GetSpellTargetLoc()
set udg_H[35]=AngleBetweenPoints(udg_dg[55],udg_dg[56])
set udg_dg[57]=PG(udg_dg[55],256,(udg_H[35]+25.00))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[105]),udg_dg[55],(udg_H[35]+25.00))
set udg_Zf[57]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677142,udg_Zf[57])
call SetUnitAbilityLevelSwapped(1093677142,udg_Zf[57],(5+GetUnitAbilityLevelSwapped(1093677912,udg_A[105])))
call IssuePointOrderLocBJ(udg_Zf[57],"shockwave",udg_dg[57])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[57])
set udg_Zf[57]=null
call RemoveLocation(udg_dg[57])
set udg_dg[57]=null
set udg_dg[57]=PG(udg_dg[55],256,(udg_H[35]+50.00))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[105]),udg_dg[55],(udg_H[35]+50.00))
set udg_Zf[57]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677142,udg_Zf[57])
call SetUnitAbilityLevelSwapped(1093677142,udg_Zf[57],(5+GetUnitAbilityLevelSwapped(1093677912,udg_A[105])))
call IssuePointOrderLocBJ(udg_Zf[57],"shockwave",udg_dg[57])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[57])
set udg_Zf[57]=null
call RemoveLocation(udg_dg[57])
set udg_dg[57]=null
set udg_dg[57]=PG(udg_dg[55],256,(udg_H[35]-25.00))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[105]),udg_dg[55],(udg_H[35]-25.00))
set udg_Zf[57]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677142,udg_Zf[57])
call SetUnitAbilityLevelSwapped(1093677142,udg_Zf[57],(5+GetUnitAbilityLevelSwapped(1093677912,udg_A[105])))
call IssuePointOrderLocBJ(udg_Zf[57],"shockwave",udg_dg[57])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[57])
set udg_Zf[57]=null
call RemoveLocation(udg_dg[57])
set udg_dg[57]=null
set udg_dg[57]=PG(udg_dg[55],256,(udg_H[35]-50.00))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[105]),udg_dg[55],(udg_H[35]-50.00))
set udg_Zf[57]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677142,udg_Zf[57])
call SetUnitAbilityLevelSwapped(1093677142,udg_Zf[57],(5+GetUnitAbilityLevelSwapped(1093677912,udg_A[105])))
call IssuePointOrderLocBJ(udg_Zf[57],"shockwave",udg_dg[57])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[57])
set udg_Zf[57]=null
call RemoveLocation(udg_dg[57])
set udg_dg[57]=null
set udg_dg[57]=PG(udg_dg[55],256,udg_H[35])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_A[105]),udg_dg[55],udg_H[35])
set udg_Zf[57]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677142,udg_Zf[57])
call SetUnitAbilityLevelSwapped(1093677142,udg_Zf[57],(5+GetUnitAbilityLevelSwapped(1093677912,udg_A[105])))
call IssuePointOrderLocBJ(udg_Zf[57],"shockwave",udg_dg[57])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[57])
set udg_Zf[57]=null
call RemoveLocation(udg_dg[57])
set udg_dg[57]=null
set udg_Km[97]=GetUnitLoc(udg_A[105])
call PlaySoundAtPointBJ(udg_er,100,udg_Km[97],0)
call RemoveLocation(udg_Km[97])
set udg_Km[97]=null
set udg_A[105]=null
set udg_H[35]=0.00
endfunction
function yt8 takes nothing returns nothing
set udg_a3=CreateTrigger()
call TriggerAddCondition(udg_a3,Condition(function yr8))
call TriggerAddAction(udg_a3,function ys8)
endfunction
function yu8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677900))then
return false
endif
return true
endfunction
function yv8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function yw8 takes nothing returns nothing
set udg_A[106]=GetTriggerUnit()
set udg_H[37]=0.00
set udg_dg[58]=GetUnitLoc(udg_A[106])
set udg_b[37]=1
loop
exitwhen udg_b[37]>6
set udg_H[37]=(udg_H[37]+60.00)
set udg_dg[59]=PG(udg_dg[58],300.00,udg_H[37])
call CreateNUnitsAtLocFacingLocBJ(1,1966092338,GetOwningPlayer(udg_A[106]),udg_dg[58],udg_dg[58])
set udg_Zf[59]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_Zf[59],1100.00,1100.00,1100.00)
call UnitAddAbilityBJ(1093678388,udg_Zf[59])
call SetUnitAbilityLevelSwapped(1093678388,udg_Zf[59],GetUnitAbilityLevelSwapped(1093677900,udg_A[106]))
call IssuePointOrderLocBJ(udg_Zf[59],"shockwave",udg_dg[59])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_Zf[59])
call RemoveLocation(udg_dg[59])
set udg_dg[59]=null
set udg_Zf[59]=null
set udg_b[37]=udg_b[37]+1
endloop
call UG(1000.00,udg_dg[58],function yv8)
set udg_Km[98]=GetUnitLoc(udg_A[106])
call PlaySoundAtPointBJ(udg_fr,100,udg_Km[98],0)
call RemoveLocation(udg_Km[98])
set udg_Km[98]=null
set udg_A[106]=null
set udg_H[37]=0.00
call RemoveLocation(udg_dg[58])
set udg_dg[58]=null
endfunction
function yx8 takes nothing returns nothing
set udg_B3=CreateTrigger()
call TriggerAddCondition(udg_B3,Condition(function yu8))
call TriggerAddAction(udg_B3,function yw8)
endfunction
function yy8 takes nothing returns boolean
if((udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==true))then
return true
endif
if((UnitHasBuffBJ(GetSpellTargetUnit(),1110454324)==true))then
return true
endif
return false
endfunction
function yz8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678169))then
return false
endif
if(not yy8())then
return false
endif
return true
endfunction
function yA8 takes nothing returns nothing
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot use that ability yet|r")
endfunction
function ya8 takes nothing returns nothing
set udg_b3=CreateTrigger()
call TriggerAddCondition(udg_b3,Condition(function yz8))
call TriggerAddAction(udg_b3,function yA8)
endfunction
function yB8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093678169))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetOwningPlayer(GetSpellTargetUnit()))]==false))then
return false
endif
return true
endfunction
function yb8 takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function yC8 takes nothing returns boolean
if((RectContainsLoc(udg_sn,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_An,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_jo,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_ko,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_mo,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_no,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_oo,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_po,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_qo,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_ro,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_so,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_Ro,udg_B[68])==true))then
return true
endif
if((RectContainsLoc(udg_So,udg_B[68])==true))then
return true
endif
return false
endfunction
function yc8 takes nothing returns boolean
if(not yC8())then
return false
endif
return true
endfunction
function yD8 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(udg_A[107]!=udg_x))then
return false
endif
if(not(udg_A[107]!=udg_y))then
return false
endif
return true
endfunction
function yE8 takes nothing returns boolean
if(not yD8())then
return false
endif
return true
endfunction
function y38 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function yF8 takes nothing returns nothing
set udg_A[107]=GetTriggerUnit()
set udg_a[67]=GetSpellTargetUnit()
set udg_B[67]=GetUnitLoc(udg_a[67])
set udg_c[67]=AngleBetweenPoints(GetUnitLoc(udg_A[107]),udg_B[67])
set udg_B[68]=PG(udg_B[67],200.00,udg_c[67])
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[67]))]=true
set udg_H[68]=0.00
set udg_H[69]=0.00
set udg_N[67]=0
call SetUnitPathing(udg_A[107],false)
call SetUnitAnimation(udg_A[107],"spell")
call SetUnitTimeScalePercent(udg_A[107],30.00)
call PauseUnitBJ(true,udg_A[107])
call PauseUnitBJ(true,udg_a[67])
call SetUnitInvulnerable(udg_A[107],true)
call SetUnitInvulnerable(udg_a[67],true)
set udg_Km[99]=GetUnitLoc(udg_A[107])
call PlaySoundAtPointBJ(udg_gr,100,udg_Km[99],0)
call RemoveLocation(udg_Km[99])
set udg_Km[99]=null
call EnableTrigger(udg_c3)
call TriggerSleepAction(0.20)
call DisableTrigger(udg_c3)
call ShowUnitHide(udg_A[107])
set udg_b[38]=1
loop
exitwhen udg_b[38]>5
set udg_H[68]=(udg_H[68]+72.00)
call CreateNUnitsAtLoc(1,1747988551,GetOwningPlayer(udg_A[107]),udg_B[67],udg_H[68])
set udg_A[(107+udg_b[38])]=GetLastCreatedUnit()
call AddSpecialEffectTargetUnitBJ("hand right",udg_A[(107+udg_b[38])],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
call SetUnitPathing(udg_A[(107+udg_b[38])],false)
call SetUnitTimeScalePercent(udg_A[(107+udg_b[38])],50.00)
call SetUnitAnimation(udg_A[(107+udg_b[38])],"spell")
call SetUnitVertexColorBJ(udg_A[(107+udg_b[38])],100,100,100,50.00)
set udg_b[38]=udg_b[38]+1
endloop
call TriggerSleepAction(0.01)
call EnableTrigger(udg_D3)
call TriggerSleepAction(0.50)
call SetUnitInvulnerable(udg_a[67],false)
call TriggerSleepAction(0.01)
call DisableTrigger(udg_D3)
set udg_b[39]=1
loop
exitwhen udg_b[39]>5
set udg_dg[60]=GetUnitLoc(udg_A[(107+udg_b[39])])
call AddSpecialEffectLocBJ(udg_dg[60],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveUnit(udg_A[(107+udg_b[39])])
set udg_A[(107+udg_b[39])]=null
call RemoveLocation(udg_dg[60])
set udg_dg[60]=null
set udg_b[39]=udg_b[39]+1
endloop
call PauseUnitBJ(false,udg_a[67])
set udg_q4[2]=(2000.00+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_A[107],false))*(11.00*I2R(GetUnitAbilityLevelSwapped(1093678169,udg_A[107])))))
call UnitDamageTargetBJ(udg_A[107],udg_a[67],udg_q4[2],ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
set udg_dg[60]=GetUnitLoc(udg_A[107])
if(yc8())then
call UG(220.00,udg_B[68],function yb8)
call ShowUnitShow(udg_A[107])
call SetUnitVertexColorBJ(udg_A[107],100,100,100,0.00)
call SetUnitPositionLocFacingBJ(udg_A[107],udg_B[68],udg_c[67])
call AddSpecialEffectLocBJ(udg_dg[60],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call ShowUnitShow(udg_A[107])
call SetUnitVertexColorBJ(udg_A[107],100,100,100,0.00)
call SetUnitPositionLocFacingBJ(udg_A[107],udg_B[67],udg_c[67])
call AddSpecialEffectLocBJ(udg_dg[60],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endif
call RemoveLocation(udg_dg[60])
set udg_dg[60]=null
set udg_dg[60]=GetUnitLoc(udg_a[67])
call AddSpecialEffectLocBJ(udg_dg[60],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[60])
set udg_dg[60]=null
call AddSpecialEffectTargetUnitBJ("origin",udg_a[67],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_a[67],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ((I2S(R2I(udg_q4[2]))+"!"),udg_a[67],0,12.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("origin",udg_a[67],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_l[GetConvertedPlayerId(GetOwningPlayer(udg_a[67]))]=false
call TriggerSleepAction(0.50)
call PauseUnitBJ(false,udg_A[107])
call SetUnitInvulnerable(udg_A[107],false)
call SetUnitPathing(udg_A[107],true)
call SetUnitTimeScalePercent(udg_A[107],100.00)
call SetUnitAnimation(udg_A[107],"stand ready")
call SelectUnitForPlayerSingle(udg_A[107],GetOwningPlayer(udg_A[107]))
if(yE8())then
call PauseUnitBJ(true,udg_A[107])
else
call DoNothing()
endif
set udg_A[107]=null
set udg_a[67]=null
set udg_c[67]=0.00
set udg_H[68]=0.00
set udg_N[67]=0
set udg_H[69]=0.00
call RemoveLocation(udg_B[67])
call RemoveLocation(udg_B[68])
set udg_B[67]=null
set udg_B[68]=null
set udg_eg[60]=g6(1747988551)
call ForGroupBJ(udg_eg[60],function y38)
call DestroyGroup(udg_eg[60])
set udg_eg[60]=null
endfunction
function yG8 takes nothing returns nothing
set udg_C3=CreateTrigger()
call TriggerAddCondition(udg_C3,Condition(function yB8))
call TriggerAddAction(udg_C3,function yF8)
endfunction
function y68 takes nothing returns boolean
if((RectContainsUnit(udg_sn,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_An,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_vo,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_xo,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_jo,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_ko,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_mo,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_no,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_oo,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_po,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_qo,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_ro,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_so,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_Ro,udg_A[107])==true))then
return true
endif
if((RectContainsUnit(udg_So,udg_A[107])==true))then
return true
endif
return false
endfunction
function yH8 takes nothing returns boolean
if(not y68())then
return false
endif
return true
endfunction
function yI8 takes nothing returns boolean
if(not(udg_N[67]==10))then
return false
endif
return true
endfunction
function yl8 takes nothing returns nothing
set udg_N[67]=(udg_N[67]+1)
if(yH8())then
set udg_dg[60]=PG(GetUnitLoc(udg_A[107]),-9.00,udg_c[67])
call SetUnitPositionLoc(udg_A[107],udg_dg[60])
call RemoveLocation(udg_dg[60])
set udg_dg[60]=null
call SetUnitVertexColorBJ(udg_A[107],100,100,100,(10.00*I2R(udg_N[67])))
else
call DisableTrigger(GetTriggeringTrigger())
endif
if(yI8())then
call DisableTrigger(GetTriggeringTrigger())
call ShowUnitHide(udg_A[107])
call SetUnitInvulnerable(udg_a[67],false)
else
call DoNothing()
endif
endfunction
function y18 takes nothing returns nothing
set udg_c3=CreateTrigger()
call DisableTrigger(udg_c3)
call TriggerRegisterTimerEventPeriodic(udg_c3,0.05)
call TriggerAddAction(udg_c3,function yl8)
endfunction
function yJ8 takes nothing returns nothing
set udg_H[69]=0.00
set udg_b[40]=1
loop
exitwhen udg_b[40]>5
set udg_H[69]=(udg_H[69]+72.00)
set udg_dg[60]=PG(GetUnitLoc(udg_A[(107+udg_b[40])]),30.00,udg_H[69])
call SetUnitPositionLoc(udg_A[(107+udg_b[40])],udg_dg[60])
call AddSpecialEffectLocBJ(udg_dg[60],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_dg[60])
set udg_dg[60]=null
set udg_b[40]=udg_b[40]+1
endloop
call SetUnitPositionLoc(udg_a[67],udg_B[67])
set udg_H[69]=0.00
endfunction
function yK8 takes nothing returns nothing
set udg_D3=CreateTrigger()
call DisableTrigger(udg_D3)
call TriggerRegisterTimerEventPeriodic(udg_D3,0.03)
call TriggerAddAction(udg_D3,function yJ8)
endfunction
function yL8 takes nothing returns boolean
if(not(udg_cm==null))then
return false
endif
return true
endfunction
function yM8 takes nothing returns nothing
if(yL8())then
call DestroyTrigger(udg_F3)
call DestroyTrigger(udg_G3)
call DestroyTrigger(udg_H3)
call DestroyTrigger(udg_I3)
call DestroyTrigger(udg_l3)
call DestroyTrigger(udg_J3)
call DestroyTrigger(udg_K3)
call DestroyTrigger(udg_L3)
call DestroyTrigger(udg_M3)
call DestroyTrigger(udg_N3)
call DestroyTrigger(udg_O3)
call DestroyTrigger(udg_P3)
else
call TriggerRegisterUnitEvent(udg_F3,udg_cm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_H3,udg_cm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_l3,udg_cm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_K3,udg_cm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_M3,udg_cm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_N3,udg_cm,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_O3,udg_cm,EVENT_UNIT_SPELL_EFFECT)
endif
endfunction
function yN8 takes nothing returns nothing
set udg_E3=CreateTrigger()
call TriggerAddAction(udg_E3,function yM8)
endfunction
function yO8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679434))then
return false
endif
return true
endfunction
function y08 takes nothing returns nothing
set udg_jf[12]=GetTriggerUnit()
set udg_kf[6]=GetUnitLoc(udg_jf[12])
set udg_uf=null
call CreateNUnitsAtLoc(1,1848651862,GetOwningPlayer(udg_jf[12]),udg_kf[6],GetRandomDirectionDeg())
set udg_uf=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(20.00,1112820806,udg_uf)
set udg_jf[12]=null
call RemoveLocation(udg_kf[6])
set udg_kf[6]=null
call TriggerSleepAction(2)
set udg_yf=true
endfunction
function yP8 takes nothing returns nothing
set udg_F3=CreateTrigger()
call TriggerAddCondition(udg_F3,Condition(function yO8))
call TriggerAddAction(udg_F3,function y08)
endfunction
function yQ8 takes nothing returns boolean
if(not(GetDyingUnit()==udg_uf))then
return false
endif
return true
endfunction
function yR8 takes nothing returns nothing
set udg_kf[7]=GetUnitLoc(udg_uf)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_uf),udg_kf[7],bj_UNIT_FACING)
set udg_jf[13]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681463,udg_jf[13])
call IssueImmediateOrderBJ(udg_jf[13],"stomp")
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jf[13])
call AddSpecialEffectLocBJ(udg_kf[7],"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_jf[13]=null
call RemoveLocation(udg_kf[7])
set udg_kf[7]=null
set udg_uf=null
set udg_yf=false
endfunction
function yS8 takes nothing returns nothing
set udg_G3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_G3,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_G3,Condition(function yQ8))
call TriggerAddAction(udg_G3,function yR8)
endfunction
function y58 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679435))then
return false
endif
return true
endfunction
function yT8 takes nothing returns nothing
set bj_wantDestroyGroup=true
call GroupClear(udg_qf)
set udg_jf[1]=GetTriggerUnit()
set udg_kf[1]=GetUnitLoc(udg_jf[1])
set udg_kf[2]=GetSpellTargetLoc()
set udg_mf[1]=AngleBetweenPoints(udg_kf[1],udg_kf[2])
set udg_pf[1]=(110.00+(115.00*I2R(GetUnitAbilityLevelSwapped(1093679435,udg_jf[1]))))
set udg_pf[2]=0.00
set udg_of[2]=0
set udg_vf=false
call EnableTrigger(udg_I3)
call TriggerSleepAction(0.25)
call DisableTrigger(udg_I3)
set udg_vf=true
set udg_of[2]=0
call TriggerSleepAction(0.25)
call EnableTrigger(udg_I3)
call TriggerSleepAction(0.50)
set udg_jf[1]=null
set udg_mf[1]=0.00
set udg_pf[1]=0.00
set udg_pf[2]=0.00
set udg_of[2]=0
set udg_vf=false
call DisableTrigger(udg_I3)
call RemoveLocation(udg_kf[1])
set udg_kf[1]=null
call RemoveLocation(udg_kf[2])
set udg_kf[2]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_qf)
endfunction
function yU8 takes nothing returns nothing
set udg_H3=CreateTrigger()
call TriggerAddCondition(udg_H3,Condition(function y58))
call TriggerAddAction(udg_H3,function yT8)
endfunction
function yV8 takes nothing returns boolean
if(not(udg_vf==true))then
return false
endif
if(not(udg_of[2]<11))then
return false
endif
return true
endfunction
function yW8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function yX8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_jf[1]))==true)
endfunction
function yY8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function y28 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function yZ8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function y_8 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_qf)==false)
endfunction
function z48 takes nothing returns boolean
return GetBooleanAnd(yZ8(),y_8())
endfunction
function z78 takes nothing returns boolean
return GetBooleanAnd(y28(),z48())
endfunction
function z88 takes nothing returns boolean
return GetBooleanAnd(yY8(),z78())
endfunction
function z98 takes nothing returns boolean
return GetBooleanAnd(yX8(),z88())
endfunction
function zd8 takes nothing returns boolean
return GetBooleanAnd(yW8(),z98())
endfunction
function ze8 takes nothing returns nothing
set udg_tf[1]=GetEnumUnit()
call GroupAddUnitSimple(udg_tf[1],udg_qf)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_jf[1]),udg_kf[2],bj_UNIT_FACING)
set udg_jf[2]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681460,udg_jf[2])
call SetUnitAbilityLevelSwapped(1093681460,udg_jf[2],1)
call IssueTargetOrderBJ(udg_jf[2],"thunderbolt",udg_tf[1])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jf[2])
call UnitDamageTargetBJ(udg_jf[1],udg_tf[1],udg_pf[1],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",udg_tf[1],"Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_jf[2]=null
set udg_tf[1]=null
endfunction
function zf8 takes nothing returns boolean
if(not yV8())then
return false
endif
return true
endfunction
function zg8 takes nothing returns boolean
if(not(udg_vf==false))then
return false
endif
if(not(udg_of[2]<11))then
return false
endif
return true
endfunction
function zh8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function zi8 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function zj8 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function zk8 takes nothing returns boolean
if(not zg8())then
return false
endif
return true
endfunction
function zm8 takes nothing returns nothing
if(zk8())then
set udg_of[2]=(udg_of[2]+1)
call RemoveLocation(udg_kf[2])
set udg_kf[2]=null
set udg_pf[2]=(udg_pf[2]+110.00)
set udg_kf[2]=PG(udg_kf[1],udg_pf[2],udg_mf[1])
call AddSpecialEffectLocBJ(udg_kf[2],"Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1747988787,GetOwningPlayer(udg_jf[1]),udg_kf[2],udg_mf[1])
set udg_nf[udg_of[2]]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_nf[udg_of[2]],200.00)
if(zj8())then
call ForGroupBJ(d6(GetPlayableMapRect()),function zh8)
call ForForce(GetPlayersAll(),function zi8)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
if(zf8())then
set udg_of[2]=(udg_of[2]+1)
call RemoveLocation(udg_kf[2])
set udg_kf[2]=null
set udg_kf[2]=GetUnitLoc(udg_nf[udg_of[2]])
call SetUnitTimeScalePercent(udg_nf[udg_of[2]],40.00)
call UnitApplyTimedLifeBJ(0.01,1112820806,udg_nf[udg_of[2]])
call AddSpecialEffectLocBJ(udg_kf[2],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_sf=e6(177.00,udg_kf[2],Condition(function zd8))
call ForGroupBJ(udg_sf,function ze8)
set udg_nf[udg_of[2]]=null
call DestroyGroup(udg_sf)
set udg_sf=null
else
call DoNothing()
endif
endif
endfunction
function zn8 takes nothing returns nothing
set udg_I3=CreateTrigger()
call DisableTrigger(udg_I3)
call TriggerRegisterTimerEventPeriodic(udg_I3,0.03)
call TriggerAddAction(udg_I3,function zm8)
endfunction
function zo8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679427))then
return false
endif
return true
endfunction
function zp8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function zq8 takes nothing returns boolean
if(not(GetUnitTypeId(udg_jf[3])==1311780921))then
return false
endif
return true
endfunction
function zr8 takes nothing returns boolean
return(udg_r4[GetConvertedPlayerId(GetOwningPlayer(udg_jf[3]))]==true)
endfunction
function zs8 takes nothing returns boolean
if(not(udg_o4[GetConvertedPlayerId(GetOwningPlayer(udg_jf[3]))]==true))then
return false
endif
if(not(GetUnitAbilityLevelSwapped(1093677624,udg_jf[3])==0))then
return false
endif
return true
endfunction
function zt8 takes nothing returns boolean
if(not zs8())then
return false
endif
return true
endfunction
function zu8 takes nothing returns nothing
set udg_jf[3]=GetTriggerUnit()
if(zq8())then
call CreateTextTagUnitBJ("Ice Saber",udg_jf[3],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.20)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function zp8)))
set udg_Km[100]=GetUnitLoc(udg_jf[3])
call PlaySoundAtPointBJ(udg_Cq,100,udg_Km[100],0)
call RemoveLocation(udg_Km[100])
set udg_Km[100]=null
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
if(zt8())then
if(zr8())then
call UnitAddAbilityBJ(1093677624,udg_jf[3])
else
call DoNothing()
endif
else
call DoNothing()
endif
set udg_jf[3]=null
endfunction
function zv8 takes nothing returns nothing
set udg_l3=CreateTrigger()
call TriggerAddCondition(udg_l3,Condition(function zo8))
call TriggerAddAction(udg_l3,function zu8)
endfunction
function zw8 takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())==1311780946))then
return false
endif
return true
endfunction
function zx8 takes nothing returns boolean
if(not(GetRandomInt(1,100)<=20))then
return false
endif
return true
endfunction
function zy8 takes nothing returns nothing
if(zx8())then
set udg_jf[4]=GetAttacker()
set udg_jf[5]=GetAttackedUnitBJ()
set udg_kf[3]=GetUnitLoc(udg_jf[5])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_jf[4]),udg_kf[3],bj_UNIT_FACING)
set udg_jf[6]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681461,udg_jf[6])
call SetUnitAbilityLevelSwapped(1093681461,udg_jf[6],GetUnitAbilityLevelSwapped(1093679427,udg_jf[4]))
call IssueTargetOrderBJ(udg_jf[6],"frostnova",udg_jf[5])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jf[6])
set udg_jf[4]=null
set udg_jf[5]=null
set udg_jf[6]=null
call RemoveLocation(udg_kf[3])
set udg_kf[3]=null
else
call DoNothing()
endif
endfunction
function zz8 takes nothing returns nothing
set udg_J3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_J3,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_J3,Condition(function zw8))
call TriggerAddAction(udg_J3,function zy8)
endfunction
function zA8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679437))then
return false
endif
return true
endfunction
function za8 takes nothing returns nothing
set udg_jf[10]=GetTriggerUnit()
set udg_jf[43]=GetSpellTargetUnit()
set udg_kf[5]=GetUnitLoc(udg_jf[43])
set udg_mf[43]=0.00
set udg_pf[42]=(1.50+(0.50*I2R(GetUnitAbilityLevelSwapped(1093679437,udg_jf[10]))))
set udg_pf[43]=((175.00+(25.00*I2R(GetUnitAbilityLevelSwapped(1093679437,udg_jf[10]))))+(5.00*I2R(GetHeroLevel(udg_jf[10]))))
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_jf[10]),udg_kf[5],bj_UNIT_FACING)
set udg_jf[11]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681498,udg_jf[11])
call UnitApplyTimedLifeBJ((udg_pf[42]-1.00),1112820806,udg_jf[11])
set udg_jf[43]=null
set udg_jf[11]=null
set udg_rf[43]=1
loop
exitwhen udg_rf[43]>18
set udg_mf[43]=(udg_mf[43]+20.00)
set udg_kf[43]=PG(udg_kf[5],150.00,udg_mf[43])
call CreateNUnitsAtLoc(1,1747988787,GetOwningPlayer(udg_jf[10]),udg_kf[43],GetRandomDirectionDeg())
set udg_jf[11]=GetLastCreatedUnit()
call SetUnitScalePercent(udg_jf[11],88.00,88.00,88.00)
call UnitApplyTimedLifeBJ(udg_pf[42],1112820806,udg_jf[11])
set udg_jf[11]=null
call RemoveLocation(udg_kf[43])
set udg_kf[43]=null
set udg_rf[43]=udg_rf[43]+1
endloop
set udg_mf[43]=0.00
set udg_pf[43]=(udg_pf[43]*0.50)
set udg_Km[101]=GetUnitLoc(udg_jf[10])
call PlaySoundAtPointBJ(udg_bq,100,udg_Km[101],0)
call RemoveLocation(udg_Km[101])
set udg_Km[101]=null
call EnableTrigger(udg_L3)
call TriggerSleepAction(udg_pf[42])
call TriggerSleepAction(0.02)
call DisableTrigger(udg_L3)
call RemoveLocation(udg_kf[5])
set udg_kf[5]=null
set udg_jf[10]=null
set udg_jf[11]=null
set udg_pf[42]=0.00
set udg_pf[43]=0.00
endfunction
function zB8 takes nothing returns nothing
set udg_K3=CreateTrigger()
call TriggerAddCondition(udg_K3,Condition(function zA8))
call TriggerAddAction(udg_K3,function za8)
endfunction
function zb8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function zC8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_jf[10]))==true)
endfunction
function zc8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function zD8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function zE8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function z38 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function zF8 takes nothing returns boolean
return GetBooleanAnd(zE8(),z38())
endfunction
function zG8 takes nothing returns boolean
return GetBooleanAnd(zD8(),zF8())
endfunction
function z68 takes nothing returns boolean
return GetBooleanAnd(zc8(),zG8())
endfunction
function zH8 takes nothing returns boolean
return GetBooleanAnd(zC8(),z68())
endfunction
function zI8 takes nothing returns boolean
return GetBooleanAnd(zb8(),zH8())
endfunction
function zl8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_pf[43])
endfunction
function z18 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_pf[43]))then
return false
endif
return true
endfunction
function zJ8 takes nothing returns nothing
if(z18())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_pf[43]))
else
if(zl8())then
call UnitDamageTargetBJ(udg_jf[10],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
endfunction
function zK8 takes nothing returns nothing
set udg_Ki=e6(400.00,udg_kf[5],Condition(function zI8))
call ForGroupBJ(udg_Ki,function zJ8)
call DestroyGroup(udg_Ki)
set udg_Ki=null
endfunction
function zL8 takes nothing returns nothing
set udg_L3=CreateTrigger()
call DisableTrigger(udg_L3)
call TriggerRegisterTimerEventPeriodic(udg_L3,0.50)
call TriggerAddAction(udg_L3,function zK8)
endfunction
function zM8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093677395))then
return false
endif
return true
endfunction
function zN8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function zO8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function z08 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_jf[14]))==true)
endfunction
function zP8 takes nothing returns boolean
return(IsUnitHiddenBJ(GetFilterUnit())==false)
endfunction
function zQ8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function zR8 takes nothing returns boolean
return(IsUnitIllusionBJ(GetFilterUnit())==false)
endfunction
function zS8 takes nothing returns boolean
return GetBooleanAnd(zQ8(),zR8())
endfunction
function z58 takes nothing returns boolean
return GetBooleanAnd(zP8(),zS8())
endfunction
function zT8 takes nothing returns boolean
return GetBooleanAnd(z08(),z58())
endfunction
function zU8 takes nothing returns boolean
return GetBooleanAnd(zO8(),zT8())
endfunction
function zV8 takes nothing returns boolean
return GetBooleanAnd(zN8(),zU8())
endfunction
function zW8 takes nothing returns boolean
return(IsUnitGroupEmptyBJ(udg_Ji)==false)
endfunction
function zX8 takes nothing returns nothing
set udg_jf[15]=GetEnumUnit()
endfunction
function Trig_Ice_Time_Func006Func001Func002Func001002 takes nothing returns nothing
set udg_zg=GetEnumUnit()
endfunction
function zY8 takes nothing returns boolean
if(not(udg_jf[15]==null))then
return false
endif
return true
endfunction
function z28 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function zZ8 takes nothing returns boolean
return(UnitHasBuffBJ(udg_jf[15],1110454353)==true)
endfunction
function z_8 takes nothing returns boolean
return(UnitHasBuffBJ(udg_jf[15],1110454354)==true)
endfunction
function A48 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_jf[15])==true))then
return false
endif
return true
endfunction
function A78 takes nothing returns boolean
return(UnitHasBuffBJ(udg_jf[15],1110454353)==true)
endfunction
function A88 takes nothing returns boolean
return(UnitHasBuffBJ(udg_jf[15],1110454354)==true)
endfunction
function A98 takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_jf[15],1227894839)==true))then
return false
endif
return true
endfunction
function Ad8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_jf[15])<=600.00)
endfunction
function Ae8 takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,udg_jf[15])>600.00))then
return false
endif
return true
endfunction
function Af8 takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_jf[15])==true))then
return false
endif
return true
endfunction
function Ag8 takes nothing returns boolean
if(not Af8())then
return false
endif
return true
endfunction
function Ah8 takes nothing returns boolean
if(not(udg_jf[15]!=null))then
return false
endif
return true
endfunction
function Ai8 takes nothing returns nothing
set udg_jf[14]=GetTriggerUnit()
set udg_jf[15]=null
set udg_mf[2]=GetUnitFacing(udg_jf[14])
set udg_kf[8]=PG(GetUnitLoc(udg_jf[14]),150.00,udg_mf[2])
set udg_of[4]=10
set udg_rf[1]=1
loop
exitwhen udg_rf[1]>60
if(zY8())then
set udg_Ji=u6(1,e6((5.00*I2R(udg_rf[1])),udg_kf[8],Condition(function zV8)))
if(zW8())then
call ForGroupBJ(udg_Ji,function zX8)
else
call DoNothing()
endif
call DestroyGroup(udg_Ji)
set udg_Ji=null
else
call DoNothing()
endif
set udg_rf[1]=udg_rf[1]+1
endloop
call RemoveLocation(udg_kf[8])
set udg_kf[8]=null
if(Ah8())then
set udg_kf[8]=GetUnitLoc(udg_jf[15])
call AddSpecialEffectLocBJ(udg_kf[8],"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_kf[8],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_kf[8])
set udg_kf[8]=null
call CreateTextTagUnitBJ("Ice Time",udg_jf[14],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.80)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function z28)))
set udg_Km[102]=GetUnitLoc(udg_jf[14])
call PlaySoundAtPointBJ(udg_cq,100,udg_Km[102],0)
call RemoveLocation(udg_Km[102])
set udg_Km[102]=null
call TriggerSleepAction(0.01)
set udg_rf[1]=1
loop
exitwhen udg_rf[1]>10
if(A48())then
call CreateTextTagUnitBJ(I2S(udg_of[4]),udg_jf[15],0,14.00,30.00,50.00,100.00,0)
set udg_zf=GetLastCreatedTextTag()
call SetTextTagPermanentBJ(udg_zf,false)
call SetTextTagLifespanBJ(udg_zf,1.10)
if(zZ8())then
call UnitRemoveBuffBJ(1110454353,udg_jf[15])
else
call DoNothing()
endif
if(z_8())then
call UnitRemoveBuffBJ(1110454354,udg_jf[15])
else
call DoNothing()
endif
set udg_kf[8]=GetUnitLoc(udg_jf[15])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_jf[14]),udg_kf[8],bj_UNIT_FACING)
set udg_jf[16]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681461,udg_jf[16])
call SetUnitAbilityLevelSwapped(1093681461,udg_jf[16],6)
call IssueTargetOrderBJ(udg_jf[16],"frostnova",udg_jf[15])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jf[16])
set udg_jf[16]=null
call RemoveLocation(udg_kf[8])
set udg_kf[8]=null
set udg_of[4]=(udg_of[4]-1)
call TriggerSleepAction(1.00)
call DestroyTextTagBJ(udg_zf)
else
set udg_jf[15]=null
endif
set udg_rf[1]=udg_rf[1]+1
endloop
if(Ag8())then
if(A78())then
call UnitRemoveBuffBJ(1110454353,udg_jf[15])
else
call DoNothing()
endif
if(A88())then
call UnitRemoveBuffBJ(1110454354,udg_jf[15])
else
call DoNothing()
endif
call AddSpecialEffectTargetUnitBJ("origin",udg_jf[15],"Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_kf[8]=GetUnitLoc(udg_jf[15])
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_jf[14]),udg_kf[8],bj_UNIT_FACING)
set udg_jf[16]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681460,udg_jf[16])
call SetUnitAbilityLevelSwapped(1093681460,udg_jf[16],3)
call IssueTargetOrderBJ(udg_jf[16],"thunderbolt",udg_jf[15])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jf[16])
set udg_jf[16]=null
if(A98())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_jf[14]),udg_kf[8],bj_UNIT_FACING)
set udg_jf[16]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681460,udg_jf[16])
call SetUnitAbilityLevelSwapped(1093681460,udg_jf[16],3)
call IssueTargetOrderBJ(udg_jf[16],"thunderbolt",udg_jf[15])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jf[16])
set udg_jf[16]=null
else
call DoNothing()
endif
call RemoveLocation(udg_kf[8])
set udg_kf[8]=null
if(Ae8())then
call SetUnitLifeBJ(udg_jf[15],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_jf[15])-600.00))
else
if(Ad8())then
call UnitDamageTargetBJ(udg_jf[14],udg_jf[15],99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
set udg_jf[14]=null
set udg_jf[15]=null
set udg_of[4]=0
set udg_mf[2]=0.00
set udg_of[4]=10
else
call DisplayTimedTextToForce(m6(GetOwningPlayer(udg_jf[14])),4.00," |cffffcc00No valid target found|r")
set udg_jf[14]=null
set udg_jf[15]=null
set udg_of[4]=0
set udg_mf[2]=0.00
set udg_of[4]=10
endif
endfunction
function Aj8 takes nothing returns nothing
set udg_M3=CreateTrigger()
call TriggerAddCondition(udg_M3,Condition(function zM8))
call TriggerAddAction(udg_M3,function Ai8)
endfunction
function Ak8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679432))then
return false
endif
return true
endfunction
function Am8 takes nothing returns boolean
return(udg_R[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function An8 takes nothing returns nothing
set bj_wantDestroyGroup=true
call GroupClear(udg_Bf)
set udg_jf[17]=GetTriggerUnit()
set udg_kf[10]=GetUnitLoc(udg_jf[17])
set udg_of[5]=0
call PauseUnitBJ(true,udg_jf[17])
call SetUnitInvulnerable(udg_jf[17],true)
call SetUnitTimeScalePercent(udg_jf[17],75.00)
call SetUnitAnimation(udg_jf[17],"spell one")
call CreateTextTagUnitBJ("ICE AGE",udg_jf[17],0,10.00,100,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ShowTextTagForceBJ(false,GetLastCreatedTextTag(),t6(Condition(function Am8)))
set udg_Km[103]=GetUnitLoc(udg_jf[17])
call PlaySoundAtPointBJ(udg_Bq,100,udg_Km[103],0)
call RemoveLocation(udg_Km[103])
set udg_Km[103]=null
call TriggerSleepAction(0.05)
call AddSpecialEffectLocBJ(udg_kf[10],"war3mapImported\\icestomp.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,1747988789,GetOwningPlayer(udg_A[17]),udg_kf[10],GetRandomDirectionDeg())
set udg_jf[19]=GetLastCreatedUnit()
call CreateNUnitsAtLoc(1,1747988789,GetOwningPlayer(udg_A[17]),udg_kf[10],GetRandomDirectionDeg())
set udg_jf[20]=GetLastCreatedUnit()
call CreateNUnitsAtLoc(1,1747988789,GetOwningPlayer(udg_A[17]),udg_kf[10],GetRandomDirectionDeg())
set udg_jf[21]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_jf[19],30.00)
call SetUnitTimeScalePercent(udg_jf[20],60.00)
call SetUnitScalePercent(udg_jf[21],320.00,320.00,320.00)
call TriggerSleepAction(0.01)
call EnableTrigger(udg_P3)
call TriggerSleepAction(0.58)
call DisableTrigger(udg_P3)
call TriggerSleepAction(0.05)
call PauseUnitBJ(false,udg_jf[17])
call SetUnitInvulnerable(udg_jf[17],false)
call SetUnitTimeScalePercent(udg_jf[17],100.00)
call ResetUnitAnimation(udg_jf[17])
call RemoveUnit(udg_jf[19])
call RemoveUnit(udg_jf[20])
call RemoveUnit(udg_jf[21])
set udg_jf[17]=null
set udg_jf[19]=null
set udg_jf[20]=null
set udg_jf[21]=null
set udg_of[5]=0
call RemoveLocation(udg_kf[10])
set udg_kf[10]=null
set bj_wantDestroyGroup=true
call GroupClear(udg_Bf)
endfunction
function Ao8 takes nothing returns nothing
set udg_N3=CreateTrigger()
call TriggerAddCondition(udg_N3,Condition(function Ak8))
call TriggerAddAction(udg_N3,function An8)
endfunction
function Ap8 takes nothing returns boolean
if(not(GetSpellAbilityId()==1093679432))then
return false
endif
return true
endfunction
function Aq8 takes nothing returns nothing
set udg_jf[99]=GetTriggerUnit()
set udg_kf[99]=GetUnitLoc(udg_jf[99])
call TriggerSleepAction(0.30)
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_jf[99]),udg_kf[99],bj_UNIT_FACING)
set udg_jf[999]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681464,udg_jf[999])
call UnitApplyTimedLifeBJ(7.00,1112820806,udg_jf[999])
set udg_jf[999]=null
set udg_jf[99]=null
call RemoveLocation(udg_kf[99])
set udg_kf[99]=null
endfunction
function Ar8 takes nothing returns nothing
set udg_O3=CreateTrigger()
call TriggerAddCondition(udg_O3,Condition(function Ap8))
call TriggerAddAction(udg_O3,function Aq8)
endfunction
function As8 takes nothing returns boolean
if(not(udg_of[5]<4))then
return false
endif
return true
endfunction
function At8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Au8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_jf[17]))==true)
endfunction
function Av8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Aw8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Ax8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function Ay8 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_Bf)==false)
endfunction
function Az8 takes nothing returns boolean
return GetBooleanAnd(Ax8(),Ay8())
endfunction
function AA8 takes nothing returns boolean
return GetBooleanAnd(Aw8(),Az8())
endfunction
function Aa8 takes nothing returns boolean
return GetBooleanAnd(Av8(),AA8())
endfunction
function AB8 takes nothing returns boolean
return GetBooleanAnd(Au8(),Aa8())
endfunction
function Ab8 takes nothing returns boolean
return GetBooleanAnd(At8(),AB8())
endfunction
function AC8 takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_tf[2])==false))then
return false
endif
return true
endfunction
function Ac8 takes nothing returns nothing
set udg_tf[2]=GetEnumUnit()
call GroupAddUnitSimple(udg_tf[2],udg_Bf)
call UnitDamageTargetBJ(udg_jf[17],udg_tf[2],(2000.00+(20.00*(I2R(GetUnitAbilityLevelSwapped(1093679432,udg_jf[17]))*I2R(GetHeroLevel(udg_jf[17]))))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
if(AC8())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_jf[17]),udg_kf[11],bj_UNIT_FACING)
set udg_jf[18]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681460,udg_jf[18])
call SetUnitAbilityLevelSwapped(1093681460,udg_jf[18],4)
call IssueTargetOrderBJ(udg_jf[18],"thunderbolt",udg_tf[2])
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_jf[18])
set udg_jf[18]=null
else
call DoNothing()
endif
call AddSpecialEffectTargetUnitBJ("origin",udg_tf[2],"Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_tf[2]=null
endfunction
function AD8 takes nothing returns boolean
if(not(udg_of[5]<8))then
return false
endif
return true
endfunction
function AE8 takes nothing returns nothing
if(AD8())then
set udg_of[5]=(udg_of[5]+1)
set udg_rf[2]=1
loop
exitwhen udg_rf[2]>(8*udg_of[5])
set udg_of[6]=(udg_of[6]+(360/(8*udg_of[5])))
set udg_kf[11]=PG(udg_kf[10],(175.00*I2R(udg_of[5])),I2R(udg_of[6]))
call CreateNUnitsAtLoc(1,1747988788,GetOwningPlayer(udg_jf[17]),udg_kf[11],GetRandomDirectionDeg())
set udg_af=GetLastCreatedUnit()
if(As8())then
call SetUnitScalePercent(udg_af,100.00,100.00,100.00)
else
call SetUnitScalePercent(udg_af,(25.00*I2R(udg_of[5])),(25.00*I2R(udg_of[5])),(25.00*I2R(udg_of[5])))
endif
call UnitApplyTimedLifeBJ(0.50,1112820806,udg_af)
set udg_af=null
call AddSpecialEffectLocBJ(udg_kf[11],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_kf[11],"Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_Af=e6(300.00,udg_kf[11],Condition(function Ab8))
call ForGroupBJ(udg_Af,function Ac8)
call DestroyGroup(udg_Af)
set udg_Af=null
call RemoveLocation(udg_kf[11])
set udg_kf[11]=null
set udg_rf[2]=udg_rf[2]+1
endloop
call SetTerrainTypeBJ(udg_kf[10],1467182711,-1,(3+udg_of[5]),0)
set udg_of[6]=0
else
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function A38 takes nothing returns nothing
set udg_P3=CreateTrigger()
call DisableTrigger(udg_P3)
call TriggerRegisterTimerEventPeriodic(udg_P3,0.08)
call TriggerAddAction(udg_P3,function AE8)
endfunction
function AF8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="ar"))then
return true
endif
return false
endfunction
function AG8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not AF8())then
return false
endif
return true
endfunction
function A68 takes nothing returns boolean
if(not AG8())then
return false
endif
return true
endfunction
function AH8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function AI8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function Al8 takes nothing returns nothing
call SetPlayerUnitAvailableBJ(1211117905,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1429221441,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1328558130,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1429221459,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1211117619,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1328558129,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1211117620,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1160785972,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1162031160,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1430466867,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1162031410,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1429221428,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1430466865,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1329803568,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1313026099,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1211117641,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780914,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780915,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780916,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1160785969,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1160785968,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780919,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780917,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1160785970,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780918,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780920,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780921,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780948,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780947,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780949,false,GetEnumPlayer())
call SetPlayerUnitAvailableBJ(1311780952,false,GetEnumPlayer())
endfunction
function A18 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_k4=true
set udg_G4[1]=true
set udg_m4=(udg_m4+"ar")
if(AH8())then
set udg_H7=(udg_H7+"/|c007ebff1All Random|r")
else
set udg_H7=(udg_H7+"|c007ebff1All Random|r")
endif
if(AI8())then
set udg_I7=true
else
call DoNothing()
endif
call ForForce(GetPlayersAll(),function Al8)
endfunction
function AJ8 takes nothing returns nothing
set udg_Q3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_Q3,Player(0),"ar",false)
call TriggerAddCondition(udg_Q3,Condition(function A68))
call TriggerAddAction(udg_Q3,function A18)
endfunction
function AK8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="np"))then
return true
endif
return false
endfunction
function AL8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not AK8())then
return false
endif
return true
endfunction
function AM8 takes nothing returns boolean
if(not AL8())then
return false
endif
return true
endfunction
function AN8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function AO8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function A08 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[2]=true
if(AN8())then
set udg_H7=(udg_H7+"/|c007ebff1No Powerups|r")
else
set udg_H7=(udg_H7+"|c007ebff1No Powerups|r")
endif
if(AO8())then
set udg_I7=true
else
call DoNothing()
endif
call DisableTrigger(udg_KF)
set udg_m4=(udg_m4+"np")
call DestroyTrigger(udg_KF)
call DestroyTrigger(udg_LF)
endfunction
function AP8 takes nothing returns nothing
set udg_R3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_R3,Player(0),"np",false)
call TriggerAddCondition(udg_R3,Condition(function AM8))
call TriggerAddAction(udg_R3,function A08)
endfunction
function AQ8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="hs"))then
return true
endif
return false
endfunction
function AR8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not AQ8())then
return false
endif
return true
endfunction
function AS8 takes nothing returns boolean
if(not AR8())then
return false
endif
return true
endfunction
function A58 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function AT8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function AU8 takes nothing returns nothing
call DisableTrigger(udg_T3)
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[3]=true
if(A58())then
set udg_H7=(udg_H7+"/|c007ebff1Half Score|r")
else
set udg_H7=(udg_H7+"|c007ebff1Half Score|r")
endif
if(AT8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_k=(udg_k/2)
call TriggerExecute(udg_Ct)
set udg_m4=(udg_m4+"hs")
endfunction
function AV8 takes nothing returns nothing
set udg_S3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_S3,Player(0),"hs",false)
call TriggerAddCondition(udg_S3,Condition(function AS8))
call TriggerAddAction(udg_S3,function AU8)
endfunction
function AW8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="ds"))then
return true
endif
return false
endfunction
function AX8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not AW8())then
return false
endif
return true
endfunction
function AY8 takes nothing returns boolean
if(not AX8())then
return false
endif
return true
endfunction
function A28 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function AZ8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function A_8 takes nothing returns nothing
call DisableTrigger(udg_S3)
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[4]=true
if(A28())then
set udg_H7=(udg_H7+"/|c007ebff1Double Score|r")
else
set udg_H7=(udg_H7+"|c007ebff1Double Score|r")
endif
if(AZ8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_k=(udg_k*2)
call TriggerExecute(udg_Ct)
set udg_m4=(udg_m4+"ds")
endfunction
function a48 takes nothing returns nothing
set udg_T3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_T3,Player(0),"ds",false)
call TriggerAddCondition(udg_T3,Condition(function AY8))
call TriggerAddAction(udg_T3,function A_8)
endfunction
function a78 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="nd"))then
return true
endif
return false
endfunction
function a88 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not a78())then
return false
endif
return true
endfunction
function a98 takes nothing returns boolean
if(not a88())then
return false
endif
return true
endfunction
function ad8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function ae8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function af8 takes nothing returns nothing
call DestroyFogModifier(udg_lm[(24+GetConvertedPlayerId(GetEnumPlayer()))])
endfunction
function ag8 takes nothing returns nothing
call DisableTrigger(udg_X3)
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[5]=true
if(ad8())then
set udg_H7=(udg_H7+"/|c007ebff1No Duel|r")
else
set udg_H7=(udg_H7+"|c007ebff1No Duel|r")
endif
if(ae8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_T7[1]=true
set udg_m4=(udg_m4+"nd")
call ForForce(udg_M9,function af8)
call RemoveRect(udg_bn)
call RemoveRect(udg_An)
call RemoveRect(udg_an)
call RemoveRect(udg_Bn)
call DestroyTrigger(udg_Ys)
call DestroyTrigger(udg_jt)
call DestroyTrigger(udg_kt)
endfunction
function ah8 takes nothing returns nothing
set udg_U3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_U3,Player(0),"nd",false)
call TriggerAddCondition(udg_U3,Condition(function a98))
call TriggerAddAction(udg_U3,function ag8)
endfunction
function ai8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="n3"))then
return true
endif
return false
endfunction
function aj8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not ai8())then
return false
endif
return true
endfunction
function ak8 takes nothing returns boolean
if(not aj8())then
return false
endif
return true
endfunction
function am8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function an8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function ao8 takes nothing returns nothing
call DisableTrigger(udg_X3)
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[6]=true
if(am8())then
set udg_H7=(udg_H7+"/|c007ebff1No 3 vs 3 Battle|r")
else
set udg_H7=(udg_H7+"|c007ebff1No 3 vs 3 Battle|r")
endif
if(an8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_T7[3]=true
set udg_m4=(udg_m4+"n3")
call DestroyTrigger(udg_Zs)
call DestroyTrigger(udg_et)
call DestroyTrigger(udg_ft)
endfunction
function ap8 takes nothing returns nothing
set udg_V3=CreateTrigger()
call DisableTrigger(udg_V3)
call TriggerRegisterPlayerChatEvent(udg_V3,Player(0),"n3",false)
call TriggerAddCondition(udg_V3,Condition(function ak8))
call TriggerAddAction(udg_V3,function ao8)
endfunction
function aq8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="n5"))then
return true
endif
return false
endfunction
function ar8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not aq8())then
return false
endif
return true
endfunction
function as8 takes nothing returns boolean
if(not ar8())then
return false
endif
return true
endfunction
function at8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function au8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function av8 takes nothing returns nothing
call DisableTrigger(udg_X3)
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[20]=true
if(at8())then
set udg_H7=(udg_H7+"/|c007ebff1No 5 vs 5 Battle|r")
else
set udg_H7=(udg_H7+"|c007ebff1No 5 vs 5 Battle|r")
endif
if(au8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_T7[5]=true
set udg_m4=(udg_m4+"n5")
call DestroyTrigger(udg_dt)
call DestroyTrigger(udg_gt)
call DestroyTrigger(udg_ht)
call DestroyTrigger(udg_mt)
endfunction
function aw8 takes nothing returns nothing
set udg_W3=CreateTrigger()
call DisableTrigger(udg_W3)
call TriggerRegisterPlayerChatEvent(udg_W3,Player(0),"n5",false)
call TriggerAddCondition(udg_W3,Condition(function as8))
call TriggerAddAction(udg_W3,function av8)
endfunction
function ax8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="ne"))then
return true
endif
return false
endfunction
function ay8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not ax8())then
return false
endif
return true
endfunction
function az8 takes nothing returns boolean
if(not ay8())then
return false
endif
return true
endfunction
function aA8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function aa8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function aB8 takes nothing returns nothing
call DestroyFogModifier(udg_lm[(24+GetConvertedPlayerId(GetEnumPlayer()))])
call DestroyFogModifier(udg_lm[(36+GetConvertedPlayerId(GetEnumPlayer()))])
endfunction
function ab8 takes nothing returns nothing
call DisableTrigger(udg_U3)
call DisableTrigger(udg_V3)
call DisableTrigger(udg_W3)
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[7]=true
if(aA8())then
set udg_H7=(udg_H7+"/|c007ebff1No Events|r")
else
set udg_H7=(udg_H7+"|c007ebff1No Events|r")
endif
if(aa8())then
set udg_I7=true
else
call DoNothing()
endif
call ForForce(udg_M9,function aB8)
call RemoveRect(udg_bn)
call RemoveRect(udg_An)
call RemoveRect(udg_an)
call RemoveRect(udg_Bn)
call RemoveRect(udg_so)
call RemoveRect(udg_Do)
call RemoveRect(udg_Ao)
call RemoveRect(udg_ao)
call RemoveRect(udg_Bo)
call RemoveRect(udg_bo)
call RemoveRect(udg_Co)
call RemoveRect(udg_co)
call DisableTrigger(udg_Xs)
call DestroyTrigger(udg_Xs)
call DestroyTrigger(udg_Ys)
call DestroyTrigger(udg_Zs)
call DestroyTrigger(udg_dt)
call DestroyTrigger(udg_et)
call DestroyTrigger(udg_gt)
call DestroyTrigger(udg_jt)
call DestroyTrigger(udg_ft)
call DestroyTrigger(udg_ht)
call DestroyTrigger(udg_kt)
call DestroyTrigger(udg_it)
call DestroyTrigger(udg_mt)
call DestroyTrigger(udg_nt)
call DestroyTrigger(udg_ot)
call DestroyTrigger(udg_pt)
call TimerDialogDisplayBJ(false,udg_s)
set udg_T7[1]=true
set udg_T7[3]=true
set udg_T7[5]=true
set udg_m4=(udg_m4+"ne")
endfunction
function aC8 takes nothing returns nothing
set udg_X3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_X3,Player(0),"ne",false)
call TriggerAddCondition(udg_X3,Condition(function az8))
call TriggerAddAction(udg_X3,function ab8)
endfunction
function ac8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="ns"))then
return true
endif
return false
endfunction
function aD8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not ac8())then
return false
endif
return true
endfunction
function aE8 takes nothing returns boolean
if(not aD8())then
return false
endif
return true
endfunction
function a38 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function aF8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function aG8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[15]=true
if(a38())then
set udg_H7=(udg_H7+"/|c007ebff1No Swap|r")
else
set udg_H7=(udg_H7+"|c007ebff1No Swap|r")
endif
if(aF8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_a8=true
set udg_m4=(udg_m4+"ns")
call DestroyTrigger(udg_sF)
call DestroyTrigger(udg_tF)
call DestroyTrigger(udg_uF)
call DestroyTrigger(udg_vF)
endfunction
function a68 takes nothing returns nothing
set udg_Y3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_Y3,Player(0),"ns",false)
call TriggerAddCondition(udg_Y3,Condition(function aE8))
call TriggerAddAction(udg_Y3,function aG8)
endfunction
function aH8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="nr"))then
return true
endif
return false
endfunction
function aI8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not aH8())then
return false
endif
return true
endfunction
function al8 takes nothing returns boolean
if(not aI8())then
return false
endif
return true
endfunction
function a18 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function aJ8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function aK8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[8]=true
if(a18())then
set udg_H7=(udg_H7+"/|c007ebff1No Repick|r")
else
set udg_H7=(udg_H7+"|c007ebff1No Repick|r")
endif
if(aJ8())then
set udg_I7=true
else
call DoNothing()
endif
call DisableTrigger(udg_qF)
set udg_m4=(udg_m4+"nr")
call DestroyTrigger(udg_qF)
endfunction
function aL8 takes nothing returns nothing
set udg_Z3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_Z3,Player(0),"nr",false)
call TriggerAddCondition(udg_Z3,Condition(function al8))
call TriggerAddAction(udg_Z3,function aK8)
endfunction
function aM8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="fh"))then
return true
endif
return false
endfunction
function aN8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not aM8())then
return false
endif
return true
endfunction
function aO8 takes nothing returns boolean
if(not aN8())then
return false
endif
return true
endfunction
function a08 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function aP8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function aQ8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_eF)
call DisableTrigger(udg_fF)
set udg_g4=true
set udg_G4[9]=true
if(a08())then
set udg_H7=(udg_H7+"/|c007ebff1Fast Hunt|r")
else
set udg_H7=(udg_H7+"|c007ebff1Fast Hunt|r")
endif
if(aP8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_u4=3
set udg_m4=(udg_m4+"fh")
endfunction
function aR8 takes nothing returns nothing
set udg_dF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_dF,Player(0),"fh",false)
call TriggerAddCondition(udg_dF,Condition(function aO8))
call TriggerAddAction(udg_dF,function aQ8)
endfunction
function aS8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="sh"))then
return true
endif
return false
endfunction
function a58 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not aS8())then
return false
endif
return true
endfunction
function aT8 takes nothing returns boolean
if(not a58())then
return false
endif
return true
endfunction
function aU8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function aV8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function aW8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_fF)
call DisableTrigger(udg_dF)
set udg_g4=true
set udg_G4[10]=true
if(aU8())then
set udg_H7=(udg_H7+"/|c007ebff1Slow Hunt|r")
else
set udg_H7=(udg_H7+"|c007ebff1Slow Hunt|r")
endif
if(aV8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_u4=2
set udg_m4=(udg_m4+"sh")
endfunction
function aX8 takes nothing returns nothing
set udg_eF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_eF,Player(0),"sh",false)
call TriggerAddCondition(udg_eF,Condition(function aT8))
call TriggerAddAction(udg_eF,function aW8)
endfunction
function aY8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="nh"))then
return true
endif
return false
endfunction
function a28 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not aY8())then
return false
endif
return true
endfunction
function aZ8 takes nothing returns boolean
if(not a28())then
return false
endif
return true
endfunction
function a_8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function B48 takes nothing returns boolean
return(udg_I7==false)
endfunction
function B78 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_eF)
call DisableTrigger(udg_dF)
call DisableTrigger(udg_gF)
set udg_g4=true
set udg_G4[11]=true
if(a_8())then
set udg_H7=(udg_H7+"/|c007ebff1Never Hunt|r")
else
set udg_H7=(udg_H7+"|c007ebff1Never Hunt|r")
endif
if(B48())then
set udg_I7=true
else
call DoNothing()
endif
set udg_u4=1
set udg_m4=(udg_m4+"nh")
call RemoveLocation(udg_j9)
set udg_j9=null
endfunction
function B88 takes nothing returns nothing
set udg_fF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_fF,Player(0),"nh",false)
call TriggerAddCondition(udg_fF,Condition(function aZ8))
call TriggerAddAction(udg_fF,function B78)
endfunction
function B98 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="sc"))then
return true
endif
return false
endfunction
function Bd8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not B98())then
return false
endif
return true
endfunction
function Be8 takes nothing returns boolean
if(not Bd8())then
return false
endif
return true
endfunction
function Bf8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function Bg8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function Bh8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_fF)
set udg_g4=true
set udg_v4=true
set udg_G4[12]=true
call EnableTrigger(udg_JF)
if(Bf8())then
set udg_H7=(udg_H7+"/|c007ebff1Super Creep|r")
else
set udg_H7=(udg_H7+"|c007ebff1Super Creep|r")
endif
if(Bg8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_m4=(udg_m4+"sc")
endfunction
function Bi8 takes nothing returns nothing
set udg_gF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_gF,Player(0),"sc",false)
call TriggerAddCondition(udg_gF,Condition(function Be8))
call TriggerAddAction(udg_gF,function Bh8)
endfunction
function Bj8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="bh"))then
return true
endif
return false
endfunction
function Bk8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not Bj8())then
return false
endif
return true
endfunction
function Bm8 takes nothing returns boolean
if(not Bk8())then
return false
endif
return true
endfunction
function Bn8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function Bo8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function Bp8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Bq8 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"Error: 314!")
endfunction
function Br8 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function Bs8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_A4=true
set udg_G4[13]=true
if(Bn8())then
set udg_H7=(udg_H7+"/|c007ebff1Bounty Hunter|r")
else
set udg_H7=(udg_H7+"|c007ebff1Bounty Hunter|r")
endif
if(Bo8())then
set udg_I7=true
else
call DoNothing()
endif
call EnableTrigger(udg_IF)
set udg_m4=(udg_m4+"bh")
if(Br8())then
call ForGroupBJ(d6(GetPlayableMapRect()),function Bp8)
call ForForce(GetPlayersAll(),function Bq8)
else
call DoNothing()
endif
endfunction
function Bt8 takes nothing returns nothing
set udg_hF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_hF,Player(0),"bh",false)
call TriggerAddCondition(udg_hF,Condition(function Bm8))
call TriggerAddAction(udg_hF,function Bs8)
endfunction
function Bu8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="nf"))then
return true
endif
return false
endfunction
function Bv8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not Bu8())then
return false
endif
return true
endfunction
function Bw8 takes nothing returns boolean
if(not Bv8())then
return false
endif
return true
endfunction
function Bx8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function By8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function Bz8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[14]=true
if(Bx8())then
set udg_H7=(udg_H7+"/|c007ebff1No Fountain|r")
else
set udg_H7=(udg_H7+"|c007ebff1No Fountain|r")
endif
if(By8())then
set udg_I7=true
else
call DoNothing()
endif
call UnitRemoveAbilityBJ(1094938226,udg_mG)
call UnitRemoveAbilityBJ(1095660133,udg_mG)
set udg_cd=GetUnitLoc(udg_mG)
call AddSpecialEffectLocBJ(udg_cd,"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_cd)
set udg_cd=null
call ShowUnitHide(udg_mG)
set udg_m4=(udg_m4+"nf")
endfunction
function BA8 takes nothing returns nothing
set udg_iF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_iF,Player(0),"nf",false)
call TriggerAddCondition(udg_iF,Condition(function Bw8))
call TriggerAddAction(udg_iF,function Bz8)
endfunction
function Ba8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="nw"))then
return true
endif
return false
endfunction
function BB8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not Ba8())then
return false
endif
return true
endfunction
function Bb8 takes nothing returns boolean
if(not BB8())then
return false
endif
return true
endfunction
function BC8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function Bc8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function BD8 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function BE8 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function B38 takes nothing returns boolean
return(IsUnitAliveBJ(udg_A7)==true)
endfunction
function BF8 takes nothing returns nothing
call DestroyFogModifier(udg_lm[(48+GetConvertedPlayerId(GetEnumPlayer()))])
endfunction
function BG8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[16]=true
if(BC8())then
set udg_H7=(udg_H7+"/|c007ebff1No Waygates|r")
else
set udg_H7=(udg_H7+"|c007ebff1No Waygates|r")
endif
if(Bc8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_Dd=g6(1853319028)
call ForGroupBJ(udg_Dd,function BD8)
call DestroyGroup(udg_Dd)
set udg_Dd=null
set udg_Dd=g6(1852204911)
call ForGroupBJ(udg_Dd,function BE8)
call DestroyGroup(udg_Dd)
set udg_Dd=null
if(B38())then
call RemoveUnit(udg_A7)
else
call DoNothing()
endif
set udg_A7=null
call RemoveItem(udg_oG)
call KillUnit(udg_BG)
set udg_m4=(udg_m4+"nw")
call ForForce(udg_M9,function BF8)
call DestroyTrigger(udg_wt)
call DestroyTrigger(udg_xt)
call DestroyTrigger(udg_yt)
call DestroyTrigger(udg_zt)
call DestroyTrigger(udg_At)
call DestroyTrigger(udg_at)
call DestroyTrigger(udg_Mt)
call DestroyTrigger(udg_Nt)
call DestroyTrigger(udg_Ot)
call DestroyTrigger(udg_Pt)
call DestroyTrigger(udg_Qt)
call DestroyTrigger(udg_Rt)
call DestroyTrigger(udg_St)
call DestroyTrigger(udg_Tt)
call DestroyTrigger(udg_Ut)
call DestroyTrigger(udg_Vt)
call DestroyTrigger(udg_Wt)
call DestroyTrigger(udg_Xt)
call DestroyTrigger(udg_Yt)
call DestroyTrigger(udg_Zt)
call DestroyTrigger(udg_ju)
call DestroyTrigger(udg_ku)
call DestroyTrigger(udg_mu)
call DestroyTrigger(udg_nu)
call DestroyTrigger(udg_ou)
call DestroyTrigger(udg_pu)
call DestroyTrigger(udg_qu)
call DestroyTrigger(udg_ru)
call DestroyTrigger(udg_su)
endfunction
function B68 takes nothing returns nothing
set udg_jF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_jF,Player(0),"nw",false)
call TriggerAddCondition(udg_jF,Condition(function Bb8))
call TriggerAddAction(udg_jF,function BG8)
endfunction
function BH8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="bo"))then
return true
endif
return false
endfunction
function BI8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not BH8())then
return false
endif
return true
endfunction
function Bl8 takes nothing returns boolean
if(not BI8())then
return false
endif
return true
endfunction
function B18 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function BJ8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function BK8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_mF)
set udg_g4=true
set udg_G4[17]=true
if(B18())then
set udg_H7=(udg_H7+"/|c007ebff1Bleach Only|r")
else
set udg_H7=(udg_H7+"|c007ebff1Bleach Only|r")
endif
if(BJ8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_Ed=GetUnitLoc(udg_XF)
call AddSpecialEffectLocBJ(udg_Ed,"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_Ed)
set udg_Ed=null
call KillUnit(udg_XF)
set udg_Ed=GetUnitLoc(udg_uG)
call AddSpecialEffectLocBJ(udg_Ed,"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_Ed)
set udg_Ed=null
call KillUnit(udg_uG)
call GroupRemoveGroup(g6(1433168227),udg_i4)
call GroupRemoveGroup(g6(1432646245),udg_i4)
set udg_m4=(udg_m4+"bo")
endfunction
function BL8 takes nothing returns nothing
set udg_kF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_kF,Player(0),"bo",false)
call TriggerAddCondition(udg_kF,Condition(function Bl8))
call TriggerAddAction(udg_kF,function BK8)
endfunction
function BM8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="oo"))then
return true
endif
return false
endfunction
function BN8 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not BM8())then
return false
endif
return true
endfunction
function BO8 takes nothing returns boolean
if(not BN8())then
return false
endif
return true
endfunction
function B08 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function BP8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function BQ8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_kF)
set udg_g4=true
set udg_G4[18]=true
if(B08())then
set udg_H7=(udg_H7+"/|c007ebff1One Piece Only|r")
else
set udg_H7=(udg_H7+"|c007ebff1One Piece Only|r")
endif
if(BP8())then
set udg_I7=true
else
call DoNothing()
endif
set udg_Ed=GetUnitLoc(udg_VF)
call AddSpecialEffectLocBJ(udg_Ed,"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_Ed)
set udg_Ed=null
call KillUnit(udg_VF)
set udg_Ed=GetUnitLoc(udg_tG)
call AddSpecialEffectLocBJ(udg_Ed,"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call RemoveLocation(udg_Ed)
set udg_Ed=null
call KillUnit(udg_tG)
call GroupRemoveGroup(g6(1432642913),udg_i4)
call GroupRemoveGroup(g6(1432646245),udg_i4)
set udg_m4=(udg_m4+"oo")
endfunction
function BR8 takes nothing returns nothing
set udg_mF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_mF,Player(0),"oo",false)
call TriggerAddCondition(udg_mF,Condition(function BO8))
call TriggerAddAction(udg_mF,function BQ8)
endfunction
function BS8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="so"))then
return true
endif
return false
endfunction
function B58 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not BS8())then
return false
endif
return true
endfunction
function BT8 takes nothing returns boolean
if(not B58())then
return false
endif
return true
endfunction
function BU8 takes nothing returns boolean
if(not(udg_I7==true))then
return false
endif
return true
endfunction
function BV8 takes nothing returns boolean
return(udg_I7==false)
endfunction
function BW8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_g4=true
set udg_G4[19]=true
if(BU8())then
set udg_H7=(udg_H7+"/|c007ebff1Selection Off|r")
else
set udg_H7=(udg_H7+"|c007ebff1Selection Off|r")
endif
if(BV8())then
set udg_I7=true
else
call DoNothing()
endif
call EnableSelect(true,false)
set udg_m4=(udg_m4+"so")
endfunction
function BX8 takes nothing returns nothing
set udg_nF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_nF,Player(0),"so",false)
call TriggerAddCondition(udg_nF,Condition(function BT8))
call TriggerAddAction(udg_nF,function BW8)
endfunction
function BY8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="ar"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="np"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="hs"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="ds"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="nd"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="n3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="n5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="ne"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="ns"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="nr"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="fh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="sh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="nh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="sc"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="bh"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="nf"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="nw"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="bo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="oo"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,3)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),4,5)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),5,6)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),6,7)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),7,8)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),8,9)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),9,10)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),10,11)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),11,12)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),12,13)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),13,14)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),14,15)=="so"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),15,16)=="so"))then
return true
endif
return false
endfunction
function B28 takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="swaphero"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="swap"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not BY8())then
return false
endif
return true
endfunction
function BZ8 takes nothing returns boolean
if(not B28())then
return false
endif
return true
endfunction
function B_8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function b48 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function b78 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function b88 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_Q3)
call DisableTrigger(udg_R3)
call DisableTrigger(udg_S3)
call DisableTrigger(udg_T3)
call DisableTrigger(udg_U3)
call DisableTrigger(udg_V3)
call DisableTrigger(udg_W3)
call DisableTrigger(udg_X3)
call DisableTrigger(udg_Z3)
call DisableTrigger(udg_dF)
call DisableTrigger(udg_eF)
call DisableTrigger(udg_fF)
call DisableTrigger(udg_gF)
call DisableTrigger(udg_hF)
call DisableTrigger(udg_iF)
call DisableTrigger(udg_Y3)
call DisableTrigger(udg_jF)
call DisableTrigger(udg_kF)
call DisableTrigger(udg_mF)
call DisableTrigger(udg_nF)
call DisplayTextToForce(GetPlayersAll(),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" has selected"+udg_H7)))
set udg_N[799]=8
if(b78())then
call ForGroupBJ(d6(GetPlayableMapRect()),function B_8)
call ForForce(GetPlayersAll(),function b48)
else
call DoNothing()
endif
call DestroyTrigger(udg_Q3)
call DestroyTrigger(udg_R3)
call DestroyTrigger(udg_S3)
call DestroyTrigger(udg_T3)
call DestroyTrigger(udg_U3)
call DestroyTrigger(udg_V3)
call DestroyTrigger(udg_W3)
call DestroyTrigger(udg_X3)
call DestroyTrigger(udg_Y3)
call DestroyTrigger(udg_Z3)
call DestroyTrigger(udg_dF)
call DestroyTrigger(udg_eF)
call DestroyTrigger(udg_fF)
call DestroyTrigger(udg_gF)
call DestroyTrigger(udg_hF)
call DestroyTrigger(udg_iF)
call DestroyTrigger(udg_jF)
call DestroyTrigger(udg_kF)
call DestroyTrigger(udg_mF)
call DestroyTrigger(udg_nF)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function b98 takes nothing returns nothing
set udg_oF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_oF,Player(0),"-",false)
call TriggerAddCondition(udg_oF,Condition(function BZ8))
call TriggerAddAction(udg_oF,function b88)
endfunction
function bd8 takes nothing returns boolean
if(not(udg_F4[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]==null))then
return false
endif
return true
endfunction
function be8 takes nothing returns boolean
if(not bd8())then
return false
endif
return true
endfunction
function bf8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[1])
endfunction
function bg8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[2])
endfunction
function bh8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[3])
endfunction
function bi8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[4])
endfunction
function bj8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[5])
endfunction
function bk8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[6])
endfunction
function bm8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[7])
endfunction
function bn8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[8])
endfunction
function bo8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[9])
endfunction
function bp8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[10])
endfunction
function bq8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[11])
endfunction
function br8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[12])
endfunction
function bs8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[13])
endfunction
function bt8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[14])
endfunction
function bu8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[15])
endfunction
function bv8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[1])
endfunction
function bw8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[2])
endfunction
function bx8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[3])
endfunction
function by8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[4])
endfunction
function bz8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[5])
endfunction
function bA8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[6])
endfunction
function ba8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[7])
endfunction
function bB8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[8])
endfunction
function bb8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[9])
endfunction
function bC8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[10])
endfunction
function bc8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[11])
endfunction
function bD8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[12])
endfunction
function bE8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[13])
endfunction
function b38 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[14])
endfunction
function bF8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[15])
endfunction
function bG8 takes nothing returns boolean
return(GetEnumUnit()==udg_yj[1])
endfunction
function b68 takes nothing returns boolean
return(GetEnumUnit()==udg_yj[2])
endfunction
function bH8 takes nothing returns boolean
if((GetUnitTypeId(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])==1328558132))then
return true
endif
if((GetUnitTypeId(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])==1429221433))then
return true
endif
return false
endfunction
function bI8 takes nothing returns boolean
if(not bH8())then
return false
endif
return true
endfunction
function bl8 takes nothing returns nothing
call GroupRemoveUnitSimple(GetEnumUnit(),udg_i4)
if(bf8())then
call CreateNUnitsAtLoc(1,1162031160,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bg8())then
call CreateNUnitsAtLoc(1,1162031410,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bh8())then
call CreateNUnitsAtLoc(1,1211117641,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bi8())then
call CreateNUnitsAtLoc(1,1211117620,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bj8())then
call CreateNUnitsAtLoc(1,1211117619,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bk8())then
call CreateNUnitsAtLoc(1,1328558130,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bm8())then
call CreateNUnitsAtLoc(1,1328558129,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bn8())then
call CreateNUnitsAtLoc(1,1329803568,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bo8())then
call CreateNUnitsAtLoc(1,1430466867,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bp8())then
call CreateNUnitsAtLoc(1,1429221459,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bq8())then
call CreateNUnitsAtLoc(1,1429221428,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(br8())then
call CreateNUnitsAtLoc(1,1430466865,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bs8())then
call CreateNUnitsAtLoc(1,1160785972,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bt8())then
call CreateNUnitsAtLoc(1,1211117905,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bu8())then
call CreateNUnitsAtLoc(1,1429221441,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bv8())then
call CreateNUnitsAtLoc(1,1311780921,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bw8())then
call CreateNUnitsAtLoc(1,1311780914,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bx8())then
call CreateNUnitsAtLoc(1,1311780918,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(by8())then
call CreateNUnitsAtLoc(1,1311780948,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bz8())then
call CreateNUnitsAtLoc(1,1311780915,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bA8())then
call CreateNUnitsAtLoc(1,1311780947,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(ba8())then
call CreateNUnitsAtLoc(1,1311780919,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bB8())then
call CreateNUnitsAtLoc(1,1311780916,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bb8())then
call CreateNUnitsAtLoc(1,1311780917,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bC8())then
call CreateNUnitsAtLoc(1,1311780920,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bc8())then
call CreateNUnitsAtLoc(1,1160785968,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bD8())then
call CreateNUnitsAtLoc(1,1160785970,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bE8())then
call CreateNUnitsAtLoc(1,1160785969,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(b38())then
call CreateNUnitsAtLoc(1,1311780949,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bF8())then
call CreateNUnitsAtLoc(1,1311780952,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bG8())then
call CreateNUnitsAtLoc(1,1328558132,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
if(b68())then
call CreateNUnitsAtLoc(1,1429221433,GetTriggerPlayer(),udg_Gd,bj_UNIT_FACING)
else
call DoNothing()
endif
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedUnit()
call RemoveUnit(GetEnumUnit())
call RemoveUnitFromAllStock(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]))
if(bI8())then
call DisplayTimedTextToForce(s6(GetTriggerPlayer()),12.00,(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" has randomed "+("|c0015B9F7"+(GetHeroProperName(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])+"|r")))))
else
call DisplayTimedTextToForce(s6(GetTriggerPlayer()),12.00,(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" has randomed "+GetHeroProperName(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]))))
endif
endfunction
function b18 takes nothing returns nothing
call SetPlayerUnitAvailableBJ(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),false,GetEnumPlayer())
endfunction
function bJ8 takes nothing returns nothing
set udg_F4[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_Gd=GetRectCenter(udg_to)
set udg_Fd=u6(1,udg_i4)
call ForGroupBJ(udg_Fd,function bl8)
call RemoveLocation(udg_Gd)
set udg_Gd=null
call DestroyGroup(udg_Fd)
set udg_Fd=null
call TriggerExecute(udg_Ct)
call ForForce(GetPlayersAll(),function b18)
call SetPlayerUnitAvailableBJ(1211117905,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1429221441,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1328558130,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1429221459,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1211117619,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1328558129,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1211117620,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1160785972,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1162031160,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1430466867,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1162031410,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1429221428,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1430466865,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1329803568,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1313026099,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1211117641,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780914,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780915,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780916,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1160785969,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1160785968,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780919,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780917,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1160785970,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780918,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780920,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780921,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780948,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780947,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780949,false,GetTriggerPlayer())
call SetPlayerUnitAvailableBJ(1311780952,false,GetTriggerPlayer())
endfunction
function bK8 takes nothing returns nothing
set udg_pF=CreateTrigger()
call DisableTrigger(udg_pF)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(0),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(1),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(2),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(3),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(4),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(5),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(6),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(7),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(8),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(9),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(10),"-random",true)
call TriggerRegisterPlayerChatEvent(udg_pF,Player(11),"-random",true)
call TriggerAddCondition(udg_pF,Condition(function be8))
call TriggerAddAction(udg_pF,function bJ8)
endfunction
function bL8 takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=null))then
return false
endif
if(not(udg_y4[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
return true
endfunction
function bM8 takes nothing returns boolean
if(not bL8())then
return false
endif
return true
endfunction
function bN8 takes nothing returns boolean
return(udg_F4[GetConvertedPlayerId(GetTriggerPlayer())]==false)
endfunction
function bO8 takes nothing returns boolean
return(udg_F4[GetConvertedPlayerId(GetTriggerPlayer())]==true)
endfunction
function b08 takes nothing returns boolean
return(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)<500)
endfunction
function bP8 takes nothing returns boolean
return GetBooleanAnd(bO8(),b08())
endfunction
function bQ8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[1])
endfunction
function bR8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[2])
endfunction
function bS8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[3])
endfunction
function b58 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[4])
endfunction
function bT8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[5])
endfunction
function bU8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[6])
endfunction
function bV8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[7])
endfunction
function bW8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[8])
endfunction
function bX8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[9])
endfunction
function bY8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[10])
endfunction
function b28 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[11])
endfunction
function bZ8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[12])
endfunction
function b_8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[13])
endfunction
function C48 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[14])
endfunction
function C78 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[15])
endfunction
function C88 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[1])
endfunction
function C98 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[2])
endfunction
function Cd8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[3])
endfunction
function Ce8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[4])
endfunction
function Cf8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[5])
endfunction
function Cg8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[6])
endfunction
function Ch8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[7])
endfunction
function Ci8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[8])
endfunction
function Cj8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[9])
endfunction
function Ck8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[10])
endfunction
function Cm8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[11])
endfunction
function Cn8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[12])
endfunction
function Co8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[13])
endfunction
function Cp8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[14])
endfunction
function Cq8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[15])
endfunction
function Cr8 takes nothing returns boolean
return(GetEnumUnit()==udg_yj[1])
endfunction
function Cs8 takes nothing returns boolean
return(GetEnumUnit()==udg_yj[2])
endfunction
function Ct8 takes nothing returns boolean
if((GetUnitTypeId(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])==1328558132))then
return true
endif
if((GetUnitTypeId(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])==1429221433))then
return true
endif
return false
endfunction
function Cu8 takes nothing returns boolean
if(not Ct8())then
return false
endif
return true
endfunction
function Cv8 takes nothing returns nothing
call GroupRemoveUnitSimple(GetEnumUnit(),udg_i4)
if(bQ8())then
call CreateNUnitsAtLoc(1,1162031160,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bR8())then
call CreateNUnitsAtLoc(1,1162031410,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bS8())then
call CreateNUnitsAtLoc(1,1211117641,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(b58())then
call CreateNUnitsAtLoc(1,1211117620,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bT8())then
call CreateNUnitsAtLoc(1,1211117619,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bU8())then
call CreateNUnitsAtLoc(1,1328558130,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bV8())then
call CreateNUnitsAtLoc(1,1328558129,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bW8())then
call CreateNUnitsAtLoc(1,1329803568,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bX8())then
call CreateNUnitsAtLoc(1,1430466867,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bY8())then
call CreateNUnitsAtLoc(1,1429221459,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(b28())then
call CreateNUnitsAtLoc(1,1429221428,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(bZ8())then
call CreateNUnitsAtLoc(1,1430466865,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(b_8())then
call CreateNUnitsAtLoc(1,1160785972,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(C48())then
call CreateNUnitsAtLoc(1,1211117905,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(C78())then
call CreateNUnitsAtLoc(1,1429221441,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(C88())then
call CreateNUnitsAtLoc(1,1311780921,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(C98())then
call CreateNUnitsAtLoc(1,1311780914,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cd8())then
call CreateNUnitsAtLoc(1,1311780918,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Ce8())then
call CreateNUnitsAtLoc(1,1311780948,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cf8())then
call CreateNUnitsAtLoc(1,1311780915,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cg8())then
call CreateNUnitsAtLoc(1,1311780947,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Ch8())then
call CreateNUnitsAtLoc(1,1311780919,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Ci8())then
call CreateNUnitsAtLoc(1,1311780916,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cj8())then
call CreateNUnitsAtLoc(1,1311780917,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Ck8())then
call CreateNUnitsAtLoc(1,1311780920,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cm8())then
call CreateNUnitsAtLoc(1,1160785968,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cn8())then
call CreateNUnitsAtLoc(1,1160785970,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Co8())then
call CreateNUnitsAtLoc(1,1160785969,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cp8())then
call CreateNUnitsAtLoc(1,1311780949,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cq8())then
call CreateNUnitsAtLoc(1,1311780952,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cr8())then
call CreateNUnitsAtLoc(1,1328558132,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
if(Cs8())then
call CreateNUnitsAtLoc(1,1429221433,GetTriggerPlayer(),udg_Id,bj_UNIT_FACING)
else
call DoNothing()
endif
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedUnit()
call RemoveUnit(GetEnumUnit())
call RemoveUnitFromAllStock(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]))
if(Cu8())then
call DisplayTimedTextToForce(s6(GetTriggerPlayer()),12.00,(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" has repicked into "+("|c0015B9F7"+(GetHeroProperName(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])+"|r")))))
else
call DisplayTimedTextToForce(s6(GetTriggerPlayer()),12.00,(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" has repicked into "+GetHeroProperName(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]))))
endif
endfunction
function Cw8 takes nothing returns nothing
call SetPlayerUnitAvailableBJ(GetUnitTypeId(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),false,GetEnumPlayer())
endfunction
function Cx8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[1])
endfunction
function Cy8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[2])
endfunction
function Cz8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[3])
endfunction
function CA8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[4])
endfunction
function Ca8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[5])
endfunction
function CB8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[6])
endfunction
function Cb8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[7])
endfunction
function CC8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[8])
endfunction
function Cc8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[9])
endfunction
function CD8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[10])
endfunction
function CE8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[11])
endfunction
function C38 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[12])
endfunction
function CF8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[13])
endfunction
function CG8 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[14])
endfunction
function C68 takes nothing returns boolean
return(GetEnumUnit()==udg_wj[15])
endfunction
function CH8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[1])
endfunction
function CI8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[2])
endfunction
function Cl8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[3])
endfunction
function C18 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[4])
endfunction
function CJ8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[5])
endfunction
function CK8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[6])
endfunction
function CL8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[7])
endfunction
function CM8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[8])
endfunction
function CN8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[9])
endfunction
function CO8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[10])
endfunction
function C08 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[11])
endfunction
function CP8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[12])
endfunction
function CQ8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[13])
endfunction
function CR8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[14])
endfunction
function CS8 takes nothing returns boolean
return(GetEnumUnit()==udg_xj[15])
endfunction
function C58 takes nothing returns nothing
if(Cx8())then
call SetPlayerUnitAvailableBJ(1162031160,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(Cy8())then
call SetPlayerUnitAvailableBJ(1162031410,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(Cz8())then
call SetPlayerUnitAvailableBJ(1211117641,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CA8())then
call SetPlayerUnitAvailableBJ(1211117620,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(Ca8())then
call SetPlayerUnitAvailableBJ(1211117619,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CB8())then
call SetPlayerUnitAvailableBJ(1328558130,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(Cb8())then
call SetPlayerUnitAvailableBJ(1328558129,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CC8())then
call SetPlayerUnitAvailableBJ(1329803568,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(Cc8())then
call SetPlayerUnitAvailableBJ(1430466867,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CD8())then
call SetPlayerUnitAvailableBJ(1429221459,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CE8())then
call SetPlayerUnitAvailableBJ(1429221428,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(C38())then
call SetPlayerUnitAvailableBJ(1430466865,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CF8())then
call SetPlayerUnitAvailableBJ(1160785972,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CG8())then
call SetPlayerUnitAvailableBJ(1211117905,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(C68())then
call SetPlayerUnitAvailableBJ(1429221441,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CH8())then
call SetPlayerUnitAvailableBJ(1311780921,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CI8())then
call SetPlayerUnitAvailableBJ(1311780914,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(Cl8())then
call SetPlayerUnitAvailableBJ(1311780918,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(C18())then
call SetPlayerUnitAvailableBJ(1311780948,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CJ8())then
call SetPlayerUnitAvailableBJ(1311780915,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CK8())then
call SetPlayerUnitAvailableBJ(1311780947,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CL8())then
call SetPlayerUnitAvailableBJ(1311780919,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CM8())then
call SetPlayerUnitAvailableBJ(1311780916,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CN8())then
call SetPlayerUnitAvailableBJ(1311780917,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CO8())then
call SetPlayerUnitAvailableBJ(1311780920,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(C08())then
call SetPlayerUnitAvailableBJ(1160785968,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CP8())then
call SetPlayerUnitAvailableBJ(1160785970,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CQ8())then
call SetPlayerUnitAvailableBJ(1160785969,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CR8())then
call SetPlayerUnitAvailableBJ(1311780949,true,GetTriggerPlayer())
else
call DoNothing()
endif
if(CS8())then
call SetPlayerUnitAvailableBJ(1311780952,true,GetTriggerPlayer())
else
call DoNothing()
endif
endfunction
function CT8 takes nothing returns boolean
if(not(udg_k4==false))then
return false
endif
return true
endfunction
function CU8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_i4)==false))then
return false
endif
return true
endfunction
function CV8 takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)>=300))then
return false
endif
return true
endfunction
function CW8 takes nothing returns nothing
if(CV8())then
if(CU8())then
set udg_B8[GetConvertedPlayerId(GetTriggerPlayer())]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],1))
set udg_b8[GetConvertedPlayerId(GetTriggerPlayer())]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],2))
set udg_C8[GetConvertedPlayerId(GetTriggerPlayer())]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],3))
set udg_c8[GetConvertedPlayerId(GetTriggerPlayer())]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],4))
set udg_D8[GetConvertedPlayerId(GetTriggerPlayer())]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],5))
set udg_E8[GetConvertedPlayerId(GetTriggerPlayer())]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],6))
set udg_z4=1
loop
exitwhen udg_z4>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z4))
set udg_z4=udg_z4+1
endloop
call RemoveUnit(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
set udg_y4[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
if(CT8())then
if(bN8())then
call AdjustPlayerStateBJ(500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
else
if(bP8())then
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,500)
else
call DoNothing()
endif
endif
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_to),0)
call ForGroupBJ(udg_i4,function C58)
else
call AdjustPlayerStateBJ(-300,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
set udg_Id=GetRectCenter(udg_to)
set udg_Hd=u6(1,udg_i4)
call ForGroupBJ(udg_Hd,function Cv8)
call RemoveLocation(udg_Id)
set udg_Id=null
call DestroyGroup(udg_Hd)
set udg_Hd=null
call UnitAddItemByIdSwapped(udg_B8[GetConvertedPlayerId(GetTriggerPlayer())],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_b8[GetConvertedPlayerId(GetTriggerPlayer())],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_C8[GetConvertedPlayerId(GetTriggerPlayer())],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_c8[GetConvertedPlayerId(GetTriggerPlayer())],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_D8[GetConvertedPlayerId(GetTriggerPlayer())],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_E8[GetConvertedPlayerId(GetTriggerPlayer())],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
set udg_B8[GetConvertedPlayerId(GetTriggerPlayer())]=1836019566
set udg_b8[GetConvertedPlayerId(GetTriggerPlayer())]=1836019566
set udg_C8[GetConvertedPlayerId(GetTriggerPlayer())]=1836019566
set udg_c8[GetConvertedPlayerId(GetTriggerPlayer())]=1836019566
set udg_D8[GetConvertedPlayerId(GetTriggerPlayer())]=1836019566
set udg_E8[GetConvertedPlayerId(GetTriggerPlayer())]=1836019566
call TriggerExecute(udg_Ct)
call ForForce(GetPlayersAll(),function Cw8)
endif
else
call DisplayTimedTextToForce(m6(GetTriggerPlayer()),5.00,"There are no hero left to pick")
endif
else
call DisplayTimedTextToForce(m6(GetTriggerPlayer()),5.00,"Not enough gold to repick")
endif
endfunction
function CX8 takes nothing returns nothing
set udg_qF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_qF,Player(0),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(1),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(2),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(3),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(4),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(5),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(6),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(7),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(8),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(9),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(10),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_qF,Player(11),"-repick",true)
call TriggerAddCondition(udg_qF,Condition(function bM8))
call TriggerAddAction(udg_qF,function CW8)
endfunction
function CY8 takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=null))then
return false
endif
if(not(udg_y4[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
return true
endfunction
function C28 takes nothing returns boolean
if(not CY8())then
return false
endif
return true
endfunction
function CZ8 takes nothing returns nothing
call DisplayTextToForce(m6(GetTriggerPlayer()),"Too late to repick")
endfunction
function C_8 takes nothing returns nothing
set udg_rF=CreateTrigger()
call DisableTrigger(udg_rF)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(0),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(1),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(2),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(3),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(4),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(5),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(6),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(7),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(8),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(9),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(10),"-repick",true)
call TriggerRegisterPlayerChatEvent(udg_rF,Player(11),"-repick",true)
call TriggerAddCondition(udg_rF,Condition(function C28))
call TriggerAddAction(udg_rF,function CZ8)
endfunction
function c48 takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=null))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="swapall"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="swap 1"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="swap 2"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="swap 3"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="swap 4"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="swap 5"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="swap 6"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)=="swap"))then
return false
endif
return true
endfunction
function c78 takes nothing returns boolean
if(not c48())then
return false
endif
return true
endfunction
function c88 takes nothing returns boolean
if(not(IsPlayerInForce(GetTriggerPlayer(),udg_f)==true))then
return false
endif
return true
endfunction
function c98 takes nothing returns boolean
if(not(IsPlayerInForce(GetTriggerPlayer(),udg_e)==true))then
return false
endif
return true
endfunction
function cd8 takes nothing returns boolean
if(not(udg_m[udg_j8]!=null))then
return false
endif
if(not(GetOwningPlayer(udg_m[udg_j8])!=GetTriggerPlayer()))then
return false
endif
if(not(IsPlayerAlly(GetOwningPlayer(udg_m[udg_j8]),GetTriggerPlayer())==true))then
return false
endif
return true
endfunction
function ce8 takes nothing returns boolean
if(not cd8())then
return false
endif
return true
endfunction
function cf8 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),r6(GetTriggerPlayer()))==true)
endfunction
function cg8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function ch8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function ci8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=GetTriggerPlayer())
endfunction
function cj8 takes nothing returns boolean
return GetBooleanAnd(ch8(),ci8())
endfunction
function ck8 takes nothing returns boolean
return GetBooleanAnd(cg8(),cj8())
endfunction
function cm8 takes nothing returns boolean
return GetBooleanAnd(cf8(),ck8())
endfunction
function cn8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function cm8)))==false))then
return false
endif
return true
endfunction
function co8 takes nothing returns nothing
if(cn8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"TRIGSTR_1156")
set udg_j8=1
loop
exitwhen udg_j8>12
if(ce8())then
if(c98())then
call DisplayTextToForce(m6(GetTriggerPlayer()),((udg_D[udg_j8]+(I2S(udg_j8)+"|r - "))+("|cffc3dbff"+(GetHeroProperName(udg_m[udg_j8])+" |r"))))
else
if(c88())then
call DisplayTextToForce(m6(GetTriggerPlayer()),((udg_D[udg_j8]+(I2S((udg_j8-6))+"|r - "))+("|cffc3dbff"+(GetHeroProperName(udg_m[udg_j8])+" |r"))))
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
set udg_j8=udg_j8+1
endloop
call DisplayTextToForce(m6(GetTriggerPlayer()),"TRIGSTR_1295")
else
call DoNothing()
endif
endfunction
function cp8 takes nothing returns nothing
set udg_sF=CreateTrigger()
call DisableTrigger(udg_sF)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(0),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(1),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(2),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(3),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(4),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(5),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(6),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(7),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(8),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(9),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(10),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_sF,Player(11),"swap",false)
call TriggerAddCondition(udg_sF,Condition(function c78))
call TriggerAddAction(udg_sF,function co8)
endfunction
function cq8 takes nothing returns boolean
if(not(IsTriggerEnabled(udg_sF)==true))then
return false
endif
return true
endfunction
function cr8 takes nothing returns nothing
set udg_k8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_m8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_v8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_w8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_n8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_o8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_p8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_q8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_r8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_s8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_t8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_u8[GetConvertedPlayerId(GetTriggerPlayer())]=false
endfunction
function cs8 takes nothing returns nothing
set udg_tF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_tF,Player(0),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(1),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(2),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(3),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(4),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(5),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(6),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(7),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(8),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(9),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(10),"-swapcancel",true)
call TriggerRegisterPlayerChatEvent(udg_tF,Player(11),"-swapcancel",true)
call TriggerAddCondition(udg_tF,Condition(function cq8))
call TriggerAddAction(udg_tF,function cr8)
endfunction
function ct8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,8)=="swapall"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 1"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 2"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 4"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 6"))then
return true
endif
return false
endfunction
function cu8 takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=null))then
return false
endif
if(not(IsTriggerEnabled(udg_sF)==true))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not ct8())then
return false
endif
return true
endfunction
function cv8 takes nothing returns boolean
if(not cu8())then
return false
endif
return true
endfunction
function cw8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 1"))then
return false
endif
if(not(udg_m[1]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(0)))then
return false
endif
return true
endfunction
function cx8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_m8[1]==false))then
return false
endif
return true
endfunction
function cy8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_v8[1]==false))then
return false
endif
return true
endfunction
function cz8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_w8[1]==false))then
return false
endif
return true
endfunction
function cA8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_n8[1]==false))then
return false
endif
return true
endfunction
function ca8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_o8[1]==false))then
return false
endif
return true
endfunction
function cB8 takes nothing returns boolean
if(cx8())then
return true
endif
if(cy8())then
return true
endif
if(cz8())then
return true
endif
if(cA8())then
return true
endif
if(ca8())then
return true
endif
return false
endfunction
function cb8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_m8[1]==true))then
return false
endif
return true
endfunction
function cC8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_v8[1]==true))then
return false
endif
return true
endfunction
function cc8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_w8[1]==true))then
return false
endif
return true
endfunction
function cD8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_n8[1]==true))then
return false
endif
return true
endfunction
function cE8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_o8[1]==true))then
return false
endif
return true
endfunction
function c38 takes nothing returns boolean
if(cb8())then
return true
endif
if(cC8())then
return true
endif
if(cc8())then
return true
endif
if(cD8())then
return true
endif
if(cE8())then
return true
endif
return false
endfunction
function cF8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function cG8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function c68 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function cH8 takes nothing returns boolean
return GetBooleanAnd(cG8(),c68())
endfunction
function cI8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function cl8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function c18 takes nothing returns boolean
return GetBooleanAnd(cI8(),cl8())
endfunction
function cJ8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(cH8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(c18())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function cK8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function cL8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function cM8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function cN8 takes nothing returns boolean
return GetBooleanAnd(cL8(),cM8())
endfunction
function cO8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function c08 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function cP8 takes nothing returns boolean
return GetBooleanAnd(cO8(),c08())
endfunction
function cQ8 takes nothing returns nothing
set udg_m[1]=GetEnumUnit()
if(cN8())then
call SetUnitOwner(udg_A[99],Player(0),true)
else
call DoNothing()
endif
if(cP8())then
call SetUnitOwner(udg_Sf,Player(0),true)
else
call DoNothing()
endif
endfunction
function cR8 takes nothing returns boolean
if(not c38())then
return false
endif
return true
endfunction
function cS8 takes nothing returns boolean
if(not cB8())then
return false
endif
return true
endfunction
function c58 takes nothing returns boolean
if(not cw8())then
return false
endif
return true
endfunction
function cT8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 2"))then
return false
endif
if(not(udg_m[2]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(1)))then
return false
endif
return true
endfunction
function cU8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_k8[2]==false))then
return false
endif
return true
endfunction
function cV8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_v8[2]==false))then
return false
endif
return true
endfunction
function cW8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_w8[2]==false))then
return false
endif
return true
endfunction
function cX8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_n8[2]==false))then
return false
endif
return true
endfunction
function cY8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_o8[2]==false))then
return false
endif
return true
endfunction
function c28 takes nothing returns boolean
if(cU8())then
return true
endif
if(cV8())then
return true
endif
if(cW8())then
return true
endif
if(cX8())then
return true
endif
if(cY8())then
return true
endif
return false
endfunction
function cZ8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_k8[2]==true))then
return false
endif
return true
endfunction
function c_8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_v8[2]==true))then
return false
endif
return true
endfunction
function D48 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_w8[2]==true))then
return false
endif
return true
endfunction
function D78 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_n8[2]==true))then
return false
endif
return true
endfunction
function D88 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_o8[2]==true))then
return false
endif
return true
endfunction
function D98 takes nothing returns boolean
if(cZ8())then
return true
endif
if(c_8())then
return true
endif
if(D48())then
return true
endif
if(D78())then
return true
endif
if(D88())then
return true
endif
return false
endfunction
function Dd8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function De8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function Df8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Dg8 takes nothing returns boolean
return GetBooleanAnd(De8(),Df8())
endfunction
function Dh8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Di8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function Dj8 takes nothing returns boolean
return GetBooleanAnd(Dh8(),Di8())
endfunction
function Dk8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(Dg8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(Dj8())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function Dm8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Dn8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function Do8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Dp8 takes nothing returns boolean
return GetBooleanAnd(Dn8(),Do8())
endfunction
function Dq8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Dr8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function Ds8 takes nothing returns boolean
return GetBooleanAnd(Dq8(),Dr8())
endfunction
function Dt8 takes nothing returns nothing
set udg_m[2]=GetEnumUnit()
if(Dp8())then
call SetUnitOwner(udg_A[99],Player(1),true)
else
call DoNothing()
endif
if(Ds8())then
call SetUnitOwner(udg_Sf,Player(1),true)
else
call DoNothing()
endif
endfunction
function Du8 takes nothing returns boolean
if(not D98())then
return false
endif
return true
endfunction
function Dv8 takes nothing returns boolean
if(not c28())then
return false
endif
return true
endfunction
function Dw8 takes nothing returns boolean
if(not cT8())then
return false
endif
return true
endfunction
function Dx8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 3"))then
return false
endif
if(not(udg_m[3]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(2)))then
return false
endif
return true
endfunction
function Dy8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_k8[3]==false))then
return false
endif
return true
endfunction
function Dz8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_m8[3]==false))then
return false
endif
return true
endfunction
function DA8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_w8[3]==false))then
return false
endif
return true
endfunction
function Da8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_n8[3]==false))then
return false
endif
return true
endfunction
function DB8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_o8[3]==false))then
return false
endif
return true
endfunction
function Db8 takes nothing returns boolean
if(Dy8())then
return true
endif
if(Dz8())then
return true
endif
if(DA8())then
return true
endif
if(Da8())then
return true
endif
if(DB8())then
return true
endif
return false
endfunction
function DC8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_k8[3]==true))then
return false
endif
return true
endfunction
function Dc8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_m8[3]==true))then
return false
endif
return true
endfunction
function DD8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_w8[3]==true))then
return false
endif
return true
endfunction
function DE8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_n8[3]==true))then
return false
endif
return true
endfunction
function D38 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_o8[3]==true))then
return false
endif
return true
endfunction
function DF8 takes nothing returns boolean
if(DC8())then
return true
endif
if(Dc8())then
return true
endif
if(DD8())then
return true
endif
if(DE8())then
return true
endif
if(D38())then
return true
endif
return false
endfunction
function DG8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function D68 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function DH8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function DI8 takes nothing returns boolean
return GetBooleanAnd(D68(),DH8())
endfunction
function Dl8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function D18 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function DJ8 takes nothing returns boolean
return GetBooleanAnd(Dl8(),D18())
endfunction
function DK8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(DI8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(DJ8())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function DL8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function DM8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function DN8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function DO8 takes nothing returns boolean
return GetBooleanAnd(DM8(),DN8())
endfunction
function D08 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function DP8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function DQ8 takes nothing returns boolean
return GetBooleanAnd(D08(),DP8())
endfunction
function DR8 takes nothing returns nothing
set udg_m[3]=GetEnumUnit()
if(DO8())then
call SetUnitOwner(udg_A[99],Player(2),true)
else
call DoNothing()
endif
if(DQ8())then
call SetUnitOwner(udg_Sf,Player(2),true)
else
call DoNothing()
endif
endfunction
function DS8 takes nothing returns boolean
if(not DF8())then
return false
endif
return true
endfunction
function D58 takes nothing returns boolean
if(not Db8())then
return false
endif
return true
endfunction
function DT8 takes nothing returns boolean
if(not Dx8())then
return false
endif
return true
endfunction
function DU8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 4"))then
return false
endif
if(not(udg_m[4]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(3)))then
return false
endif
return true
endfunction
function DV8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_k8[4]==false))then
return false
endif
return true
endfunction
function DW8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_m8[4]==false))then
return false
endif
return true
endfunction
function DX8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_v8[4]==false))then
return false
endif
return true
endfunction
function DY8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_n8[4]==false))then
return false
endif
return true
endfunction
function D28 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_o8[4]==false))then
return false
endif
return true
endfunction
function DZ8 takes nothing returns boolean
if(DV8())then
return true
endif
if(DW8())then
return true
endif
if(DX8())then
return true
endif
if(DY8())then
return true
endif
if(D28())then
return true
endif
return false
endfunction
function D_8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_k8[4]==true))then
return false
endif
return true
endfunction
function E48 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_m8[4]==true))then
return false
endif
return true
endfunction
function E78 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_v8[4]==true))then
return false
endif
return true
endfunction
function E88 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_n8[4]==true))then
return false
endif
return true
endfunction
function E98 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_o8[4]==true))then
return false
endif
return true
endfunction
function Ed8 takes nothing returns boolean
if(D_8())then
return true
endif
if(E48())then
return true
endif
if(E78())then
return true
endif
if(E88())then
return true
endif
if(E98())then
return true
endif
return false
endfunction
function Ee8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Ef8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function Eg8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Eh8 takes nothing returns boolean
return GetBooleanAnd(Ef8(),Eg8())
endfunction
function Ei8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Ej8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function Ek8 takes nothing returns boolean
return GetBooleanAnd(Ei8(),Ej8())
endfunction
function Em8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(Eh8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(Ek8())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function En8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Eo8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function Ep8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Eq8 takes nothing returns boolean
return GetBooleanAnd(Eo8(),Ep8())
endfunction
function Er8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Es8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function Et8 takes nothing returns boolean
return GetBooleanAnd(Er8(),Es8())
endfunction
function Eu8 takes nothing returns nothing
set udg_m[4]=GetEnumUnit()
if(Eq8())then
call SetUnitOwner(udg_A[99],Player(3),true)
else
call DoNothing()
endif
if(Et8())then
call SetUnitOwner(udg_Sf,Player(3),true)
else
call DoNothing()
endif
endfunction
function Ev8 takes nothing returns boolean
if(not Ed8())then
return false
endif
return true
endfunction
function Ew8 takes nothing returns boolean
if(not DZ8())then
return false
endif
return true
endfunction
function Ex8 takes nothing returns boolean
if(not DU8())then
return false
endif
return true
endfunction
function Ey8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 5"))then
return false
endif
if(not(udg_m[5]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(4)))then
return false
endif
return true
endfunction
function Ez8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_k8[5]==false))then
return false
endif
return true
endfunction
function EA8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_m8[5]==false))then
return false
endif
return true
endfunction
function Ea8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_v8[5]==false))then
return false
endif
return true
endfunction
function EB8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_w8[5]==false))then
return false
endif
return true
endfunction
function Eb8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_o8[5]==false))then
return false
endif
return true
endfunction
function EC8 takes nothing returns boolean
if(Ez8())then
return true
endif
if(EA8())then
return true
endif
if(Ea8())then
return true
endif
if(EB8())then
return true
endif
if(Eb8())then
return true
endif
return false
endfunction
function Ec8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_k8[5]==true))then
return false
endif
return true
endfunction
function ED8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_m8[5]==true))then
return false
endif
return true
endfunction
function EE8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_v8[5]==true))then
return false
endif
return true
endfunction
function E38 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_w8[5]==true))then
return false
endif
return true
endfunction
function EF8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_o8[5]==true))then
return false
endif
return true
endfunction
function EG8 takes nothing returns boolean
if(Ec8())then
return true
endif
if(ED8())then
return true
endif
if(EE8())then
return true
endif
if(E38())then
return true
endif
if(EF8())then
return true
endif
return false
endfunction
function E68 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function EH8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function EI8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function El8 takes nothing returns boolean
return GetBooleanAnd(EH8(),EI8())
endfunction
function E18 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function EJ8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function EK8 takes nothing returns boolean
return GetBooleanAnd(E18(),EJ8())
endfunction
function EL8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(El8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(EK8())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function EM8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function EN8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function EO8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function E08 takes nothing returns boolean
return GetBooleanAnd(EN8(),EO8())
endfunction
function EP8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function EQ8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function ER8 takes nothing returns boolean
return GetBooleanAnd(EP8(),EQ8())
endfunction
function ES8 takes nothing returns nothing
set udg_m[5]=GetEnumUnit()
if(E08())then
call SetUnitOwner(udg_A[99],Player(4),true)
else
call DoNothing()
endif
if(ER8())then
call SetUnitOwner(udg_Sf,Player(4),true)
else
call DoNothing()
endif
endfunction
function E58 takes nothing returns boolean
if(not EG8())then
return false
endif
return true
endfunction
function ET8 takes nothing returns boolean
if(not EC8())then
return false
endif
return true
endfunction
function EU8 takes nothing returns boolean
if(not Ey8())then
return false
endif
return true
endfunction
function EV8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 6"))then
return false
endif
if(not(udg_m[6]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(5)))then
return false
endif
return true
endfunction
function EW8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_k8[6]==false))then
return false
endif
return true
endfunction
function EX8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_m8[6]==false))then
return false
endif
return true
endfunction
function EY8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_v8[6]==false))then
return false
endif
return true
endfunction
function E28 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_w8[6]==false))then
return false
endif
return true
endfunction
function EZ8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_n8[6]==false))then
return false
endif
return true
endfunction
function E_8 takes nothing returns boolean
if(EW8())then
return true
endif
if(EX8())then
return true
endif
if(EY8())then
return true
endif
if(E28())then
return true
endif
if(EZ8())then
return true
endif
return false
endfunction
function F48 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_k8[6]==true))then
return false
endif
return true
endfunction
function F78 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_m8[6]==true))then
return false
endif
return true
endfunction
function F88 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_v8[6]==true))then
return false
endif
return true
endfunction
function F98 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_w8[6]==true))then
return false
endif
return true
endfunction
function Fd8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_n8[6]==true))then
return false
endif
return true
endfunction
function Fe8 takes nothing returns boolean
if(F48())then
return true
endif
if(F78())then
return true
endif
if(F88())then
return true
endif
if(F98())then
return true
endif
if(Fd8())then
return true
endif
return false
endfunction
function Ff8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Fg8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function Fh8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Fi8 takes nothing returns boolean
return GetBooleanAnd(Fg8(),Fh8())
endfunction
function Fj8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Fk8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function Fm8 takes nothing returns boolean
return GetBooleanAnd(Fj8(),Fk8())
endfunction
function Fn8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(Fi8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(Fm8())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function Fo8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Fp8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function Fq8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Fr8 takes nothing returns boolean
return GetBooleanAnd(Fp8(),Fq8())
endfunction
function Fs8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Ft8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function Fu8 takes nothing returns boolean
return GetBooleanAnd(Fs8(),Ft8())
endfunction
function Fv8 takes nothing returns nothing
set udg_m[6]=GetEnumUnit()
if(Fr8())then
call SetUnitOwner(udg_A[99],Player(5),true)
else
call DoNothing()
endif
if(Fu8())then
call SetUnitOwner(udg_Sf,Player(5),true)
else
call DoNothing()
endif
endfunction
function Fw8 takes nothing returns boolean
if(not Fe8())then
return false
endif
return true
endfunction
function Fx8 takes nothing returns boolean
if(not E_8())then
return false
endif
return true
endfunction
function Fy8 takes nothing returns boolean
if(not EV8())then
return false
endif
return true
endfunction
function Fz8 takes nothing returns boolean
if(not(udg_m[udg_x8[1]]!=null))then
return false
endif
if(not(GetOwningPlayer(udg_m[udg_x8[1]])!=GetTriggerPlayer()))then
return false
endif
return true
endfunction
function FA8 takes nothing returns boolean
if(not Fz8())then
return false
endif
return true
endfunction
function Fa8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swapall"))then
return false
endif
return true
endfunction
function FB8 takes nothing returns boolean
if(not(GetPlayerController(ConvertedPlayer(udg_Cj[677]))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function Fb8 takes nothing returns nothing
if(c58())then
if(cS8())then
set udg_k8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[1]))
call DisplayTextToForce(m6(ConvertedPlayer(1)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(cR8())then
set udg_k8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_m8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_v8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_w8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_n8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_o8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[1]=false
set udg_m8[1]=false
set udg_v8[1]=false
set udg_w8[1]=false
set udg_n8[1]=false
set udg_o8[1]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[1],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[1],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(0),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[1]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function cF8)),function cJ8)
call ForGroupBJ(i6(Player(0),Condition(function cK8)),function cQ8)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[1],Player(0))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(0),GetUnitLoc(udg_m[1]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[1],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[1])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(Dw8())then
if(Dv8())then
set udg_m8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[2]))
call DisplayTextToForce(m6(ConvertedPlayer(2)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(Du8())then
set udg_k8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_m8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_v8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_w8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_n8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_o8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[2]=false
set udg_m8[2]=false
set udg_v8[2]=false
set udg_w8[2]=false
set udg_n8[2]=false
set udg_o8[2]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[2],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[2],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(1),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[2]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function Dd8)),function Dk8)
call ForGroupBJ(i6(Player(1),Condition(function Dm8)),function Dt8)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[2],Player(1))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(1),GetUnitLoc(udg_m[2]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[2],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[2])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(DT8())then
if(D58())then
set udg_v8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[3]))
call DisplayTextToForce(m6(ConvertedPlayer(3)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(DS8())then
set udg_k8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_m8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_v8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_w8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_n8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_o8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[3]=false
set udg_m8[3]=false
set udg_v8[3]=false
set udg_w8[3]=false
set udg_n8[3]=false
set udg_o8[3]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[3],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[3],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(2),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[3]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function DG8)),function DK8)
call ForGroupBJ(i6(Player(2),Condition(function DL8)),function DR8)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[3],Player(2))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(2),GetUnitLoc(udg_m[3]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[3],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[3])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(Ex8())then
if(Ew8())then
set udg_w8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[4]))
call DisplayTextToForce(m6(ConvertedPlayer(4)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(Ev8())then
set udg_k8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_m8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_v8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_w8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_n8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_o8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[4]=false
set udg_m8[4]=false
set udg_v8[4]=false
set udg_w8[4]=false
set udg_n8[4]=false
set udg_o8[4]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[4],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[4],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(3),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[4]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function Ee8)),function Em8)
call ForGroupBJ(i6(Player(3),Condition(function En8)),function Eu8)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[4],Player(3))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(3),GetUnitLoc(udg_m[4]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[4],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[4])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(EU8())then
if(ET8())then
set udg_n8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[5]))
call DisplayTextToForce(m6(ConvertedPlayer(5)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(E58())then
set udg_k8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_m8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_v8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_w8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_n8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_o8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[5]=false
set udg_m8[5]=false
set udg_v8[5]=false
set udg_w8[5]=false
set udg_n8[5]=false
set udg_o8[5]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[5],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[5],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(4),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[5]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function E68)),function EL8)
call ForGroupBJ(i6(Player(4),Condition(function EM8)),function ES8)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[5],Player(4))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(4),GetUnitLoc(udg_m[5]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[5],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[5])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(Fy8())then
if(Fx8())then
set udg_o8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[6]))
call DisplayTextToForce(m6(ConvertedPlayer(6)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(Fw8())then
set udg_k8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_m8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_v8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_w8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_n8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_o8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[6]=false
set udg_m8[6]=false
set udg_v8[6]=false
set udg_w8[6]=false
set udg_n8[6]=false
set udg_o8[6]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[6],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[6],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(5),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[6]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function Ff8)),function Fn8)
call ForGroupBJ(i6(Player(5),Condition(function Fo8)),function Fv8)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[6],Player(5))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(5),GetUnitLoc(udg_m[6]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[6],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[6])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(Fa8())then
set udg_k8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_m8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_v8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_w8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_n8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_o8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_x8[1]=1
loop
exitwhen udg_x8[1]>6
if(FA8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[udg_x8[1]]))
call DisplayTextToForce(m6(ConvertedPlayer(udg_x8[1])),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
call DoNothing()
endif
set udg_x8[1]=udg_x8[1]+1
endloop
else
call DoNothing()
endif
set udg_Cj[677]=1
loop
exitwhen udg_Cj[677]>6
if(FB8())then
call SetPlayerName(ConvertedPlayer(udg_Cj[677]),GetUnitName(udg_m[udg_Cj[677]]))
set udg_E[udg_Cj[677]]=((udg_D[udg_Cj[677]]+GetUnitName(udg_m[udg_Cj[677]]))+"|r")
else
call DoNothing()
endif
set udg_Cj[677]=udg_Cj[677]+1
endloop
call TriggerExecute(udg_Ct)
endfunction
function FC8 takes nothing returns nothing
set udg_uF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_uF,Player(0),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_uF,Player(1),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_uF,Player(2),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_uF,Player(3),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_uF,Player(4),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_uF,Player(5),"swap",false)
call TriggerAddCondition(udg_uF,Condition(function cv8))
call TriggerAddAction(udg_uF,function Fb8)
endfunction
function Fc8 takes nothing returns boolean
if((SubStringBJ(GetEventPlayerChatString(),2,8)=="swapall"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 1"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 2"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 3"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 4"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 5"))then
return true
endif
if((SubStringBJ(GetEventPlayerChatString(),2,7)=="swap 6"))then
return true
endif
return false
endfunction
function FD8 takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=null))then
return false
endif
if(not(IsTriggerEnabled(udg_sF)==true))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),1,1)=="-"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,16)!="camera autolock"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,14)!="camera normal"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,12)!="camera high"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="unstuck ok"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="camera low"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,11)!="swapcancel"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="gameinfo"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,9)!="text off"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="refresh"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="text on"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,8)!="unstuck"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="random"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,7)!="repick"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,6)!="clear"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,5)!="help"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="don"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,4)!="hhn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ma"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ms"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="rf"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="di"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ch"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cl"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="cn"))then
return false
endif
if(not(SubStringBJ(GetEventPlayerChatString(),2,3)!="ca"))then
return false
endif
if(not Fc8())then
return false
endif
return true
endfunction
function FE8 takes nothing returns boolean
if(not FD8())then
return false
endif
return true
endfunction
function F38 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 1"))then
return false
endif
if(not(udg_m[7]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(6)))then
return false
endif
return true
endfunction
function FF8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_q8[7]==false))then
return false
endif
return true
endfunction
function FG8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(8)))then
return false
endif
if(not(udg_r8[7]==false))then
return false
endif
return true
endfunction
function F68 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(9)))then
return false
endif
if(not(udg_s8[7]==false))then
return false
endif
return true
endfunction
function FH8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(10)))then
return false
endif
if(not(udg_t8[7]==false))then
return false
endif
return true
endfunction
function FI8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(11)))then
return false
endif
if(not(udg_u8[7]==false))then
return false
endif
return true
endfunction
function Fl8 takes nothing returns boolean
if(FF8())then
return true
endif
if(FG8())then
return true
endif
if(F68())then
return true
endif
if(FH8())then
return true
endif
if(FI8())then
return true
endif
return false
endfunction
function F18 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_q8[7]==true))then
return false
endif
return true
endfunction
function FJ8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(8)))then
return false
endif
if(not(udg_r8[7]==true))then
return false
endif
return true
endfunction
function FK8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(9)))then
return false
endif
if(not(udg_s8[7]==true))then
return false
endif
return true
endfunction
function FL8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(10)))then
return false
endif
if(not(udg_t8[7]==true))then
return false
endif
return true
endfunction
function FM8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(11)))then
return false
endif
if(not(udg_u8[7]==true))then
return false
endif
return true
endfunction
function FN8 takes nothing returns boolean
if(F18())then
return true
endif
if(FJ8())then
return true
endif
if(FK8())then
return true
endif
if(FL8())then
return true
endif
if(FM8())then
return true
endif
return false
endfunction
function FO8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function F08 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function FP8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function FQ8 takes nothing returns boolean
return GetBooleanAnd(F08(),FP8())
endfunction
function FR8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function FS8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function F58 takes nothing returns boolean
return GetBooleanAnd(FR8(),FS8())
endfunction
function FT8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(FQ8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(F58())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function FU8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function FV8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function FW8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function FX8 takes nothing returns boolean
return GetBooleanAnd(FV8(),FW8())
endfunction
function FY8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function F28 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function FZ8 takes nothing returns boolean
return GetBooleanAnd(FY8(),F28())
endfunction
function F_8 takes nothing returns nothing
set udg_m[7]=GetEnumUnit()
if(FX8())then
call SetUnitOwner(udg_A[99],Player(6),true)
else
call DoNothing()
endif
if(FZ8())then
call SetUnitOwner(udg_Sf,Player(6),true)
else
call DoNothing()
endif
endfunction
function G48 takes nothing returns boolean
if(not FN8())then
return false
endif
return true
endfunction
function G78 takes nothing returns boolean
if(not Fl8())then
return false
endif
return true
endfunction
function G88 takes nothing returns boolean
if(not F38())then
return false
endif
return true
endfunction
function G98 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 2"))then
return false
endif
if(not(udg_m[8]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(7)))then
return false
endif
return true
endfunction
function Gd8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_p8[8]==false))then
return false
endif
return true
endfunction
function Ge8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(8)))then
return false
endif
if(not(udg_r8[8]==false))then
return false
endif
return true
endfunction
function Gf8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(9)))then
return false
endif
if(not(udg_s8[8]==false))then
return false
endif
return true
endfunction
function Gg8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(10)))then
return false
endif
if(not(udg_t8[8]==false))then
return false
endif
return true
endfunction
function Gh8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(11)))then
return false
endif
if(not(udg_u8[8]==false))then
return false
endif
return true
endfunction
function Gi8 takes nothing returns boolean
if(Gd8())then
return true
endif
if(Ge8())then
return true
endif
if(Gf8())then
return true
endif
if(Gg8())then
return true
endif
if(Gh8())then
return true
endif
return false
endfunction
function Gj8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_p8[8]==true))then
return false
endif
return true
endfunction
function Gk8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(8)))then
return false
endif
if(not(udg_r8[8]==true))then
return false
endif
return true
endfunction
function Gm8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(9)))then
return false
endif
if(not(udg_s8[8]==true))then
return false
endif
return true
endfunction
function Gn8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(10)))then
return false
endif
if(not(udg_t8[8]==true))then
return false
endif
return true
endfunction
function Go8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(11)))then
return false
endif
if(not(udg_u8[8]==true))then
return false
endif
return true
endfunction
function Gp8 takes nothing returns boolean
if(Gj8())then
return true
endif
if(Gk8())then
return true
endif
if(Gm8())then
return true
endif
if(Gn8())then
return true
endif
if(Go8())then
return true
endif
return false
endfunction
function Gq8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Gr8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function Gs8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Gt8 takes nothing returns boolean
return GetBooleanAnd(Gr8(),Gs8())
endfunction
function Gu8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Gv8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function Gw8 takes nothing returns boolean
return GetBooleanAnd(Gu8(),Gv8())
endfunction
function Gx8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(Gt8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(Gw8())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function Gy8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Gz8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function GA8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Ga8 takes nothing returns boolean
return GetBooleanAnd(Gz8(),GA8())
endfunction
function GB8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Gb8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function GC8 takes nothing returns boolean
return GetBooleanAnd(GB8(),Gb8())
endfunction
function Gc8 takes nothing returns nothing
set udg_m[8]=GetEnumUnit()
if(Ga8())then
call SetUnitOwner(udg_A[99],Player(7),true)
else
call DoNothing()
endif
if(GC8())then
call SetUnitOwner(udg_Sf,Player(7),true)
else
call DoNothing()
endif
endfunction
function GD8 takes nothing returns boolean
if(not Gp8())then
return false
endif
return true
endfunction
function GE8 takes nothing returns boolean
if(not Gi8())then
return false
endif
return true
endfunction
function G38 takes nothing returns boolean
if(not G98())then
return false
endif
return true
endfunction
function GF8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 3"))then
return false
endif
if(not(udg_m[9]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(8)))then
return false
endif
return true
endfunction
function GG8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_p8[9]==false))then
return false
endif
return true
endfunction
function G68 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_q8[9]==false))then
return false
endif
return true
endfunction
function GH8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(9)))then
return false
endif
if(not(udg_s8[9]==false))then
return false
endif
return true
endfunction
function GI8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(10)))then
return false
endif
if(not(udg_t8[9]==false))then
return false
endif
return true
endfunction
function Gl8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(11)))then
return false
endif
if(not(udg_u8[9]==false))then
return false
endif
return true
endfunction
function G18 takes nothing returns boolean
if(GG8())then
return true
endif
if(G68())then
return true
endif
if(GH8())then
return true
endif
if(GI8())then
return true
endif
if(Gl8())then
return true
endif
return false
endfunction
function GJ8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_p8[9]==true))then
return false
endif
return true
endfunction
function GK8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_q8[9]==true))then
return false
endif
return true
endfunction
function GL8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(9)))then
return false
endif
if(not(udg_s8[9]==true))then
return false
endif
return true
endfunction
function GM8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(10)))then
return false
endif
if(not(udg_t8[9]==true))then
return false
endif
return true
endfunction
function GN8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(11)))then
return false
endif
if(not(udg_u8[9]==true))then
return false
endif
return true
endfunction
function GO8 takes nothing returns boolean
if(GJ8())then
return true
endif
if(GK8())then
return true
endif
if(GL8())then
return true
endif
if(GM8())then
return true
endif
if(GN8())then
return true
endif
return false
endfunction
function G08 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function GP8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function GQ8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function GR8 takes nothing returns boolean
return GetBooleanAnd(GP8(),GQ8())
endfunction
function GS8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function G58 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function GT8 takes nothing returns boolean
return GetBooleanAnd(GS8(),G58())
endfunction
function GU8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(GR8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(GT8())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function GV8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function GW8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function GX8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function GY8 takes nothing returns boolean
return GetBooleanAnd(GW8(),GX8())
endfunction
function G28 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function GZ8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function G_8 takes nothing returns boolean
return GetBooleanAnd(G28(),GZ8())
endfunction
function H48 takes nothing returns nothing
set udg_m[9]=GetEnumUnit()
if(GY8())then
call SetUnitOwner(udg_A[99],Player(8),true)
else
call DoNothing()
endif
if(G_8())then
call SetUnitOwner(udg_Sf,Player(8),true)
else
call DoNothing()
endif
endfunction
function H78 takes nothing returns boolean
if(not GO8())then
return false
endif
return true
endfunction
function H88 takes nothing returns boolean
if(not G18())then
return false
endif
return true
endfunction
function H98 takes nothing returns boolean
if(not GF8())then
return false
endif
return true
endfunction
function Hd8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 4"))then
return false
endif
if(not(udg_m[10]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(9)))then
return false
endif
return true
endfunction
function He8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_p8[10]==false))then
return false
endif
return true
endfunction
function Hf8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_q8[10]==false))then
return false
endif
return true
endfunction
function Hg8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(8)))then
return false
endif
if(not(udg_r8[10]==false))then
return false
endif
return true
endfunction
function Hh8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(10)))then
return false
endif
if(not(udg_t8[10]==false))then
return false
endif
return true
endfunction
function Hi8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(11)))then
return false
endif
if(not(udg_u8[10]==false))then
return false
endif
return true
endfunction
function Hj8 takes nothing returns boolean
if(He8())then
return true
endif
if(Hf8())then
return true
endif
if(Hg8())then
return true
endif
if(Hh8())then
return true
endif
if(Hi8())then
return true
endif
return false
endfunction
function Hk8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_p8[10]==true))then
return false
endif
return true
endfunction
function Hm8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_q8[10]==true))then
return false
endif
return true
endfunction
function Hn8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(8)))then
return false
endif
if(not(udg_r8[10]==true))then
return false
endif
return true
endfunction
function Ho8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(10)))then
return false
endif
if(not(udg_t8[10]==true))then
return false
endif
return true
endfunction
function Hp8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(11)))then
return false
endif
if(not(udg_u8[10]==true))then
return false
endif
return true
endfunction
function Hq8 takes nothing returns boolean
if(Hk8())then
return true
endif
if(Hm8())then
return true
endif
if(Hn8())then
return true
endif
if(Ho8())then
return true
endif
if(Hp8())then
return true
endif
return false
endfunction
function Hr8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Hs8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function Ht8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Hu8 takes nothing returns boolean
return GetBooleanAnd(Hs8(),Ht8())
endfunction
function Hv8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Hw8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function Hx8 takes nothing returns boolean
return GetBooleanAnd(Hv8(),Hw8())
endfunction
function Hy8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(Hu8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(Hx8())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function Hz8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function HA8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function Ha8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function HB8 takes nothing returns boolean
return GetBooleanAnd(HA8(),Ha8())
endfunction
function Hb8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function HC8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function Hc8 takes nothing returns boolean
return GetBooleanAnd(Hb8(),HC8())
endfunction
function HD8 takes nothing returns nothing
set udg_m[10]=GetEnumUnit()
if(HB8())then
call SetUnitOwner(udg_A[99],Player(9),true)
else
call DoNothing()
endif
if(Hc8())then
call SetUnitOwner(udg_Sf,Player(9),true)
else
call DoNothing()
endif
endfunction
function HE8 takes nothing returns boolean
if(not Hq8())then
return false
endif
return true
endfunction
function H38 takes nothing returns boolean
if(not Hj8())then
return false
endif
return true
endfunction
function HF8 takes nothing returns boolean
if(not Hd8())then
return false
endif
return true
endfunction
function HG8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 5"))then
return false
endif
if(not(udg_m[11]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(10)))then
return false
endif
return true
endfunction
function H68 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_p8[11]==false))then
return false
endif
return true
endfunction
function HH8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_q8[11]==false))then
return false
endif
return true
endfunction
function HI8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(8)))then
return false
endif
if(not(udg_r8[11]==false))then
return false
endif
return true
endfunction
function Hl8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(9)))then
return false
endif
if(not(udg_s8[11]==false))then
return false
endif
return true
endfunction
function H18 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(11)))then
return false
endif
if(not(udg_u8[11]==false))then
return false
endif
return true
endfunction
function HJ8 takes nothing returns boolean
if(H68())then
return true
endif
if(HH8())then
return true
endif
if(HI8())then
return true
endif
if(Hl8())then
return true
endif
if(H18())then
return true
endif
return false
endfunction
function HK8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_p8[11]==true))then
return false
endif
return true
endfunction
function HL8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_q8[11]==true))then
return false
endif
return true
endfunction
function HM8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(8)))then
return false
endif
if(not(udg_r8[11]==true))then
return false
endif
return true
endfunction
function HN8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(9)))then
return false
endif
if(not(udg_s8[11]==true))then
return false
endif
return true
endfunction
function HO8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(11)))then
return false
endif
if(not(udg_u8[11]==true))then
return false
endif
return true
endfunction
function H08 takes nothing returns boolean
if(HK8())then
return true
endif
if(HL8())then
return true
endif
if(HM8())then
return true
endif
if(HN8())then
return true
endif
if(HO8())then
return true
endif
return false
endfunction
function HP8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function HQ8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function HR8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function HS8 takes nothing returns boolean
return GetBooleanAnd(HQ8(),HR8())
endfunction
function H58 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function HT8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function HU8 takes nothing returns boolean
return GetBooleanAnd(H58(),HT8())
endfunction
function HV8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(HS8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(HU8())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function HW8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function HX8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function HY8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function H28 takes nothing returns boolean
return GetBooleanAnd(HX8(),HY8())
endfunction
function HZ8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function H_8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function I48 takes nothing returns boolean
return GetBooleanAnd(HZ8(),H_8())
endfunction
function I78 takes nothing returns nothing
set udg_m[11]=GetEnumUnit()
if(H28())then
call SetUnitOwner(udg_A[99],Player(10),true)
else
call DoNothing()
endif
if(I48())then
call SetUnitOwner(udg_Sf,Player(10),true)
else
call DoNothing()
endif
endfunction
function I88 takes nothing returns boolean
if(not H08())then
return false
endif
return true
endfunction
function I98 takes nothing returns boolean
if(not HJ8())then
return false
endif
return true
endfunction
function Id8 takes nothing returns boolean
if(not HG8())then
return false
endif
return true
endfunction
function Ie8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swap 6"))then
return false
endif
if(not(udg_m[12]!=null))then
return false
endif
if(not(GetTriggerPlayer()!=Player(11)))then
return false
endif
return true
endfunction
function If8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_p8[12]==false))then
return false
endif
return true
endfunction
function Ig8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_q8[12]==false))then
return false
endif
return true
endfunction
function Ih8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(8)))then
return false
endif
if(not(udg_r8[12]==false))then
return false
endif
return true
endfunction
function Ii8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(9)))then
return false
endif
if(not(udg_s8[12]==false))then
return false
endif
return true
endfunction
function Ij8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(10)))then
return false
endif
if(not(udg_t8[12]==false))then
return false
endif
return true
endfunction
function Ik8 takes nothing returns boolean
if(If8())then
return true
endif
if(Ig8())then
return true
endif
if(Ih8())then
return true
endif
if(Ii8())then
return true
endif
if(Ij8())then
return true
endif
return false
endfunction
function Im8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_p8[12]==true))then
return false
endif
return true
endfunction
function In8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_q8[12]==true))then
return false
endif
return true
endfunction
function Io8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(8)))then
return false
endif
if(not(udg_r8[12]==true))then
return false
endif
return true
endfunction
function Ip8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(9)))then
return false
endif
if(not(udg_s8[12]==true))then
return false
endif
return true
endfunction
function Iq8 takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(10)))then
return false
endif
if(not(udg_t8[12]==true))then
return false
endif
return true
endfunction
function Ir8 takes nothing returns boolean
if(Im8())then
return true
endif
if(In8())then
return true
endif
if(Io8())then
return true
endif
if(Ip8())then
return true
endif
if(Iq8())then
return true
endif
return false
endfunction
function Is8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function It8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function Iu8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Iv8 takes nothing returns boolean
return GetBooleanAnd(It8(),Iu8())
endfunction
function Iw8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Ix8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function Iy8 takes nothing returns boolean
return GetBooleanAnd(Iw8(),Ix8())
endfunction
function Iz8 takes nothing returns nothing
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=GetEnumUnit()
if(Iv8())then
call SetUnitOwner(udg_A[99],GetTriggerPlayer(),true)
else
call DoNothing()
endif
if(Iy8())then
call SetUnitOwner(udg_Sf,GetTriggerPlayer(),true)
else
call DoNothing()
endif
endfunction
function IA8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Ia8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1313026099)
endfunction
function IB8 takes nothing returns boolean
return(udg_A[99]!=null)
endfunction
function Ib8 takes nothing returns boolean
return GetBooleanAnd(Ia8(),IB8())
endfunction
function IC8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==1160785969)
endfunction
function Ic8 takes nothing returns boolean
return(udg_Sf!=null)
endfunction
function ID8 takes nothing returns boolean
return GetBooleanAnd(IC8(),Ic8())
endfunction
function IE8 takes nothing returns nothing
set udg_m[12]=GetEnumUnit()
if(Ib8())then
call SetUnitOwner(udg_A[99],Player(11),true)
else
call DoNothing()
endif
if(ID8())then
call SetUnitOwner(udg_Sf,Player(11),true)
else
call DoNothing()
endif
endfunction
function I38 takes nothing returns boolean
if(not Ir8())then
return false
endif
return true
endfunction
function IF8 takes nothing returns boolean
if(not Ik8())then
return false
endif
return true
endfunction
function IG8 takes nothing returns boolean
if(not Ie8())then
return false
endif
return true
endfunction
function I68 takes nothing returns boolean
if(not(udg_m[udg_x8[2]]!=null))then
return false
endif
if(not(GetOwningPlayer(udg_m[udg_x8[2]])!=GetTriggerPlayer()))then
return false
endif
return true
endfunction
function IH8 takes nothing returns boolean
if(not I68())then
return false
endif
return true
endfunction
function II8 takes nothing returns boolean
if(not(GetEventPlayerChatString()=="-swapall"))then
return false
endif
return true
endfunction
function Il8 takes nothing returns boolean
if(not(GetPlayerController(ConvertedPlayer(udg_Cj[678]))==MAP_CONTROL_COMPUTER))then
return false
endif
return true
endfunction
function I18 takes nothing returns nothing
if(G88())then
if(G78())then
set udg_p8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[7]))
call DisplayTextToForce(m6(ConvertedPlayer(7)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(G48())then
set udg_p8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_q8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_r8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_s8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_t8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_u8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[7]=false
set udg_m8[7]=false
set udg_v8[7]=false
set udg_w8[7]=false
set udg_n8[7]=false
set udg_o8[7]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[7],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[7],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(6),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[7]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function FO8)),function FT8)
call ForGroupBJ(i6(Player(6),Condition(function FU8)),function F_8)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[7],Player(6))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(6),GetUnitLoc(udg_m[7]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[7],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[7])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(G38())then
if(GE8())then
set udg_q8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[8]))
call DisplayTextToForce(m6(ConvertedPlayer(8)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(GD8())then
set udg_p8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_q8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_r8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_s8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_t8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_u8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[8]=false
set udg_m8[8]=false
set udg_v8[8]=false
set udg_w8[8]=false
set udg_n8[8]=false
set udg_o8[8]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[8],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[8],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(7),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[8]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function Gq8)),function Gx8)
call ForGroupBJ(i6(Player(7),Condition(function Gy8)),function Gc8)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[8],Player(7))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(7),GetUnitLoc(udg_m[8]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[8],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[8])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(H98())then
if(H88())then
set udg_r8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[9]))
call DisplayTextToForce(m6(ConvertedPlayer(9)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(H78())then
set udg_p8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_q8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_r8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_s8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_t8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_u8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[9]=false
set udg_m8[9]=false
set udg_v8[9]=false
set udg_w8[9]=false
set udg_n8[9]=false
set udg_o8[9]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[9],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[9],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(8),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[9]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function G08)),function GU8)
call ForGroupBJ(i6(Player(8),Condition(function GV8)),function H48)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[9],Player(8))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(8),GetUnitLoc(udg_m[9]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[9],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[9])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(HF8())then
if(H38())then
set udg_s8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[10]))
call DisplayTextToForce(m6(ConvertedPlayer(10)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(HE8())then
set udg_p8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_q8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_r8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_s8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_t8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_u8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[10]=false
set udg_m8[10]=false
set udg_v8[10]=false
set udg_w8[10]=false
set udg_n8[10]=false
set udg_o8[10]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[10],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[10],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(9),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[10]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function Hr8)),function Hy8)
call ForGroupBJ(i6(Player(9),Condition(function Hz8)),function HD8)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[10],Player(9))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(9),GetUnitLoc(udg_m[10]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[10],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[10])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(Id8())then
if(I98())then
set udg_t8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[11]))
call DisplayTextToForce(m6(ConvertedPlayer(11)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(I88())then
set udg_p8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_q8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_r8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_s8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_t8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_u8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[11]=false
set udg_m8[11]=false
set udg_v8[11]=false
set udg_w8[11]=false
set udg_n8[11]=false
set udg_o8[11]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[11],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[11],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(10),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[11]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function HP8)),function HV8)
call ForGroupBJ(i6(Player(10),Condition(function HW8)),function I78)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[11],Player(10))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(10),GetUnitLoc(udg_m[11]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[11],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[11])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(IG8())then
if(IF8())then
set udg_u8[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[12]))
call DisplayTextToForce(m6(ConvertedPlayer(12)),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
if(I38())then
set udg_p8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_q8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_r8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_s8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_t8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_u8[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_k8[12]=false
set udg_m8[12]=false
set udg_v8[12]=false
set udg_w8[12]=false
set udg_n8[12]=false
set udg_o8[12]=false
set udg_z8=1
loop
exitwhen udg_z8>6
set udg_y8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
set udg_A8[udg_z8]=GetItemTypeId(UnitItemInSlotBJ(udg_m[12],udg_z8))
set udg_z8=udg_z8+1
endloop
call SetUnitOwner(udg_m[12],GetTriggerPlayer(),true)
call SetUnitOwner(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],Player(11),true)
set udg_m[GetConvertedPlayerId(GetTriggerPlayer())]=null
set udg_m[12]=null
call ForGroupBJ(i6(GetTriggerPlayer(),Condition(function Is8)),function Iz8)
call ForGroupBJ(i6(Player(11),Condition(function IA8)),function IE8)
call SelectUnitForPlayerSingle(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
call SelectUnitForPlayerSingle(udg_m[12],Player(11))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call PanCameraToTimedLocForPlayer(Player(11),GetUnitLoc(udg_m[12]),0)
set udg_z8=1
loop
exitwhen udg_z8>6
call RemoveItem(UnitItemInSlotBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],udg_z8))
call RemoveItem(UnitItemInSlotBJ(udg_m[12],udg_z8))
call UnitAddItemByIdSwapped(udg_y8[udg_z8],udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call UnitAddItemByIdSwapped(udg_A8[udg_z8],udg_m[12])
set udg_y8[udg_z8]=1836019566
set udg_A8[udg_z8]=1836019566
set udg_z8=udg_z8+1
endloop
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
if(II8())then
set udg_p8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_q8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_r8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_s8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_t8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_u8[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_x8[1]=7
loop
exitwhen udg_x8[1]>12
if(IH8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),("|cffc3dbffYou have requested to swap with|r "+udg_E[udg_x8[2]]))
call DisplayTextToForce(m6(ConvertedPlayer(udg_x8[2])),(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+(" |cffc3dbffrequested to swap with you. Type -swap "+(I2S(GetConvertedPlayerId(GetTriggerPlayer()))+" to accept.|r"))))
else
call DoNothing()
endif
set udg_x8[1]=udg_x8[1]+1
endloop
else
call DoNothing()
endif
set udg_Cj[677]=7
loop
exitwhen udg_Cj[677]>12
if(Il8())then
call SetPlayerName(ConvertedPlayer(udg_Cj[678]),GetUnitName(udg_m[udg_Cj[678]]))
set udg_E[udg_Cj[678]]=((udg_D[udg_Cj[678]]+GetUnitName(udg_m[udg_Cj[678]]))+"|r")
else
call DoNothing()
endif
set udg_Cj[677]=udg_Cj[677]+1
endloop
call TriggerExecute(udg_Ct)
endfunction
function IJ8 takes nothing returns nothing
set udg_vF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_vF,Player(6),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_vF,Player(7),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_vF,Player(8),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_vF,Player(9),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_vF,Player(10),"swap",false)
call TriggerRegisterPlayerChatEvent(udg_vF,Player(11),"swap",false)
call TriggerAddCondition(udg_vF,Condition(function FE8))
call TriggerAddAction(udg_vF,function I18)
endfunction
function IK8 takes nothing returns boolean
if((GetUnitTypeId(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])==1328558130))then
return true
endif
if((GetUnitTypeId(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])==1328558131))then
return true
endif
return false
endfunction
function IL8 takes nothing returns boolean
if(not IK8())then
return false
endif
return true
endfunction
function IM8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function IN8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetTriggerPlayer())==true)
endfunction
function IO8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function I08 takes nothing returns boolean
return GetBooleanAnd(IN8(),IO8())
endfunction
function IP8 takes nothing returns boolean
return GetBooleanAnd(IM8(),I08())
endfunction
function IQ8 takes nothing returns boolean
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_m[udg_K9],true)<GetHeroStatBJ(bj_HEROSTAT_AGI,udg_J9,true)))then
return false
endif
return true
endfunction
function IR8 takes nothing returns boolean
if(not(GetHeroLevel(udg_m[udg_K9])<GetHeroLevel(udg_J9)))then
return false
endif
return true
endfunction
function IS8 takes nothing returns boolean
if(not(udg_m[udg_K9]!=null))then
return false
endif
return true
endfunction
function I58 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_J9),udg_f)==true))then
return false
endif
return true
endfunction
function IT8 takes nothing returns boolean
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_m[udg_K9],true)<GetHeroStatBJ(bj_HEROSTAT_AGI,udg_J9,true)))then
return false
endif
return true
endfunction
function IU8 takes nothing returns boolean
if(not(GetHeroLevel(udg_m[udg_K9])<GetHeroLevel(udg_J9)))then
return false
endif
return true
endfunction
function IV8 takes nothing returns boolean
if(not(udg_m[udg_K9]!=null))then
return false
endif
return true
endfunction
function IW8 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_J9),udg_e)==true))then
return false
endif
return true
endfunction
function IX8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_I9)==false))then
return false
endif
return true
endfunction
function IY8 takes nothing returns nothing
set udg_J9=udg_m[GetConvertedPlayerId(GetTriggerPlayer())]
set udg_I9=YG(GetPlayableMapRect(),Condition(function IP8))
set udg_L9=(95.00-(5.00*I2R(GetUnitAbilityLevelSwapped(1093679414,udg_J9))))
if(IX8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c0021C795Homonka success rate (normal condition):|r")
if(IW8())then
set udg_K9=7
loop
exitwhen udg_K9>12
if(IV8())then
if(IT8())then
set udg_e9=((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_m[udg_K9],true))/I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_J9,true)))*udg_L9)
else
set udg_e9=udg_L9
endif
set udg_l9=(100.00-udg_e9)
if(IU8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),(("|c0021C795"+GetHeroProperName(udg_m[udg_K9]))+(" = "+(I2S(R2I(udg_l9))+"% success rate (Certain Death)|r"))))
else
call DisplayTextToForce(m6(GetTriggerPlayer()),(("|c0021C795"+GetHeroProperName(udg_m[udg_K9]))+(" = "+(I2S(R2I(udg_l9))+"% success rate|r "))))
endif
set udg_e9=0.00
set udg_l9=0.00
else
call DoNothing()
endif
set udg_K9=udg_K9+1
endloop
else
if(I58())then
set udg_K9=1
loop
exitwhen udg_K9>6
if(IS8())then
if(IQ8())then
set udg_e9=((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_m[udg_K9],true))/I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_J9,true)))*udg_L9)
else
set udg_e9=udg_L9
endif
set udg_l9=(100.00-udg_e9)
if(IR8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),(("|c0021C795"+GetHeroProperName(udg_m[udg_K9]))+(" = "+(I2S(R2I(udg_l9))+"% success rate (Certain Death)|r"))))
else
call DisplayTextToForce(m6(GetTriggerPlayer()),(("|c0021C795"+GetHeroProperName(udg_m[udg_K9]))+(" = "+(I2S(R2I(udg_l9))+"% success rate|r "))))
endif
set udg_e9=0.00
set udg_l9=0.00
else
call DoNothing()
endif
set udg_K9=udg_K9+1
endloop
else
call DoNothing()
endif
endif
else
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c0021C795You have no opponent.|r")
endif
call DestroyGroup(udg_I9)
set udg_I9=null
set udg_J9=null
set udg_L9=0.00
endfunction
function I28 takes nothing returns nothing
set udg_wF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_wF,Player(0),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(1),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(2),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(3),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(4),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(5),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(6),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(7),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(8),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(9),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(10),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(11),"-chance",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(0),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(1),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(2),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(3),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(4),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(5),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(6),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(7),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(8),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(9),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(10),"-c",true)
call TriggerRegisterPlayerChatEvent(udg_wF,Player(11),"-c",true)
call TriggerAddCondition(udg_wF,Condition(function IL8))
call TriggerAddAction(udg_wF,function IY8)
endfunction
function IZ8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function I_8 takes nothing returns boolean
if(not(IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()),GetTriggerPlayer())==true))then
return false
endif
if(not(GetOwningPlayer(GetEnumUnit())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
return true
endfunction
function l48 takes nothing returns nothing
if(I_8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))]+(" controls "+(GetHeroProperName(GetEnumUnit())+(" (level "+(I2S(GetHeroLevel(GetEnumUnit()))+")"))))))
else
call DoNothing()
endif
endfunction
function l78 takes nothing returns nothing
set udg_F=YG(GetPlayableMapRect(),Condition(function IZ8))
call ForGroupBJ(udg_F,function l48)
call DestroyGroup(udg_F)
set udg_F=null
endfunction
function l88 takes nothing returns nothing
set udg_xF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_xF,Player(0),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(1),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(2),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(3),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(4),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(5),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(6),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(7),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(8),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(9),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(10),"-ma",true)
call TriggerRegisterPlayerChatEvent(udg_xF,Player(11),"-ma",true)
call TriggerAddAction(udg_xF,function l78)
endfunction
function l98 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function ld8 takes nothing returns nothing
call DisplayTextToForce(m6(GetTriggerPlayer()),(GetHeroProperName(GetEnumUnit())+(" movespeed is "+I2S(R2I(GetUnitMoveSpeed(GetEnumUnit()))))))
endfunction
function le8 takes nothing returns nothing
set udg_F=i6(GetTriggerPlayer(),Condition(function l98))
call ForGroupBJ(udg_F,function ld8)
call DestroyGroup(udg_F)
set udg_F=null
endfunction
function lf8 takes nothing returns nothing
set udg_yF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_yF,Player(0),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(1),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(2),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(3),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(4),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(5),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(6),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(7),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(8),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(9),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(10),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_yF,Player(11),"-ms",true)
call TriggerAddAction(udg_yF,function le8)
endfunction
function lg8 takes nothing returns nothing
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_TARGET_DISTANCE,2000.00,0.01)
endfunction
function lh8 takes nothing returns nothing
set udg_zF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_zF,Player(0),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(1),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(2),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(3),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(4),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(5),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(6),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(7),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(8),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(9),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(10),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(11),"-ch",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(0),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(1),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(2),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(3),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(4),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(5),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(6),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(7),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(8),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(9),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(10),"-camera high",true)
call TriggerRegisterPlayerChatEvent(udg_zF,Player(11),"-camera high",true)
call TriggerAddAction(udg_zF,function lg8)
endfunction
function li8 takes nothing returns nothing
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_TARGET_DISTANCE,1200.00,0.01)
endfunction
function lj8 takes nothing returns nothing
set udg_AF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_AF,Player(0),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(1),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(2),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(3),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(4),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(5),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(6),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(7),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(8),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(9),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(10),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(11),"-cl",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(0),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(1),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(2),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(3),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(4),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(5),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(6),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(7),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(8),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(9),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(10),"-camera low",true)
call TriggerRegisterPlayerChatEvent(udg_AF,Player(11),"-camera low",true)
call TriggerAddAction(udg_AF,function li8)
endfunction
function lk8 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetTriggerPlayer())]==true))then
return false
endif
return true
endfunction
function lm8 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function ln8 takes nothing returns boolean
if(not(CountPlayersInForceBJ(t6(Condition(function lm8)))==0))then
return false
endif
return true
endfunction
function lo8 takes nothing returns nothing
call ResetToGameCameraForPlayer(GetTriggerPlayer(),0.01)
if(lk8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"Disabled Auto-Lock Camera")
set udg_n4[GetConvertedPlayerId(GetTriggerPlayer())]=false
else
call DoNothing()
endif
if(ln8())then
call DisableTrigger(udg_MF)
else
call DoNothing()
endif
endfunction
function lp8 takes nothing returns nothing
set udg_aF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_aF,Player(0),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(1),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(2),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(3),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(4),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(5),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(6),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(7),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(8),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(9),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(10),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(11),"-cn",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(0),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(1),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(2),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(3),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(4),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(5),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(6),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(7),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(8),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(9),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(10),"-camera normal",true)
call TriggerRegisterPlayerChatEvent(udg_aF,Player(11),"-camera normal",true)
call TriggerAddAction(udg_aF,function lo8)
endfunction
function lq8 takes nothing returns boolean
if(not(udg_n4[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
return true
endfunction
function lr8 takes nothing returns boolean
if(not(IsTriggerEnabled(udg_MF)==false))then
return false
endif
return true
endfunction
function ls8 takes nothing returns nothing
call DisplayTextToForce(m6(GetTriggerPlayer()),"Enabled Auto-Lock Camera")
set udg_n4[GetConvertedPlayerId(GetTriggerPlayer())]=true
if(lr8())then
call EnableTrigger(udg_MF)
else
call DoNothing()
endif
endfunction
function lt8 takes nothing returns nothing
set udg_BF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_BF,Player(0),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(1),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(2),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(3),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(4),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(5),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(6),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(7),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(8),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(9),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(10),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(11),"-ca",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(0),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(1),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(2),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(3),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(4),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(5),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(6),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(7),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(8),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(9),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(10),"-camera autolock",true)
call TriggerRegisterPlayerChatEvent(udg_BF,Player(11),"-camera autolock",true)
call TriggerAddCondition(udg_BF,Condition(function lq8))
call TriggerAddAction(udg_BF,function ls8)
endfunction
function lu8 takes nothing returns nothing
call ClearTextMessagesBJ(m6(GetTriggerPlayer()))
endfunction
function lv8 takes nothing returns nothing
set udg_bF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_bF,Player(0),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(1),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(2),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(3),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(4),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(5),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(6),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(7),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(8),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(9),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(10),"-clear",true)
call TriggerRegisterPlayerChatEvent(udg_bF,Player(11),"-clear",true)
call TriggerAddAction(udg_bF,function lu8)
endfunction
function lw8 takes nothing returns boolean
if(not(udg_R[GetConvertedPlayerId(GetTriggerPlayer())]==true))then
return false
endif
return true
endfunction
function lx8 takes nothing returns nothing
call DisplayTextToForce(m6(GetTriggerPlayer()),"Enabled floating text message")
set udg_R[GetConvertedPlayerId(GetTriggerPlayer())]=false
endfunction
function ly8 takes nothing returns nothing
set udg_CF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_CF,Player(0),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(1),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(2),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(3),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(4),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(5),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(6),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(7),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(8),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(9),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(10),"-text on",true)
call TriggerRegisterPlayerChatEvent(udg_CF,Player(11),"-text on",true)
call TriggerAddCondition(udg_CF,Condition(function lw8))
call TriggerAddAction(udg_CF,function lx8)
endfunction
function lz8 takes nothing returns boolean
if(not(udg_R[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
return true
endfunction
function lA8 takes nothing returns nothing
call DisplayTextToForce(m6(GetTriggerPlayer()),"Disabled floating text message")
set udg_R[GetConvertedPlayerId(GetTriggerPlayer())]=true
endfunction
function la8 takes nothing returns nothing
set udg_cF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_cF,Player(0),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(1),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(2),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(3),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(4),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(5),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(6),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(7),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(8),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(9),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(10),"-text off",true)
call TriggerRegisterPlayerChatEvent(udg_cF,Player(11),"-text off",true)
call TriggerAddCondition(udg_cF,Condition(function lz8))
call TriggerAddAction(udg_cF,function lA8)
endfunction
function lB8 takes nothing returns boolean
if(not(udg_J[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
if(not(udg_w==false))then
return false
endif
if(not(udg_z==false))then
return false
endif
if(not(udg_d4==false))then
return false
endif
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=udg_x))then
return false
endif
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=udg_y))then
return false
endif
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=udg_T))then
return false
endif
return true
endfunction
function lb8 takes nothing returns boolean
if(not(MG(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function lC8 takes nothing returns nothing
if(lb8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|cffff0000WARNING|r: Your hero will be paused for 15 seconds when triggering this command. Retype |cff32cd32-unstuck ok|r to activate the unstuck command.")
else
call DisplayTextToForce(m6(GetTriggerPlayer()),"You can't use that command yet.")
endif
endfunction
function lc8 takes nothing returns nothing
set udg_DF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_DF,Player(0),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(1),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(2),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(3),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(4),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(5),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(6),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(7),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(8),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(9),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(10),"-unstuck",true)
call TriggerRegisterPlayerChatEvent(udg_DF,Player(11),"-unstuck",true)
call TriggerAddCondition(udg_DF,Condition(function lB8))
call TriggerAddAction(udg_DF,function lC8)
endfunction
function lD8 takes nothing returns boolean
if(not(udg_J[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
if(not(udg_w==false))then
return false
endif
if(not(udg_z==false))then
return false
endif
if(not(udg_d4==false))then
return false
endif
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=udg_x))then
return false
endif
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=udg_y))then
return false
endif
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=udg_T))then
return false
endif
return true
endfunction
function lE8 takes nothing returns boolean
if(not(MG(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],UNIT_TYPE_HERO)==true))then
return false
endif
if(not(udg_J[GetConvertedPlayerId(GetTriggerPlayer())]==true))then
return false
endif
return true
endfunction
function l38 takes nothing returns boolean
if(not(MG(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],UNIT_TYPE_HERO)==true))then
return false
endif
if(not(udg_J[GetConvertedPlayerId(GetTriggerPlayer())]==true))then
return false
endif
if(not(udg_z==false))then
return false
endif
if(not(udg_l[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
return true
endfunction
function lF8 takes nothing returns nothing
set udg_J[GetConvertedPlayerId(GetTriggerPlayer())]=true
if(lE8())then
set udg_I[GetConvertedPlayerId(GetTriggerPlayer())]=udg_m[GetConvertedPlayerId(GetTriggerPlayer())]
call PauseUnitBJ(true,udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call AddSpecialEffectTargetUnitBJ("origin",udg_m[GetConvertedPlayerId(GetTriggerPlayer())],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")
set udg_K[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedEffectBJ()
call DisplayTextToForce(m6(GetTriggerPlayer()),"Please wait for 15 seconds...")
else
call DoNothing()
endif
call TriggerSleepAction(15.00)
if(l38())then
call DestroyEffectBJ(udg_K[GetConvertedPlayerId(GetTriggerPlayer())])
call PauseUnitBJ(false,udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call SetUnitPositionLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetUnitLoc(udg_mG))
call AddSpecialEffectTargetUnitBJ("origin",udg_m[GetConvertedPlayerId(GetTriggerPlayer())],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call SetUnitInvulnerable(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],false)
call SetUnitTimeScalePercent(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],100)
call SetUnitVertexColorBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],100,100,100,0)
else
call DestroyEffectBJ(udg_K[GetConvertedPlayerId(GetTriggerPlayer())])
endif
call TriggerSleepAction(0.01)
set udg_J[GetConvertedPlayerId(GetTriggerPlayer())]=false
endfunction
function lG8 takes nothing returns nothing
set udg_EF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_EF,Player(0),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(1),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(2),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(3),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(4),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(5),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(6),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(7),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(8),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(9),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(10),"-unstuck ok",true)
call TriggerRegisterPlayerChatEvent(udg_EF,Player(11),"-unstuck ok",true)
call TriggerAddCondition(udg_EF,Condition(function lD8))
call TriggerAddAction(udg_EF,function lF8)
endfunction
function l68 takes nothing returns nothing
call DisplayTextToForce(m6(GetTriggerPlayer()),"TRIGSTR_4654")
endfunction
function lH8 takes nothing returns nothing
set udg_FF=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_FF,Player(0),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(1),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(2),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(3),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(4),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(5),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(6),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(7),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(8),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(9),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(10),"-help",true)
call TriggerRegisterPlayerChatEvent(udg_FF,Player(11),"-help",true)
call TriggerAddAction(udg_FF,function l68)
endfunction
function lI8 takes nothing returns boolean
if(not(udg_a4==null))then
return false
endif
return true
endfunction
function ll8 takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]==udg_a4))then
return false
endif
return true
endfunction
function l18 takes nothing returns nothing
if(ll8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),("|c0021C795Your bounty is "+((I2S((100+(40*udg_d[GetConvertedPlayerId(GetTriggerPlayer())])))+" gold and ")+(I2S((1+(GetHeroLevel(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])/6)))+" medal|r"))))
else
if(lI8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c0021C795No Wanted Hero is selected yet|r")
else
call DisplayTextToForce(m6(GetTriggerPlayer()),(("|c0021C795The Wanted Hero (|r"+((udg_D[GetConvertedPlayerId(GetOwningPlayer(udg_a4))]+GetHeroProperName(udg_a4))+"|r|c0021C795) bounty is "))+((I2S((100+(40*udg_d[GetConvertedPlayerId(GetOwningPlayer(udg_a4))])))+" gold and ")+(I2S((1+(GetHeroLevel(udg_a4)/6)))+" medal|r"))))
endif
call DisplayTextToForce(m6(GetTriggerPlayer()),("|c0021C795Your bounty is "+((I2S((100+(40*udg_d[GetConvertedPlayerId(GetTriggerPlayer())])))+" gold and ")+(I2S((1+(GetHeroLevel(udg_m[GetConvertedPlayerId(GetTriggerPlayer())])/6)))+" medal|r"))))
endif
endfunction
function lJ8 takes nothing returns nothing
set udg_GF=CreateTrigger()
call DisableTrigger(udg_GF)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(0),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(1),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(2),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(3),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(4),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(5),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(6),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(7),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(8),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(9),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(10),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(11),"-bounty",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(0),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(1),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(2),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(3),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(4),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(5),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(6),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(7),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(8),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(9),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(10),"-b",true)
call TriggerRegisterPlayerChatEvent(udg_GF,Player(11),"-b",true)
call TriggerAddAction(udg_GF,function l18)
endfunction
function lK8 takes nothing returns boolean
return(udg_G4[1]==true)
endfunction
function lL8 takes nothing returns boolean
return(udg_H4==1)
endfunction
function lM8 takes nothing returns boolean
return GetBooleanAnd(lK8(),lL8())
endfunction
function lN8 takes nothing returns boolean
return(udg_G4[2]==true)
endfunction
function lO8 takes nothing returns boolean
return(udg_H4==2)
endfunction
function l08 takes nothing returns boolean
return GetBooleanAnd(lN8(),lO8())
endfunction
function lP8 takes nothing returns boolean
return(udg_G4[3]==true)
endfunction
function lQ8 takes nothing returns boolean
return(udg_H4==3)
endfunction
function lR8 takes nothing returns boolean
return GetBooleanAnd(lP8(),lQ8())
endfunction
function lS8 takes nothing returns boolean
return(udg_G4[4]==true)
endfunction
function l58 takes nothing returns boolean
return(udg_H4==4)
endfunction
function lT8 takes nothing returns boolean
return GetBooleanAnd(lS8(),l58())
endfunction
function lU8 takes nothing returns boolean
return(udg_G4[5]==true)
endfunction
function lV8 takes nothing returns boolean
return(udg_H4==5)
endfunction
function lW8 takes nothing returns boolean
return GetBooleanAnd(lU8(),lV8())
endfunction
function lX8 takes nothing returns boolean
return(udg_G4[6]==true)
endfunction
function lY8 takes nothing returns boolean
return(udg_H4==6)
endfunction
function l28 takes nothing returns boolean
return GetBooleanAnd(lX8(),lY8())
endfunction
function lZ8 takes nothing returns boolean
return(udg_G4[7]==true)
endfunction
function l_8 takes nothing returns boolean
return(udg_H4==7)
endfunction
function J48 takes nothing returns boolean
return GetBooleanAnd(lZ8(),l_8())
endfunction
function J78 takes nothing returns boolean
return(udg_G4[8]==true)
endfunction
function J88 takes nothing returns boolean
return(udg_H4==8)
endfunction
function J98 takes nothing returns boolean
return GetBooleanAnd(J78(),J88())
endfunction
function Jd8 takes nothing returns boolean
return(udg_G4[9]==true)
endfunction
function Je8 takes nothing returns boolean
return(udg_H4==9)
endfunction
function Jf8 takes nothing returns boolean
return GetBooleanAnd(Jd8(),Je8())
endfunction
function Jg8 takes nothing returns boolean
return(udg_G4[10]==true)
endfunction
function Jh8 takes nothing returns boolean
return(udg_H4==10)
endfunction
function Ji8 takes nothing returns boolean
return GetBooleanAnd(Jg8(),Jh8())
endfunction
function Jj8 takes nothing returns boolean
return(udg_G4[11]==true)
endfunction
function Jk8 takes nothing returns boolean
return(udg_H4==11)
endfunction
function Jm8 takes nothing returns boolean
return GetBooleanAnd(Jj8(),Jk8())
endfunction
function Jn8 takes nothing returns boolean
return(udg_G4[12]==true)
endfunction
function Jo8 takes nothing returns boolean
return(udg_H4==12)
endfunction
function Jp8 takes nothing returns boolean
return GetBooleanAnd(Jn8(),Jo8())
endfunction
function Jq8 takes nothing returns boolean
return(udg_G4[13]==true)
endfunction
function Jr8 takes nothing returns boolean
return(udg_H4==13)
endfunction
function Js8 takes nothing returns boolean
return GetBooleanAnd(Jq8(),Jr8())
endfunction
function Jt8 takes nothing returns boolean
return(udg_G4[14]==true)
endfunction
function Ju8 takes nothing returns boolean
return(udg_H4==14)
endfunction
function Jv8 takes nothing returns boolean
return GetBooleanAnd(Jt8(),Ju8())
endfunction
function Jw8 takes nothing returns boolean
return(udg_G4[15]==true)
endfunction
function Jx8 takes nothing returns boolean
return(udg_H4==15)
endfunction
function Jy8 takes nothing returns boolean
return GetBooleanAnd(Jw8(),Jx8())
endfunction
function Jz8 takes nothing returns boolean
return(udg_G4[16]==true)
endfunction
function JA8 takes nothing returns boolean
return(udg_H4==16)
endfunction
function Ja8 takes nothing returns boolean
return GetBooleanAnd(Jz8(),JA8())
endfunction
function JB8 takes nothing returns boolean
return(udg_G4[17]==true)
endfunction
function Jb8 takes nothing returns boolean
return(udg_H4==17)
endfunction
function JC8 takes nothing returns boolean
return GetBooleanAnd(JB8(),Jb8())
endfunction
function Jc8 takes nothing returns boolean
return(udg_G4[18]==true)
endfunction
function JD8 takes nothing returns boolean
return(udg_H4==18)
endfunction
function JE8 takes nothing returns boolean
return GetBooleanAnd(Jc8(),JD8())
endfunction
function J38 takes nothing returns boolean
return(udg_G4[19]==true)
endfunction
function JF8 takes nothing returns boolean
return(udg_H4==19)
endfunction
function JG8 takes nothing returns boolean
return GetBooleanAnd(J38(),JF8())
endfunction
function J68 takes nothing returns boolean
return(udg_G4[20]==true)
endfunction
function JH8 takes nothing returns boolean
return(udg_H4==20)
endfunction
function JI8 takes nothing returns boolean
return GetBooleanAnd(J68(),JH8())
endfunction
function Jl8 takes nothing returns boolean
if(not(udg_g4==false))then
return false
endif
return true
endfunction
function J18 takes nothing returns nothing
if(Jl8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1Normal Mode|r: No mode has been specified.")
else
set udg_H4=1
loop
exitwhen udg_H4>20
if(lM8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1AR|r: All Random, You will be given a random hero.")
else
call DoNothing()
endif
if(l08())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1NP|r: No Powerups, powerups are disabled.")
else
call DoNothing()
endif
if(lR8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1HS|r: Half Scores, kill scores reduced by half.")
else
call DoNothing()
endif
if(lT8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1DS|r: Double Scores, kill scores has been doubled.")
else
call DoNothing()
endif
if(lW8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1ND|r: No Duel, remove duel from random events.")
else
call DoNothing()
endif
if(l28())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1N3|r: No 3 vs 3 battle, remove 3 vs 3 battle from random events.")
else
call DoNothing()
endif
if(J48())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1NE|r: No Events, no event at all.")
else
call DoNothing()
endif
if(J98())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1NR|r: No Repick, disable -repick.")
else
call DoNothing()
endif
if(Jf8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1FH|r: Fast Hunt, creeps spawn more faster.")
else
call DoNothing()
endif
if(Ji8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1SH|r: Slow Hunt, creeps spawn more slower.")
else
call DoNothing()
endif
if(Jm8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1NH|r: Never Hunt, creeps will never spawn.")
else
call DoNothing()
endif
if(Jp8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1SC|r: Super Creep, a super-strong creeps can spawn randomly with creep spawns.")
else
call DoNothing()
endif
if(Js8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1BH|r: Bounty Hunter, random 1 hero will have bounty on his/her head periodically.")
else
call DoNothing()
endif
if(Jv8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1NF|r: No Fountain, Fountain of Restoration has been destroyed!")
else
call DoNothing()
endif
if(Jy8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1NS|r: No Swap, disable -swap.")
else
call DoNothing()
endif
if(Ja8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1NW|r: No Waygates, all teleport waygates has been destroyed!")
else
call DoNothing()
endif
if(JC8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1BO|r: Bleach Only, only bleach characters are available.")
else
call DoNothing()
endif
if(JE8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1OO|r: One Piece Only, only onepiece characters are available.")
else
call DoNothing()
endif
if(JG8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1SO|r: Selection Off, all unit's selection circles are disabled.")
else
call DoNothing()
endif
if(JI8())then
call DisplayTextToForce(m6(GetTriggerPlayer()),"|c007ebff1N5|r: No 5 vs 5 battle, remove 5 vs 5 battle from random events.")
else
call DoNothing()
endif
set udg_H4=udg_H4+1
endloop
endif
endfunction
function JJ8 takes nothing returns nothing
set udg_HF=CreateTrigger()
call DisableTrigger(udg_HF)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(0),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(1),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(2),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(3),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(4),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(5),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(6),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(7),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(8),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(9),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(10),"-gameinfo",true)
call TriggerRegisterPlayerChatEvent(udg_HF,Player(11),"-gameinfo",true)
call TriggerAddAction(udg_HF,function J18)
endfunction
function JK8 takes nothing returns boolean
if((IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_e)==true))then
return true
endif
if((IsPlayerInForce(GetOwningPlayer(GetKillingUnitBJ()),udg_f)==true))then
return true
endif
return false
endfunction
function JL8 takes nothing returns boolean
if(not(udg_A4==true))then
return false
endif
if(not(GetUnitTypeId(GetDyingUnit())!=1211117894))then
return false
endif
if(not(GetDyingUnit()==udg_a4))then
return false
endif
if(not JK8())then
return false
endif
return true
endfunction
function JM8 takes nothing returns boolean
if(not JL8())then
return false
endif
return true
endfunction
function JN8 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_a4),udg_f)==true))then
return false
endif
return true
endfunction
function JO8 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_a4),udg_e)==true))then
return false
endif
return true
endfunction
function J08 takes nothing returns nothing
set udg_b4[1]=(100+(40*udg_d[GetConvertedPlayerId(GetOwningPlayer(udg_a4))]))
set udg_b4[2]=(1+(GetHeroLevel(udg_a4)/6))
set udg_b4[3]=(udg_b4[1]/2)
set udg_b4[4]=(udg_b4[2]/2)
call DisplayTimedTextToForce(GetPlayersAll(),8.00,(udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+(" pawned "+(udg_E[GetConvertedPlayerId(GetOwningPlayer(udg_a4))]+("'s head for |cffffcc00"+(I2S(udg_b4[1])+("|r gold and |c0020c000"+(I2S(udg_b4[2])+"|r medal!"))))))))
call AdjustPlayerStateBJ(udg_b4[1],GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(udg_b4[2],GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ((-1*udg_b4[3]),GetOwningPlayer(udg_a4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ((-1*udg_b4[4]),GetOwningPlayer(udg_a4),PLAYER_STATE_RESOURCE_LUMBER)
call SetPlayerHandicapXPBJ(GetOwningPlayer(udg_a4),100.00)
if(JO8())then
set udg_E4=1
else
if(JN8())then
set udg_E4=2
else
call DoNothing()
endif
endif
set udg_a4=null
set udg_b4[1]=0
set udg_b4[2]=0
set udg_b4[3]=0
set udg_b4[4]=0
set udg_Jm=0.00
call DestroyEffectBJ(udg_B4)
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(15.00)
call ConditionalTriggerExecute(udg_lF)
call TriggerSleepAction(1.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function JP8 takes nothing returns nothing
set udg_IF=CreateTrigger()
call DisableTrigger(udg_IF)
call TriggerRegisterAnyUnitEventBJ(udg_IF,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_IF,Condition(function JM8))
call TriggerAddAction(udg_IF,function J08)
endfunction
function JQ8 takes nothing returns boolean
if(not(udg_N4==false))then
return false
endif
return true
endfunction
function JR8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function JS8 takes nothing returns boolean
return(GetPlayerSlotState(GetOwningPlayer(GetFilterUnit()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function J58 takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]!=null)
endfunction
function JT8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function JU8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function JV8 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_e)==true)
endfunction
function JW8 takes nothing returns boolean
return GetBooleanAnd(JU8(),JV8())
endfunction
function JX8 takes nothing returns boolean
return GetBooleanAnd(JT8(),JW8())
endfunction
function JY8 takes nothing returns boolean
return GetBooleanAnd(J58(),JX8())
endfunction
function J28 takes nothing returns boolean
return GetBooleanAnd(JS8(),JY8())
endfunction
function JZ8 takes nothing returns boolean
return GetBooleanAnd(JR8(),J28())
endfunction
function J_8 takes nothing returns nothing
set udg_a4=GetEnumUnit()
endfunction
function K48 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function K78 takes nothing returns boolean
return(GetPlayerSlotState(GetOwningPlayer(GetFilterUnit()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function K88 takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]!=null)
endfunction
function K98 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function Kd8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function Ke8 takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetFilterUnit()),udg_f)==true)
endfunction
function Kf8 takes nothing returns boolean
return GetBooleanAnd(Kd8(),Ke8())
endfunction
function Kg8 takes nothing returns boolean
return GetBooleanAnd(K98(),Kf8())
endfunction
function Kh8 takes nothing returns boolean
return GetBooleanAnd(K88(),Kg8())
endfunction
function Ki8 takes nothing returns boolean
return GetBooleanAnd(K78(),Kh8())
endfunction
function Kj8 takes nothing returns boolean
return GetBooleanAnd(K48(),Ki8())
endfunction
function Kk8 takes nothing returns nothing
set udg_a4=GetEnumUnit()
endfunction
function Km8 takes nothing returns boolean
if(not(udg_E4==1))then
return false
endif
return true
endfunction
function Kn8 takes nothing returns boolean
if(not(udg_E4==2))then
return false
endif
return true
endfunction
function Ko8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Kp8 takes nothing returns boolean
return(GetPlayerSlotState(GetOwningPlayer(GetFilterUnit()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Kq8 takes nothing returns boolean
return(udg_m[GetConvertedPlayerId(GetOwningPlayer(GetFilterUnit()))]!=null)
endfunction
function Kr8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_AGGRESSIVE))
endfunction
function Ks8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function Kt8 takes nothing returns boolean
return GetBooleanAnd(Kr8(),Ks8())
endfunction
function Ku8 takes nothing returns boolean
return GetBooleanAnd(Kq8(),Kt8())
endfunction
function Kv8 takes nothing returns boolean
return GetBooleanAnd(Kp8(),Ku8())
endfunction
function Kw8 takes nothing returns boolean
return GetBooleanAnd(Ko8(),Kv8())
endfunction
function Kx8 takes nothing returns nothing
set udg_a4=GetEnumUnit()
endfunction
function Ky8 takes nothing returns boolean
if(not(udg_E4==0))then
return false
endif
return true
endfunction
function Kz8 takes nothing returns boolean
if(not(udg_a4==null))then
return false
endif
return true
endfunction
function KA8 takes nothing returns nothing
if(Ky8())then
call ForGroupBJ(u6(1,YG(GetPlayableMapRect(),Condition(function Kw8))),function Kx8)
else
if(Kn8())then
call ForGroupBJ(u6(1,YG(GetPlayableMapRect(),Condition(function JZ8))),function J_8)
else
if(Km8())then
call ForGroupBJ(u6(1,YG(GetPlayableMapRect(),Condition(function Kj8))),function Kk8)
else
call DoNothing()
endif
endif
endif
if(Kz8())then
call TriggerExecute(GetTriggeringTrigger())
else
call AddSpecialEffectTargetUnitBJ("overhead",udg_a4,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")
set udg_B4=GetLastCreatedEffectBJ()
set udg_b4[1]=(100+(40*udg_d[GetConvertedPlayerId(GetOwningPlayer(udg_a4))]))
set udg_b4[2]=(1+(GetHeroLevel(udg_a4)/6))
set udg_b4[3]=(udg_b4[1]/2)
set udg_b4[4]=(udg_b4[2]/2)
set udg_Jm=GetPlayerHandicapXPBJ(GetOwningPlayer(udg_a4))
call SetPlayerHandicapXPBJ(GetOwningPlayer(udg_a4),(udg_Jm+50.00))
call DisplayTimedTextToForce(GetPlayersAll(),12.00,("|c00fffc01The WANTED hero|r = "+(udg_E[GetConvertedPlayerId(GetOwningPlayer(udg_a4))]+("'s "+(GetHeroProperName(udg_a4)+("!"+(" Current Reward: |cffffcc00"+(I2S(udg_b4[1])+("|r gold and |c0020c000"+(I2S(udg_b4[2])+"|r medal!"))))))))))
set udg_b4[1]=0
set udg_b4[2]=0
set udg_b4[3]=0
set udg_b4[4]=0
endif
endfunction
function Ka8 takes nothing returns nothing
set udg_lF=CreateTrigger()
call TriggerAddCondition(udg_lF,Condition(function JQ8))
call TriggerAddAction(udg_lF,function KA8)
endfunction
function KB8 takes nothing returns boolean
if(not(udg_v4==true))then
return false
endif
if(not(GetDyingUnit()==udg_w4))then
return false
endif
return true
endfunction
function Kb8 takes nothing returns boolean
if(not KB8())then
return false
endif
return true
endfunction
function KC8 takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),((GetUnitName(udg_w4)+" (level 30)")+(" has been slain by "+udg_E[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])))
set udg_w4=null
set udg_x4=0
endfunction
function Kc8 takes nothing returns nothing
set udg_JF=CreateTrigger()
call DisableTrigger(udg_JF)
call TriggerRegisterAnyUnitEventBJ(udg_JF,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_JF,Condition(function Kb8))
call TriggerAddAction(udg_JF,function KC8)
endfunction
function KD8 takes nothing returns boolean
if(not(udg_h4==6))then
return false
endif
return true
endfunction
function KE8 takes nothing returns boolean
if(not(udg_h4==5))then
return false
endif
return true
endfunction
function K38 takes nothing returns boolean
if(not(udg_h4==4))then
return false
endif
return true
endfunction
function KF8 takes nothing returns boolean
if(not(udg_h4==3))then
return false
endif
return true
endfunction
function KG8 takes nothing returns boolean
if(not(udg_h4==2))then
return false
endif
return true
endfunction
function K68 takes nothing returns boolean
if(not(udg_h4==1))then
return false
endif
return true
endfunction
function KH8 takes nothing returns boolean
if(not(udg_h4==6))then
return false
endif
return true
endfunction
function KI8 takes nothing returns boolean
if(not(udg_h4==5))then
return false
endif
return true
endfunction
function Kl8 takes nothing returns boolean
if(not(udg_h4==4))then
return false
endif
return true
endfunction
function K18 takes nothing returns boolean
if(not(udg_h4==3))then
return false
endif
return true
endfunction
function KJ8 takes nothing returns boolean
if(not(udg_h4==2))then
return false
endif
return true
endfunction
function KK8 takes nothing returns boolean
if(not(udg_h4==1))then
return false
endif
return true
endfunction
function KL8 takes nothing returns nothing
set udg_h4=GetRandomInt(1,8)
if(K68())then
call CreateItemLoc(1919444274,GetRandomLocInRect(udg_sn))
else
if(KG8())then
call CreateItemLoc(1920168036,GetRandomLocInRect(udg_sn))
else
if(KF8())then
call CreateItemLoc(1920168036,GetRandomLocInRect(udg_sn))
else
if(K38())then
call CreateItemLoc(1920099699,GetRandomLocInRect(udg_sn))
else
if(KE8())then
call CreateItemLoc(1919444273,GetRandomLocInRect(udg_sn))
else
if(KD8())then
call CreateItemLoc(1920099633,GetRandomLocInRect(udg_sn))
else
call DoNothing()
endif
endif
endif
endif
endif
endif
set udg_h4=0
set udg_h4=GetRandomInt(1,7)
if(KK8())then
call CreateItemLoc(1919444274,GetRandomLocInRect(udg_sn))
else
if(KJ8())then
call CreateItemLoc(1920168036,GetRandomLocInRect(udg_sn))
else
if(K18())then
call CreateItemLoc(1920168036,GetRandomLocInRect(udg_sn))
else
if(Kl8())then
call CreateItemLoc(1920099699,GetRandomLocInRect(udg_sn))
else
if(KI8())then
call CreateItemLoc(1919444273,GetRandomLocInRect(udg_sn))
else
if(KH8())then
call CreateItemLoc(1920099633,GetRandomLocInRect(udg_sn))
else
call DoNothing()
endif
endif
endif
endif
endif
endif
set udg_h4=0
endfunction
function KM8 takes nothing returns nothing
set udg_KF=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_KF,68.00)
call TriggerAddAction(udg_KF,function KL8)
endfunction
function KN8 takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())==1919444273))then
return false
endif
return true
endfunction
function KO8 takes nothing returns boolean
return(IsUnitAliveBJ(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))])==true)
endfunction
function K08 takes nothing returns boolean
return(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]!=null)
endfunction
function KP8 takes nothing returns boolean
return GetBooleanAnd(KO8(),K08())
endfunction
function KQ8 takes nothing returns nothing
if(KP8())then
call KillUnit(udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))])
else
call DoNothing()
endif
set udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=null
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(GetManipulatingUnit()),GetUnitLoc(GetManipulatingUnit()),bj_UNIT_FACING)
set udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678134,udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))])
call UnitApplyTimedLifeBJ(30.00,1112820806,udg_M7[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))])
endfunction
function KR8 takes nothing returns nothing
set udg_LF=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_LF,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_LF,Condition(function KN8))
call TriggerAddAction(udg_LF,function KQ8)
endfunction
function KS8 takes nothing returns boolean
return(udg_n4[GetConvertedPlayerId(GetFilterPlayer())]==true)
endfunction
function K58 takes nothing returns boolean
if(not(IsUnitHiddenBJ(udg_m[GetConvertedPlayerId(GetEnumPlayer())])==false))then
return false
endif
return true
endfunction
function KT8 takes nothing returns nothing
if(K58())then
call SetCameraTargetControllerNoZForPlayer(GetEnumPlayer(),udg_m[GetConvertedPlayerId(GetEnumPlayer())],0,0,false)
else
call DoNothing()
endif
endfunction
function KU8 takes nothing returns nothing
call ForForce(t6(Condition(function KS8)),function KT8)
endfunction
function KV8 takes nothing returns nothing
set udg_MF=CreateTrigger()
call DisableTrigger(udg_MF)
call TriggerRegisterTimerEventPeriodic(udg_MF,2.00)
call TriggerAddAction(udg_MF,function KU8)
endfunction
function KW8 takes nothing returns boolean
if((GetOrderedUnit()==udg_gi))then
return true
endif
if((GetOrderedUnit()==udg_sk[10]))then
return true
endif
if((GetOrderedUnit()==udg_sk[12]))then
return true
endif
if((GetOrderedUnit()==udg_sk[20]))then
return true
endif
return false
endfunction
function KX8 takes nothing returns boolean
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("attack")))then
return false
endif
if(not(GetItemType(GetOrderTargetItem())==ITEM_TYPE_ANY))then
return false
endif
if(not KW8())then
return false
endif
return true
endfunction
function KY8 takes nothing returns boolean
if(not KX8())then
return false
endif
return true
endfunction
function K28 takes nothing returns nothing
call IssueImmediateOrderBJ(GetOrderedUnit(),"stop")
endfunction
function KZ8 takes nothing returns nothing
set udg_NF=CreateTrigger()
call TriggerAddCondition(udg_NF,Condition(function KY8))
call TriggerAddAction(udg_NF,function K28)
endfunction
function K_8 takes nothing returns boolean
if((GetSpellAbilityId()==1093678161))then
return true
endif
if((GetSpellAbilityId()==1093681491))then
return true
endif
if((GetSpellAbilityId()==1093677383))then
return true
endif
if((GetSpellAbilityId()==1093678663))then
return true
endif
if((GetSpellAbilityId()==1093679186))then
return true
endif
if((GetSpellAbilityId()==1093677122))then
return true
endif
if((GetSpellAbilityId()==1093679187))then
return true
endif
if((GetSpellAbilityId()==1093677637))then
return true
endif
if((GetSpellAbilityId()==1093679179))then
return true
endif
if((GetSpellAbilityId()==1093677128))then
return true
endif
if((GetSpellAbilityId()==1093677143))then
return true
endif
if((GetSpellAbilityId()==1093677107))then
return true
endif
if((GetSpellAbilityId()==1093678424))then
return true
endif
if((GetSpellAbilityId()==1093678919))then
return true
endif
if((GetSpellAbilityId()==1093677386))then
return true
endif
if((GetSpellAbilityId()==1093679412))then
return true
endif
if((GetSpellAbilityId()==1093681731))then
return true
endif
if((GetSpellAbilityId()==1093681484))then
return true
endif
if((GetSpellAbilityId()==1093677655))then
return true
endif
if((GetSpellAbilityId()==1093681743))then
return true
endif
if((GetSpellAbilityId()==1093677881))then
return true
endif
if((GetSpellAbilityId()==1093678671))then
return true
endif
return false
endfunction
function L48 takes nothing returns boolean
if(not K_8())then
return false
endif
return true
endfunction
function L78 takes nothing returns boolean
if(not(udg_z==false))then
return false
endif
if(not(RectContainsLoc(udg_sn,GetSpellTargetLoc())==false))then
return false
endif
return true
endfunction
function L88 takes nothing returns boolean
if(not(udg_z==true))then
return false
endif
if(not(RectContainsLoc(udg_An,GetSpellTargetLoc())==false))then
return false
endif
return true
endfunction
function L98 takes nothing returns boolean
if(L78())then
return true
endif
if(L88())then
return true
endif
return false
endfunction
function Ld8 takes nothing returns boolean
if(not L98())then
return false
endif
if(not(RectContainsLoc(udg_vo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_xo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_jo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_ko,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_mo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_no,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_oo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_po,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_qo,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_ro,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_so,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_Ro,GetSpellTargetLoc())==false))then
return false
endif
if(not(RectContainsLoc(udg_So,GetSpellTargetLoc())==false))then
return false
endif
return true
endfunction
function Le8 takes nothing returns boolean
if(not Ld8())then
return false
endif
return true
endfunction
function Lf8 takes nothing returns nothing
if(Le8())then
call IssueImmediateOrderBJ(GetTriggerUnit(),"stop")
call DisplayTimedTextToForce(m6(GetOwningPlayer(GetTriggerUnit())),4.00," |cffffcc00Cannot move to that area|r")
else
call DoNothing()
endif
endfunction
function Lg8 takes nothing returns nothing
set udg_OF=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_OF,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_OF,Condition(function L48))
call TriggerAddAction(udg_OF,function Lf8)
endfunction
function Lh8 takes nothing returns nothing
local destructable Li8=GetDyingDestructable()
call TriggerSleepAction(100.00)
call DestructableRestoreLife(Li8,GetDestructableMaxLife(Li8),true)
endfunction
function Lj8 takes nothing returns nothing
set udg_PF=CreateTrigger()
call TriggerAddAction(udg_PF,function Lh8)
endfunction
function Lk8 takes nothing returns boolean
if(not(IsUnitAlly(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
return true
endfunction
function Lm8 takes nothing returns nothing
call IssueImmediateOrderBJ(GetAttacker(),"stop")
endfunction
function Ln8 takes nothing returns nothing
set udg_QF=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_QF,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_QF,Condition(function Lk8))
call TriggerAddAction(udg_QF,function Lm8)
endfunction
function Lo8 takes nothing returns boolean
if(not(MG(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(RectContainsUnit(udg_zn,GetAttacker())==false))then
return false
endif
if(not(IsUnitEnemy(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(GetAttacker()!=udg_gi))then
return false
endif
if(not(GetAttacker()!=udg_sk[10]))then
return false
endif
if(not(GetAttacker()!=udg_sk[12]))then
return false
endif
if(not(GetAttacker()!=udg_sk[20]))then
return false
endif
return true
endfunction
function Lp8 takes nothing returns boolean
if(not Lo8())then
return false
endif
return true
endfunction
function Lq8 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetAttacker(),1920428410)==true)
endfunction
function Lr8 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetAttacker(),1227894865)==true)
endfunction
function Ls8 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetAttacker(),1227894863)==true)
endfunction
function Lt8 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetAttacker(),1227894862)==true)
endfunction
function Lu8 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetAttacker(),1227894839)==true)
endfunction
function Lv8 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetAttacker(),1227895361)==true)
endfunction
function Lw8 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetAttacker(),1227895875)==true)
endfunction
function Lx8 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetAttacker(),1227895373)==true)
endfunction
function Ly8 takes nothing returns nothing
set udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]=25.00
if(Lq8())then
set udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]=(udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]+2.00)
else
call DoNothing()
endif
if(Lr8())then
set udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]=(udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]+5.00)
else
call DoNothing()
endif
if(Ls8())then
set udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]=(udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]+6.00)
else
call DoNothing()
endif
if(Lt8())then
set udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]=(udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]+9.00)
else
call DoNothing()
endif
if(Lu8())then
set udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]=(udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]+9.00)
else
call DoNothing()
endif
if(Lv8())then
set udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]=(udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]+2.00)
else
call DoNothing()
endif
if(Lw8())then
set udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]=(udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]+18.00)
else
call DoNothing()
endif
if(Lx8())then
set udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]=(udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]+999.00)
else
call DoNothing()
endif
call SetUnitManaBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_MANA,GetAttacker())+udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]))
set udg_O[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))]=0.00
endfunction
function Lz8 takes nothing returns nothing
set udg_RF=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_RF,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_RF,Condition(function Lp8))
call TriggerAddAction(udg_RF,function Ly8)
endfunction
function LA8 takes nothing returns nothing
call AdjustPlayerStateBJ(4,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function La8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function LB8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Lb8 takes nothing returns boolean
return GetBooleanAnd(La8(),LB8())
endfunction
function LC8 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_P9),udg_f)==true))then
return false
endif
if(not(UnitHasBuffBJ(udg_P9,1112433775)==false))then
return false
endif
return true
endfunction
function Lc8 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_P9),udg_e)==true))then
return false
endif
if(not(UnitHasBuffBJ(udg_P9,1110454337)==false))then
return false
endif
return true
endfunction
function LD8 takes nothing returns nothing
set udg_P9=GetEnumUnit()
set udg_O9=GetUnitLoc(udg_P9)
if(Lc8())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_P9),udg_O9,bj_UNIT_FACING)
set udg_N9=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678164,udg_N9)
call IssueTargetOrderBJ(udg_N9,"rejuvination",udg_P9)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_N9)
set udg_N9=null
else
if(LC8())then
call UnitRemoveBuffBJ(1114205814,udg_P9)
call UnitRemoveBuffBJ(1114207859,udg_P9)
call UnitRemoveBuffBJ(1110454354,udg_P9)
call UnitRemoveBuffBJ(1110454353,udg_P9)
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_O9,bj_UNIT_FACING)
set udg_re[99]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677104,udg_re[99])
call IssueTargetOrderBJ(udg_re[99],"doom",udg_P9)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[99])
set udg_re[99]=null
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_O9,bj_UNIT_FACING)
set udg_re[99]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681490,udg_re[99])
call IssueTargetOrderBJ(udg_re[99],"faeriefire",udg_P9)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[99])
set udg_re[99]=null
else
call DoNothing()
endif
endif
set udg_P9=null
call RemoveLocation(udg_O9)
set udg_O9=null
endfunction
function LE8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_jg)==false))then
return false
endif
return true
endfunction
function L38 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function LF8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function LG8 takes nothing returns boolean
return GetBooleanAnd(L38(),LF8())
endfunction
function L68 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_P9),udg_e)==true))then
return false
endif
if(not(UnitHasBuffBJ(udg_P9,1112433775)==false))then
return false
endif
return true
endfunction
function LH8 takes nothing returns boolean
if(not(IsPlayerInForce(GetOwningPlayer(udg_P9),udg_f)==true))then
return false
endif
if(not(UnitHasBuffBJ(udg_P9,1110454337)==false))then
return false
endif
return true
endfunction
function LI8 takes nothing returns nothing
set udg_P9=GetEnumUnit()
set udg_O9=GetUnitLoc(udg_P9)
if(LH8())then
call CreateNUnitsAtLoc(1,1966092338,GetOwningPlayer(udg_P9),udg_O9,bj_UNIT_FACING)
set udg_N9=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093678164,udg_N9)
call IssueTargetOrderBJ(udg_N9,"rejuvination",udg_P9)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_N9)
set udg_N9=null
else
if(L68())then
call UnitRemoveBuffBJ(1114205814,udg_P9)
call UnitRemoveBuffBJ(1114207859,udg_P9)
call UnitRemoveBuffBJ(1110454354,udg_P9)
call UnitRemoveBuffBJ(1110454353,udg_P9)
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_O9,bj_UNIT_FACING)
set udg_re[99]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093677104,udg_re[99])
call IssueTargetOrderBJ(udg_re[99],"doom",udg_P9)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[99])
set udg_re[99]=null
call CreateNUnitsAtLoc(1,1966092338,ConvertedPlayer(13),udg_O9,bj_UNIT_FACING)
set udg_re[99]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1093681490,udg_re[99])
call IssueTargetOrderBJ(udg_re[99],"faeriefire",udg_P9)
call UnitApplyTimedLifeBJ(1.00,1112820806,udg_re[99])
set udg_re[99]=null
else
call DoNothing()
endif
endif
set udg_P9=null
call RemoveLocation(udg_O9)
set udg_O9=null
endfunction
function Ll8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_jg)==false))then
return false
endif
return true
endfunction
function L18 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"Error; 723!!")
endfunction
function LJ8 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function LK8 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_COMPUTER)
endfunction
function LL8 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_f)==true))then
return false
endif
return true
endfunction
function LM8 takes nothing returns boolean
if(not(IsPlayerInForce(GetEnumPlayer(),udg_e)==true))then
return false
endif
return true
endfunction
function LN8 takes nothing returns nothing
if(LM8())then
set udg_k8[GetConvertedPlayerId(GetEnumPlayer())]=true
set udg_m8[GetConvertedPlayerId(GetEnumPlayer())]=true
set udg_v8[GetConvertedPlayerId(GetEnumPlayer())]=true
set udg_w8[GetConvertedPlayerId(GetEnumPlayer())]=true
set udg_n8[GetConvertedPlayerId(GetEnumPlayer())]=true
set udg_o8[GetConvertedPlayerId(GetEnumPlayer())]=true
else
if(LL8())then
set udg_p8[GetConvertedPlayerId(GetEnumPlayer())]=true
set udg_q8[GetConvertedPlayerId(GetEnumPlayer())]=true
set udg_r8[GetConvertedPlayerId(GetEnumPlayer())]=true
set udg_s8[GetConvertedPlayerId(GetEnumPlayer())]=true
set udg_t8[GetConvertedPlayerId(GetEnumPlayer())]=true
set udg_u8[GetConvertedPlayerId(GetEnumPlayer())]=true
else
call DoNothing()
endif
endif
endfunction
function LO8 takes nothing returns boolean
if(not(IsTriggerEnabled(udg_sF)==false))then
return false
endif
return true
endfunction
function L08 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[89]))==true)
endfunction
function LP8 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==true)
endfunction
function LQ8 takes nothing returns boolean
return GetBooleanAnd(L08(),LP8())
endfunction
function LR8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_A[89]))==true)
endfunction
function LS8 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454324)==false)
endfunction
function L58 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),1110454583)==true)
endfunction
function LT8 takes nothing returns boolean
return GetBooleanAnd(LS8(),L58())
endfunction
function LU8 takes nothing returns boolean
return GetBooleanAnd(LR8(),LT8())
endfunction
function LV8 takes nothing returns boolean
if(not(udg_A[89]!=null))then
return false
endif
if(not(IsUnitGroupEmptyBJ(YG(GetPlayableMapRect(),Condition(function LU8)))==false))then
return false
endif
return true
endfunction
function LW8 takes nothing returns boolean
if(not(IsUnitDeadBJ(GetEnumUnit())==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=udg_e8))then
return false
endif
return true
endfunction
function LX8 takes nothing returns boolean
if(not LW8())then
return false
endif
return true
endfunction
function LY8 takes nothing returns boolean
if(not(IsUnitDeadBJ(GetEnumUnit())==false))then
return false
endif
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())>udg_e8))then
return false
endif
return true
endfunction
function L28 takes nothing returns boolean
if(not LY8())then
return false
endif
return true
endfunction
function LZ8 takes nothing returns boolean
if(not(UnitHasBuffBJ(GetEnumUnit(),1110454324)==false))then
return false
endif
return true
endfunction
function L_8 takes nothing returns nothing
if(LZ8())then
set udg_e8=((0.01*(2.00+I2R(GetUnitAbilityLevelSwapped(1093678146,udg_A[89]))))*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetEnumUnit()))
if(L28())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())-udg_e8))
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(LX8())then
call UnitDamageTargetBJ(udg_A[89],GetEnumUnit(),99999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
set udg_e8=0.00
else
call DoNothing()
endif
endfunction
function M48 takes nothing returns boolean
if(not LV8())then
return false
endif
return true
endfunction
function M78 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1311780947)
endfunction
function M88 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function M98 takes nothing returns boolean
return GetBooleanAnd(M78(),M88())
endfunction
function Md8 takes nothing returns nothing
set udg_Ye=GetEnumUnit()
endfunction
function Me8 takes nothing returns boolean
if(not(udg_Ze[1]==null))then
return false
endif
return true
endfunction
function Mf8 takes nothing returns boolean
return(IsTriggerEnabled(udg_XE)==true)
endfunction
function Mg8 takes nothing returns boolean
return(IsTriggerEnabled(udg_YE)==true)
endfunction
function Mh8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093679440,udg_Ye)>0)
endfunction
function Mi8 takes nothing returns boolean
return(udg_ff==true)
endfunction
function Mj8 takes nothing returns boolean
return GetBooleanAnd(Mh8(),Mi8())
endfunction
function Mk8 takes nothing returns boolean
return(UnitHasBuffBJ(udg_Ye,1110454838)==false)
endfunction
function Mm8 takes nothing returns boolean
if(not(udg_d[GetConvertedPlayerId(GetOwningPlayer(udg_Ye))]<50))then
return false
endif
return true
endfunction
function Mn8 takes nothing returns boolean
if(not(udg_d[GetConvertedPlayerId(GetOwningPlayer(udg_Ye))]<50))then
return false
endif
return true
endfunction
function Mo8 takes nothing returns boolean
if(not(udg_Ze[1]==null))then
return false
endif
return true
endfunction
function Mp8 takes nothing returns boolean
return(IsTriggerEnabled(udg_XE)==false)
endfunction
function Mq8 takes nothing returns boolean
return(IsTriggerEnabled(udg_YE)==false)
endfunction
function Mr8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093679440,udg_Ye)==0)
endfunction
function Ms8 takes nothing returns boolean
return(udg_ff==true)
endfunction
function Mt8 takes nothing returns boolean
return GetBooleanAnd(Mr8(),Ms8())
endfunction
function Mu8 takes nothing returns boolean
return(UnitHasBuffBJ(udg_Ye,1110454838)==true)
endfunction
function Mv8 takes nothing returns boolean
if(not(GetTimeOfDay()>6.00))then
return false
endif
if(not(GetTimeOfDay()<18.00))then
return false
endif
return true
endfunction
function Mw8 takes nothing returns boolean
if(not Mv8())then
return false
endif
return true
endfunction
function Mx8 takes nothing returns boolean
if(not(udg_Ye!=null))then
return false
endif
return true
endfunction
function My8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_ef)==false))then
return false
endif
return true
endfunction
function Mz8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function MA8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Ma8 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_uf))==true)
endfunction
function MB8 takes nothing returns boolean
return GetBooleanAnd(MA8(),Ma8())
endfunction
function Mb8 takes nothing returns boolean
return GetBooleanAnd(Mz8(),MB8())
endfunction
function MC8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_wf)==false))then
return false
endif
return true
endfunction
function Mc8 takes nothing returns boolean
if(not(udg_uf!=null))then
return false
endif
if(not(IsUnitAliveBJ(udg_uf)==true))then
return false
endif
if(not(udg_yf==true))then
return false
endif
return true
endfunction
function MD8 takes nothing returns boolean
if(not Mc8())then
return false
endif
return true
endfunction
function ME8 takes nothing returns boolean
if(not(udg_sg==true))then
return false
endif
if(not(udg_A[44]!=null))then
return false
endif
return true
endfunction
function M38 takes nothing returns boolean
return(GetFilterUnit()==udg_A[44])
endfunction
function MF8 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function MG8 takes nothing returns boolean
if(not(udg_A[45]!=null))then
return false
endif
if(not(IsUnitDeadBJ(udg_A[45])==false))then
return false
endif
return true
endfunction
function M68 takes nothing returns boolean
if(not MG8())then
return false
endif
return true
endfunction
function MH8 takes nothing returns boolean
return(UnitHasBuffBJ(udg_A[44],1110454839)==true)
endfunction
function MI8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_tg)==true))then
return false
endif
return true
endfunction
function Ml8 takes nothing returns boolean
if(not ME8())then
return false
endif
return true
endfunction
function M18 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_Mh))==true)
endfunction
function MJ8 takes nothing returns boolean
return(MG(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function MK8 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped(1093677393,GetFilterUnit())==0)
endfunction
function ML8 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function MM8 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_MANA,GetFilterUnit())>=50.00)
endfunction
function MN8 takes nothing returns boolean
return GetBooleanAnd(ML8(),MM8())
endfunction
function MO8 takes nothing returns boolean
return GetBooleanAnd(MK8(),MN8())
endfunction
function M08 takes nothing returns boolean
return GetBooleanAnd(MJ8(),MO8())
endfunction
function MP8 takes nothing returns boolean
return GetBooleanAnd(M18(),M08())
endfunction
function MQ8 takes nothing returns nothing
call SetUnitManaBJ(udg_Mh,(GetUnitStateSwap(UNIT_STATE_MANA,udg_Mh)+60.00))
call SetUnitManaBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetEnumUnit())-60.00))
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Abilities\\Weapons\\PriestMissile\\PriestMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function MR8 takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(udg_Nh)==false))then
return false
endif
return true
endfunction
function MS8 takes nothing returns boolean
if(not(udg_Lh==true))then
return false
endif
return true
endfunction
function M58 takes nothing returns nothing
call ForForce(udg_M9,function LA8)
set udg_jg=YG(udg_vo,Condition(function Lb8))
if(LE8())then
call ForGroupBJ(udg_jg,function LD8)
else
call DoNothing()
endif
call DestroyGroup(udg_jg)
set udg_jg=null
set udg_jg=YG(udg_xo,Condition(function LG8))
if(Ll8())then
call ForGroupBJ(udg_jg,function LI8)
else
call DoNothing()
endif
call DestroyGroup(udg_jg)
set udg_jg=null
if(LJ8())then
call ForForce(GetPlayersAll(),function L18)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
if(LO8())then
call DoNothing()
else
call ForForce(t6(Condition(function LK8)),function LN8)
endif
if(M48())then
set udg_O8=YG(GetPlayableMapRect(),Condition(function LQ8))
call ForGroupBJ(udg_O8,function L_8)
call DestroyGroup(udg_O8)
set udg_O8=null
else
call DoNothing()
endif
set udg_ef=YG(GetPlayableMapRect(),Condition(function M98))
if(My8())then
call ForGroupBJ(udg_ef,function Md8)
if(Mx8())then
if(Mw8())then
if(Me8())then
call DoNothing()
else
call UnitApplyTimedLifeBJ(0.01,1112820806,udg_Ze[1])
set udg_Ze[1]=null
endif
if(Mf8())then
call DisableTrigger(udg_XE)
else
call DoNothing()
endif
if(Mg8())then
call DisableTrigger(udg_YE)
else
call DoNothing()
endif
if(Mj8())then
call UnitRemoveAbilityBJ(1093679440,udg_Ye)
else
call DoNothing()
endif
if(Mk8())then
call SetUnitScalePercent(udg_Ye,100.00,100.00,100.00)
else
call UnitRemoveBuffBJ(1110454838,udg_Ye)
endif
else
if(Mo8())then
set udg_df=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1870100854,GetOwningPlayer(udg_Ye),udg_df,bj_UNIT_FACING)
set udg_Ze[1]=GetLastCreatedUnit()
call UnitAddAbilityBJ(1395666993,udg_Ze[1])
if(Mn8())then
call SetUnitAbilityLevelSwapped(1395666993,udg_Ze[1],udg_d[GetConvertedPlayerId(GetOwningPlayer(udg_Ye))])
else
call SetUnitAbilityLevelSwapped(1395666993,udg_Ze[1],50)
endif
call RemoveLocation(udg_df)
set udg_df=null
else
if(Mm8())then
call SetUnitAbilityLevelSwapped(1395666993,udg_Ze[1],udg_d[GetConvertedPlayerId(GetOwningPlayer(udg_Ye))])
else
call SetUnitAbilityLevelSwapped(1395666993,udg_Ze[1],50)
endif
endif
if(Mp8())then
call EnableTrigger(udg_XE)
else
call DoNothing()
endif
if(Mq8())then
call EnableTrigger(udg_YE)
else
call DoNothing()
endif
if(Mt8())then
call UnitAddAbilityBJ(1093679440,udg_Ye)
else
call DoNothing()
endif
if(Mu8())then
call SetUnitScalePercent(udg_Ye,175.00,175.00,175.00)
else
call SetUnitScalePercent(udg_Ye,100,100,100)
endif
endif
else
call DoNothing()
endif
set udg_Ye=null
else
call DoNothing()
endif
call DestroyGroup(udg_ef)
set udg_ef=null
if(MD8())then
set udg_xf=GetUnitLoc(udg_uf)
set udg_wf=e6(350.00,udg_xf,Condition(function Mb8))
if(MC8())then
call KillUnit(udg_uf)
else
call DoNothing()
endif
call DestroyGroup(udg_wf)
set udg_wf=null
call RemoveLocation(udg_xf)
set udg_xf=null
else
call DoNothing()
endif
if(Ml8())then
set udg_tg=e6(900.00,udg_B[23],Condition(function M38))
if(MI8())then
set udg_sg=false
set udg_ug=GetRectCenter(udg_to)
call CreateNUnitsAtLoc(1,1869116782,GetOwningPlayer(udg_A[44]),udg_ug,bj_UNIT_FACING)
call RemoveLocation(udg_ug)
set udg_ug=null
set udg_X9=k6(GetOwningPlayer(udg_A[44]),1747988534)
call ForGroupBJ(udg_X9,function MF8)
call DestroyGroup(udg_X9)
set udg_X9=null
call SetBlightRadiusLocBJ(false,Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_B[23],1000.00)
call SetUnitAbilityLevelSwapped(1093681481,udg_A[44],1)
if(M68())then
call KillUnit(udg_A[45])
set udg_A[45]=null
else
call DoNothing()
endif
if(MH8())then
call UnitRemoveBuffBJ(1110454839,udg_A[44])
else
call DoNothing()
endif
set udg_H[3]=0.00
set udg_A[44]=null
call RemoveLocation(udg_B[23])
set udg_B[23]=null
else
call DoNothing()
endif
call DestroyGroup(udg_tg)
set udg_tg=null
else
call DoNothing()
endif
if(MS8())then
set udg_Oh=GetUnitLoc(udg_Mh)
set udg_Nh=e6(700.00,udg_Oh,Condition(function MP8))
if(MR8())then
call ForGroupBJ(udg_Nh,function MQ8)
else
call DoNothing()
endif
call RemoveLocation(udg_Oh)
set udg_Oh=null
call DestroyGroup(udg_Nh)
set udg_Nh=null
else
call DoNothing()
endif
endfunction
function MT8 takes nothing returns nothing
set udg_SF=CreateTrigger()
call DisableTrigger(udg_SF)
call TriggerRegisterTimerEventPeriodic(udg_SF,1.00)
call TriggerAddAction(udg_SF,function M58)
endfunction
function MU8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetTriggerPlayer())
endfunction
function MV8 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1848651833)
endfunction
function MW8 takes nothing returns boolean
return GetBooleanAnd(MU8(),MV8())
endfunction
function MX8 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_uo))
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitRemoveItemFromSlotSwapped(udg_K4,GetEnumUnit())
endfunction
function MY8 takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=null))then
return false
endif
return true
endfunction
function M28 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function MZ8 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())!=PLAYER_SLOT_STATE_LEFT)
endfunction
function M_8 takes nothing returns boolean
return GetBooleanAnd(M28(),MZ8())
endfunction
function N48 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_e)==true)
endfunction
function N78 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())!=PLAYER_SLOT_STATE_LEFT)
endfunction
function N88 takes nothing returns boolean
return GetBooleanAnd(N48(),N78())
endfunction
function N98 takes nothing returns nothing
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)/CountPlayersInForceBJ(t6(Condition(function N88)))),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Nd8 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetTriggerPlayer())
endfunction
function Ne8 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==1848651833)
endfunction
function Nf8 takes nothing returns boolean
return GetBooleanAnd(Nd8(),Ne8())
endfunction
function Ng8 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_wo))
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitRemoveItemFromSlotSwapped(udg_K4,GetEnumUnit())
endfunction
function Nh8 takes nothing returns boolean
if(not(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]!=null))then
return false
endif
return true
endfunction
function Ni8 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function Nj8 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())!=PLAYER_SLOT_STATE_LEFT)
endfunction
function Nk8 takes nothing returns boolean
return GetBooleanAnd(Ni8(),Nj8())
endfunction
function Nm8 takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_f)==true)
endfunction
function Nn8 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())!=PLAYER_SLOT_STATE_LEFT)
endfunction
function No8 takes nothing returns boolean
return GetBooleanAnd(Nm8(),Nn8())
endfunction
function Np8 takes nothing returns nothing
call AdjustPlayerStateBJ((GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)/CountPlayersInForceBJ(t6(Condition(function No8)))),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Nq8 takes nothing returns boolean
if(not(IsPlayerInForce(GetTriggerPlayer(),udg_f)==true))then
return false
endif
return true
endfunction
function Nr8 takes nothing returns boolean
if(not(IsPlayerInForce(GetTriggerPlayer(),udg_e)==true))then
return false
endif
return true
endfunction
function Ns8 takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"")
endfunction
function Nt8 takes nothing returns boolean
if(not(SubStringBJ(MultiboardGetTitleText(udg_X),1,9)!="BvO 2.09b"))then
return false
endif
return true
endfunction
function Nu8 takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),15.00,(udg_E[GetConvertedPlayerId(GetTriggerPlayer())]+" |c00ff0303has left the game|r"))
if(Nr8())then
call MultiboardSetItemValueBJ(udg_X,1,(2+GetConvertedPlayerId(GetTriggerPlayer())),("|c00959697"+(GetPlayerName(GetTriggerPlayer())+"|r")))
call MultiboardSetItemValueBJ(udg_X,2,(2+GetConvertedPlayerId(GetTriggerPlayer())),("|c00959697"+(I2S(udg_d[GetConvertedPlayerId(GetTriggerPlayer())])+"|r")))
if(MY8())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetRandomLocInRect(udg_uo))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPathing(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],false)
call SetUnitMoveSpeed(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],50.00)
call SetUnitVertexColorBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],100,100,100,50.00)
call UnitAddTypeBJ(UNIT_TYPE_ANCIENT,udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call PauseUnitBJ(true,udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call SetUnitInvulnerable(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],true)
set udg_K4=1
loop
exitwhen udg_K4>6
call UnitRemoveItemFromSlotSwapped(udg_K4,udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call ForGroupBJ(YG(GetPlayableMapRect(),Condition(function MW8)),function MX8)
set udg_K4=udg_K4+1
endloop
else
call DoNothing()
endif
call ForForce(t6(Condition(function M_8)),function N98)
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,0)
else
if(Nq8())then
call MultiboardSetItemValueBJ(udg_X,1,(3+GetConvertedPlayerId(GetTriggerPlayer())),("|c00959697"+(GetPlayerName(GetTriggerPlayer())+"|r")))
call MultiboardSetItemValueBJ(udg_X,2,(3+GetConvertedPlayerId(GetTriggerPlayer())),("|c00959697"+(I2S(udg_d[GetConvertedPlayerId(GetTriggerPlayer())])+"|r")))
if(Nh8())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],GetRandomLocInRect(udg_wo))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_m[GetConvertedPlayerId(GetTriggerPlayer())]),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPathing(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],false)
call SetUnitMoveSpeed(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],50.00)
call SetUnitVertexColorBJ(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],100,100,100,50.00)
call UnitAddTypeBJ(UNIT_TYPE_ANCIENT,udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call PauseUnitBJ(true,udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call SetUnitInvulnerable(udg_m[GetConvertedPlayerId(GetTriggerPlayer())],true)
set udg_K4=1
loop
exitwhen udg_K4>6
call UnitRemoveItemFromSlotSwapped(udg_K4,udg_m[GetConvertedPlayerId(GetTriggerPlayer())])
call ForGroupBJ(YG(GetPlayableMapRect(),Condition(function Nf8)),function Ng8)
set udg_K4=udg_K4+1
endloop
else
call DoNothing()
endif
call ForForce(t6(Condition(function Nk8)),function Np8)
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,0)
call TriggerExecute(udg_Ct)
else
call DoNothing()
endif
endif
if(Nt8())then
call ForForce(GetPlayersAll(),function Ns8)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Nv8 takes nothing returns nothing
set udg_TF=CreateTrigger()
call TriggerRegisterPlayerEventLeave(udg_TF,Player(0))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(1))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(2))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(3))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(4))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(5))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(6))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(7))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(8))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(9))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(10))
call TriggerRegisterPlayerEventLeave(udg_TF,Player(11))
call TriggerAddAction(udg_TF,function Nu8)
endfunction
function Nw8 takes nothing returns nothing
call CH()
call DH()
call GH()
call vl()
call yl()
call t1()
call y1()
call A1()
call c1()
call O1()
call Q1()
call Y1()
call eJ()
call tJ()
call xJ()
call CK()
call EK()
call JK()
call NK()
call RK()
call VK()
call TL()
call hM()
call uM()
call DM()
call HM()
call KM()
call BN()
call mO()
call XO()
call wQ()
call jS()
call OT()
call cW()
call lX()
call XY()
call kZ()
call dx4()
call dz4()
call ev4()
call fp4()
call fy4()
call fK4()
call fW4()
call fZ4()
call gf4()
call gj4()
call gs4()
call gw4()
call gA4()
call gC4()
call gH4()
call gK4()
call g04()
call gS4()
call gW4()
call he4()
call hp4()
call hF4()
call jb4()
call jE4()
call j64()
call jZ4()
call k84()
call kC4()
call kS4()
call kX4()
call k24()
call mm4()
call mo4()
call mr4()
call mu4()
call mF4()
call mI4()
call mM4()
call m04()
call mR4()
call mU4()
call mZ4()
call n84()
call nh4()
call nn4()
call nq4()
call nv4()
call n04()
call oj4()
call o34()
call o64()
call ol4()
call oJ4()
call o54()
call pr4()
call pw4()
call pa4()
call pc4()
call pF4()
call pH4()
call p14()
call q94()
call qm4()
call qv4()
call qC4()
call qI4()
call q04()
call qW4()
call r94()
call rm4()
call rv4()
call rC4()
call rI4()
call r04()
call s64()
call tA4()
call ua4()
call vB4()
call wb4()
call xC4()
call yc4()
call zD4()
call AE4()
call a34()
call BF4()
call bG4()
call C64()
call cH4()
call cT4()
call c_4()
call Dg4()
call Dp4()
call Dx4()
call Dc4()
call DI4()
call DO4()
call DU4()
call E44()
call Eh4()
call Eq4()
call Ey4()
call Ea4()
call EC4()
call EE4()
call EG4()
call EI4()
call EJ4()
call EM4()
call E04()
call ER4()
call ET4()
call EW4()
call E24()
call F44()
call F94()
call Fi4()
call Fm4()
call Fp4()
call Fs4()
call Fv4()
call Fy4()
call Fa4()
call FC4()
call FE4()
call FG4()
call FI4()
call FJ4()
call FM4()
call FS4()
call FU4()
call FX4()
call FZ4()
call G74()
call Gd4()
call Gg4()
call Gj4()
call Gn4()
call Gq4()
call Gt4()
call Gw4()
call Gz4()
call Gc4()
call G34()
call G64()
call Gl4()
call GK4()
call GQ4()
call GX4()
call Hg4()
call Hj4()
call Hb4()
call HD4()
call HF4()
call HH4()
call H14()
call HL4()
call HO4()
call HQ4()
call HV4()
call HZ4()
call I94()
call Ij4()
call In4()
call Iq4()
call Ia4()
call I34()
call IH4()
call IP4()
call IT4()
call IX4()
call I_4()
call l94()
call lm4()
call lv4()
call lD4()
call ll4()
call lM4()
call lV4()
call Jg4()
call JB4()
call JD4()
call JK4()
call JT4()
call K84()
call Kj4()
call Kp4()
call Kx4()
call Kb4()
call K34()
call KR4()
call L44()
call Lm4()
call Ly4()
call LF4()
call L04()
call LS4()
call M74()
call Mj4()
call Mv4()
call ME4()
call MO4()
call MS4()
call MW4()
call M_4()
call Nd4()
call Ni4()
call No4()
call Nt4()
call Ny4()
call Nb4()
call N34()
call NI4()
call NL4()
call NP4()
call N54()
call NX4()
call O44()
call Od4()
call Oh4()
call Om4()
call Oq4()
call Ou4()
call Oy4()
call Ob4()
call O34()
call OI4()
call OK4()
call O04()
call O54()
call OX4()
call P44()
call Pe4()
call Pj4()
call Pp4()
call Pv4()
call PA4()
call PC4()
call P34()
call PH4()
call PX4()
call Qp4()
call QF4()
call QU4()
call Rm4()
call RD4()
call RS4()
call Si4()
call Sb4()
call SP4()
call Tf4()
call TA4()
call TB4()
call TC4()
call TD4()
call T34()
call TG4()
call TH4()
call Tl4()
call TJ4()
call TL4()
call TN4()
call T04()
call TQ4()
call TT4()
call T24()
call U44()
call U94()
call Uf4()
call Ui4()
call Um4()
call Up4()
call Us4()
call Uv4()
call Uy4()
call Ua4()
call UC4()
call UE4()
call UJ4()
call UO4()
call UW4()
call UZ4()
call V84()
call Vg4()
call Vk4()
call Vp4()
call Vt4()
call Vx4()
call Va4()
call Vc4()
call VF4()
call VI4()
call VK4()
call VO4()
call VR4()
call VU4()
call VY4()
call W94()
call Wg4()
call Wk4()
call Wp4()
call Wt4()
call Wx4()
call Wa4()
call Wc4()
call WF4()
call WI4()
call WK4()
call WO4()
call WR4()
call WU4()
call WY4()
call X44()
call Xd4()
call Xh4()
call Xm4()
call Xq4()
call Xu4()
call Xy4()
call XB4()
call XD4()
call XG4()
call Xl4()
call XL4()
call X04()
call XS4()
call XV4()
call X24()
call Y74()
call Ye4()
call Yi4()
call Yn4()
call Yr4()
call Yv4()
call Yz4()
call Yb4()
call YE4()
call Y64()
call Y14()
call YM4()
call YP4()
call Y54()
call YW4()
call YZ4()
call Z84()
call Zf4()
call Zj4()
call Zo4()
call Zs4()
call Zw4()
call ZA4()
call ZC4()
call Z34()
call ZH4()
call ZJ4()
call ZN4()
call ZQ4()
call ZT4()
call ZX4()
call Z_4()
call d97()
call dg7()
call dk7()
call dp7()
call dt7()
call dx7()
call da7()
call dc7()
call dF7()
call dI7()
call dK7()
call dO7()
call dR7()
call dU7()
call dY7()
call e47()
call ed7()
call eh7()
call em7()
call eq7()
call eu7()
call ey7()
call eB7()
call eD7()
call eG7()
call el7()
call eL7()
call e07()
call eS7()
call eV7()
call e27()
call f77()
call fe7()
call fi7()
call fn7()
call fr7()
call fv7()
call fz7()
call fb7()
call fE7()
call f67()
call f17()
call fM7()
call fP7()
call f57()
call fW7()
call fZ7()
call g87()
call gf7()
call gj7()
call go7()
call gs7()
call gw7()
call gA7()
call gC7()
call g37()
call gH7()
call g17()
call gN7()
call g57()
call gZ7()
call hd7()
call hl7()
call hM7()
call io7()
call ir7()
call iA7()
call jV7()
call kl7()
call kL7()
call kX7()
call mi7()
call mm7()
call mr7()
call my7()
call mQ7()
call mT7()
call m27()
call nd7()
call nk7()
call no7()
call ns7()
call nu7()
call nK7()
call nN7()
call nT7()
call nY7()
call n_7()
call oB7()
call o37()
call o67()
call o57()
call oX7()
call p07()
call pV7()
call pZ7()
call q77()
call qf7()
call qj7()
call qn7()
call qr7()
call qB7()
call qP7()
call q57()
call qY7()
call rj7()
call ro7()
call rr7()
call rv7()
call ry7()
call rL7()
call r07()
call sg7()
call sF7()
call sW7()
call to7()
call tr7()
call tx7()
call tM7()
call tR7()
call u87()
call ug7()
call un7()
call ut7()
call uG7()
call u27()
call ve7()
call vh7()
call vm7()
call vp7()
call vs7()
call vw7()
call vC7()
call v37()
call vI7()
call vV7()
call vY7()
call wb7()
call wF7()
call wJ7()
call wP7()
call wZ7()
call xq7()
call xv7()
call xc7()
call xl7()
call yf7()
call yv7()
call yy7()
call yD7()
call yl7()
call yK7()
call zd7()
call zg7()
call zs7()
call zx7()
call zc7()
call zL7()
call zW7()
call An7()
call Aq7()
call AA7()
call AD7()
call AM7()
call A27()
call A_7()
call ah7()
call aD7()
call aY7()
call Bv7()
call BA7()
call B37()
call B57()
call BW7()
call bq7()
call bt7()
call bw7()
call bz7()
call bB7()
call b37()
call bV7()
call C77()
call Cd7()
call Ch7()
call CA7()
call C37()
call CR7()
call CT7()
call ch7()
call cl7()
call cS7()
call cV7()
call DM7()
call Ei7()
call Er7()
call Ev7()
call EA7()
call ED7()
call EF7()
call EK7()
call Fo7()
call Fy7()
call Fb7()
call FP7()
call FT7()
call G77()
call Gd7()
call GH7()
call H47()
call H97()
call Hi7()
call Ht7()
call Hz7()
call HC7()
call HE7()
call HX7()
call H_7()
call Ic7()
call I17()
call IR7()
call IU7()
call lf7()
call li7()
call lz7()
call ll7()
call J97()
call Ji7()
call Jn7()
call Jt7()
call Jx7()
call J17()
call JL7()
call JS7()
call Kg7()
call Kk7()
call Kp7()
call Kx7()
call K17()
call KP7()
call LZ7()
call Mf7()
call MD7()
call MF7()
call MM7()
call MP7()
call N77()
call Ne7()
call Nv7()
call ND7()
call NP7()
call Oh7()
call Ov7()
call Oz7()
call OE7()
call OI7()
call OT7()
call OW7()
call Pt7()
call Py7()
call Pb7()
call PE7()
call PH7()
call P57()
call Qi7()
call Qb7()
call QH7()
call QJ7()
call QQ7()
call R47()
call RQ7()
call RT7()
call RX7()
call S77()
call Sk7()
call S67()
call Sl7()
call SP7()
call SS7()
call Th7()
call Tw7()
call T07()
call TU7()
call TZ7()
call Ug7()
call Uq7()
call UF7()
call UH7()
call U57()
call UX7()
call U_7()
call V97()
call Vh7()
call Vx7()
call VC7()
call VP7()
call Wi7()
call Wn7()
call Wx7()
call WA7()
call WF7()
call W57()
call W27()
call Xg7()
call Xq7()
call Xv7()
call XG7()
call XJ7()
call X07()
call XV7()
call X27()
call Y47()
call Ye7()
call Y37()
call Yl7()
call YL7()
call YZ7()
call Z87()
call Zf7()
call Zj7()
call Za7()
call Z37()
call Z07()
call ZR7()
call Z27()
call dk8()
call dp8()
call dF8()
call dI8()
call dW8()
call d_8()
call eh8()
call eq8()
call et8()
call ex8()
call ea8()
call ec8()
call eL8()
call eV8()
call eZ8()
call fA8()
call fc8()
call f68()
call f18()
call fM8()
call fQ8()
call g48()
call jf8()
call jm8()
call jp8()
call jt8()
call jE8()
call jJ8()
call jZ8()
call kd8()
call kh8()
call km8()
call kD8()
call mj8()
call my8()
call mb8()
call m38()
call mI8()
call mL8()
call mU8()
call mX8()
call mZ8()
call nn8()
call nr8()
call nv8()
call nz8()
call nl8()
call nM8()
call n08()
call nX8()
call oe8()
call ox8()
call oa8()
call oC8()
call oE8()
call ol8()
call oN8()
call oQ8()
call pr8()
call p68()
call qI8()
call r88()
call ry8()
call ra8()
call rE8()
call rH8()
call rK8()
call rP8()
call rU8()
call r28()
call si8()
call sr8()
call sv8()
call sb8()
call sD8()
call s68()
call sR8()
call sV8()
call s_8()
call t98()
call tt8()
call tF8()
call tK8()
call uw8()
call uI8()
call uJ8()
call uU8()
call uZ8()
call v98()
call vg8()
call vt8()
call vA8()
call vI8()
call vK8()
call v58()
call vV8()
call v28()
call w48()
call w98()
call wg8()
call wu8()
call wA8()
call wb8()
call wQ8()
call wT8()
call w28()
call xF8()
call xV8()
call xY8()
call x_8()
call ye8()
call yn8()
call yq8()
call yt8()
call yx8()
call ya8()
call yG8()
call y18()
call yK8()
call yN8()
call yP8()
call yS8()
call yU8()
call zn8()
call zv8()
call zz8()
call zB8()
call zL8()
call Aj8()
call Ao8()
call Ar8()
call A38()
call AJ8()
call AP8()
call AV8()
call a48()
call ah8()
call ap8()
call aw8()
call aC8()
call a68()
call aL8()
call aR8()
call aX8()
call B88()
call Bi8()
call Bt8()
call BA8()
call B68()
call BL8()
call BR8()
call BX8()
call b98()
call bK8()
call CX8()
call C_8()
call cp8()
call cs8()
call FC8()
call IJ8()
call I28()
call l88()
call lf8()
call lh8()
call lj8()
call lp8()
call lt8()
call lv8()
call ly8()
call la8()
call lc8()
call lG8()
call lH8()
call lJ8()
call JJ8()
call JP8()
call Ka8()
call Kc8()
call KM8()
call KR8()
call KV8()
call KZ8()
call Lg8()
call Lj8()
call Ln8()
call Lz8()
call MT8()
call Nv8()
endfunction
function Nx8 takes nothing returns nothing
call ConditionalTriggerExecute(udg_xs)
endfunction
function Ny8 takes nothing returns nothing
call SetPlayerStartLocation(Player(0),0)
call ForcePlayerStartLocation(Player(0),0)
call SetPlayerColor(Player(0),ConvertPlayerColor(0))
call SetPlayerRacePreference(Player(0),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(0),false)
call SetPlayerController(Player(0),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(1),1)
call ForcePlayerStartLocation(Player(1),1)
call SetPlayerColor(Player(1),ConvertPlayerColor(1))
call SetPlayerRacePreference(Player(1),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(1),false)
call SetPlayerController(Player(1),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(2),2)
call ForcePlayerStartLocation(Player(2),2)
call SetPlayerColor(Player(2),ConvertPlayerColor(2))
call SetPlayerRacePreference(Player(2),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(2),false)
call SetPlayerController(Player(2),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(3),3)
call ForcePlayerStartLocation(Player(3),3)
call SetPlayerColor(Player(3),ConvertPlayerColor(3))
call SetPlayerRacePreference(Player(3),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(3),false)
call SetPlayerController(Player(3),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(4),4)
call ForcePlayerStartLocation(Player(4),4)
call SetPlayerColor(Player(4),ConvertPlayerColor(4))
call SetPlayerRacePreference(Player(4),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(4),false)
call SetPlayerController(Player(4),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(5),5)
call ForcePlayerStartLocation(Player(5),5)
call SetPlayerColor(Player(5),ConvertPlayerColor(5))
call SetPlayerRacePreference(Player(5),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(5),false)
call SetPlayerController(Player(5),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(6),6)
call ForcePlayerStartLocation(Player(6),6)
call SetPlayerColor(Player(6),ConvertPlayerColor(6))
call SetPlayerRacePreference(Player(6),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(6),false)
call SetPlayerController(Player(6),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(7),7)
call ForcePlayerStartLocation(Player(7),7)
call SetPlayerColor(Player(7),ConvertPlayerColor(7))
call SetPlayerRacePreference(Player(7),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(7),false)
call SetPlayerController(Player(7),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(8),8)
call ForcePlayerStartLocation(Player(8),8)
call SetPlayerColor(Player(8),ConvertPlayerColor(8))
call SetPlayerRacePreference(Player(8),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(8),false)
call SetPlayerController(Player(8),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(9),9)
call ForcePlayerStartLocation(Player(9),9)
call SetPlayerColor(Player(9),ConvertPlayerColor(9))
call SetPlayerRacePreference(Player(9),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(9),false)
call SetPlayerController(Player(9),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(10),10)
call ForcePlayerStartLocation(Player(10),10)
call SetPlayerColor(Player(10),ConvertPlayerColor(10))
call SetPlayerRacePreference(Player(10),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(10),false)
call SetPlayerController(Player(10),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(11),11)
call ForcePlayerStartLocation(Player(11),11)
call SetPlayerColor(Player(11),ConvertPlayerColor(11))
call SetPlayerRacePreference(Player(11),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(11),false)
call SetPlayerController(Player(11),MAP_CONTROL_USER)
endfunction
function InitCustomTeams2 takes nothing returns nothing
call SetPlayerTeam(Player(0),0)
call SetPlayerState(Player(0),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(1),0)
call SetPlayerState(Player(1),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(2),0)
call SetPlayerState(Player(2),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(3),0)
call SetPlayerState(Player(3),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(4),0)
call SetPlayerState(Player(4),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(5),0)
call SetPlayerState(Player(5),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(4),true)
call SetPlayerTeam(Player(6),1)
call SetPlayerState(Player(6),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(7),1)
call SetPlayerState(Player(7),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(8),1)
call SetPlayerState(Player(8),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(9),1)
call SetPlayerState(Player(9),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(10),1)
call SetPlayerState(Player(10),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(11),1)
call SetPlayerState(Player(11),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(10),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(10),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(10),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(10),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(10),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(10),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(11),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(10),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(11),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(10),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(11),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(10),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(11),true)
call SetPlayerAllianceStateVisionBJ(Player(10),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(10),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(10),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(10),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(10),Player(11),true)
call SetPlayerAllianceStateVisionBJ(Player(11),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(11),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(11),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(11),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(11),Player(10),true)
endfunction
function Nz8 takes nothing returns nothing
call SetStartLocPrioCount(0,4)
call SetStartLocPrio(0,0,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,1,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(1,4)
call SetStartLocPrio(1,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,1,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(2,4)
call SetStartLocPrio(2,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(3,4)
call SetStartLocPrio(3,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(4,4)
call SetStartLocPrio(4,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(5,6)
call SetStartLocPrio(5,0,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,1,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,2,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,3,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,4,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,5,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(6,6)
call SetStartLocPrio(6,0,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,1,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,2,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,3,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,4,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,5,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(7,6)
call SetStartLocPrio(7,0,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,1,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,2,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,3,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,4,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,5,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(8,6)
call SetStartLocPrio(8,0,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,1,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,2,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,3,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,4,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,5,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(9,6)
call SetStartLocPrio(9,0,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,1,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,2,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,3,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,4,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,5,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(10,6)
call SetStartLocPrio(10,0,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,1,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,2,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,3,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,4,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,5,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(11,6)
call SetStartLocPrio(11,0,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,1,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,2,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,3,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,4,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,5,10,MAP_LOC_PRIO_HIGH)
endfunction
function main2 takes nothing returns nothing
local integer zak=0
call N0C()
call CON()
loop
exitwhen zak>11
call TriggerRegisterPlayerChatEvent(udg_zwWW,Player(zak),"-P",false)
call TriggerRegisterPlayerUnitEvent(udg_zWww,Player(zak),ConvertPlayerUnitEvent(273),null)
set zak=zak+1
endloop
call TriggerAddAction(udg_zwWW,function xxD)
call TriggerAddAction(udg_zWww,function zzAD)
call SetCameraBounds(-7808.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-7040.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),8192.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),7424.0-GetCameraMargin(CAMERA_MARGIN_TOP),-7808.0+GetCameraMargin(CAMERA_MARGIN_LEFT),7424.0-GetCameraMargin(CAMERA_MARGIN_TOP),8192.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-7040.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("CityScapeDay")
call SetAmbientNightSound("CityScapeNight")
call SetMapMusic("Music",true,0)
call l6()
call fH()
call J6()
call eH()
call H6()
call I6()
call Nw8()
call Nx8()
endfunction
function InitTrig_Map_Inits takes nothing returns nothing
set udg_zWwW = InitGameCache("KeyBindings.w3v")
set udg_zwWW = CreateTrigger()
set udg_zWww = CreateTrigger()
set udg_TCH024 = InitHashtable()
call ExecuteFunc("main2")
endfunction