function Trig_Culling_Blade_A ctions takes nothing returns nothing set

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
function Trig_Culling_Blade_Actions takes nothing returns nothing
set udg_CB_Target_unit_loc = GetUnitLoc(GetSpellTargetUnit())
if ( Trig_Culling_Blade_Func002001() ) then
set udg_CB_Damage = 50
else
if ( Trig_Culling_Blade_Func002003001() ) then
set udg_CB_Damage = 100
else
if ( Trig_Culling_Blade_Func002003003001() ) then
set udg_CB_Damage = 150
else
if ( Trig_Culling_Blade_Func002003003003001() ) then
set udg_CB_Damage = 200
else
if ( Trig_Culling_Blade_Func002003003003003001() ) then
set udg_CB_Damage = 250
else
call DoNothing( )
endif
endif
endif
endif
endif
if ( Trig_Culling_Blade_Func003001() ) then
set udg_CB_Target_life = 350
else
if ( Trig_Culling_Blade_Func003003001() ) then
set udg_CB_Target_life = 425
else
if ( Trig_Culling_Blade_Func003003003001() ) then
set udg_CB_Target_life = 500
else
if ( Trig_Culling_Blade_Func003003003003001() ) then
set udg_CB_Target_life = 575
else
if ( Trig_Culling_Blade_Func003003003003003001() ) then
set udg_CB_Target_life = 650
else
call DoNothing( )
endif
endif
endif
endif
endif
if ( Trig_Culling_Blade_Func004001() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetSpellTargetUnit(), 1000000000.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
else
if ( Trig_Culling_Blade_Func004003001() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetSpellTargetUnit(), I2R(udg_CB_Damage), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
endif
if ( Trig_Culling_Blade_Func005001() ) then
call AddSpecialEffectLocBJ( GetSpellTargetLoc(), "Units\\Creeps\\HeroFlameLord\\HeroFlameLord.mdl" )
else
call DoNothing( )
endif
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_CB_Target_unit_loc)
endfunction