function MoveUnitFast takes unit u, real speed, real direction returns nothing
call SetUnitX(u, GetUnitX(u) + speed * Cos(direction) )
call SetUnitY(u, GetUnitY(u) + speed * Sin(direction) )
set u = null
endfunction
Name | Type | is_array | initial_value |
a | real | No | |
aatempo1 | location | Yes | |
aGroups | group | Yes | |
Angle | integer | Yes | 0 |
Arrow | group | Yes | |
Asuma | unit | Yes | |
Bankai | boolean | Yes | false |
Bansho_Tenin | unit | Yes | |
Bansho_Tenin_Point | location | Yes | |
bDuel | boolean | No | false |
Beast | unit | Yes | |
BM_Caster | unit | No | |
BM_Duration | integer | No | 0 |
BM_Enter | unit | No | |
BM_Group | group | No | |
BM_Hashtable | hashtable | No | |
BM_Integer | integer | No | 0 |
BM_Loop | integer | No | 0 |
Caster | unit | Yes | |
Castero | unit | Yes | |
CasteroPoint | location | Yes | |
CasterPoint | location | Yes | |
chosing | boolean | Yes | |
Circle_Position_setter | real | No | |
CM_Angle | real | Yes | 0 |
CM_Caster | unit | Yes | |
CM_cPoint | location | Yes | |
CM_DamageTimer | integer | Yes | 0 |
CM_Distance | real | Yes | 0 |
CM_dPoint | location | Yes | |
CM_Dummy | unit | Yes | |
CM_mPoint | location | Yes | |
CM_RollDamage | real | Yes | 0 |
CM_Targets | group | No | |
Config | integer | Yes | |
CrushingSand | unit | No | |
Danzou | unit | Yes | |
death_count | integer | Yes | 0 |
Debug | integervar | No | |
Degree | real | Yes | 0 |
Deidara | unit | Yes | |
Edokachyose | unit | Yes | |
EdoUnit | unit | Yes | |
EFB_Hash | hashtable | No | |
EFB_Moving_Units | group | No | |
Gaara | unit | No | |
GaaraUnitGroup | group | Yes | |
gai | unit | Yes | |
GigaShark | unit | Yes | |
Ginsan | integer | No | 0 |
Gintama | unit | No | |
Grimmjow | unit | Yes | |
GroupSnake | group | Yes | |
H_Ability | abilcode | Yes | |
H_Angle | real | Yes | |
H_BigStone | unit | Yes | |
H_Cast_Point | location | Yes | |
H_Chibacu | unit | Yes | |
H_Index | integer | No | |
H_Index_Max | integer | No | |
H_Knockback_Time | integer | Yes | |
H_KnockBackGroup | group | Yes | |
H_Loop | integer | No | |
H_Move | location | Yes | |
H_Mui | integer | No | |
H_Picked_Point | location | Yes | |
H_Picked_Unit | unit | Yes | |
H_Pickedunit2 | unit | Yes | |
H_PickUpGroup | group | Yes | |
H_Point1 | location | Yes | |
H_Point2 | location | Yes | |
H_RandomNumber | real | Yes | |
H_Small_Stone | unit | Yes | |
H_Speed1 | real | Yes | |
H_Speed2 | real | Yes | |
H_Spell | integer | Yes | |
H_Spell_Last | integer | Yes | |
H_Stone_Size | integer | Yes | |
H_Stones_Create | location | Yes | |
H_StonesRemove | group | Yes | |
H_unit | unit | Yes | |
Hado90 | location | No | |
harvester | unit | No | |
Hero2 | unit | Yes | |
hook1 | unit | Yes | |
Hook_Hashtable | hashtable | No | |
Hook_Heads | group | No | |
HookCount | integer | Yes | |
HookDistance | real | Yes | |
HookDummy | unit | Yes | |
HPORO | real | No | |
i | integer | No | |
i2 | integer | No | |
icon_row | integer | Yes | 0 |
Instanse | unit | Yes | |
int | integer | No | 0 |
Itachi | unit | Yes | |
Kabuto | unit | No | |
Kakashi | unit | Yes | |
KakRandomspells | integer | No | 0 |
KamuyK | group | No | |
KamuyKOFF | boolean | No | |
KamuyOFF | boolean | No | |
KamuyON | group | No | |
KamuySh | group | No | |
kill_count | integer | Yes | 0 |
Kisame | unit | Yes | |
leader_refresh_int | integer | No | 0 |
leaderboard | multiboard | No | |
Lighting_Raiden | lightning | Yes | |
loc | location | No | |
loc2 | location | No | |
MadaraTsu | group | No | |
Meat_SW | integer | No | |
meathookanglediff | real | Yes | |
mei | unit | Yes | |
Mo | unit | Yes | |
MUI1 | integer | No | 0 |
MUI2 | integer | No | |
MyNewGroups | group | Yes | |
MyNewPoint | location | Yes | |
Nagato | unit | Yes | |
NagatoPoint | location | Yes | |
Naruto | unit | Yes | |
Number | real | Yes | 0 |
ObitoFire | unit | No | |
ObitoFireTobi | unit | No | |
Omnislashing | boolean | Yes | false |
Orocgimaru | unit | Yes | |
Pein | unit | Yes | |
PeinL | location | Yes | |
PeinReal | real | Yes | 0 |
Peins | group | No | |
player_name | string | Yes | |
PlayerDanzo | player | No | |
PlayerGaara | player | No | |
PlayerNames | string | Yes | |
Point | location | Yes | |
Pointhero | location | Yes | |
PointNew | location | Yes | |
Points | location | Yes | |
Questeffects | effect | Yes | |
Questnumerals | integer | Yes | |
Queston | boolean | Yes | |
Questunit | unit | Yes | |
r | real | No | |
Raiden | group | Yes | |
raiden_angle | real | No | |
raiden_angle2 | real | No | |
Raikage | unit | Yes | |
RaiKageGroup | group | No | |
raikiri_raiden_dummy | unit | No | |
RANDOM | integer | Yes | 0 |
RandomTalk | integer | Yes | 0 |
Redmoon | unit | No | |
RS_G | group | Yes | |
RS_L | lightning | Yes | |
RS_P | location | Yes | |
RS_R | real | Yes | |
RS_U | unit | Yes | |
Sakura | unit | Yes | |
Sand | unit | No | |
Sasuke | unit | Yes | |
SEffect | effect | Yes | |
Sexy | unit | Yes | |
SkillLoops | integer | Yes | 0 |
Sky | weathereffect | Yes | |
SpecialEffect | effect | Yes | |
specialeffect | effect | Yes | |
SuitonDragonDeegre | integer | No | |
Sunagroup | group | No | |
Target | unit | Yes | |
TargetoPoint | location | Yes | |
Targets | unit | Yes | |
TB_Active | boolean | Yes | false |
TB_Angle | real | Yes | 0 |
TB_Caster | unit | Yes | |
TB_CurDistance | real | Yes | 0 |
TB_Dummy | unit | Yes | |
TB_dummygrp | group | No | |
TB_dummygrp2 | group | No | |
TB_LeakPoint | location | Yes | |
TB_LoopIndex | integer | Yes | 0 |
TB_MaxDistance | real | Yes | 0 |
TB_Speed | real | Yes | 0 |
TB_TempGroup | group | No | |
TB_temppoint1 | location | No | |
TB_temppoint2 | location | No | |
TB_x | real | No | |
Team1LeaderHero | unit | No | |
Team2LeaderHero | unit | No | |
Temp_Distance | real | No | |
Temp_Group | group | No | |
Temp_Point | location | No | |
Temp_Point_2 | location | No | |
Temp_Point_3 | location | No | |
Temp_Point_4 | location | No | |
Text | texttag | Yes | |
TheRedmoon | timerdialog | No | |
TimeMoon | timer | No | |
Tobi | unit | Yes | |
TobiM | unit | No | |
u | unit | No | |
UnitGroup | group | No | |
UnitGroupAkatsuki | group | Yes | |
UnitGroups | group | Yes | |
UnitPoint | location | Yes | |
Visible | fogmodifier | Yes | |
Walloff | boolean | Yes | |
x | real | No | |
x2 | real | No | |
y | real | No | |
y2 | real | No | |
Ypoint | location | Yes | |
Z | integer | Yes | |
zGroups | group | Yes | |
Zpoint | location | Yes |
function Trig_Snake_Die_Func002C takes nothing returns boolean
if ( ( GetUnitTypeId(GetDyingUnit()) == 'ucrm' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u00E' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00D' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00C' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'hdhw' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u003' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u019' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h016' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00R' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00J' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u00I' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nmyr' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h019' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01C' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u00O' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u002' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01G' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01H' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01I' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u00N' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h017' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00Z' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h010' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u00A' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u00B' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u016' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01L' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u00G' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u012' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nfot' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nfod' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nfor' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00O' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00P' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00Q' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00R' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'hfoo' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nenp' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00L' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01M' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00F' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nkob' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'ugho' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n005' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u01E' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01Q' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01R' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'uaco' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u01F' ) ) then
return true
endif
return false
endfunction
function Trig_Snake_Die_Conditions takes nothing returns boolean
if ( not Trig_Snake_Die_Func002C() ) then
return false
endif
return true
endfunction
function Trig_Snake_Die_Func001Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u00I' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00J' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u019' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00Y' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'hdhw' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nchg' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'ogrk' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u00A' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u00B' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u016' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01L' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u003' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nfot' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nfod' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nfor' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00O' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00P' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00Q' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00R' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'hfoo' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nenp' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00L' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h01M' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00F' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'nkob' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'ugho' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'n005' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u01E' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'h00R' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u01F' ) ) then
return true
endif
return false
endfunction
function Trig_Snake_Die_Func001C takes nothing returns boolean
if ( not Trig_Snake_Die_Func001Func004C() ) then
return false
endif
return true
endfunction
function Trig_Snake_Die_Actions takes nothing returns nothing
if ( Trig_Snake_Die_Func001C() ) then
call TriggerSleepAction( 1.40 )
call RemoveUnit( GetTriggerUnit() )
else
call RemoveUnit( GetTriggerUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Snake_Die takes nothing returns nothing
set gg_trg_Snake_Die = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Snake_Die, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Snake_Die, Condition( function Trig_Snake_Die_Conditions ) )
call TriggerAddAction( gg_trg_Snake_Die, function Trig_Snake_Die_Actions )
endfunction
function Trig_Init_Func229A takes nothing returns nothing
set udg_player_name[GetConvertedPlayerId(GetEnumPlayer())] = GetPlayerName(GetEnumPlayer())
endfunction
function Trig_Init_Actions takes nothing returns nothing
call SetPlayerName( Player(0), ( "|cfffb0006" + ( GetPlayerName(Player(0)) + "|r" ) ) )
call SetPlayerName( Player(1), ( "|cff1a75ff" + ( GetPlayerName(Player(1)) + "|r" ) ) )
call SetPlayerName( Player(2), ( "|cff1addff" + ( GetPlayerName(Player(2)) + "|r" ) ) )
call SetPlayerName( Player(3), ( "|cffae1aff" + ( GetPlayerName(Player(3)) + "|r" ) ) )
call SetPlayerName( Player(5), ( "|cffff921a" + ( GetPlayerName(Player(5)) + "|r" ) ) )
call SetPlayerName( Player(6), ( "|cff56e600" + ( GetPlayerName(Player(6)) + "|r" ) ) )
call SetPlayerName( Player(8), ( "|cffaeaeae" + ( GetPlayerName(Player(8)) + "|r" ) ) )
call SetPlayerName( Player(9), ( "|cffa8ecff" + ( GetPlayerName(Player(9)) + "|r" ) ) )
call SetPlayerName( Player(10), ( "|cff429b7a" + ( GetPlayerName(Player(10)) + "|r" ) ) )
call CinematicModeBJ( true, GetPlayersAll() )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call CreateNUnitsAtLoc( 1, 'ohun', Player(11), GetRectCenter(gg_rct_AnozerWorld), 270.00 )
set udg_Sexy[2] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'nfot', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Bossshield), 270.00 )
set udg_Hero2[85] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'nogl', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Barah_respawn), 360.00 )
set udg_Hero2[86] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Barah_respawn) )
call CreateNUnitsAtLoc( 1, 'H018', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Madara_respawn), 270.00 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
set udg_Hero2[87] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Madara_respawn) )
call CreateNUnitsAtLoc( 1, 'Udea', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_GinkakuN), 225.00 )
call ModifyHeroStat( bj_HEROSTAT_STR, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 80 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 80 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 80 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
call IssueTargetItemOrder( GetLastCreatedUnit(), "smart", gg_item_I01W_0193 )
set udg_Hero2[88] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_GinkakuN) )
call CreateNUnitsAtLoc( 1, 'Ekee', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_KingakuN), 135.00 )
call ModifyHeroStat( bj_HEROSTAT_STR, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 80 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 80 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 80 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
call UnitAddItemByIdSwapped( 'I00H', GetLastCreatedUnit() )
set udg_Hero2[89] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_KingakuN) )
call CreateNUnitsAtLoc( 1, 'Efur', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Utaka), 270.00 )
call ModifyHeroStat( bj_HEROSTAT_STR, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 40 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 60 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 40 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
set udg_Hero2[90] = GetLastCreatedUnit()
call RemoveGuardPosition( udg_Hero2[90] )
call RemoveLocation( GetRectCenter(gg_rct_Utaka) )
call TriggerRegisterUnitLifeEvent( gg_trg_Six_tail_chakra, udg_Hero2[90], LESS_THAN, 400.00 )
call CreateNUnitsAtLoc( 1, 'Nbst', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Gl), 270.00 )
call ModifyHeroStat( bj_HEROSTAT_STR, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 100 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 100 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 100 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
set udg_Hero2[91] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Gl) )
call CreateNUnitsAtLoc( 1, 'Nbrn', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Hunter), 270.00 )
call ModifyHeroStat( bj_HEROSTAT_STR, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 50 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 70 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 60 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANba' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANba' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANba' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANdr' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANdr' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANdr' )
set udg_Hero2[92] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Hunter) )
call TriggerRegisterUnitInRangeSimple( gg_trg_Hunter_Enters, 600.00, udg_Hero2[92] )
call CreateNUnitsAtLoc( 1, 'Osam', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Samuro), 270.00 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
set udg_Hero2[93] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Samuro) )
call TriggerRegisterUnitInRangeSimple( gg_trg_Samurai_Enters, 600.00, udg_Hero2[93] )
call CreateNUnitsAtLoc( 1, 'Nplh', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Abos), 270.00 )
call UnitAddItemByIdSwapped( 'I00A', GetLastCreatedUnit() )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANrf' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANrf' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANrf' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANht' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANht' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANht' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANca' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANca' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANca' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANdo' )
set udg_Hero2[94] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Abos) )
call TriggerRegisterUnitInRangeSimple( gg_trg_Abos_Enters, 600.00, udg_Hero2[94] )
call CreateNUnitsAtLoc( 1, 'E002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_NinjaN), 270.00 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
call ModifyHeroStat( bj_HEROSTAT_STR, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 60 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 80 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 70 )
call SelectHeroSkill( GetLastCreatedUnit(), 'AEmb' )
call SelectHeroSkill( GetLastCreatedUnit(), 'AEmb' )
call SelectHeroSkill( GetLastCreatedUnit(), 'AEmb' )
set udg_Hero2[95] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_NinjaN) )
call TriggerRegisterUnitInRangeSimple( gg_trg_Ninja_Enters, 600.00, udg_Hero2[95] )
call CreateNUnitsAtLoc( 1, 'Nfir', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Village_Full), 140.00 )
call ModifyHeroStat( bj_HEROSTAT_STR, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 80 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 80 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetLastCreatedUnit(), bj_MODIFYMETHOD_ADD, 80 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANic' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANic' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANic' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANso' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANso' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANso' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANlm' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANlm' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANlm' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANvc' )
set udg_Hero2[96] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Ubal', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Dreadlord), 270.00 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
call SelectHeroSkill( GetLastCreatedUnit(), 'AUav' )
call SelectHeroSkill( GetLastCreatedUnit(), 'AUav' )
call SelectHeroSkill( GetLastCreatedUnit(), 'AUav' )
call SelectHeroSkill( GetLastCreatedUnit(), 'AUsl' )
call SelectHeroSkill( GetLastCreatedUnit(), 'AUsl' )
call SelectHeroSkill( GetLastCreatedUnit(), 'AUsl' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANr3' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANr3' )
call SelectHeroSkill( GetLastCreatedUnit(), 'ANr3' )
set udg_Hero2[97] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Dreadlord) )
call TriggerRegisterUnitInRangeSimple( gg_trg_Dreadlord_Enters, 600.00, udg_Hero2[97] )
call CreateNUnitsAtLoc( 1, 'n00E', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Gold), 180.00 )
set udg_Hero2[98] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Gold) )
call CreateNUnitsAtLoc( 1, 'nbwm', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Dragon), 180.00 )
set udg_Hero2[99] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Hhkl', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Pain_Respawn), 180.00 )
set udg_Hero2[100] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Pain_Respawn) )
call CreateNUnitsAtLoc( 1, 'Hlgr', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Juugo_respawn), 250.00 )
set udg_Hero2[101] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Juugo_respawn) )
call CreateNUnitsAtLoc( 1, 'Hkal', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Karin_respawn), 280.00 )
set udg_Hero2[102] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Karin_respawn) )
call CreateNUnitsAtLoc( 1, 'Ofar', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Suigetsu_respawn), 315.00 )
set udg_Hero2[103] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Suigetsu_respawn) )
call CreateNUnitsAtLoc( 1, 'Edem', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Sasuke_respawn), 270.00 )
set udg_Hero2[104] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_Sasuke_respawn) )
call CreateNUnitsAtLoc( 1, 'Hapm', Player(4), GetRectCenter(gg_rct_Tsunade_respawn), 270.00 )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
set udg_Hero2[105] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Emfr', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Gaara_respawn), 225.00 )
set udg_Hero2[106] = GetLastCreatedUnit()
call UnitAddItemByIdSwapped( 'I02I', GetLastCreatedUnit() )
call RemoveLocation( GetRectCenter(gg_rct_Gaara_respawn) )
call CreateNUnitsAtLoc( 1, 'Uktl', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Mei_respawn), 225.00 )
set udg_Hero2[107] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Nmag', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Rai_respawn), 270.00 )
set udg_Hero2[108] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'Otch', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_PeinRes5), 360.00 )
set udg_Hero2[109] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_PeinRes5) )
call CreateNUnitsAtLoc( 1, 'Nbbc', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_PeinRes4), 360.00 )
set udg_Hero2[110] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_PeinRes4) )
call CreateNUnitsAtLoc( 1, 'Naka', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_PeinRes3), 180.00 )
set udg_Hero2[111] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_PeinRes3) )
call CreateNUnitsAtLoc( 1, 'Umal', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_PeinRes2), 180.00 )
set udg_Hero2[112] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_PeinRes2) )
call CreateNUnitsAtLoc( 1, 'Udth', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_PeinRes), 180.00 )
set udg_Hero2[113] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_PeinRes) )
call CreateNUnitsAtLoc( 1, 'H020', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_PeinResN), 270.00 )
set udg_Hero2[114] = GetLastCreatedUnit()
call RemoveLocation( GetRectCenter(gg_rct_PeinResN) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(0) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(1) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(2) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(3) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(4) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(5) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(6) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(7) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(8) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(9) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(10) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(11) )
call SetPlayerAbilityAvailableBJ( false, 'AEim', Player(3) )
call SetPlayerAbilityAvailableBJ( false, 'AEim', Player(6) )
call FogMaskEnableOn( )
call CreateFogModifierRectBJ( true, Player(8), FOG_OF_WAR_VISIBLE, gg_rct_Ame )
call CreateFogModifierRectBJ( true, Player(9), FOG_OF_WAR_VISIBLE, gg_rct_Ame )
call CreateFogModifierRectBJ( true, Player(10), FOG_OF_WAR_VISIBLE, gg_rct_Ame )
call CreateFogModifierRectBJ( true, Player(11), FOG_OF_WAR_VISIBLE, gg_rct_Ame )
call CreateFogModifierRectBJ( true, Player(8), FOG_OF_WAR_VISIBLE, gg_rct_Cave_Gedo )
call CreateFogModifierRectBJ( true, Player(9), FOG_OF_WAR_VISIBLE, gg_rct_Cave_Gedo )
call CreateFogModifierRectBJ( true, Player(10), FOG_OF_WAR_VISIBLE, gg_rct_Cave_Gedo )
call CreateFogModifierRectBJ( true, Player(11), FOG_OF_WAR_VISIBLE, gg_rct_Cave_Gedo )
call SetUnitUserData( gg_unit_Hblm_0000, 1 )
call SetTimeOfDay( 6.00 )
call CreateNUnitsAtLoc( 1, 'Uvng', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Ghruul), bj_UNIT_FACING )
call SetHeroLevelBJ( GetLastCreatedUnit(), 30, false )
call UnitAddAbilityBJ( 'A03B', gg_unit_u004_0538 )
call UnitAddAbilityBJ( 'A03B', gg_unit_u004_0479 )
call UnitAddAbilityBJ( 'Aivs', gg_unit_u004_0538 )
call UnitAddAbilityBJ( 'Ainf', gg_unit_u004_0538 )
call UnitAddAbilityBJ( 'Ablo', gg_unit_u004_0538 )
call UnitAddAbilityBJ( 'AOhx', gg_unit_u004_0538 )
call UnitAddAbilityBJ( 'AHtb', gg_unit_u004_0538 )
call UnitAddAbilityBJ( 'Ablo', gg_unit_u004_0538 )
call UnitAddAbilityBJ( 'A081', gg_unit_u004_0479 )
call UnitAddAbilityBJ( 'A036', gg_unit_u004_0538 )
call UnitAddAbilityBJ( 'AUsl', gg_unit_u004_0538 )
call UnitAddItemByIdSwapped( 'I600', gg_unit_u004_0152 )
call SetUnitColor( gg_unit_Ekgg_0225, ConvertPlayerColor(12) )
call ForForce( GetPlayersAll(), function Trig_Init_Func229A )
call SetUnitInvulnerable( gg_unit_nchg_0056, true )
call AddSpecialEffectTargetUnitBJ( "right hand", gg_unit_ogrk_0063, "Abilities\\Weapons\\GlaiveMissile\\GlaiveMissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "chest", gg_unit_ogrk_0063, "Abilities\\Weapons\\Banditmissile\\Banditmissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_ogrk_0063, "Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl" )
call AddSpecialEffectTargetUnitBJ( "right hand", gg_unit_owar_0446, "Abilities\\Weapons\\Dryadmissile\\Dryadmissile.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_owar_0446, "Abilities\\Spells\\Orc\\SpikeBarrier\\SpikeBarrier.mdl" )
call AddSpecialEffectTargetUnitBJ( "chest", gg_unit_odkt_0417, "Doodads\\Barrens\\Rocks\\Geyser\\Geyser0.mdl" )
call AddSpecialEffectTargetUnitBJ( "overhead", gg_unit_odkt_0417, "Abilities\\Weapons\\BoatMissile\\BoatMissile.mdl" )
set udg_Questeffects[1] = GetLastCreatedEffectBJ()
call SetUnitInvulnerable( gg_unit_ogrk_0063, true )
call SetPlayerAbilityAvailableBJ( false, 'A09K', Player(7) )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 2.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 2.00 )
call CinematicModeBJ( false, GetPlayersAll() )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Init takes nothing returns nothing
set gg_trg_Init = CreateTrigger( )
call TriggerAddAction( gg_trg_Init, function Trig_Init_Actions )
endfunction
function Trig_spell_Deidara_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == gg_unit_Hamg_0014 ) ) then
return false
endif
return true
endfunction
function Trig_spell_Deidara_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( GetAttacker(), "summongrizzly" )
call IssueImmediateOrderBJ( GetAttacker(), "locustswarm" )
call IssuePointOrderLocBJ( GetAttacker(), "silence", GetUnitLoc(GetAttackedUnitBJ()) )
endfunction
//===========================================================================
function InitTrig_spell_Deidara takes nothing returns nothing
set gg_trg_spell_Deidara = CreateTrigger( )
call DisableTrigger( gg_trg_spell_Deidara )
call TriggerRegisterAnyUnitEventBJ( gg_trg_spell_Deidara, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_spell_Deidara, Condition( function Trig_spell_Deidara_Conditions ) )
call TriggerAddAction( gg_trg_spell_Deidara, function Trig_spell_Deidara_Actions )
endfunction
function Trig_spell_tobi_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == gg_unit_Huth_0015 ) ) then
return false
endif
return true
endfunction
function Trig_spell_tobi_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( GetAttackedUnitBJ(), "roar" )
endfunction
//===========================================================================
function InitTrig_spell_tobi takes nothing returns nothing
set gg_trg_spell_tobi = CreateTrigger( )
call DisableTrigger( gg_trg_spell_tobi )
call TriggerRegisterUnitEvent( gg_trg_spell_tobi, gg_unit_Huth_0015, EVENT_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_spell_tobi, Condition( function Trig_spell_tobi_Conditions ) )
call TriggerAddAction( gg_trg_spell_tobi, function Trig_spell_tobi_Actions )
endfunction
function Trig_spell_cast_Naruto_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == gg_unit_Hpal_0018 ) ) then
return false
endif
return true
endfunction
function Trig_spell_cast_Naruto_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call IssueImmediateOrderBJ( gg_unit_Hpal_0018, "battleroar" )
call TriggerSleepAction( 40.00 )
call EnableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_spell_cast_Naruto takes nothing returns nothing
set gg_trg_spell_cast_Naruto = CreateTrigger( )
call DisableTrigger( gg_trg_spell_cast_Naruto )
call TriggerRegisterAnyUnitEventBJ( gg_trg_spell_cast_Naruto, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_spell_cast_Naruto, Condition( function Trig_spell_cast_Naruto_Conditions ) )
call TriggerAddAction( gg_trg_spell_cast_Naruto, function Trig_spell_cast_Naruto_Actions )
endfunction
function Trig_Move_jiraia_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( gg_unit_Ucrl_0057, "attack", GetRandomLocInRect(gg_rct_World) )
endfunction
//===========================================================================
function InitTrig_Move_jiraia takes nothing returns nothing
set gg_trg_Move_jiraia = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Move_jiraia, 36.00 )
call TriggerAddAction( gg_trg_Move_jiraia, function Trig_Move_jiraia_Actions )
endfunction
function Trig_Move_Hunter_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Hero2[92], "attack", GetRandomLocInRect(gg_rct_World) )
endfunction
//===========================================================================
function InitTrig_Move_Hunter takes nothing returns nothing
set gg_trg_Move_Hunter = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Move_Hunter, 10.00 )
call TriggerAddAction( gg_trg_Move_Hunter, function Trig_Move_Hunter_Actions )
endfunction
function Trig_Move_Fivetail_jinchur_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( gg_unit_Emns_0226, "attack", GetRandomLocInRect(gg_rct_World) )
endfunction
//===========================================================================
function InitTrig_Move_Fivetail_jinchur takes nothing returns nothing
set gg_trg_Move_Fivetail_jinchur = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Move_Fivetail_jinchur, 20.00 )
call TriggerAddAction( gg_trg_Move_Fivetail_jinchur, function Trig_Move_Fivetail_jinchur_Actions )
endfunction
function Trig_NotCoil_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Hero2[85] ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00U' ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00T' ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00S' ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00R' ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00Q' ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00P' ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00O' ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'nfor' ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'nfod' ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'nfot' ) ) then
return false
endif
return true
endfunction
function Trig_NotCoil_Actions takes nothing returns nothing
set udg_Hero2[85] = null
if ( Trig_NotCoil_Func002C() ) then
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call TriggerSleepAction( 400.00 )
call CreateNUnitsAtLoc( 1, 'nfod', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Bossshield), 270.00 )
set udg_Hero2[85] = GetLastCreatedUnit()
else
if ( Trig_NotCoil_Func002Func001C() ) then
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call TriggerSleepAction( 400.00 )
call CreateNUnitsAtLoc( 1, 'nfor', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Bossshield), 270.00 )
set udg_Hero2[85] = GetLastCreatedUnit()
else
if ( Trig_NotCoil_Func002Func001Func001C() ) then
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call TriggerSleepAction( 400.00 )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Bossshield), 270.00 )
set udg_Hero2[85] = GetLastCreatedUnit()
else
if ( Trig_NotCoil_Func002Func001Func001Func001C() ) then
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call TriggerSleepAction( 400.00 )
call CreateNUnitsAtLoc( 1, 'n00P', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Bossshield), 270.00 )
set udg_Hero2[85] = GetLastCreatedUnit()
else
if ( Trig_NotCoil_Func002Func001Func001Func001Func001C() ) then
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call TriggerSleepAction( 400.00 )
call CreateNUnitsAtLoc( 1, 'n00Q', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Bossshield), 270.00 )
set udg_Hero2[85] = GetLastCreatedUnit()
else
if ( Trig_NotCoil_Func002Func001Func001Func001Func001Func001C() ) then
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call TriggerSleepAction( 400.00 )
call CreateNUnitsAtLoc( 1, 'n00R', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Bossshield), 270.00 )
set udg_Hero2[85] = GetLastCreatedUnit()
else
if ( Trig_NotCoil_Func002Func001Func001Func001Func001Func001Func001C() ) then
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call TriggerSleepAction( 400.00 )
call CreateNUnitsAtLoc( 1, 'n00S', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Bossshield), 270.00 )
set udg_Hero2[85] = GetLastCreatedUnit()
else
if ( Trig_NotCoil_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call TriggerSleepAction( 400.00 )
call CreateNUnitsAtLoc( 1, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Bossshield), 270.00 )
set udg_Hero2[85] = GetLastCreatedUnit()
else
if ( Trig_NotCoil_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call UnitAddItemByIdSwapped( 'lmbr', GetDyingUnit() )
call TriggerSleepAction( 400.00 )
call CreateNUnitsAtLoc( 1, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_Bossshield), 270.00 )
set udg_Hero2[85] = GetLastCreatedUnit()
else
if ( Trig_NotCoil_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call UnitAddItemByIdSwapped( 'I02L', GetDyingUnit() )
call RemoveLocation( GetRectCenter(gg_rct_Bossshield) )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_NotCoil takes nothing returns nothing
set gg_trg_NotCoil = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_NotCoil, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_NotCoil, Condition( function Trig_NotCoil_Conditions ) )
call TriggerAddAction( gg_trg_NotCoil, function Trig_NotCoil_Actions )
endfunction
function Trig_Open_Cave_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_DESTROY, gg_dest_B000_0902 )
endfunction
//===========================================================================
function InitTrig_Open_Cave takes nothing returns nothing
set gg_trg_Open_Cave = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Open_Cave, Player(5), "-open", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Open_Cave, Player(8), "-open", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Open_Cave, Player(9), "-open", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Open_Cave, Player(10), "-open", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Open_Cave, Player(11), "-open", true )
call TriggerAddAction( gg_trg_Open_Cave, function Trig_Open_Cave_Actions )
endfunction
function Trig_Close_Cave_Actions takes nothing returns nothing
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_B000_0902 )
endfunction
//===========================================================================
function InitTrig_Close_Cave takes nothing returns nothing
set gg_trg_Close_Cave = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Cave, Player(5), "-close", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Cave, Player(8), "-close", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Cave, Player(9), "-close", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Cave, Player(10), "-close", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Close_Cave, Player(11), "-close", true )
call TriggerAddAction( gg_trg_Close_Cave, function Trig_Close_Cave_Actions )
endfunction
function Trig_Orochimaru_soldire_Func005C takes nothing returns boolean
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(0) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(1) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(2) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(4) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(5) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(8) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(9) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(10) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(11) ) ) then
return true
endif
return false
endfunction
function Trig_Orochimaru_soldire_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'nmrb' ) ) then
return false
endif
if ( not Trig_Orochimaru_soldire_Func005C() ) then
return false
endif
return true
endfunction
function Trig_Orochimaru_soldire_Func001001001 takes nothing returns boolean
return ( GetFilterPlayer() == GetOwningPlayer(GetBuyingUnit()) )
endfunction
function Trig_Orochimaru_soldire_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Orochimaru_soldire_Func001001001)), "TRIGSTR_2146" )
call SetUnitOwner( GetSoldUnit(), Player(6), true )
call SetUnitManaPercentBJ( GetSoldUnit(), 100 )
endfunction
//===========================================================================
function InitTrig_Orochimaru_soldire takes nothing returns nothing
set gg_trg_Orochimaru_soldire = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Orochimaru_soldire, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Orochimaru_soldire, Condition( function Trig_Orochimaru_soldire_Conditions ) )
call TriggerAddAction( gg_trg_Orochimaru_soldire, function Trig_Orochimaru_soldire_Actions )
endfunction
function Trig_Konoha_soldire_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'nmra' ) ) then
return false
endif
return true
endfunction
function Trig_Konoha_soldire_Func001Func001001001 takes nothing returns boolean
return ( GetFilterPlayer() == GetOwningPlayer(GetBuyingUnit()) )
endfunction
function Trig_Konoha_soldire_Func001Func002C takes nothing returns boolean
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(3) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(6) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(5) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(8) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(9) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(10) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(11) ) ) then
return true
endif
return false
endfunction
function Trig_Konoha_soldire_Func001Func003Func001001001 takes nothing returns boolean
return ( GetFilterPlayer() == GetOwningPlayer(GetBuyingUnit()) )
endfunction
function Trig_Konoha_soldire_Func001Func003Func002C takes nothing returns boolean
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(udg_Hero2[107]) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(udg_Hero2[106]) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(udg_Hero2[108]) ) ) then
return true
endif
return false
endfunction
function Trig_Konoha_soldire_Func001Func003C takes nothing returns boolean
if ( not Trig_Konoha_soldire_Func001Func003Func002C() ) then
return false
endif
return true
endfunction
function Trig_Konoha_soldire_Func001C takes nothing returns boolean
if ( not Trig_Konoha_soldire_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Konoha_soldire_Actions takes nothing returns nothing
if ( Trig_Konoha_soldire_Func001C() ) then
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Konoha_soldire_Func001Func001001001)), "TRIGSTR_2205" )
call SetUnitOwner( GetSoldUnit(), Player(0), true )
call SetUnitManaPercentBJ( GetSoldUnit(), 100 )
else
if ( Trig_Konoha_soldire_Func001Func003C() ) then
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Konoha_soldire_Func001Func003Func001001001)), "TRIGSTR_2203" )
call RemoveUnit( GetSoldUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Konoha_soldire takes nothing returns nothing
set gg_trg_Konoha_soldire = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Konoha_soldire, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Konoha_soldire, Condition( function Trig_Konoha_soldire_Conditions ) )
call TriggerAddAction( gg_trg_Konoha_soldire, function Trig_Konoha_soldire_Actions )
endfunction
function Trig_Rai_soldire_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'nmr8' ) ) then
return false
endif
return true
endfunction
function Trig_Rai_soldire_Func001Func001001001 takes nothing returns boolean
return ( GetFilterPlayer() == GetOwningPlayer(GetBuyingUnit()) )
endfunction
function Trig_Rai_soldire_Func001Func002Func001C takes nothing returns boolean
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Harf_0019) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Hpal_0018) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Hvwd_0345) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Eill_0344) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Hpb2_0316) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Obla_0318) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Emoo_0317) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Hmgd_0319) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Udre_0037) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) != GetOwningPlayer(udg_Hero2[108]) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(udg_Hero2[107]) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(udg_Hero2[106]) ) ) then
return true
endif
return false
endfunction
function Trig_Rai_soldire_Func001Func002Func002001001 takes nothing returns boolean
return ( GetFilterPlayer() == GetOwningPlayer(GetBuyingUnit()) )
endfunction
function Trig_Rai_soldire_Func001Func002C takes nothing returns boolean
if ( not Trig_Rai_soldire_Func001Func002Func001C() ) then
return false
endif
return true
endfunction
function Trig_Rai_soldire_Func001Func005C takes nothing returns boolean
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(3) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(6) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(5) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(8) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(9) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(10) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(11) ) ) then
return true
endif
return false
endfunction
function Trig_Rai_soldire_Func001C takes nothing returns boolean
if ( not Trig_Rai_soldire_Func001Func005C() ) then
return false
endif
return true
endfunction
function Trig_Rai_soldire_Actions takes nothing returns nothing
if ( Trig_Rai_soldire_Func001C() ) then
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Rai_soldire_Func001Func001001001)), "TRIGSTR_2206" )
call SetUnitOwner( GetSoldUnit(), Player(0), true )
call SetUnitManaPercentBJ( GetSoldUnit(), 100 )
else
if ( Trig_Rai_soldire_Func001Func002C() ) then
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Rai_soldire_Func001Func002Func002001001)), "TRIGSTR_2201" )
call RemoveUnit( GetSoldUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Rai_soldire takes nothing returns nothing
set gg_trg_Rai_soldire = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rai_soldire, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Rai_soldire, Condition( function Trig_Rai_soldire_Conditions ) )
call TriggerAddAction( gg_trg_Rai_soldire, function Trig_Rai_soldire_Actions )
endfunction
function Trig_Suna_soldire_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'nmr9' ) ) then
return false
endif
return true
endfunction
function Trig_Suna_soldire_Func002Func001001001 takes nothing returns boolean
return ( GetFilterPlayer() == GetOwningPlayer(GetBuyingUnit()) )
endfunction
function Trig_Suna_soldire_Func002Func002Func001C takes nothing returns boolean
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Harf_0019) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Hpal_0018) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Hvwd_0345) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Eill_0344) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Hpb2_0316) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Obla_0318) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Emoo_0317) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Hmgd_0319) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(gg_unit_Udre_0037) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetBuyingUnit()) == GetOwningPlayer(udg_Hero2[108]) ) ) then
return true
endif
return false
endfunction
function Trig_Suna_soldire_Func002Func002Func002001001 takes nothing returns boolean
return ( GetFilterPlayer() == GetOwningPlayer(GetBuyingUnit()) )
endfunction
function Trig_Suna_soldire_Func002Func002C takes nothing returns boolean
if ( not Trig_Suna_soldire_Func002Func002Func001C() ) then
return false
endif
return true
endfunction
function Trig_Suna_soldire_Func002Func003C takes nothing returns boolean
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(3) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(6) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(5) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(8) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(9) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(10) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(11) ) ) then
return true
endif
return false
endfunction
function Trig_Suna_soldire_Func002C takes nothing returns boolean
if ( not Trig_Suna_soldire_Func002Func003C() ) then
return false
endif
return true
endfunction
function Trig_Suna_soldire_Actions takes nothing returns nothing
if ( Trig_Suna_soldire_Func002C() ) then
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Suna_soldire_Func002Func001001001)), "TRIGSTR_2207" )
call SetUnitOwner( GetSoldUnit(), GetOwningPlayer(udg_Hero2[106]), true )
call SetUnitManaPercentBJ( GetSoldUnit(), 100 )
else
if ( Trig_Suna_soldire_Func002Func002C() ) then
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Suna_soldire_Func002Func002Func002001001)), "TRIGSTR_2204" )
call RemoveUnit( GetSoldUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Suna_soldire takes nothing returns nothing
set gg_trg_Suna_soldire = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Suna_soldire, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Suna_soldire, Condition( function Trig_Suna_soldire_Conditions ) )
call TriggerAddAction( gg_trg_Suna_soldire, function Trig_Suna_soldire_Actions )
endfunction
function Trig_Anbu_soldire_Func005C takes nothing returns boolean
if ( ( GetUnitTypeId(GetSoldUnit()) != 'Nmag' ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(3) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(6) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(5) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(8) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(9) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(10) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetSoldUnit()) == Player(11) ) ) then
return true
endif
return false
endfunction
function Trig_Anbu_soldire_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'nmr7' ) ) then
return false
endif
if ( not Trig_Anbu_soldire_Func005C() ) then
return false
endif
return true
endfunction
function Trig_Anbu_soldire_Func001001001 takes nothing returns boolean
return ( GetFilterPlayer() == GetOwningPlayer(GetBuyingUnit()) )
endfunction
function Trig_Anbu_soldire_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Anbu_soldire_Func001001001)), "TRIGSTR_2208" )
call SetUnitOwner( GetSoldUnit(), Player(0), true )
call SetUnitManaPercentBJ( GetSoldUnit(), 100 )
endfunction
//===========================================================================
function InitTrig_Anbu_soldire takes nothing returns nothing
set gg_trg_Anbu_soldire = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Anbu_soldire, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Anbu_soldire, Condition( function Trig_Anbu_soldire_Conditions ) )
call TriggerAddAction( gg_trg_Anbu_soldire, function Trig_Anbu_soldire_Actions )
endfunction
function Trig_Item_level_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'tkno' ) ) then
return false
endif
return true
endfunction
function Trig_Item_level_Func001C takes nothing returns boolean
if ( not ( GetHeroLevel(GetBuyingUnit()) == 30 ) ) then
return false
endif
return true
endfunction
function Trig_Item_level_Actions takes nothing returns nothing
if ( Trig_Item_level_Func001C() ) then
call DisplayTimedTextToForce( GetForceOfPlayer(GetOwningPlayer(GetBuyingUnit())), 1.00, "TRIGSTR_7615" )
call PlaySoundBJ( gg_snd_Error )
call RemoveItem( GetSoldItem() )
else
call SetHeroLevelBJ( GetBuyingUnit(), ( GetHeroLevel(GetBuyingUnit()) + 1 ), true )
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\Other\\Levelup\\LevelupCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Item_level takes nothing returns nothing
set gg_trg_Item_level = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Item_level, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Item_level, Condition( function Trig_Item_level_Conditions ) )
call TriggerAddAction( gg_trg_Item_level, function Trig_Item_level_Actions )
endfunction
function Trig_Left_game_Func002A takes nothing returns nothing
call SetPlayerAllianceBJ( GetOwningPlayer(GetTriggerUnit()), ALLIANCE_SHARED_ADVANCED_CONTROL, true, GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Left_game_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), ( udg_PlayerNames[GetConvertedPlayerId(GetTriggerPlayer())] + " Покинул игру" ) )
call ForForce( GetPlayersAllies(GetOwningPlayer(GetTriggerUnit())), function Trig_Left_game_Func002A )
endfunction
//===========================================================================
function InitTrig_Left_game takes nothing returns nothing
set gg_trg_Left_game = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(2) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(6) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(7) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(8) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(9) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(10) )
call TriggerRegisterPlayerEventLeave( gg_trg_Left_game, Player(11) )
call TriggerAddAction( gg_trg_Left_game, function Trig_Left_game_Actions )
endfunction
function Trig_Movespeed_Func002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Movespeed_Func003A takes nothing returns nothing
call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( GetHeroProperName(GetEnumUnit()) + ( " скорость бега = " + I2S(R2I(GetUnitMoveSpeed(GetEnumUnit()))) ) ) )
endfunction
function Trig_Movespeed_Actions takes nothing returns nothing
set udg_UnitGroup = GetUnitsOfPlayerMatching(GetTriggerPlayer(), Condition(function Trig_Movespeed_Func002002002))
call ForGroupBJ( udg_UnitGroup, function Trig_Movespeed_Func003A )
call DestroyGroup(udg_UnitGroup)
set udg_UnitGroup = null
endfunction
//===========================================================================
function InitTrig_Movespeed takes nothing returns nothing
set gg_trg_Movespeed = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(0), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(1), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(2), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(3), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(4), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(5), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(6), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(7), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(8), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(9), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(10), "-ms", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Movespeed, Player(11), "-ms", true )
call TriggerAddAction( gg_trg_Movespeed, function Trig_Movespeed_Actions )
endfunction
function Trig_clear_Actions takes nothing returns nothing
call ClearTextMessagesBJ( GetForceOfPlayer(GetTriggerPlayer()) )
endfunction
//===========================================================================
function InitTrig_clear takes nothing returns nothing
set gg_trg_clear = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(0), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(1), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(2), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(3), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(4), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(5), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(6), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(7), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(8), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(9), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(10), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_clear, Player(11), "-clear", true )
call TriggerAddAction( gg_trg_clear, function Trig_clear_Actions )
endfunction
function Trig_Power_Treads_1_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'gcel') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'belv') == true ) ) then
return false
endif
return true
endfunction
function Trig_Power_Treads_1_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'bspd') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'gcel') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'belv') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Power_Treads_1 takes nothing returns nothing
set gg_trg_Power_Treads_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Power_Treads_1, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Power_Treads_1, Condition( function Trig_Power_Treads_1_Conditions ) )
call TriggerAddAction( gg_trg_Power_Treads_1, function Trig_Power_Treads_1_Actions )
endfunction
function Trig_Power_Treads_2_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'gcel') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'bgst') == true ) ) then
return false
endif
return true
endfunction
function Trig_Power_Treads_2_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'bspd') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'gcel') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'bgst') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Power_Treads_2 takes nothing returns nothing
set gg_trg_Power_Treads_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Power_Treads_2, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Power_Treads_2, Condition( function Trig_Power_Treads_2_Conditions ) )
call TriggerAddAction( gg_trg_Power_Treads_2, function Trig_Power_Treads_2_Actions )
endfunction
function Trig_Power_Treads_3_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'gcel') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'ciri') == true ) ) then
return false
endif
return true
endfunction
function Trig_Power_Treads_3_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'bspd') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'gcel') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'ciri') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Power_Treads_3 takes nothing returns nothing
set gg_trg_Power_Treads_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Power_Treads_3, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Power_Treads_3, Condition( function Trig_Power_Treads_3_Conditions ) )
call TriggerAddAction( gg_trg_Power_Treads_3, function Trig_Power_Treads_3_Actions )
endfunction
function Trig_BootsofTravel_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00C') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'desc') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I012') == true ) ) then
return false
endif
return true
endfunction
function Trig_BootsofTravel_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00C') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'desc') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I012') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00R', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_BootsofTravel takes nothing returns nothing
set gg_trg_BootsofTravel = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_BootsofTravel, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_BootsofTravel, Condition( function Trig_BootsofTravel_Conditions ) )
call TriggerAddAction( gg_trg_BootsofTravel, function Trig_BootsofTravel_Actions )
endfunction
function Trig_Bracer_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'cnob') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'rst1') == true ) ) then
return false
endif
return true
endfunction
function Trig_Bracer_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'cnob') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'rst1') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I002', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Bracer takes nothing returns nothing
set gg_trg_Bracer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bracer, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Bracer, Condition( function Trig_Bracer_Conditions ) )
call TriggerAddAction( gg_trg_Bracer, function Trig_Bracer_Actions )
endfunction
function Trig_Wraith_Band_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'cnob') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'rag1') == true ) ) then
return false
endif
return true
endfunction
function Trig_Wraith_Band_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'cnob') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'rag1') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I003', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Wraith_Band takes nothing returns nothing
set gg_trg_Wraith_Band = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wraith_Band, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Wraith_Band, Condition( function Trig_Wraith_Band_Conditions ) )
call TriggerAddAction( gg_trg_Wraith_Band, function Trig_Wraith_Band_Actions )
endfunction
function Trig_Null_Talisman_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'cnob') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'rin1') == true ) ) then
return false
endif
return true
endfunction
function Trig_Null_Talisman_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'cnob') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'rin1') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I005', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Null_Talisman takes nothing returns nothing
set gg_trg_Null_Talisman = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Null_Talisman, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Null_Talisman, Condition( function Trig_Null_Talisman_Conditions ) )
call TriggerAddAction( gg_trg_Null_Talisman, function Trig_Null_Talisman_Actions )
endfunction
function Trig_Ring_of_Basilius_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'rwiz') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'rde2') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Basilius_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'rwiz') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'rde2') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01P', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Ring_of_Basilius takes nothing returns nothing
set gg_trg_Ring_of_Basilius = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ring_of_Basilius, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Ring_of_Basilius, Condition( function Trig_Ring_of_Basilius_Conditions ) )
call TriggerAddAction( gg_trg_Ring_of_Basilius, function Trig_Ring_of_Basilius_Actions )
endfunction
function Trig_Linkens_Sphere_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I026') == true ) ) then
return false
endif
return true
endfunction
function Trig_Linkens_Sphere_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00O') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I006') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I026') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I007', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Linkens_Sphere takes nothing returns nothing
set gg_trg_Linkens_Sphere = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Linkens_Sphere, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Linkens_Sphere, Condition( function Trig_Linkens_Sphere_Conditions ) )
call TriggerAddAction( gg_trg_Linkens_Sphere, function Trig_Linkens_Sphere_Actions )
endfunction
function Trig_Arcane_Ring_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'rde2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Arcane_Ring_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'rde2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02B') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00W', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Arcane_Ring takes nothing returns nothing
set gg_trg_Arcane_Ring = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Arcane_Ring, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Arcane_Ring, Condition( function Trig_Arcane_Ring_Conditions ) )
call TriggerAddAction( gg_trg_Arcane_Ring, function Trig_Arcane_Ring_Actions )
endfunction
function Trig_Crystalys_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00U') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'rat9') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I024') == true ) ) then
return false
endif
return true
endfunction
function Trig_Crystalys_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00U') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'rat9') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I024') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01B', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Crystalys takes nothing returns nothing
set gg_trg_Crystalys = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Crystalys, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Crystalys, Condition( function Trig_Crystalys_Conditions ) )
call TriggerAddAction( gg_trg_Crystalys, function Trig_Crystalys_Actions )
endfunction
function Trig_Soul_Booster_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01A') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Soul_Booster_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01A') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02A', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Soul_Booster takes nothing returns nothing
set gg_trg_Soul_Booster = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Soul_Booster, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Soul_Booster, Condition( function Trig_Soul_Booster_Conditions ) )
call TriggerAddAction( gg_trg_Soul_Booster, function Trig_Soul_Booster_Actions )
endfunction
function Trig_Vanguard_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00P') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01A') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I011') == true ) ) then
return false
endif
return true
endfunction
function Trig_Vanguard_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00P') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01A') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I011') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01R', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Vanguard takes nothing returns nothing
set gg_trg_Vanguard = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Vanguard, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Vanguard, Condition( function Trig_Vanguard_Conditions ) )
call TriggerAddAction( gg_trg_Vanguard, function Trig_Vanguard_Actions )
endfunction
function Trig_Sange_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00X') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'bgst') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I027') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sange_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00X') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'bgst') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I027') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01G', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Sange takes nothing returns nothing
set gg_trg_Sange = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sange, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Sange, Condition( function Trig_Sange_Conditions ) )
call TriggerAddAction( gg_trg_Sange, function Trig_Sange_Actions )
endfunction
function Trig_Yasha_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00Y') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'belv') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I028') == true ) ) then
return false
endif
return true
endfunction
function Trig_Yasha_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00Y') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'belv') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I028') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01H', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Yasha takes nothing returns nothing
set gg_trg_Yasha = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Yasha, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Yasha, Condition( function Trig_Yasha_Conditions ) )
call TriggerAddAction( gg_trg_Yasha, function Trig_Yasha_Actions )
endfunction
function Trig_Helm_of_Lifestealer_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I013') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'modt') == true ) ) then
return false
endif
return true
endfunction
function Trig_Helm_of_Lifestealer_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I013') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'modt') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01E', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Helm_of_Lifestealer takes nothing returns nothing
set gg_trg_Helm_of_Lifestealer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Helm_of_Lifestealer, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Helm_of_Lifestealer, Condition( function Trig_Helm_of_Lifestealer_Conditions ) )
call TriggerAddAction( gg_trg_Helm_of_Lifestealer, function Trig_Helm_of_Lifestealer_Actions )
endfunction
function Trig_Mask_of_Madness_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I029') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'modt') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mask_of_Madness_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I029') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'modt') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01O', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Mask_of_Madness takes nothing returns nothing
set gg_trg_Mask_of_Madness = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mask_of_Madness, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Mask_of_Madness, Condition( function Trig_Mask_of_Madness_Conditions ) )
call TriggerAddAction( gg_trg_Mask_of_Madness, function Trig_Mask_of_Madness_Actions )
endfunction
function Trig_Vladmirs_Offering_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I035') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'modt') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Vladmirs_Offering_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I035') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'modt') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01P') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01X', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Vladmirs_Offering takes nothing returns nothing
set gg_trg_Vladmirs_Offering = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Vladmirs_Offering, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Vladmirs_Offering, Condition( function Trig_Vladmirs_Offering_Conditions ) )
call TriggerAddAction( gg_trg_Vladmirs_Offering, function Trig_Vladmirs_Offering_Actions )
endfunction
function Trig_Hood_of_Defiance_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I013') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00P') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'brac') == true ) ) then
return false
endif
return true
endfunction
function Trig_Hood_of_Defiance_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I013') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00P') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'brac') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01Q', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Hood_of_Defiance takes nothing returns nothing
set gg_trg_Hood_of_Defiance = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hood_of_Defiance, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Hood_of_Defiance, Condition( function Trig_Hood_of_Defiance_Conditions ) )
call TriggerAddAction( gg_trg_Hood_of_Defiance, function Trig_Hood_of_Defiance_Actions )
endfunction
function Trig_Perseverance_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00P') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00Q') == true ) ) then
return false
endif
return true
endfunction
function Trig_Perseverance_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00P') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00Q') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00O', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Perseverance takes nothing returns nothing
set gg_trg_Perseverance = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Perseverance, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Perseverance, Condition( function Trig_Perseverance_Conditions ) )
call TriggerAddAction( gg_trg_Perseverance, function Trig_Perseverance_Actions )
endfunction
function Trig_Battle_Fury_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00U') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Battle_Fury_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00O') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00U') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00V') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00N', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Battle_Fury takes nothing returns nothing
set gg_trg_Battle_Fury = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Battle_Fury, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Battle_Fury, Condition( function Trig_Battle_Fury_Conditions ) )
call TriggerAddAction( gg_trg_Battle_Fury, function Trig_Battle_Fury_Actions )
endfunction
function Trig_Sange_Yasha_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01G') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sange_Yasha_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01G') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01H') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I014', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Sange_Yasha takes nothing returns nothing
set gg_trg_Sange_Yasha = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sange_Yasha, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Sange_Yasha, Condition( function Trig_Sange_Yasha_Conditions ) )
call TriggerAddAction( gg_trg_Sange_Yasha, function Trig_Sange_Yasha_Actions )
endfunction
function Trig_Burizado_Kyanon_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01B') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I016') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Burizado_Kyanon_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01B') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I016') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00J') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01C', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Burizado_Kyanon takes nothing returns nothing
set gg_trg_Burizado_Kyanon = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Burizado_Kyanon, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Burizado_Kyanon, Condition( function Trig_Burizado_Kyanon_Conditions ) )
call TriggerAddAction( gg_trg_Burizado_Kyanon, function Trig_Burizado_Kyanon_Actions )
endfunction
function Trig_Radiance_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00L') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Radiance_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00L') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01Y') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00M', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Radiance takes nothing returns nothing
set gg_trg_Radiance = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Radiance, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Radiance, Condition( function Trig_Radiance_Conditions ) )
call TriggerAddAction( gg_trg_Radiance, function Trig_Radiance_Actions )
endfunction
function Trig_Heart_of_Tarrasque_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00S') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01A') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Heart_of_Tarrasque_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00S') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01A') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01Z') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I000', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Heart_of_Tarrasque takes nothing returns nothing
set gg_trg_Heart_of_Tarrasque = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Heart_of_Tarrasque, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Heart_of_Tarrasque, Condition( function Trig_Heart_of_Tarrasque_Conditions ) )
call TriggerAddAction( gg_trg_Heart_of_Tarrasque, function Trig_Heart_of_Tarrasque_Actions )
endfunction
function Trig_The_Butterfly_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I010') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I022') == true ) ) then
return false
endif
return true
endfunction
function Trig_The_Butterfly_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I010') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I022') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01J', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_The_Butterfly takes nothing returns nothing
set gg_trg_The_Butterfly = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_The_Butterfly, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_The_Butterfly, Condition( function Trig_The_Butterfly_Conditions ) )
call TriggerAddAction( gg_trg_The_Butterfly, function Trig_The_Butterfly_Actions )
endfunction
function Trig_Satanic_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00S') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I020') == true ) ) then
return false
endif
return true
endfunction
function Trig_Satanic_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00S') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01E') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I020') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00B', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Satanic takes nothing returns nothing
set gg_trg_Satanic = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Satanic, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Satanic, Condition( function Trig_Satanic_Conditions ) )
call TriggerAddAction( gg_trg_Satanic, function Trig_Satanic_Actions )
endfunction
function Trig_Dagon_1_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'rat9') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00Z') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I025') == true ) ) then
return false
endif
return true
endfunction
function Trig_Dagon_1_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'rat9') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00Z') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I025') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01K', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Dagon_1 takes nothing returns nothing
set gg_trg_Dagon_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dagon_1, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Dagon_1, Condition( function Trig_Dagon_1_Conditions ) )
call TriggerAddAction( gg_trg_Dagon_1, function Trig_Dagon_1_Actions )
endfunction
function Trig_Silver_Helm_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01Q') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Silver_Helm_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01Q') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01E') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02C') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01T', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Silver_Helm takes nothing returns nothing
set gg_trg_Silver_Helm = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Silver_Helm, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Silver_Helm, Condition( function Trig_Silver_Helm_Conditions ) )
call TriggerAddAction( gg_trg_Silver_Helm, function Trig_Silver_Helm_Actions )
endfunction
function Trig_Maximillian_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I000') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I015') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Maximillian_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I000') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I015') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02D') )
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( 'I01U', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Maximillian takes nothing returns nothing
set gg_trg_Maximillian = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Maximillian, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Maximillian, Condition( function Trig_Maximillian_Conditions ) )
call TriggerAddAction( gg_trg_Maximillian, function Trig_Maximillian_Actions )
endfunction
function Trig_The_Red_Butterfly_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01J') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I017') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02E') == true ) ) then
return false
endif
return true
endfunction
function Trig_The_Red_Butterfly_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01J') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I017') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02E') )
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( 'I01V', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_The_Red_Butterfly takes nothing returns nothing
set gg_trg_The_Red_Butterfly = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_The_Red_Butterfly, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_The_Red_Butterfly, Condition( function Trig_The_Red_Butterfly_Conditions ) )
call TriggerAddAction( gg_trg_The_Red_Butterfly, function Trig_The_Red_Butterfly_Actions )
endfunction
function Trig_Ancient_staff_of_mythology_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I039') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I019') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ancient_staff_of_mythology_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I039') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I006') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I019') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00E') )
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( 'I00G', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Ancient_staff_of_mythology takes nothing returns nothing
set gg_trg_Ancient_staff_of_mythology = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ancient_staff_of_mythology, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Ancient_staff_of_mythology, Condition( function Trig_Ancient_staff_of_mythology_Conditions ) )
call TriggerAddAction( gg_trg_Ancient_staff_of_mythology, function Trig_Ancient_staff_of_mythology_Actions )
endfunction
function Trig_Killer_Axe_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03F') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I017') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I03E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Killer_Axe_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03F') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I017') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I03E') )
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( 'I01F', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Killer_Axe takes nothing returns nothing
set gg_trg_Killer_Axe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Killer_Axe, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Killer_Axe, Condition( function Trig_Killer_Axe_Conditions ) )
call TriggerAddAction( gg_trg_Killer_Axe, function Trig_Killer_Axe_Actions )
endfunction
function Trig_Sacrificial_wand_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I000') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I039') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I04W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sacrificial_wand_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I000') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I039') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I04W') )
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( 'I04K', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Sacrificial_wand takes nothing returns nothing
set gg_trg_Sacrificial_wand = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sacrificial_wand, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Sacrificial_wand, Condition( function Trig_Sacrificial_wand_Conditions ) )
call TriggerAddAction( gg_trg_Sacrificial_wand, function Trig_Sacrificial_wand_Actions )
endfunction
function Trig_HornofMana_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I023') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00W') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I038') == true ) ) then
return false
endif
return true
endfunction
function Trig_HornofMana_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I023') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00W') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I038') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I037', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_HornofMana takes nothing returns nothing
set gg_trg_HornofMana = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_HornofMana, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_HornofMana, Condition( function Trig_HornofMana_Conditions ) )
call TriggerAddAction( gg_trg_HornofMana, function Trig_HornofMana_Actions )
endfunction
function Trig_DiffusalLance_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00Y') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'ciri') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02H') == true ) ) then
return false
endif
return true
endfunction
function Trig_DiffusalLance_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00Y') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'ciri') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02H') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I023', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_DiffusalLance takes nothing returns nothing
set gg_trg_DiffusalLance = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DiffusalLance, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_DiffusalLance, Condition( function Trig_DiffusalLance_Conditions ) )
call TriggerAddAction( gg_trg_DiffusalLance, function Trig_DiffusalLance_Actions )
endfunction
function Trig_OrbofFire_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00Z') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I036') == true ) ) then
return false
endif
return true
endfunction
function Trig_OrbofFire_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00Z') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I006') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I036') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02S', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_OrbofFire takes nothing returns nothing
set gg_trg_OrbofFire = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_OrbofFire, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_OrbofFire, Condition( function Trig_OrbofFire_Conditions ) )
call TriggerAddAction( gg_trg_OrbofFire, function Trig_OrbofFire_Actions )
endfunction
function Trig_OrbofLighting_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00V') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02G') == true ) ) then
return false
endif
return true
endfunction
function Trig_OrbofLighting_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00V') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I006') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02G') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01N', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_OrbofLighting takes nothing returns nothing
set gg_trg_OrbofLighting = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_OrbofLighting, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_OrbofLighting, Condition( function Trig_OrbofLighting_Conditions ) )
call TriggerAddAction( gg_trg_OrbofLighting, function Trig_OrbofLighting_Actions )
endfunction
function Trig_Totemofmight_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00L') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I016') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Totemofmight_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00L') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I016') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02V') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02Q', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Totemofmight takes nothing returns nothing
set gg_trg_Totemofmight = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Totemofmight, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Totemofmight, Condition( function Trig_Totemofmight_Conditions ) )
call TriggerAddAction( gg_trg_Totemofmight, function Trig_Totemofmight_Actions )
endfunction
function Trig_Windr_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02K') == true ) ) then
return false
endif
return true
endfunction
function Trig_Windr_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02K') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02J', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Windr takes nothing returns nothing
set gg_trg_Windr = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Windr, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Windr, Condition( function Trig_Windr_Conditions ) )
call TriggerAddAction( gg_trg_Windr, function Trig_Windr_Actions )
endfunction
function Trig_Maceofzeus_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01N') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00L') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I02T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Maceofzeus_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01N') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00L') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I02T') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02R', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Maceofzeus takes nothing returns nothing
set gg_trg_Maceofzeus = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Maceofzeus, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Maceofzeus, Condition( function Trig_Maceofzeus_Conditions ) )
call TriggerAddAction( gg_trg_Maceofzeus, function Trig_Maceofzeus_Actions )
endfunction
function Trig_Allerasacred_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I016') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I034') == true ) ) then
return false
endif
return true
endfunction
function Trig_Allerasacred_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I016') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I034') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02P', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Allerasacred takes nothing returns nothing
set gg_trg_Allerasacred = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Allerasacred, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Allerasacred, Condition( function Trig_Allerasacred_Conditions ) )
call TriggerAddAction( gg_trg_Allerasacred, function Trig_Allerasacred_Actions )
endfunction
function Trig_Bledebanew_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I04M') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00U') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I052') == true ) ) then
return false
endif
return true
endfunction
function Trig_Bledebanew_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I04M') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00U') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I052') )
call AddSpecialEffectTargetUnitBJ( "origin", GetManipulatingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I04J', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Bledebanew takes nothing returns nothing
set gg_trg_Bledebanew = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bledebanew, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Bledebanew, Condition( function Trig_Bledebanew_Conditions ) )
call TriggerAddAction( gg_trg_Bledebanew, function Trig_Bledebanew_Actions )
endfunction
function Trig_Devour_of_Chaos_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00A') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00D') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00I') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01D') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I01L') == true ) ) then
return false
endif
return true
endfunction
function Trig_Devour_of_Chaos_Actions takes nothing returns nothing
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00A') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00D') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I00I') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01D') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), 'I01L') )
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( 'I001', GetManipulatingUnit() )
endfunction
//===========================================================================
function InitTrig_Devour_of_Chaos takes nothing returns nothing
set gg_trg_Devour_of_Chaos = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Devour_of_Chaos, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Devour_of_Chaos, Condition( function Trig_Devour_of_Chaos_Conditions ) )
call TriggerAddAction( gg_trg_Devour_of_Chaos, function Trig_Devour_of_Chaos_Actions )
endfunction
function Trig_Gloves_of_Haste_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'ngme' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07L' ) ) then
return false
endif
return true
endfunction
function Trig_Gloves_of_Haste_Func005Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07L' ) ) then
return false
endif
return true
endfunction
function Trig_Gloves_of_Haste_Func005Func002Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'ciri') == true ) ) then
return false
endif
return true
endfunction
function Trig_Gloves_of_Haste_Func005Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bgst') == true ) ) then
return false
endif
return true
endfunction
function Trig_Gloves_of_Haste_Func005Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'belv') == true ) ) then
return false
endif
return true
endfunction
function Trig_Gloves_of_Haste_Func005Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'belv') == true ) ) then
return false
endif
return true
endfunction
function Trig_Gloves_of_Haste_Func005Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bgst') == true ) ) then
return false
endif
return true
endfunction
function Trig_Gloves_of_Haste_Func005Func003Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'ciri') == true ) ) then
return false
endif
return true
endfunction
function Trig_Gloves_of_Haste_Func005Func003C takes nothing returns boolean
if ( Trig_Gloves_of_Haste_Func005Func003Func001C() ) then
return true
endif
if ( Trig_Gloves_of_Haste_Func005Func003Func002C() ) then
return true
endif
if ( Trig_Gloves_of_Haste_Func005Func003Func003C() ) then
return true
endif
return false
endfunction
function Trig_Gloves_of_Haste_Func005C takes nothing returns boolean
if ( not Trig_Gloves_of_Haste_Func005Func003C() ) then
return false
endif
return true
endfunction
function Trig_Gloves_of_Haste_Actions takes nothing returns nothing
if ( Trig_Gloves_of_Haste_Func005C() ) then
if ( Trig_Gloves_of_Haste_Func005Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'bspd') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'belv') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetBuyingUnit() )
else
if ( Trig_Gloves_of_Haste_Func005Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'bspd') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'bgst') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetBuyingUnit() )
else
if ( Trig_Gloves_of_Haste_Func005Func002Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'bspd') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'ciri') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetBuyingUnit() )
else
endif
endif
endif
else
if ( Trig_Gloves_of_Haste_Func005Func001C() ) then
call UnitAddItemByIdSwapped( 'gcel', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Gloves_of_Haste takes nothing returns nothing
set gg_trg_Gloves_of_Haste = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gloves_of_Haste, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Gloves_of_Haste, Condition( function Trig_Gloves_of_Haste_Conditions ) )
call TriggerAddAction( gg_trg_Gloves_of_Haste, function Trig_Gloves_of_Haste_Actions )
endfunction
function Trig_Mask_of_Death_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'ngme' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07E' ) ) then
return false
endif
return true
endfunction
function Trig_Mask_of_Death_Func005Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07E' ) ) then
return false
endif
return true
endfunction
function Trig_Mask_of_Death_Func005Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I029') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mask_of_Death_Func005Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I013') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mask_of_Death_Func005Func003C takes nothing returns boolean
if ( ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I013') == true ) ) then
return true
endif
if ( ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I029') == true ) ) then
return true
endif
return false
endfunction
function Trig_Mask_of_Death_Func005C takes nothing returns boolean
if ( not Trig_Mask_of_Death_Func005Func003C() ) then
return false
endif
return true
endfunction
function Trig_Mask_of_Death_Actions takes nothing returns nothing
if ( Trig_Mask_of_Death_Func005C() ) then
if ( Trig_Mask_of_Death_Func005Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I013') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01E', GetBuyingUnit() )
else
if ( Trig_Mask_of_Death_Func005Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I029') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01O', GetBuyingUnit() )
else
endif
endif
else
if ( Trig_Mask_of_Death_Func005Func001C() ) then
call UnitAddItemByIdSwapped( 'modt', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Mask_of_Death takes nothing returns nothing
set gg_trg_Mask_of_Death = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mask_of_Death, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Mask_of_Death, Condition( function Trig_Mask_of_Death_Conditions ) )
call TriggerAddAction( gg_trg_Mask_of_Death, function Trig_Mask_of_Death_Actions )
endfunction
function Trig_Sobi_Mask_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'ngme' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07K' ) ) then
return false
endif
return true
endfunction
function Trig_Sobi_Mask_Func005Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07K' ) ) then
return false
endif
return true
endfunction
function Trig_Sobi_Mask_Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rde2') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sobi_Mask_Actions takes nothing returns nothing
if ( Trig_Sobi_Mask_Func005C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rde2') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01P', GetBuyingUnit() )
else
if ( Trig_Sobi_Mask_Func005Func001C() ) then
call UnitAddItemByIdSwapped( 'rwiz', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Sobi_Mask takes nothing returns nothing
set gg_trg_Sobi_Mask = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sobi_Mask, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Sobi_Mask, Condition( function Trig_Sobi_Mask_Conditions ) )
call TriggerAddAction( gg_trg_Sobi_Mask, function Trig_Sobi_Mask_Actions )
endfunction
function Trig_Boots_of_Speed_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'ngme' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07P' ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Speed_Func004Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07P' ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Speed_Func004Func002Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'ciri') == true ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Speed_Func004Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bgst') == true ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Speed_Func004Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'belv') == true ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Speed_Func004Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'belv') == true ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Speed_Func004Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bgst') == true ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Speed_Func004Func003Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'ciri') == true ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Speed_Func004Func003C takes nothing returns boolean
if ( Trig_Boots_of_Speed_Func004Func003Func001C() ) then
return true
endif
if ( Trig_Boots_of_Speed_Func004Func003Func002C() ) then
return true
endif
if ( Trig_Boots_of_Speed_Func004Func003Func003C() ) then
return true
endif
return false
endfunction
function Trig_Boots_of_Speed_Func004C takes nothing returns boolean
if ( not Trig_Boots_of_Speed_Func004Func003C() ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Speed_Actions takes nothing returns nothing
if ( Trig_Boots_of_Speed_Func004C() ) then
if ( Trig_Boots_of_Speed_Func004Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'gcel') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'belv') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetBuyingUnit() )
else
if ( Trig_Boots_of_Speed_Func004Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'gcel') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'bgst') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetBuyingUnit() )
else
if ( Trig_Boots_of_Speed_Func004Func002Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'gcel') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'ciri') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetBuyingUnit() )
else
endif
endif
endif
else
if ( Trig_Boots_of_Speed_Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'bspd', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Boots_of_Speed takes nothing returns nothing
set gg_trg_Boots_of_Speed = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Boots_of_Speed, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Boots_of_Speed, Condition( function Trig_Boots_of_Speed_Conditions ) )
call TriggerAddAction( gg_trg_Boots_of_Speed, function Trig_Boots_of_Speed_Actions )
endfunction
function Trig_Planeswalkers_Cloak_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'ngme' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07G' ) ) then
return false
endif
return true
endfunction
function Trig_Planeswalkers_Cloak_Func004Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07G' ) ) then
return false
endif
return true
endfunction
function Trig_Planeswalkers_Cloak_Func004Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I013') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Planeswalkers_Cloak_Func004C takes nothing returns boolean
if ( not Trig_Planeswalkers_Cloak_Func004Func007C() ) then
return false
endif
return true
endfunction
function Trig_Planeswalkers_Cloak_Actions takes nothing returns nothing
if ( Trig_Planeswalkers_Cloak_Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I013') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00P') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01Q', GetBuyingUnit() )
else
if ( Trig_Planeswalkers_Cloak_Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'brac', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Planeswalkers_Cloak takes nothing returns nothing
set gg_trg_Planeswalkers_Cloak = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Planeswalkers_Cloak, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Planeswalkers_Cloak, Condition( function Trig_Planeswalkers_Cloak_Conditions ) )
call TriggerAddAction( gg_trg_Planeswalkers_Cloak, function Trig_Planeswalkers_Cloak_Actions )
endfunction
function Trig_Kuma_book_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'ngme' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I04Z' ) ) then
return false
endif
return true
endfunction
function Trig_Kuma_book_Func004Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I04Z' ) ) then
return false
endif
return true
endfunction
function Trig_Kuma_book_Func004Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I012') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00C') == true ) ) then
return false
endif
return true
endfunction
function Trig_Kuma_book_Func004C takes nothing returns boolean
if ( not Trig_Kuma_book_Func004Func007C() ) then
return false
endif
return true
endfunction
function Trig_Kuma_book_Actions takes nothing returns nothing
if ( Trig_Kuma_book_Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I012') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00C') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00R', GetBuyingUnit() )
else
if ( Trig_Kuma_book_Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'desc', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Kuma_book takes nothing returns nothing
set gg_trg_Kuma_book = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kuma_book, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Kuma_book, Condition( function Trig_Kuma_book_Conditions ) )
call TriggerAddAction( gg_trg_Kuma_book, function Trig_Kuma_book_Actions )
endfunction
function Trig_Gauntlet_of_Strength_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07S' ) ) then
return false
endif
return true
endfunction
function Trig_Gauntlet_of_Strength_Func004Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07S' ) ) then
return false
endif
return true
endfunction
function Trig_Gauntlet_of_Strength_Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'cnob') == true ) ) then
return false
endif
return true
endfunction
function Trig_Gauntlet_of_Strength_Actions takes nothing returns nothing
if ( Trig_Gauntlet_of_Strength_Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rst1') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'cnob') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I002', GetBuyingUnit() )
else
if ( Trig_Gauntlet_of_Strength_Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'rst1', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Gauntlet_of_Strength takes nothing returns nothing
set gg_trg_Gauntlet_of_Strength = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gauntlet_of_Strength, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Gauntlet_of_Strength, Condition( function Trig_Gauntlet_of_Strength_Conditions ) )
call TriggerAddAction( gg_trg_Gauntlet_of_Strength, function Trig_Gauntlet_of_Strength_Actions )
endfunction
function Trig_Slippers_of_Agility_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07F' ) ) then
return false
endif
return true
endfunction
function Trig_Slippers_of_Agility_Func004Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07F' ) ) then
return false
endif
return true
endfunction
function Trig_Slippers_of_Agility_Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'cnob') == true ) ) then
return false
endif
return true
endfunction
function Trig_Slippers_of_Agility_Actions takes nothing returns nothing
if ( Trig_Slippers_of_Agility_Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rag1') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'cnob') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I003', GetBuyingUnit() )
else
if ( Trig_Slippers_of_Agility_Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'rag1', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Slippers_of_Agility takes nothing returns nothing
set gg_trg_Slippers_of_Agility = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Slippers_of_Agility, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Slippers_of_Agility, Condition( function Trig_Slippers_of_Agility_Conditions ) )
call TriggerAddAction( gg_trg_Slippers_of_Agility, function Trig_Slippers_of_Agility_Actions )
endfunction
function Trig_Mantle_of_Intelligence_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07I' ) ) then
return false
endif
return true
endfunction
function Trig_Mantle_of_Intelligence_Func004Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07I' ) ) then
return false
endif
return true
endfunction
function Trig_Mantle_of_Intelligence_Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'cnob') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mantle_of_Intelligence_Actions takes nothing returns nothing
if ( Trig_Mantle_of_Intelligence_Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rin1') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'cnob') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I005', GetBuyingUnit() )
else
if ( Trig_Mantle_of_Intelligence_Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'rin1', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Mantle_of_Intelligence takes nothing returns nothing
set gg_trg_Mantle_of_Intelligence = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mantle_of_Intelligence, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Mantle_of_Intelligence, Condition( function Trig_Mantle_of_Intelligence_Conditions ) )
call TriggerAddAction( gg_trg_Mantle_of_Intelligence, function Trig_Mantle_of_Intelligence_Actions )
endfunction
function Trig_Belt_of_Giant_Strength_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07Q' ) ) then
return false
endif
return true
endfunction
function Trig_Belt_of_Giant_Strength_Func004Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07Q' ) ) then
return false
endif
return true
endfunction
function Trig_Belt_of_Giant_Strength_Func004Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
return true
endfunction
function Trig_Belt_of_Giant_Strength_Func004Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00X') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I027') == true ) ) then
return false
endif
return true
endfunction
function Trig_Belt_of_Giant_Strength_Func004Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00X') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I027') == true ) ) then
return false
endif
return true
endfunction
function Trig_Belt_of_Giant_Strength_Func004Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
return true
endfunction
function Trig_Belt_of_Giant_Strength_Func004Func003C takes nothing returns boolean
if ( Trig_Belt_of_Giant_Strength_Func004Func003Func001C() ) then
return true
endif
if ( Trig_Belt_of_Giant_Strength_Func004Func003Func002C() ) then
return true
endif
return false
endfunction
function Trig_Belt_of_Giant_Strength_Func004C takes nothing returns boolean
if ( not Trig_Belt_of_Giant_Strength_Func004Func003C() ) then
return false
endif
return true
endfunction
function Trig_Belt_of_Giant_Strength_Actions takes nothing returns nothing
if ( Trig_Belt_of_Giant_Strength_Func004C() ) then
if ( Trig_Belt_of_Giant_Strength_Func004Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00X') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I027') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01G', GetBuyingUnit() )
else
if ( Trig_Belt_of_Giant_Strength_Func004Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'bspd') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'gcel') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetBuyingUnit() )
else
endif
endif
else
if ( Trig_Belt_of_Giant_Strength_Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'bgst', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Belt_of_Giant_Strength takes nothing returns nothing
set gg_trg_Belt_of_Giant_Strength = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Belt_of_Giant_Strength, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Belt_of_Giant_Strength, Condition( function Trig_Belt_of_Giant_Strength_Conditions ) )
call TriggerAddAction( gg_trg_Belt_of_Giant_Strength, function Trig_Belt_of_Giant_Strength_Actions )
endfunction
function Trig_Boots_of_Elvenskin_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07O' ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Elvenskin_Func004Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07O' ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Elvenskin_Func004Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Elvenskin_Func004Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Y') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I028') == true ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Elvenskin_Func004Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Y') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I028') == true ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Elvenskin_Func004Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Elvenskin_Func004Func003C takes nothing returns boolean
if ( Trig_Boots_of_Elvenskin_Func004Func003Func001C() ) then
return true
endif
if ( Trig_Boots_of_Elvenskin_Func004Func003Func002C() ) then
return true
endif
return false
endfunction
function Trig_Boots_of_Elvenskin_Func004C takes nothing returns boolean
if ( not Trig_Boots_of_Elvenskin_Func004Func003C() ) then
return false
endif
return true
endfunction
function Trig_Boots_of_Elvenskin_Actions takes nothing returns nothing
if ( Trig_Boots_of_Elvenskin_Func004C() ) then
if ( Trig_Boots_of_Elvenskin_Func004Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00Y') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I028') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01H', GetBuyingUnit() )
else
if ( Trig_Boots_of_Elvenskin_Func004Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'bspd') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'gcel') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetBuyingUnit() )
else
endif
endif
else
if ( Trig_Boots_of_Elvenskin_Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'belv', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Boots_of_Elvenskin takes nothing returns nothing
set gg_trg_Boots_of_Elvenskin = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Boots_of_Elvenskin, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Boots_of_Elvenskin, Condition( function Trig_Boots_of_Elvenskin_Conditions ) )
call TriggerAddAction( gg_trg_Boots_of_Elvenskin, function Trig_Boots_of_Elvenskin_Actions )
endfunction
function Trig_Robe_of_the_Magi_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07H' ) ) then
return false
endif
return true
endfunction
function Trig_Robe_of_the_Magi_Func004Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
return true
endfunction
function Trig_Robe_of_the_Magi_Func004Func001Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Y') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Robe_of_the_Magi_Func004Func001C takes nothing returns boolean
if ( Trig_Robe_of_the_Magi_Func004Func001Func001C() ) then
return true
endif
if ( Trig_Robe_of_the_Magi_Func004Func001Func002C() ) then
return true
endif
return false
endfunction
function Trig_Robe_of_the_Magi_Func004Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Y') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Robe_of_the_Magi_Func004Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bspd') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'gcel') == true ) ) then
return false
endif
return true
endfunction
function Trig_Robe_of_the_Magi_Func004Func003C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07H' ) ) then
return false
endif
return true
endfunction
function Trig_Robe_of_the_Magi_Func004C takes nothing returns boolean
if ( not Trig_Robe_of_the_Magi_Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Robe_of_the_Magi_Actions takes nothing returns nothing
if ( Trig_Robe_of_the_Magi_Func004C() ) then
if ( Trig_Robe_of_the_Magi_Func004Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'bspd') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'gcel') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00C', GetBuyingUnit() )
else
if ( Trig_Robe_of_the_Magi_Func004Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00Y') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02H') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I023', GetBuyingUnit() )
else
endif
endif
else
if ( Trig_Robe_of_the_Magi_Func004Func003C() ) then
call UnitAddItemByIdSwapped( 'ciri', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Robe_of_the_Magi takes nothing returns nothing
set gg_trg_Robe_of_the_Magi = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Robe_of_the_Magi, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Robe_of_the_Magi, Condition( function Trig_Robe_of_the_Magi_Conditions ) )
call TriggerAddAction( gg_trg_Robe_of_the_Magi, function Trig_Robe_of_the_Magi_Actions )
endfunction
function Trig_Circlet_of_Nobility_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07N' ) ) then
return false
endif
return true
endfunction
function Trig_Circlet_of_Nobility_Func005Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07N' ) ) then
return false
endif
return true
endfunction
function Trig_Circlet_of_Nobility_Func005Func002Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rin1') == true ) ) then
return false
endif
return true
endfunction
function Trig_Circlet_of_Nobility_Func005Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rag1') == true ) ) then
return false
endif
return true
endfunction
function Trig_Circlet_of_Nobility_Func005Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rst1') == true ) ) then
return false
endif
return true
endfunction
function Trig_Circlet_of_Nobility_Func005Func003C takes nothing returns boolean
if ( ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rag1') == true ) ) then
return true
endif
if ( ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rst1') == true ) ) then
return true
endif
if ( ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rin1') == true ) ) then
return true
endif
return false
endfunction
function Trig_Circlet_of_Nobility_Func005C takes nothing returns boolean
if ( not Trig_Circlet_of_Nobility_Func005Func003C() ) then
return false
endif
return true
endfunction
function Trig_Circlet_of_Nobility_Actions takes nothing returns nothing
// circlet
if ( Trig_Circlet_of_Nobility_Func005C() ) then
if ( Trig_Circlet_of_Nobility_Func005Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rst1') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I002', GetBuyingUnit() )
else
if ( Trig_Circlet_of_Nobility_Func005Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rag1') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I003', GetBuyingUnit() )
else
if ( Trig_Circlet_of_Nobility_Func005Func002Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rin1') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I005', GetBuyingUnit() )
else
endif
endif
endif
else
if ( Trig_Circlet_of_Nobility_Func005Func001C() ) then
call UnitAddItemByIdSwapped( 'cnob', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Circlet_of_Nobility takes nothing returns nothing
set gg_trg_Circlet_of_Nobility = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Circlet_of_Nobility, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Circlet_of_Nobility, Condition( function Trig_Circlet_of_Nobility_Conditions ) )
call TriggerAddAction( gg_trg_Circlet_of_Nobility, function Trig_Circlet_of_Nobility_Actions )
endfunction
function Trig_Ogre_Axe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I075' ) ) then
return false
endif
return true
endfunction
function Trig_Ogre_Axe_Func004Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I075' ) ) then
return false
endif
return true
endfunction
function Trig_Ogre_Axe_Func004Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bgst') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I027') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ogre_Axe_Func004C takes nothing returns boolean
if ( not Trig_Ogre_Axe_Func004Func002C() ) then
return false
endif
return true
endfunction
function Trig_Ogre_Axe_Actions takes nothing returns nothing
if ( Trig_Ogre_Axe_Func004C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'bgst') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I027') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01G', GetBuyingUnit() )
else
if ( Trig_Ogre_Axe_Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'I00X', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Ogre_Axe takes nothing returns nothing
set gg_trg_Ogre_Axe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ogre_Axe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Ogre_Axe, Condition( function Trig_Ogre_Axe_Conditions ) )
call TriggerAddAction( gg_trg_Ogre_Axe, function Trig_Ogre_Axe_Actions )
endfunction
function Trig_Blade_of_Alacrity_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I079' ) ) then
return false
endif
return true
endfunction
function Trig_Blade_of_Alacrity_Func004Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'ciri') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Blade_of_Alacrity_Func004Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I028') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'belv') == true ) ) then
return false
endif
return true
endfunction
function Trig_Blade_of_Alacrity_Func004Func002C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I079' ) ) then
return false
endif
return true
endfunction
function Trig_Blade_of_Alacrity_Func004Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I028') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'belv') == true ) ) then
return false
endif
return true
endfunction
function Trig_Blade_of_Alacrity_Func004Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'ciri') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Blade_of_Alacrity_Func004Func003C takes nothing returns boolean
if ( Trig_Blade_of_Alacrity_Func004Func003Func001C() ) then
return true
endif
if ( Trig_Blade_of_Alacrity_Func004Func003Func002C() ) then
return true
endif
return false
endfunction
function Trig_Blade_of_Alacrity_Func004C takes nothing returns boolean
if ( not Trig_Blade_of_Alacrity_Func004Func003C() ) then
return false
endif
return true
endfunction
function Trig_Blade_of_Alacrity_Actions takes nothing returns nothing
if ( Trig_Blade_of_Alacrity_Func004C() ) then
if ( Trig_Blade_of_Alacrity_Func004Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I028') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'belv') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01H', GetBuyingUnit() )
else
if ( Trig_Blade_of_Alacrity_Func004Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'ciri') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02H') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I023', GetBuyingUnit() )
else
endif
endif
else
if ( Trig_Blade_of_Alacrity_Func004Func002C() ) then
call UnitAddItemByIdSwapped( 'I00Y', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Blade_of_Alacrity takes nothing returns nothing
set gg_trg_Blade_of_Alacrity = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blade_of_Alacrity, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Blade_of_Alacrity, Condition( function Trig_Blade_of_Alacrity_Conditions ) )
call TriggerAddAction( gg_trg_Blade_of_Alacrity, function Trig_Blade_of_Alacrity_Actions )
endfunction
function Trig_Staff_of_Wizardry_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06S' ) ) then
return false
endif
return true
endfunction
function Trig_Staff_of_Wizardry_Func004Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I036') == true ) ) then
return false
endif
return true
endfunction
function Trig_Staff_of_Wizardry_Func004Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rat9') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I025') == true ) ) then
return false
endif
return true
endfunction
function Trig_Staff_of_Wizardry_Func004Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rat9') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I025') == true ) ) then
return false
endif
return true
endfunction
function Trig_Staff_of_Wizardry_Func004Func002Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I036') == true ) ) then
return false
endif
return true
endfunction
function Trig_Staff_of_Wizardry_Func004Func002C takes nothing returns boolean
if ( Trig_Staff_of_Wizardry_Func004Func002Func001C() ) then
return true
endif
if ( Trig_Staff_of_Wizardry_Func004Func002Func002C() ) then
return true
endif
return false
endfunction
function Trig_Staff_of_Wizardry_Func004Func003C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06S' ) ) then
return false
endif
return true
endfunction
function Trig_Staff_of_Wizardry_Func004C takes nothing returns boolean
if ( not Trig_Staff_of_Wizardry_Func004Func002C() ) then
return false
endif
return true
endfunction
function Trig_Staff_of_Wizardry_Actions takes nothing returns nothing
if ( Trig_Staff_of_Wizardry_Func004C() ) then
if ( Trig_Staff_of_Wizardry_Func004Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rat9') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I025') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01K', GetBuyingUnit() )
else
if ( Trig_Staff_of_Wizardry_Func004Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I006') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I036') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02S', GetBuyingUnit() )
else
endif
endif
else
if ( Trig_Staff_of_Wizardry_Func004Func003C() ) then
call UnitAddItemByIdSwapped( 'I00Z', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Staff_of_Wizardry takes nothing returns nothing
set gg_trg_Staff_of_Wizardry = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Staff_of_Wizardry, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Staff_of_Wizardry, Condition( function Trig_Staff_of_Wizardry_Conditions ) )
call TriggerAddAction( gg_trg_Staff_of_Wizardry, function Trig_Staff_of_Wizardry_Actions )
endfunction
function Trig_Ultimate_Orb_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hjai' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06T' ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06T' ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I039') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00V') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func002Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Z') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I036') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I026') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02A') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I021') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02A') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I021') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I026') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func003Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Z') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I036') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func003Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00V') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func003Func005C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I039') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Func004Func003C takes nothing returns boolean
if ( Trig_Ultimate_Orb_Func004Func003Func001C() ) then
return true
endif
if ( Trig_Ultimate_Orb_Func004Func003Func002C() ) then
return true
endif
if ( Trig_Ultimate_Orb_Func004Func003Func003C() ) then
return true
endif
if ( Trig_Ultimate_Orb_Func004Func003Func004C() ) then
return true
endif
if ( Trig_Ultimate_Orb_Func004Func003Func005C() ) then
return true
endif
return false
endfunction
function Trig_Ultimate_Orb_Func004C takes nothing returns boolean
if ( not Trig_Ultimate_Orb_Func004Func003C() ) then
return false
endif
return true
endfunction
function Trig_Ultimate_Orb_Actions takes nothing returns nothing
if ( Trig_Ultimate_Orb_Func004C() ) then
if ( Trig_Ultimate_Orb_Func004Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02A') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I021') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I004', GetBuyingUnit() )
else
if ( Trig_Ultimate_Orb_Func004Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00O') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I026') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I007', GetBuyingUnit() )
else
if ( Trig_Ultimate_Orb_Func004Func002Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00Z') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I036') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02S', GetBuyingUnit() )
else
if ( Trig_Ultimate_Orb_Func004Func002Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00V') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02G') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01N', GetBuyingUnit() )
else
if ( Trig_Ultimate_Orb_Func004Func002Func001Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00E') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I039') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I019') )
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( 'I00G', GetBuyingUnit() )
else
endif
endif
endif
endif
endif
else
if ( Trig_Ultimate_Orb_Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'I006', GetBuyingUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Ultimate_Orb takes nothing returns nothing
set gg_trg_Ultimate_Orb = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ultimate_Orb, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Ultimate_Orb, Condition( function Trig_Ultimate_Orb_Conditions ) )
call TriggerAddAction( gg_trg_Ultimate_Orb, function Trig_Ultimate_Orb_Actions )
endfunction
function Trig_Blades_of_Attack_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hmkg' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07J' ) ) then
return false
endif
return true
endfunction
function Trig_Blades_of_Attack_Func005Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I025') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Blades_of_Attack_Func005Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00U') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I024') == true ) ) then
return false
endif
return true
endfunction
function Trig_Blades_of_Attack_Func005Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00U') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I024') == true ) ) then
return false
endif
return true
endfunction
function Trig_Blades_of_Attack_Func005Func002Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I025') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Blades_of_Attack_Func005Func002C takes nothing returns boolean
if ( Trig_Blades_of_Attack_Func005Func002Func001C() ) then
return true
endif
if ( Trig_Blades_of_Attack_Func005Func002Func002C() ) then
return true
endif
return false
endfunction
function Trig_Blades_of_Attack_Func005C takes nothing returns boolean
if ( not Trig_Blades_of_Attack_Func005Func002C() ) then
return false
endif
return true
endfunction
function Trig_Blades_of_Attack_Actions takes nothing returns nothing
if ( Trig_Blades_of_Attack_Func005C() ) then
if ( Trig_Blades_of_Attack_Func005Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00U') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I024') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01B', GetBuyingUnit() )
else
if ( Trig_Blades_of_Attack_Func005Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I025') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00Z') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01K', GetBuyingUnit() )
else
endif
endif
else
call UnitAddItemByIdSwapped( 'rat9', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Blades_of_Attack takes nothing returns nothing
set gg_trg_Blades_of_Attack = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blades_of_Attack, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Blades_of_Attack, Condition( function Trig_Blades_of_Attack_Conditions ) )
call TriggerAddAction( gg_trg_Blades_of_Attack, function Trig_Blades_of_Attack_Actions )
endfunction
function Trig_Broadsword_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hmkg' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07R' ) ) then
return false
endif
return true
endfunction
function Trig_Broadsword_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I04M') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I052') == true ) ) then
return false
endif
return true
endfunction
function Trig_Broadsword_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Broadsword_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rat9') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I024') == true ) ) then
return false
endif
return true
endfunction
function Trig_Broadsword_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rat9') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I024') == true ) ) then
return false
endif
return true
endfunction
function Trig_Broadsword_Func001Func002Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Broadsword_Func001Func002Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I04M') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I052') == true ) ) then
return false
endif
return true
endfunction
function Trig_Broadsword_Func001Func002C takes nothing returns boolean
if ( Trig_Broadsword_Func001Func002Func001C() ) then
return true
endif
if ( Trig_Broadsword_Func001Func002Func002C() ) then
return true
endif
if ( Trig_Broadsword_Func001Func002Func003C() ) then
return true
endif
return false
endfunction
function Trig_Broadsword_Func001C takes nothing returns boolean
if ( not Trig_Broadsword_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Broadsword_Actions takes nothing returns nothing
if ( Trig_Broadsword_Func001C() ) then
if ( Trig_Broadsword_Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rat9') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I024') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01B', GetBuyingUnit() )
else
if ( Trig_Broadsword_Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00O') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00V') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00N', GetBuyingUnit() )
else
if ( Trig_Broadsword_Func001Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I04M') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I052') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I04J', GetBuyingUnit() )
else
endif
endif
endif
else
call UnitAddItemByIdSwapped( 'I00U', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Broadsword takes nothing returns nothing
set gg_trg_Broadsword = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Broadsword, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Broadsword, Condition( function Trig_Broadsword_Conditions ) )
call TriggerAddAction( gg_trg_Broadsword, function Trig_Broadsword_Actions )
endfunction
function Trig_Quarterstaff_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hmkg' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06Z' ) ) then
return false
endif
return true
endfunction
function Trig_Quarterstaff_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I022') == true ) ) then
return false
endif
return true
endfunction
function Trig_Quarterstaff_Func001C takes nothing returns boolean
if ( not Trig_Quarterstaff_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Quarterstaff_Actions takes nothing returns nothing
if ( Trig_Quarterstaff_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I022') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01J', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I010', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Quarterstaff takes nothing returns nothing
set gg_trg_Quarterstaff = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Quarterstaff, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Quarterstaff, Condition( function Trig_Quarterstaff_Conditions ) )
call TriggerAddAction( gg_trg_Quarterstaff, function Trig_Quarterstaff_Actions )
endfunction
function Trig_Claymore_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hmkg' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I072' ) ) then
return false
endif
return true
endfunction
function Trig_Claymore_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Claymore_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Claymore_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Claymore_Func001Func002Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02G') == true ) ) then
return false
endif
return true
endfunction
function Trig_Claymore_Func001Func002C takes nothing returns boolean
if ( Trig_Claymore_Func001Func002Func001C() ) then
return true
endif
if ( Trig_Claymore_Func001Func002Func002C() ) then
return true
endif
return false
endfunction
function Trig_Claymore_Func001C takes nothing returns boolean
if ( not Trig_Claymore_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Claymore_Actions takes nothing returns nothing
if ( Trig_Claymore_Func001C() ) then
if ( Trig_Claymore_Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00O') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00U') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00N', GetBuyingUnit() )
else
if ( Trig_Claymore_Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I006') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02G') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01N', GetBuyingUnit() )
else
endif
endif
else
call UnitAddItemByIdSwapped( 'I00V', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Claymore takes nothing returns nothing
set gg_trg_Claymore = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Claymore, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Claymore, Condition( function Trig_Claymore_Conditions ) )
call TriggerAddAction( gg_trg_Claymore, function Trig_Claymore_Actions )
endfunction
function Trig_Ring_of_Protection_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hmkg' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07M' ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Protection_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rwiz') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Protection_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Protection_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Protection_Func001Func002C takes nothing returns boolean
if ( Trig_Ring_of_Protection_Func001Func002Func001C() ) then
return true
endif
if ( ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rwiz') == true ) ) then
return true
endif
return false
endfunction
function Trig_Ring_of_Protection_Func001C takes nothing returns boolean
if ( not Trig_Ring_of_Protection_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Protection_Actions takes nothing returns nothing
if ( Trig_Ring_of_Protection_Func001C() ) then
if ( Trig_Ring_of_Protection_Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02B') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00W', GetBuyingUnit() )
else
if ( Trig_Ring_of_Protection_Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rwiz') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01P', GetBuyingUnit() )
else
endif
endif
else
call UnitAddItemByIdSwapped( 'rde2', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Ring_of_Protection takes nothing returns nothing
set gg_trg_Ring_of_Protection = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ring_of_Protection, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Ring_of_Protection, Condition( function Trig_Ring_of_Protection_Conditions ) )
call TriggerAddAction( gg_trg_Ring_of_Protection, function Trig_Ring_of_Protection_Actions )
endfunction
function Trig_Stout_Shield_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hmkg' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I073' ) ) then
return false
endif
return true
endfunction
function Trig_Stout_Shield_Func001Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00P') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Stout_Shield_Func001C takes nothing returns boolean
if ( not Trig_Stout_Shield_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Stout_Shield_Actions takes nothing returns nothing
if ( Trig_Stout_Shield_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00P') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01A') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01R', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I011', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Stout_Shield takes nothing returns nothing
set gg_trg_Stout_Shield = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stout_Shield, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Stout_Shield, Condition( function Trig_Stout_Shield_Conditions ) )
call TriggerAddAction( gg_trg_Stout_Shield, function Trig_Stout_Shield_Actions )
endfunction
function Trig_Helm_of_Iron_Will_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hmkg' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I071' ) ) then
return false
endif
return true
endfunction
function Trig_Helm_of_Iron_Will_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00P') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'brac') == true ) ) then
return false
endif
return true
endfunction
function Trig_Helm_of_Iron_Will_Func001Func002C takes nothing returns boolean
if ( Trig_Helm_of_Iron_Will_Func001Func002Func001C() ) then
return true
endif
if ( ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'modt') == true ) ) then
return true
endif
return false
endfunction
function Trig_Helm_of_Iron_Will_Func001Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'modt') == true ) ) then
return false
endif
return true
endfunction
function Trig_Helm_of_Iron_Will_Func001Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00P') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'brac') == true ) ) then
return false
endif
return true
endfunction
function Trig_Helm_of_Iron_Will_Func001C takes nothing returns boolean
if ( not Trig_Helm_of_Iron_Will_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Helm_of_Iron_Will_Actions takes nothing returns nothing
if ( Trig_Helm_of_Iron_Will_Func001C() ) then
if ( Trig_Helm_of_Iron_Will_Func001Func003C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00P') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'brac') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01Q', GetBuyingUnit() )
else
if ( Trig_Helm_of_Iron_Will_Func001Func003Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'modt') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01E', GetBuyingUnit() )
else
endif
endif
else
call UnitAddItemByIdSwapped( 'I013', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Helm_of_Iron_Will takes nothing returns nothing
set gg_trg_Helm_of_Iron_Will = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Helm_of_Iron_Will, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Helm_of_Iron_Will, Condition( function Trig_Helm_of_Iron_Will_Conditions ) )
call TriggerAddAction( gg_trg_Helm_of_Iron_Will, function Trig_Helm_of_Iron_Will_Actions )
endfunction
function Trig_Plate_Mail_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hmkg' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I077' ) ) then
return false
endif
return true
endfunction
function Trig_Plate_Mail_Func001Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I000') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02D') == true ) ) then
return false
endif
return true
endfunction
function Trig_Plate_Mail_Func001C takes nothing returns boolean
if ( not Trig_Plate_Mail_Func001Func009C() ) then
return false
endif
return true
endfunction
function Trig_Plate_Mail_Actions takes nothing returns nothing
if ( Trig_Plate_Mail_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I000') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02D') )
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( 'I01U', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I015', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Plate_Mail takes nothing returns nothing
set gg_trg_Plate_Mail = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Plate_Mail, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Plate_Mail, Condition( function Trig_Plate_Mail_Conditions ) )
call TriggerAddAction( gg_trg_Plate_Mail, function Trig_Plate_Mail_Actions )
endfunction
function Trig_Chain_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'Hmkg' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I04V' ) ) then
return false
endif
return true
endfunction
function Trig_Chain_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00U') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I052') == true ) ) then
return false
endif
return true
endfunction
function Trig_Chain_Func001C takes nothing returns boolean
if ( not Trig_Chain_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Chain_Actions takes nothing returns nothing
if ( Trig_Chain_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00U') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I052') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I04J', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I04M', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Chain takes nothing returns nothing
set gg_trg_Chain = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Chain, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Chain, Condition( function Trig_Chain_Conditions ) )
call TriggerAddAction( gg_trg_Chain, function Trig_Chain_Actions )
endfunction
function Trig_Demon_Edge_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07U' ) ) then
return false
endif
return true
endfunction
function Trig_Demon_Edge_Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I034') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Demon_Edge_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Demon_Edge_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00L') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Demon_Edge_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01B') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Demon_Edge_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01B') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Demon_Edge_Func001Func002Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00L') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Demon_Edge_Func001Func002Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Demon_Edge_Func001Func002Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I034') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Demon_Edge_Func001Func002C takes nothing returns boolean
if ( Trig_Demon_Edge_Func001Func002Func001C() ) then
return true
endif
if ( Trig_Demon_Edge_Func001Func002Func002C() ) then
return true
endif
if ( Trig_Demon_Edge_Func001Func002Func003C() ) then
return true
endif
if ( Trig_Demon_Edge_Func001Func002Func004C() ) then
return true
endif
return false
endfunction
function Trig_Demon_Edge_Func001C takes nothing returns boolean
if ( not Trig_Demon_Edge_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Demon_Edge_Actions takes nothing returns nothing
if ( Trig_Demon_Edge_Func001C() ) then
if ( Trig_Demon_Edge_Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01B') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00J') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01C', GetBuyingUnit() )
else
if ( Trig_Demon_Edge_Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00L') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02V') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02Q', GetBuyingUnit() )
else
if ( Trig_Demon_Edge_Func001Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01N') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02R', GetBuyingUnit() )
else
if ( Trig_Demon_Edge_Func001Func001Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I034') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00T') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02P', GetBuyingUnit() )
else
endif
endif
endif
endif
else
call UnitAddItemByIdSwapped( 'I016', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Demon_Edge takes nothing returns nothing
set gg_trg_Demon_Edge = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Demon_Edge, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Demon_Edge, Condition( function Trig_Demon_Edge_Conditions ) )
call TriggerAddAction( gg_trg_Demon_Edge, function Trig_Demon_Edge_Actions )
endfunction
function Trig_Eaglehorn_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I07T' ) ) then
return false
endif
return true
endfunction
function Trig_Eaglehorn_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I034') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I016') == true ) ) then
return false
endif
return true
endfunction
function Trig_Eaglehorn_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02K') == true ) ) then
return false
endif
return true
endfunction
function Trig_Eaglehorn_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I010') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I022') == true ) ) then
return false
endif
return true
endfunction
function Trig_Eaglehorn_Func001Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I010') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I022') == true ) ) then
return false
endif
return true
endfunction
function Trig_Eaglehorn_Func001Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02K') == true ) ) then
return false
endif
return true
endfunction
function Trig_Eaglehorn_Func001Func003Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I034') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I016') == true ) ) then
return false
endif
return true
endfunction
function Trig_Eaglehorn_Func001Func003C takes nothing returns boolean
if ( Trig_Eaglehorn_Func001Func003Func001C() ) then
return true
endif
if ( Trig_Eaglehorn_Func001Func003Func002C() ) then
return true
endif
if ( Trig_Eaglehorn_Func001Func003Func003C() ) then
return true
endif
return false
endfunction
function Trig_Eaglehorn_Func001C takes nothing returns boolean
if ( not Trig_Eaglehorn_Func001Func003C() ) then
return false
endif
return true
endfunction
function Trig_Eaglehorn_Actions takes nothing returns nothing
if ( Trig_Eaglehorn_Func001C() ) then
if ( Trig_Eaglehorn_Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I010') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I022') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01J', GetBuyingUnit() )
else
if ( Trig_Eaglehorn_Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02K') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02J', GetBuyingUnit() )
else
if ( Trig_Eaglehorn_Func001Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I034') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I016') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02P', GetBuyingUnit() )
else
endif
endif
endif
else
call UnitAddItemByIdSwapped( 'I00T', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Eaglehorn takes nothing returns nothing
set gg_trg_Eaglehorn = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Eaglehorn, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Eaglehorn, Condition( function Trig_Eaglehorn_Conditions ) )
call TriggerAddAction( gg_trg_Eaglehorn, function Trig_Eaglehorn_Actions )
endfunction
function Trig_Messerschmitdts_Reaver_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I078' ) ) then
return false
endif
return true
endfunction
function Trig_Messerschmitdts_Reaver_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I020') == true ) ) then
return false
endif
return true
endfunction
function Trig_Messerschmitdts_Reaver_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01A') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Messerschmitdts_Reaver_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01A') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Messerschmitdts_Reaver_Func001Func002Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I020') == true ) ) then
return false
endif
return true
endfunction
function Trig_Messerschmitdts_Reaver_Func001Func002C takes nothing returns boolean
if ( Trig_Messerschmitdts_Reaver_Func001Func002Func001C() ) then
return true
endif
if ( Trig_Messerschmitdts_Reaver_Func001Func002Func002C() ) then
return true
endif
return false
endfunction
function Trig_Messerschmitdts_Reaver_Func001C takes nothing returns boolean
if ( not Trig_Messerschmitdts_Reaver_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Messerschmitdts_Reaver_Actions takes nothing returns nothing
if ( Trig_Messerschmitdts_Reaver_Func001C() ) then
if ( Trig_Messerschmitdts_Reaver_Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01A') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01Z') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I000', GetBuyingUnit() )
else
if ( Trig_Messerschmitdts_Reaver_Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01E') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I020') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00B', GetBuyingUnit() )
else
endif
endif
else
call UnitAddItemByIdSwapped( 'I00S', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Messerschmitdts_Reaver takes nothing returns nothing
set gg_trg_Messerschmitdts_Reaver = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Messerschmitdts_Reaver, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Messerschmitdts_Reaver, Condition( function Trig_Messerschmitdts_Reaver_Conditions ) )
call TriggerAddAction( gg_trg_Messerschmitdts_Reaver, function Trig_Messerschmitdts_Reaver_Actions )
endfunction
function Trig_Sacred_Relic_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06Y' ) ) then
return false
endif
return true
endfunction
function Trig_Sacred_Relic_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I016') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sacred_Relic_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sacred_Relic_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01Y') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sacred_Relic_Func001Func002Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I016') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sacred_Relic_Func001Func002C takes nothing returns boolean
if ( Trig_Sacred_Relic_Func001Func002Func001C() ) then
return true
endif
if ( Trig_Sacred_Relic_Func001Func002Func002C() ) then
return true
endif
return false
endfunction
function Trig_Sacred_Relic_Func001C takes nothing returns boolean
if ( not Trig_Sacred_Relic_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Sacred_Relic_Actions takes nothing returns nothing
if ( Trig_Sacred_Relic_Func001C() ) then
if ( Trig_Sacred_Relic_Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01Y') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00M', GetBuyingUnit() )
else
if ( Trig_Sacred_Relic_Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I016') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02V') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02Q', GetBuyingUnit() )
else
endif
endif
else
call UnitAddItemByIdSwapped( 'I00L', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Sacred_Relic takes nothing returns nothing
set gg_trg_Sacred_Relic = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sacred_Relic, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Sacred_Relic, Condition( function Trig_Sacred_Relic_Conditions ) )
call TriggerAddAction( gg_trg_Sacred_Relic, function Trig_Sacred_Relic_Actions )
endfunction
function Trig_Hyperstone_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I074' ) ) then
return false
endif
return true
endfunction
function Trig_Hyperstone_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I03E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I03F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Hyperstone_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01J') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Hyperstone_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I03E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I03F') == true ) ) then
return false
endif
return true
endfunction
function Trig_Hyperstone_Func001Func002Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01J') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Hyperstone_Func001Func002C takes nothing returns boolean
if ( Trig_Hyperstone_Func001Func002Func001C() ) then
return true
endif
if ( Trig_Hyperstone_Func001Func002Func002C() ) then
return true
endif
return false
endfunction
function Trig_Hyperstone_Func001C takes nothing returns boolean
if ( not Trig_Hyperstone_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Hyperstone_Actions takes nothing returns nothing
if ( Trig_Hyperstone_Func001C() ) then
if ( Trig_Hyperstone_Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01J') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02E') )
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( 'I01V', GetBuyingUnit() )
else
if ( Trig_Hyperstone_Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I03E') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I03F') )
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( 'I01F', GetBuyingUnit() )
else
endif
endif
else
call UnitAddItemByIdSwapped( 'I017', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Hyperstone takes nothing returns nothing
set gg_trg_Hyperstone = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hyperstone, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Hyperstone, Condition( function Trig_Hyperstone_Conditions ) )
call TriggerAddAction( gg_trg_Hyperstone, function Trig_Hyperstone_Actions )
endfunction
function Trig_Ring_of_Health_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06U' ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Health_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I011') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Health_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I013') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'brac') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Health_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Q') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Health_Func001Func002Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I013') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'brac') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Health_Func001Func002Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I011') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Health_Func001Func002C takes nothing returns boolean
if ( ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Q') == true ) ) then
return true
endif
if ( Trig_Ring_of_Health_Func001Func002Func002C() ) then
return true
endif
if ( Trig_Ring_of_Health_Func001Func002Func003C() ) then
return true
endif
return false
endfunction
function Trig_Ring_of_Health_Func001C takes nothing returns boolean
if ( not Trig_Ring_of_Health_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Ring_of_Health_Actions takes nothing returns nothing
if ( Trig_Ring_of_Health_Func001C() ) then
if ( Trig_Ring_of_Health_Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00Q') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00O', GetBuyingUnit() )
else
if ( Trig_Ring_of_Health_Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I013') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'brac') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01Q', GetBuyingUnit() )
else
if ( Trig_Ring_of_Health_Func001Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I011') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01A') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01R', GetBuyingUnit() )
else
endif
endif
endif
else
call UnitAddItemByIdSwapped( 'I00P', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Ring_of_Health takes nothing returns nothing
set gg_trg_Ring_of_Health = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ring_of_Health, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Ring_of_Health, Condition( function Trig_Ring_of_Health_Conditions ) )
call TriggerAddAction( gg_trg_Ring_of_Health, function Trig_Ring_of_Health_Actions )
endfunction
function Trig_Void_Stone_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06V' ) ) then
return false
endif
return true
endfunction
function Trig_Void_Stone_Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Void_Stone_Actions takes nothing returns nothing
if ( Trig_Void_Stone_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00P') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00O', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I00Q', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Void_Stone takes nothing returns nothing
set gg_trg_Void_Stone = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Void_Stone, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Void_Stone, Condition( function Trig_Void_Stone_Conditions ) )
call TriggerAddAction( gg_trg_Void_Stone, function Trig_Void_Stone_Actions )
endfunction
function Trig_Mystic_Staff_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I070' ) ) then
return false
endif
return true
endfunction
function Trig_Mystic_Staff_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mystic_Staff_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I04W') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I000') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mystic_Staff_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mystic_Staff_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I04W') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I000') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mystic_Staff_Func001Func002Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mystic_Staff_Func001Func002C takes nothing returns boolean
if ( Trig_Mystic_Staff_Func001Func002Func001C() ) then
return true
endif
if ( Trig_Mystic_Staff_Func001Func002Func002C() ) then
return true
endif
if ( ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02A') == true ) ) then
return true
endif
return false
endfunction
function Trig_Mystic_Staff_Func001C takes nothing returns boolean
if ( not Trig_Mystic_Staff_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Mystic_Staff_Actions takes nothing returns nothing
if ( Trig_Mystic_Staff_Func001C() ) then
if ( Trig_Mystic_Staff_Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02A') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I03D', GetBuyingUnit() )
else
if ( Trig_Mystic_Staff_Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I04W') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I000') )
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( 'I04K', GetBuyingUnit() )
else
if ( Trig_Mystic_Staff_Func001Func001Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00E') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I006') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I019') )
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( 'I00G', GetBuyingUnit() )
else
endif
endif
endif
else
call UnitAddItemByIdSwapped( 'I039', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Mystic_Staff takes nothing returns nothing
set gg_trg_Mystic_Staff = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mystic_Staff, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Mystic_Staff, Condition( function Trig_Mystic_Staff_Conditions ) )
call TriggerAddAction( gg_trg_Mystic_Staff, function Trig_Mystic_Staff_Actions )
endfunction
function Trig_Energy_Booster_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06W' ) ) then
return false
endif
return true
endfunction
function Trig_Energy_Booster_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01A') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Energy_Booster_Func001Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rde2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Energy_Booster_Func001Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rde2') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Energy_Booster_Func001Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01A') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Energy_Booster_Func001Func003C takes nothing returns boolean
if ( Trig_Energy_Booster_Func001Func003Func001C() ) then
return true
endif
if ( Trig_Energy_Booster_Func001Func003Func002C() ) then
return true
endif
return false
endfunction
function Trig_Energy_Booster_Func001C takes nothing returns boolean
if ( not Trig_Energy_Booster_Func001Func003C() ) then
return false
endif
return true
endfunction
function Trig_Energy_Booster_Actions takes nothing returns nothing
if ( Trig_Energy_Booster_Func001C() ) then
if ( Trig_Energy_Booster_Func001Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rde2') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02B') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00W', GetBuyingUnit() )
else
if ( Trig_Energy_Booster_Func001Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01A') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I019') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02A', GetBuyingUnit() )
else
endif
endif
else
call UnitAddItemByIdSwapped( 'I018', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Energy_Booster takes nothing returns nothing
set gg_trg_Energy_Booster = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Energy_Booster, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Energy_Booster, Condition( function Trig_Energy_Booster_Conditions ) )
call TriggerAddAction( gg_trg_Energy_Booster, function Trig_Energy_Booster_Actions )
endfunction
function Trig_Point_Booster_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06X' ) ) then
return false
endif
return true
endfunction
function Trig_Point_Booster_Func001Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Point_Booster_Func001Func001Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I039') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Point_Booster_Func001Func001C takes nothing returns boolean
if ( Trig_Point_Booster_Func001Func001Func001C() ) then
return true
endif
if ( Trig_Point_Booster_Func001Func001Func002C() ) then
return true
endif
return false
endfunction
function Trig_Point_Booster_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I039') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Point_Booster_Func001Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Point_Booster_Func001C takes nothing returns boolean
if ( not Trig_Point_Booster_Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Point_Booster_Actions takes nothing returns nothing
if ( Trig_Point_Booster_Func001C() ) then
if ( Trig_Point_Booster_Func001Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01A') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02A', GetBuyingUnit() )
else
if ( Trig_Point_Booster_Func001Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00E') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I039') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I006') )
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( 'I00G', GetBuyingUnit() )
else
endif
endif
else
call UnitAddItemByIdSwapped( 'I019', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Point_Booster takes nothing returns nothing
set gg_trg_Point_Booster = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Point_Booster, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Point_Booster, Condition( function Trig_Point_Booster_Conditions ) )
call TriggerAddAction( gg_trg_Point_Booster, function Trig_Point_Booster_Actions )
endfunction
function Trig_Vitality_Booster_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I06R' ) ) then
return false
endif
return true
endfunction
function Trig_Vitality_Booster_Func001Func002Func001Func001Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00S') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Vitality_Booster_Func001Func002Func001Func001C takes nothing returns boolean
if ( not Trig_Vitality_Booster_Func001Func002Func001Func001Func006C() ) then
return false
endif
return true
endfunction
function Trig_Vitality_Booster_Func001Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Vitality_Booster_Func001Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00P') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I011') == true ) ) then
return false
endif
return true
endfunction
function Trig_Vitality_Booster_Func001Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00P') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I011') == true ) ) then
return false
endif
return true
endfunction
function Trig_Vitality_Booster_Func001Func003Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_Vitality_Booster_Func001Func003Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00S') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Vitality_Booster_Func001Func003C takes nothing returns boolean
if ( Trig_Vitality_Booster_Func001Func003Func001C() ) then
return true
endif
if ( Trig_Vitality_Booster_Func001Func003Func002C() ) then
return true
endif
if ( Trig_Vitality_Booster_Func001Func003Func003C() ) then
return true
endif
return false
endfunction
function Trig_Vitality_Booster_Func001C takes nothing returns boolean
if ( not Trig_Vitality_Booster_Func001Func003C() ) then
return false
endif
return true
endfunction
function Trig_Vitality_Booster_Actions takes nothing returns nothing
if ( Trig_Vitality_Booster_Func001C() ) then
if ( Trig_Vitality_Booster_Func001Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00P') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I011') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01R', GetBuyingUnit() )
else
if ( Trig_Vitality_Booster_Func001Func002Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I019') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02A', GetBuyingUnit() )
else
if ( Trig_Vitality_Booster_Func001Func002Func001Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00S') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01Z') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I000', GetBuyingUnit() )
else
endif
endif
endif
else
call UnitAddItemByIdSwapped( 'I01A', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Vitality_Booster takes nothing returns nothing
set gg_trg_Vitality_Booster = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Vitality_Booster, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Vitality_Booster, Condition( function Trig_Vitality_Booster_Conditions ) )
call TriggerAddAction( gg_trg_Vitality_Booster, function Trig_Vitality_Booster_Actions )
endfunction
function Trig_Excalibur_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSellingUnit()) == 'n00D' ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I076' ) ) then
return false
endif
return true
endfunction
function Trig_Excalibur_Func001Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I03E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I017') == true ) ) then
return false
endif
return true
endfunction
function Trig_Excalibur_Func001Func003Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I03E') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I017') == true ) ) then
return false
endif
return true
endfunction
function Trig_Excalibur_Func001Func003C takes nothing returns boolean
if ( Trig_Excalibur_Func001Func003Func001C() ) then
return true
endif
return false
endfunction
function Trig_Excalibur_Func001C takes nothing returns boolean
if ( not Trig_Excalibur_Func001Func003C() ) then
return false
endif
return true
endfunction
function Trig_Excalibur_Actions takes nothing returns nothing
if ( Trig_Excalibur_Func001C() ) then
if ( Trig_Excalibur_Func001Func002C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I03E') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I017') )
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( 'I01F', GetBuyingUnit() )
else
endif
else
call UnitAddItemByIdSwapped( 'I03F', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Excalibur takes nothing returns nothing
set gg_trg_Excalibur = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Excalibur, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Excalibur, Condition( function Trig_Excalibur_Conditions ) )
call TriggerAddAction( gg_trg_Excalibur, function Trig_Excalibur_Actions )
endfunction
function Trig_Arcane_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03I' ) ) then
return false
endif
return true
endfunction
function Trig_Arcane_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I018') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rde2') == true ) ) then
return false
endif
return true
endfunction
function Trig_Arcane_recipe_Func001C takes nothing returns boolean
if ( not Trig_Arcane_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Arcane_recipe_Actions takes nothing returns nothing
if ( Trig_Arcane_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I018') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rde2') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00W', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I02B', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Arcane_recipe takes nothing returns nothing
set gg_trg_Arcane_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Arcane_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Arcane_recipe, Condition( function Trig_Arcane_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Arcane_recipe, function Trig_Arcane_recipe_Actions )
endfunction
function Trig_Buriza_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03M' ) ) then
return false
endif
return true
endfunction
function Trig_Buriza_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01B') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I016') == true ) ) then
return false
endif
return true
endfunction
function Trig_Buriza_recipe_Func001C takes nothing returns boolean
if ( not Trig_Buriza_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Buriza_recipe_Actions takes nothing returns nothing
if ( Trig_Buriza_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01B') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I016') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01C', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I00J', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Buriza_recipe takes nothing returns nothing
set gg_trg_Buriza_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Buriza_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Buriza_recipe, Condition( function Trig_Buriza_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Buriza_recipe, function Trig_Buriza_recipe_Actions )
endfunction
function Trig_BootsofTravel_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I00K' ) ) then
return false
endif
return true
endfunction
function Trig_BootsofTravel_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00C') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'desc') == true ) ) then
return false
endif
return true
endfunction
function Trig_BootsofTravel_recipe_Func001C takes nothing returns boolean
if ( not Trig_BootsofTravel_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_BootsofTravel_recipe_Actions takes nothing returns nothing
if ( Trig_BootsofTravel_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00C') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'desc') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00R', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I012', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_BootsofTravel_recipe takes nothing returns nothing
set gg_trg_BootsofTravel_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_BootsofTravel_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_BootsofTravel_recipe, Condition( function Trig_BootsofTravel_recipe_Conditions ) )
call TriggerAddAction( gg_trg_BootsofTravel_recipe, function Trig_BootsofTravel_recipe_Actions )
endfunction
function Trig_Crystalys_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I009' ) ) then
return false
endif
return true
endfunction
function Trig_Crystalys_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00U') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'rat9') == true ) ) then
return false
endif
return true
endfunction
function Trig_Crystalys_recipe_Func001C takes nothing returns boolean
if ( not Trig_Crystalys_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Crystalys_recipe_Actions takes nothing returns nothing
if ( Trig_Crystalys_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00U') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'rat9') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01B', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I024', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Crystalys_recipe takes nothing returns nothing
set gg_trg_Crystalys_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Crystalys_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Crystalys_recipe, Condition( function Trig_Crystalys_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Crystalys_recipe, function Trig_Crystalys_recipe_Actions )
endfunction
function Trig_Dagon_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03N' ) ) then
return false
endif
return true
endfunction
function Trig_Dagon_recipe_Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Z') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I016') == true ) ) then
return false
endif
return true
endfunction
function Trig_Dagon_recipe_Actions takes nothing returns nothing
if ( Trig_Dagon_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00Z') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I016') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01K', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I025', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Dagon_recipe takes nothing returns nothing
set gg_trg_Dagon_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dagon_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Dagon_recipe, Condition( function Trig_Dagon_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Dagon_recipe, function Trig_Dagon_recipe_Actions )
endfunction
function Trig_Skadi_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I046' ) ) then
return false
endif
return true
endfunction
function Trig_Skadi_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I02A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Skadi_recipe_Func001C takes nothing returns boolean
if ( not Trig_Skadi_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Skadi_recipe_Actions takes nothing returns nothing
if ( Trig_Skadi_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I006') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I02A') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I004', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I021', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Skadi_recipe takes nothing returns nothing
set gg_trg_Skadi_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Skadi_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Skadi_recipe, Condition( function Trig_Skadi_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Skadi_recipe, function Trig_Skadi_recipe_Actions )
endfunction
function Trig_Taras_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I02U' ) ) then
return false
endif
return true
endfunction
function Trig_Taras_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00S') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01A') == true ) ) then
return false
endif
return true
endfunction
function Trig_Taras_recipe_Func001C takes nothing returns boolean
if ( not Trig_Taras_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Taras_recipe_Actions takes nothing returns nothing
if ( Trig_Taras_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00S') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01A') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I000', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I01Z', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Taras_recipe takes nothing returns nothing
set gg_trg_Taras_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Taras_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Taras_recipe, Condition( function Trig_Taras_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Taras_recipe, function Trig_Taras_recipe_Actions )
endfunction
function Trig_Linken_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I048' ) ) then
return false
endif
return true
endfunction
function Trig_Linken_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00O') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
return true
endfunction
function Trig_Linken_recipe_Func001C takes nothing returns boolean
if ( not Trig_Linken_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Linken_recipe_Actions takes nothing returns nothing
if ( Trig_Linken_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00O') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I006') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I007', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I026', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Linken_recipe takes nothing returns nothing
set gg_trg_Linken_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Linken_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Linken_recipe, Condition( function Trig_Linken_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Linken_recipe, function Trig_Linken_recipe_Actions )
endfunction
function Trig_Madness_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I045' ) ) then
return false
endif
return true
endfunction
function Trig_Madness_recipe_Func001Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'modt') == true ) ) then
return false
endif
return true
endfunction
function Trig_Madness_recipe_Func001C takes nothing returns boolean
if ( not Trig_Madness_recipe_Func001Func006C() ) then
return false
endif
return true
endfunction
function Trig_Madness_recipe_Actions takes nothing returns nothing
if ( Trig_Madness_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'modt') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01O', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I029', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Madness_recipe takes nothing returns nothing
set gg_trg_Madness_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Madness_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Madness_recipe, Condition( function Trig_Madness_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Madness_recipe, function Trig_Madness_recipe_Actions )
endfunction
function Trig_Maxi_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03Q' ) ) then
return false
endif
return true
endfunction
function Trig_Maxi_recipe_Func001Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I000') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I015') == true ) ) then
return false
endif
return true
endfunction
function Trig_Maxi_recipe_Func001C takes nothing returns boolean
if ( not Trig_Maxi_recipe_Func001Func009C() ) then
return false
endif
return true
endfunction
function Trig_Maxi_recipe_Actions takes nothing returns nothing
if ( Trig_Maxi_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I000') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I015') )
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( 'I01U', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I02D', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Maxi_recipe takes nothing returns nothing
set gg_trg_Maxi_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Maxi_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Maxi_recipe, Condition( function Trig_Maxi_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Maxi_recipe, function Trig_Maxi_recipe_Actions )
endfunction
function Trig_Radi_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03H' ) ) then
return false
endif
return true
endfunction
function Trig_Radi_recipe_Func001Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00L') == true ) ) then
return false
endif
return true
endfunction
function Trig_Radi_recipe_Func001C takes nothing returns boolean
if ( not Trig_Radi_recipe_Func001Func006C() ) then
return false
endif
return true
endfunction
function Trig_Radi_recipe_Actions takes nothing returns nothing
if ( Trig_Radi_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00L') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00M', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I01Y', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Radi_recipe takes nothing returns nothing
set gg_trg_Radi_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Radi_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Radi_recipe, Condition( function Trig_Radi_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Radi_recipe, function Trig_Radi_recipe_Actions )
endfunction
function Trig_Sange_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I047' ) ) then
return false
endif
return true
endfunction
function Trig_Sange_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00X') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'bgst') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sange_recipe_Func001C takes nothing returns boolean
if ( not Trig_Sange_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Sange_recipe_Actions takes nothing returns nothing
if ( Trig_Sange_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00X') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'bgst') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01G', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I027', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Sange_recipe takes nothing returns nothing
set gg_trg_Sange_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sange_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Sange_recipe, Condition( function Trig_Sange_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Sange_recipe, function Trig_Sange_recipe_Actions )
endfunction
function Trig_Satanic_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I049' ) ) then
return false
endif
return true
endfunction
function Trig_Satanic_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00S') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Satanic_recipe_Func001C takes nothing returns boolean
if ( not Trig_Satanic_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Satanic_recipe_Actions takes nothing returns nothing
if ( Trig_Satanic_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00S') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01E') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I00B', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I020', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Satanic_recipe takes nothing returns nothing
set gg_trg_Satanic_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Satanic_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Satanic_recipe, Condition( function Trig_Satanic_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Satanic_recipe, function Trig_Satanic_recipe_Actions )
endfunction
function Trig_Silver_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03L' ) ) then
return false
endif
return true
endfunction
function Trig_Silver_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01Q') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01E') == true ) ) then
return false
endif
return true
endfunction
function Trig_Silver_recipe_Func001C takes nothing returns boolean
if ( not Trig_Silver_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Silver_recipe_Actions takes nothing returns nothing
if ( Trig_Silver_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01Q') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01E') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01T', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I02C', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Silver_recipe takes nothing returns nothing
set gg_trg_Silver_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Silver_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Silver_recipe, Condition( function Trig_Silver_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Silver_recipe, function Trig_Silver_recipe_Actions )
endfunction
function Trig_Buter_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03J' ) ) then
return false
endif
return true
endfunction
function Trig_Buter_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I010') == true ) ) then
return false
endif
return true
endfunction
function Trig_Buter_recipe_Func001C takes nothing returns boolean
if ( not Trig_Buter_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Buter_recipe_Actions takes nothing returns nothing
if ( Trig_Buter_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I010') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01J', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I022', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Buter_recipe takes nothing returns nothing
set gg_trg_Buter_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Buter_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Buter_recipe, Condition( function Trig_Buter_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Buter_recipe, function Trig_Buter_recipe_Actions )
endfunction
function Trig_Red_Buter_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03R' ) ) then
return false
endif
return true
endfunction
function Trig_Red_Buter_recipe_Func001Func009C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01J') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I017') == true ) ) then
return false
endif
return true
endfunction
function Trig_Red_Buter_recipe_Func001C takes nothing returns boolean
if ( not Trig_Red_Buter_recipe_Func001Func009C() ) then
return false
endif
return true
endfunction
function Trig_Red_Buter_recipe_Actions takes nothing returns nothing
if ( Trig_Red_Buter_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01J') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I017') )
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( 'I01V', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I02E', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Red_Buter_recipe takes nothing returns nothing
set gg_trg_Red_Buter_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Red_Buter_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Red_Buter_recipe, Condition( function Trig_Red_Buter_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Red_Buter_recipe, function Trig_Red_Buter_recipe_Actions )
endfunction
function Trig_Vladmir_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03T' ) ) then
return false
endif
return true
endfunction
function Trig_Vladmir_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'modt') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Vladmir_recipe_Func001C takes nothing returns boolean
if ( not Trig_Vladmir_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Vladmir_recipe_Actions takes nothing returns nothing
if ( Trig_Vladmir_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'modt') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01P') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01X', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I035', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Vladmir_recipe takes nothing returns nothing
set gg_trg_Vladmir_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Vladmir_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Vladmir_recipe, Condition( function Trig_Vladmir_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Vladmir_recipe, function Trig_Vladmir_recipe_Actions )
endfunction
function Trig_Yasha_recipe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03K' ) ) then
return false
endif
return true
endfunction
function Trig_Yasha_recipe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Y') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'belv') == true ) ) then
return false
endif
return true
endfunction
function Trig_Yasha_recipe_Func001C takes nothing returns boolean
if ( not Trig_Yasha_recipe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Yasha_recipe_Actions takes nothing returns nothing
if ( Trig_Yasha_recipe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00Y') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'belv') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01H', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I028', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Yasha_recipe takes nothing returns nothing
set gg_trg_Yasha_recipe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Yasha_recipe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Yasha_recipe, Condition( function Trig_Yasha_recipe_Conditions ) )
call TriggerAddAction( gg_trg_Yasha_recipe, function Trig_Yasha_recipe_Actions )
endfunction
function Trig_Horn_of_Mana_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I04F' ) ) then
return false
endif
return true
endfunction
function Trig_Horn_of_Mana_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I023') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00W') == true ) ) then
return false
endif
return true
endfunction
function Trig_Horn_of_Mana_Func001C takes nothing returns boolean
if ( not Trig_Horn_of_Mana_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Horn_of_Mana_Actions takes nothing returns nothing
if ( Trig_Horn_of_Mana_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I023') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00W') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I037', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I038', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Horn_of_Mana takes nothing returns nothing
set gg_trg_Horn_of_Mana = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Horn_of_Mana, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Horn_of_Mana, Condition( function Trig_Horn_of_Mana_Conditions ) )
call TriggerAddAction( gg_trg_Horn_of_Mana, function Trig_Horn_of_Mana_Actions )
endfunction
function Trig_Diffusal_Lance_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I04D' ) ) then
return false
endif
return true
endfunction
function Trig_Diffusal_Lance_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Y') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'ciri') == true ) ) then
return false
endif
return true
endfunction
function Trig_Diffusal_Lance_Func001C takes nothing returns boolean
if ( not Trig_Diffusal_Lance_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Diffusal_Lance_Actions takes nothing returns nothing
if ( Trig_Diffusal_Lance_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00Y') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'ciri') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I023', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I02H', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Diffusal_Lance takes nothing returns nothing
set gg_trg_Diffusal_Lance = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Diffusal_Lance, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Diffusal_Lance, Condition( function Trig_Diffusal_Lance_Conditions ) )
call TriggerAddAction( gg_trg_Diffusal_Lance, function Trig_Diffusal_Lance_Actions )
endfunction
function Trig_Orb_of_Fire_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I04G' ) ) then
return false
endif
return true
endfunction
function Trig_Orb_of_Fire_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00Z') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
return true
endfunction
function Trig_Orb_of_Fire_Func001C takes nothing returns boolean
if ( not Trig_Orb_of_Fire_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Orb_of_Fire_Actions takes nothing returns nothing
if ( Trig_Orb_of_Fire_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00Z') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I006') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02S', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I036', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Orb_of_Fire takes nothing returns nothing
set gg_trg_Orb_of_Fire = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Orb_of_Fire, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Orb_of_Fire, Condition( function Trig_Orb_of_Fire_Conditions ) )
call TriggerAddAction( gg_trg_Orb_of_Fire, function Trig_Orb_of_Fire_Actions )
endfunction
function Trig_Orb_of_Lighting_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I01M' ) ) then
return false
endif
return true
endfunction
function Trig_Orb_of_Lighting_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00V') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
return true
endfunction
function Trig_Orb_of_Lighting_Func001C takes nothing returns boolean
if ( not Trig_Orb_of_Lighting_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Orb_of_Lighting_Actions takes nothing returns nothing
if ( Trig_Orb_of_Lighting_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00V') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I006') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01N', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I02G', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Orb_of_Lighting takes nothing returns nothing
set gg_trg_Orb_of_Lighting = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Orb_of_Lighting, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Orb_of_Lighting, Condition( function Trig_Orb_of_Lighting_Conditions ) )
call TriggerAddAction( gg_trg_Orb_of_Lighting, function Trig_Orb_of_Lighting_Actions )
endfunction
function Trig_Totem_of_might_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03S' ) ) then
return false
endif
return true
endfunction
function Trig_Totem_of_might_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00L') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I016') == true ) ) then
return false
endif
return true
endfunction
function Trig_Totem_of_might_Func001C takes nothing returns boolean
if ( not Trig_Totem_of_might_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Totem_of_might_Actions takes nothing returns nothing
if ( Trig_Totem_of_might_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00L') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I016') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02Q', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I02V', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Totem_of_might takes nothing returns nothing
set gg_trg_Totem_of_might = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Totem_of_might, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Totem_of_might, Condition( function Trig_Totem_of_might_Conditions ) )
call TriggerAddAction( gg_trg_Totem_of_might, function Trig_Totem_of_might_Actions )
endfunction
function Trig_Wind_Runner_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I03U' ) ) then
return false
endif
return true
endfunction
function Trig_Wind_Runner_Func001Func006C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Wind_Runner_Func001C takes nothing returns boolean
if ( not Trig_Wind_Runner_Func001Func006C() ) then
return false
endif
return true
endfunction
function Trig_Wind_Runner_Actions takes nothing returns nothing
if ( Trig_Wind_Runner_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00T') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02J', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I02K', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Wind_Runner takes nothing returns nothing
set gg_trg_Wind_Runner = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wind_Runner, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Wind_Runner, Condition( function Trig_Wind_Runner_Conditions ) )
call TriggerAddAction( gg_trg_Wind_Runner, function Trig_Wind_Runner_Actions )
endfunction
function Trig_Sacrificial_w_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I04U' ) ) then
return false
endif
return true
endfunction
function Trig_Sacrificial_w_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I000') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I039') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sacrificial_w_Func001C takes nothing returns boolean
if ( not Trig_Sacrificial_w_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Sacrificial_w_Actions takes nothing returns nothing
if ( Trig_Sacrificial_w_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I000') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I039') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I04K', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I04W', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Sacrificial_w takes nothing returns nothing
set gg_trg_Sacrificial_w = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sacrificial_w, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Sacrificial_w, Condition( function Trig_Sacrificial_w_Conditions ) )
call TriggerAddAction( gg_trg_Sacrificial_w, function Trig_Sacrificial_w_Actions )
endfunction
function Trig_Mace_of_Zeus_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I043' ) ) then
return false
endif
return true
endfunction
function Trig_Mace_of_Zeus_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I01N') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00L') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mace_of_Zeus_Func001C takes nothing returns boolean
if ( not Trig_Mace_of_Zeus_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Mace_of_Zeus_Actions takes nothing returns nothing
if ( Trig_Mace_of_Zeus_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I01N') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00L') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02R', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I02T', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Mace_of_Zeus takes nothing returns nothing
set gg_trg_Mace_of_Zeus = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mace_of_Zeus, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Mace_of_Zeus, Condition( function Trig_Mace_of_Zeus_Conditions ) )
call TriggerAddAction( gg_trg_Mace_of_Zeus, function Trig_Mace_of_Zeus_Actions )
endfunction
function Trig_KillerAxe_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I044' ) ) then
return false
endif
return true
endfunction
function Trig_KillerAxe_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I03F') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I017') == true ) ) then
return false
endif
return true
endfunction
function Trig_KillerAxe_Func001C takes nothing returns boolean
if ( not Trig_KillerAxe_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_KillerAxe_Actions takes nothing returns nothing
if ( Trig_KillerAxe_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I03F') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I017') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I01F', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I03E', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_KillerAxe takes nothing returns nothing
set gg_trg_KillerAxe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_KillerAxe, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_KillerAxe, Condition( function Trig_KillerAxe_Conditions ) )
call TriggerAddAction( gg_trg_KillerAxe, function Trig_KillerAxe_Actions )
endfunction
function Trig_AncientStaff_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I04A' ) ) then
return false
endif
return true
endfunction
function Trig_AncientStaff_Func001Func010C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I039') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I006') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I019') == true ) ) then
return false
endif
return true
endfunction
function Trig_AncientStaff_Func001C takes nothing returns boolean
if ( not Trig_AncientStaff_Func001Func010C() ) then
return false
endif
return true
endfunction
function Trig_AncientStaff_Actions takes nothing returns nothing
if ( Trig_AncientStaff_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I039') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I006') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I019') )
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( 'I00G', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I00E', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_AncientStaff takes nothing returns nothing
set gg_trg_AncientStaff = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_AncientStaff, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_AncientStaff, Condition( function Trig_AncientStaff_Conditions ) )
call TriggerAddAction( gg_trg_AncientStaff, function Trig_AncientStaff_Actions )
endfunction
function Trig_AlleraSacred_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I04B' ) ) then
return false
endif
return true
endfunction
function Trig_AlleraSacred_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00T') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I016') == true ) ) then
return false
endif
return true
endfunction
function Trig_AlleraSacred_Func001C takes nothing returns boolean
if ( not Trig_AlleraSacred_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_AlleraSacred_Actions takes nothing returns nothing
if ( Trig_AlleraSacred_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00T') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I016') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I02P', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I034', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_AlleraSacred takes nothing returns nothing
set gg_trg_AlleraSacred = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_AlleraSacred, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_AlleraSacred, Condition( function Trig_AlleraSacred_Conditions ) )
call TriggerAddAction( gg_trg_AlleraSacred, function Trig_AlleraSacred_Actions )
endfunction
function Trig_Bladebane_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetBuyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetItemTypeId(GetSoldItem()) == 'I04T' ) ) then
return false
endif
return true
endfunction
function Trig_Bladebane_Func001Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I04M') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetBuyingUnit(), 'I00U') == true ) ) then
return false
endif
return true
endfunction
function Trig_Bladebane_Func001C takes nothing returns boolean
if ( not Trig_Bladebane_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_Bladebane_Actions takes nothing returns nothing
if ( Trig_Bladebane_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I04M') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetBuyingUnit(), 'I00U') )
call AddSpecialEffectTargetUnitBJ( "origin", GetBuyingUnit(), "Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitAddItemByIdSwapped( 'I04J', GetBuyingUnit() )
else
call UnitAddItemByIdSwapped( 'I052', GetBuyingUnit() )
endif
endfunction
//===========================================================================
function InitTrig_Bladebane takes nothing returns nothing
set gg_trg_Bladebane = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bladebane, EVENT_PLAYER_UNIT_SELL_ITEM )
call TriggerAddCondition( gg_trg_Bladebane, Condition( function Trig_Bladebane_Conditions ) )
call TriggerAddAction( gg_trg_Bladebane, function Trig_Bladebane_Actions )
endfunction
function Trig_Bidju_Stomb_cast_Func002C takes nothing returns boolean
if ( ( GetUnitTypeId(GetAttacker()) == 'u00R' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u017' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00Q' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00S' ) ) then
return true
endif
return false
endfunction
function Trig_Bidju_Stomb_cast_Conditions takes nothing returns boolean
if ( not Trig_Bidju_Stomb_cast_Func002C() ) then
return false
endif
return true
endfunction
function Trig_Bidju_Stomb_cast_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Bidju_Stomb_cast_Actions takes nothing returns nothing
if ( Trig_Bidju_Stomb_cast_Func001C() ) then
call IssueImmediateOrderBJ( GetAttacker(), "stomp" )
else
endif
endfunction
//===========================================================================
function InitTrig_Bidju_Stomb_cast takes nothing returns nothing
set gg_trg_Bidju_Stomb_cast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bidju_Stomb_cast, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bidju_Stomb_cast, Condition( function Trig_Bidju_Stomb_cast_Conditions ) )
call TriggerAddAction( gg_trg_Bidju_Stomb_cast, function Trig_Bidju_Stomb_cast_Actions )
endfunction
function Trig_Bidju_Bomb_cast_Func002C takes nothing returns boolean
if ( ( GetUnitTypeId(GetAttacker()) == 'u00R' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u017' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00Q' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttacker()) == 'u00S' ) ) then
return true
endif
return false
endfunction
function Trig_Bidju_Bomb_cast_Conditions takes nothing returns boolean
if ( not Trig_Bidju_Bomb_cast_Func002C() ) then
return false
endif
return true
endfunction
function Trig_Bidju_Bomb_cast_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 16) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Bidju_Bomb_cast_Actions takes nothing returns nothing
if ( Trig_Bidju_Bomb_cast_Func001C() ) then
call IssuePointOrderLocBJ( GetAttacker(), "carrionswarm", PolarProjectionBJ(GetUnitLoc(GetAttacker()), 256, GetUnitFacing(GetAttacker())) )
else
endif
endfunction
//===========================================================================
function InitTrig_Bidju_Bomb_cast takes nothing returns nothing
set gg_trg_Bidju_Bomb_cast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bidju_Bomb_cast, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Bidju_Bomb_cast, Condition( function Trig_Bidju_Bomb_cast_Conditions ) )
call TriggerAddAction( gg_trg_Bidju_Bomb_cast, function Trig_Bidju_Bomb_cast_Actions )
endfunction
function Trig_Gedo_death_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Ichibi_item )
call DisableTrigger( gg_trg_Ichibi_item_2 )
call DisableTrigger( gg_trg_Ichibi_item_3 )
call DisableTrigger( gg_trg_Ichibi_item_4 )
call DisableTrigger( gg_trg_Ichibi_item_5 )
call DisableTrigger( gg_trg_Ichibi_item_6 )
call DisableTrigger( gg_trg_Ichibi_item_7 )
call DisableTrigger( gg_trg_Ichibi_item_8 )
call DisableTrigger( gg_trg_Ichibi_item_9 )
call DisableTrigger( gg_trg_Ichibi_item_10 )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Gedo_death takes nothing returns nothing
set gg_trg_Gedo_death = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Gedo_death, gg_unit_h00M_0196, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Gedo_death, function Trig_Gedo_death_Actions )
endfunction
function Trig_Ichibi_item_Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'I609') == true ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetEnteringUnit()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_Conditions takes nothing returns boolean
if ( not Trig_Ichibi_item_Func020C() ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_Func016C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_h00M_0196) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gedo_mazo )
set udg_Tobi[1101] = GetEnteringUnit()
call CreateNUnitsAtLoc( 1, 'h00N', Player(bj_PLAYER_NEUTRAL_VICTIM), GetRectCenter(gg_rct_Gedo_2), bj_UNIT_FACING )
set udg_Tobi[1001] = GetLastCreatedUnit()
call IssueTargetOrderBJ( udg_Tobi[1001], "fingerofdeath", udg_Tobi[1101] )
call SetUnitPositionLocFacingLocBJ( udg_Tobi[1101], GetRectCenter(gg_rct_Gedo), GetUnitLoc(gg_unit_h00M_0196) )
call PauseUnitBJ( true, udg_Tobi[1101] )
call SetUnitInvulnerable( udg_Tobi[1101], true )
call SetUnitInvulnerable( gg_unit_h00M_0196, true )
call TriggerSleepAction( 60.00 )
call PauseUnitBJ( false, udg_Tobi[1101] )
call SetUnitInvulnerable( udg_Tobi[1101], false )
call SetUnitInvulnerable( gg_unit_h00M_0196, false )
call RemoveUnit( udg_Tobi[1001] )
call RemoveItem( GetItemOfTypeFromUnitBJ(udg_Tobi[1101], 'I609') )
call SetUnitUserData( gg_unit_h00M_0196, ( GetUnitUserData(gg_unit_h00M_0196) + 1 ) )
call EnableTrigger( gg_trg_Gedo_mazo )
if ( Trig_Ichibi_item_Func016C() ) then
call TriggerExecute( gg_trg_Ichibi_item_10 )
else
endif
set udg_Tobi[1101] = null
set udg_Tobi[1001] = null
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ichibi_item takes nothing returns nothing
set gg_trg_Ichibi_item = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ichibi_item, gg_rct_Gedo )
call TriggerAddCondition( gg_trg_Ichibi_item, Condition( function Trig_Ichibi_item_Conditions ) )
call TriggerAddAction( gg_trg_Ichibi_item, function Trig_Ichibi_item_Actions )
endfunction
function Trig_Ichibi_item_2_Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'I605') == true ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetEnteringUnit()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_2_Conditions takes nothing returns boolean
if ( not Trig_Ichibi_item_2_Func020C() ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_2_Func016C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_h00M_0196) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_2_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gedo_mazo )
set udg_Tobi[1102] = GetEnteringUnit()
call CreateNUnitsAtLoc( 1, 'h00N', Player(bj_PLAYER_NEUTRAL_VICTIM), GetRectCenter(gg_rct_Gedo_2), bj_UNIT_FACING )
set udg_Tobi[1002] = GetLastCreatedUnit()
call IssueTargetOrderBJ( GetLastCreatedUnit(), "fingerofdeath", udg_Tobi[1102] )
call SetUnitPositionLocFacingLocBJ( udg_Tobi[1102], GetRectCenter(gg_rct_Gedo), GetUnitLoc(gg_unit_h00M_0196) )
call PauseUnitBJ( true, udg_Tobi[1102] )
call SetUnitInvulnerable( udg_Tobi[1102], true )
call SetUnitInvulnerable( gg_unit_h00M_0196, true )
call TriggerSleepAction( 60.00 )
call SetUnitInvulnerable( udg_Tobi[1102], false )
call SetUnitInvulnerable( gg_unit_h00M_0196, false )
call PauseUnitBJ( false, udg_Tobi[1102] )
call RemoveUnit( udg_Tobi[1002] )
call RemoveItem( GetItemOfTypeFromUnitBJ(udg_Tobi[1102], 'I605') )
call SetUnitUserData( gg_unit_h00M_0196, ( GetUnitUserData(gg_unit_h00M_0196) + 1 ) )
call EnableTrigger( gg_trg_Gedo_mazo )
if ( Trig_Ichibi_item_2_Func016C() ) then
call TriggerExecute( gg_trg_Ichibi_item_10 )
else
endif
set udg_Tobi[1102] = null
set udg_Tobi[1002] = null
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ichibi_item_2 takes nothing returns nothing
set gg_trg_Ichibi_item_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ichibi_item_2, gg_rct_Gedo )
call TriggerAddCondition( gg_trg_Ichibi_item_2, Condition( function Trig_Ichibi_item_2_Conditions ) )
call TriggerAddAction( gg_trg_Ichibi_item_2, function Trig_Ichibi_item_2_Actions )
endfunction
function Trig_Ichibi_item_3_Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'I60C') == true ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetEnteringUnit()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_3_Conditions takes nothing returns boolean
if ( not Trig_Ichibi_item_3_Func020C() ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_3_Func016C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_h00M_0196) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_3_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gedo_mazo )
set udg_Tobi[1103] = GetEnteringUnit()
call CreateNUnitsAtLoc( 1, 'h00N', Player(bj_PLAYER_NEUTRAL_VICTIM), GetRectCenter(gg_rct_Gedo_2), bj_UNIT_FACING )
set udg_Tobi[1003] = GetLastCreatedUnit()
call IssueTargetOrderBJ( GetLastCreatedUnit(), "fingerofdeath", udg_Tobi[1103] )
call SetUnitPositionLocFacingLocBJ( udg_Tobi[1103], GetRectCenter(gg_rct_Gedo), GetUnitLoc(gg_unit_h00M_0196) )
call PauseUnitBJ( true, udg_Tobi[1103] )
call SetUnitInvulnerable( udg_Tobi[1103], true )
call SetUnitInvulnerable( gg_unit_h00M_0196, true )
call TriggerSleepAction( 60.00 )
call SetUnitInvulnerable( udg_Tobi[1103], false )
call SetUnitInvulnerable( gg_unit_h00M_0196, false )
call PauseUnitBJ( false, udg_Tobi[1103] )
call RemoveUnit( udg_Tobi[1003] )
call RemoveItem( GetItemOfTypeFromUnitBJ(udg_Tobi[1103], 'I60C') )
call SetUnitUserData( gg_unit_h00M_0196, ( GetUnitUserData(gg_unit_h00M_0196) + 1 ) )
call EnableTrigger( gg_trg_Gedo_mazo )
if ( Trig_Ichibi_item_3_Func016C() ) then
call TriggerExecute( gg_trg_Ichibi_item_10 )
else
endif
set udg_Tobi[1103] = null
set udg_Tobi[1003] = null
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ichibi_item_3 takes nothing returns nothing
set gg_trg_Ichibi_item_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ichibi_item_3, gg_rct_Gedo )
call TriggerAddCondition( gg_trg_Ichibi_item_3, Condition( function Trig_Ichibi_item_3_Conditions ) )
call TriggerAddAction( gg_trg_Ichibi_item_3, function Trig_Ichibi_item_3_Actions )
endfunction
function Trig_Ichibi_item_4_Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'I60D') == true ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetEnteringUnit()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_4_Conditions takes nothing returns boolean
if ( not Trig_Ichibi_item_4_Func020C() ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_4_Func016C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_h00M_0196) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_4_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gedo_mazo )
set udg_Tobi[1104] = GetEnteringUnit()
call CreateNUnitsAtLoc( 1, 'h00N', Player(bj_PLAYER_NEUTRAL_VICTIM), GetRectCenter(gg_rct_Gedo_2), bj_UNIT_FACING )
set udg_Tobi[1004] = GetLastCreatedUnit()
call IssueTargetOrderBJ( GetLastCreatedUnit(), "fingerofdeath", udg_Tobi[1104] )
call SetUnitPositionLocFacingLocBJ( udg_Tobi[1104], GetRectCenter(gg_rct_Gedo), GetUnitLoc(gg_unit_h00M_0196) )
call PauseUnitBJ( true, udg_Tobi[1104] )
call SetUnitInvulnerable( udg_Tobi[1104], true )
call SetUnitInvulnerable( gg_unit_h00M_0196, true )
call TriggerSleepAction( 60.00 )
call SetUnitInvulnerable( udg_Tobi[1104], false )
call SetUnitInvulnerable( gg_unit_h00M_0196, false )
call PauseUnitBJ( false, udg_Tobi[1104] )
call RemoveUnit( udg_Tobi[1004] )
call RemoveItem( GetItemOfTypeFromUnitBJ(udg_Tobi[1104], 'I60D') )
call SetUnitUserData( gg_unit_h00M_0196, ( GetUnitUserData(gg_unit_h00M_0196) + 1 ) )
call EnableTrigger( gg_trg_Gedo_mazo )
if ( Trig_Ichibi_item_4_Func016C() ) then
call TriggerExecute( gg_trg_Ichibi_item_10 )
else
endif
set udg_Tobi[1104] = null
set udg_Tobi[1004] = null
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ichibi_item_4 takes nothing returns nothing
set gg_trg_Ichibi_item_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ichibi_item_4, gg_rct_Gedo )
call TriggerAddCondition( gg_trg_Ichibi_item_4, Condition( function Trig_Ichibi_item_4_Conditions ) )
call TriggerAddAction( gg_trg_Ichibi_item_4, function Trig_Ichibi_item_4_Actions )
endfunction
function Trig_Ichibi_item_5_Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'I60A') == true ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetEnteringUnit()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_5_Conditions takes nothing returns boolean
if ( not Trig_Ichibi_item_5_Func020C() ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_5_Func016C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_h00M_0196) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_5_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gedo_mazo )
set udg_Tobi[1105] = GetEnteringUnit()
call CreateNUnitsAtLoc( 1, 'h00N', Player(bj_PLAYER_NEUTRAL_VICTIM), GetRectCenter(gg_rct_Gedo_2), bj_UNIT_FACING )
set udg_Tobi[1005] = GetLastCreatedUnit()
call IssueTargetOrderBJ( GetLastCreatedUnit(), "fingerofdeath", udg_Tobi[1105] )
call SetUnitPositionLocFacingLocBJ( udg_Tobi[1105], GetRectCenter(gg_rct_Gedo), GetUnitLoc(gg_unit_h00M_0196) )
call PauseUnitBJ( true, udg_Tobi[1105] )
call SetUnitInvulnerable( udg_Tobi[1105], true )
call SetUnitInvulnerable( gg_unit_h00M_0196, true )
call TriggerSleepAction( 60.00 )
call SetUnitInvulnerable( udg_Tobi[1105], false )
call SetUnitInvulnerable( gg_unit_h00M_0196, false )
call PauseUnitBJ( false, udg_Tobi[1105] )
call RemoveUnit( udg_Tobi[1005] )
call RemoveItem( GetItemOfTypeFromUnitBJ(udg_Tobi[1105], 'I60A') )
call SetUnitUserData( gg_unit_h00M_0196, ( GetUnitUserData(gg_unit_h00M_0196) + 1 ) )
call EnableTrigger( gg_trg_Gedo_mazo )
if ( Trig_Ichibi_item_5_Func016C() ) then
call TriggerExecute( gg_trg_Ichibi_item_10 )
else
endif
set udg_Tobi[1105] = null
set udg_Tobi[1005] = null
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ichibi_item_5 takes nothing returns nothing
set gg_trg_Ichibi_item_5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ichibi_item_5, gg_rct_Gedo )
call TriggerAddCondition( gg_trg_Ichibi_item_5, Condition( function Trig_Ichibi_item_5_Conditions ) )
call TriggerAddAction( gg_trg_Ichibi_item_5, function Trig_Ichibi_item_5_Actions )
endfunction
function Trig_Ichibi_item_6_Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'I60E') == true ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetEnteringUnit()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_6_Conditions takes nothing returns boolean
if ( not Trig_Ichibi_item_6_Func001C() ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_6_Func017C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_h00M_0196) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_6_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gedo_mazo )
set udg_Tobi[1106] = GetEnteringUnit()
call CreateNUnitsAtLoc( 1, 'h00N', Player(bj_PLAYER_NEUTRAL_VICTIM), GetRectCenter(gg_rct_Gedo_2), bj_UNIT_FACING )
set udg_Tobi[1006] = GetLastCreatedUnit()
call IssueTargetOrderBJ( GetLastCreatedUnit(), "fingerofdeath", udg_Tobi[1106] )
call SetUnitPositionLocFacingLocBJ( udg_Tobi[1106], GetRectCenter(gg_rct_Gedo), GetUnitLoc(gg_unit_h00M_0196) )
call PauseUnitBJ( true, udg_Tobi[1106] )
call SetUnitInvulnerable( udg_Tobi[1106], true )
call SetUnitInvulnerable( gg_unit_h00M_0196, true )
call TriggerSleepAction( 60.00 )
call SetUnitInvulnerable( udg_Tobi[1106], false )
call SetUnitInvulnerable( gg_unit_h00M_0196, false )
call PauseUnitBJ( false, udg_Tobi[1106] )
call RemoveUnit( udg_Tobi[1006] )
call RemoveItem( GetItemOfTypeFromUnitBJ(udg_Tobi[1106], 'I60E') )
call SetUnitUserData( gg_unit_h00M_0196, ( GetUnitUserData(gg_unit_h00M_0196) + 1 ) )
call EnableTrigger( gg_trg_Gedo_mazo )
if ( Trig_Ichibi_item_6_Func017C() ) then
call TriggerExecute( gg_trg_Ichibi_item_10 )
else
endif
set udg_Tobi[1106] = null
set udg_Tobi[1006] = null
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ichibi_item_6 takes nothing returns nothing
set gg_trg_Ichibi_item_6 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ichibi_item_6, gg_rct_Gedo )
call TriggerAddCondition( gg_trg_Ichibi_item_6, Condition( function Trig_Ichibi_item_6_Conditions ) )
call TriggerAddAction( gg_trg_Ichibi_item_6, function Trig_Ichibi_item_6_Actions )
endfunction
function Trig_Ichibi_item_7_Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'I60B') == true ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetEnteringUnit()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_7_Conditions takes nothing returns boolean
if ( not Trig_Ichibi_item_7_Func020C() ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_7_Func016C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_h00M_0196) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_7_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gedo_mazo )
set udg_Tobi[1107] = GetEnteringUnit()
call CreateNUnitsAtLoc( 1, 'h00N', Player(bj_PLAYER_NEUTRAL_VICTIM), GetRectCenter(gg_rct_Gedo_2), bj_UNIT_FACING )
set udg_Tobi[1007] = GetLastCreatedUnit()
call IssueTargetOrderBJ( GetLastCreatedUnit(), "fingerofdeath", udg_Tobi[1107] )
call SetUnitPositionLocFacingLocBJ( udg_Tobi[1107], GetRectCenter(gg_rct_Gedo), GetUnitLoc(gg_unit_h00M_0196) )
call PauseUnitBJ( true, udg_Tobi[1107] )
call SetUnitInvulnerable( udg_Tobi[1107], true )
call SetUnitInvulnerable( gg_unit_h00M_0196, true )
call TriggerSleepAction( 60.00 )
call SetUnitInvulnerable( udg_Tobi[1107], false )
call SetUnitInvulnerable( gg_unit_h00M_0196, false )
call PauseUnitBJ( false, udg_Tobi[1107] )
call RemoveUnit( udg_Tobi[1007] )
call RemoveItem( GetItemOfTypeFromUnitBJ(udg_Tobi[1107], 'I60B') )
call SetUnitUserData( gg_unit_h00M_0196, ( GetUnitUserData(gg_unit_h00M_0196) + 1 ) )
call EnableTrigger( gg_trg_Gedo_mazo )
if ( Trig_Ichibi_item_7_Func016C() ) then
call TriggerExecute( gg_trg_Ichibi_item_10 )
else
endif
set udg_Tobi[1107] = null
set udg_Tobi[1007] = null
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ichibi_item_7 takes nothing returns nothing
set gg_trg_Ichibi_item_7 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ichibi_item_7, gg_rct_Gedo )
call TriggerAddCondition( gg_trg_Ichibi_item_7, Condition( function Trig_Ichibi_item_7_Conditions ) )
call TriggerAddAction( gg_trg_Ichibi_item_7, function Trig_Ichibi_item_7_Actions )
endfunction
function Trig_Ichibi_item_8_Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'I604') == true ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetEnteringUnit()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_8_Conditions takes nothing returns boolean
if ( not Trig_Ichibi_item_8_Func020C() ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_8_Func016C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_h00M_0196) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_8_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gedo_mazo )
set udg_Tobi[1108] = GetEnteringUnit()
call CreateNUnitsAtLoc( 1, 'h00N', Player(bj_PLAYER_NEUTRAL_VICTIM), GetRectCenter(gg_rct_Gedo_2), bj_UNIT_FACING )
set udg_Tobi[1008] = GetLastCreatedUnit()
call IssueTargetOrderBJ( GetLastCreatedUnit(), "fingerofdeath", udg_Tobi[1108] )
call SetUnitPositionLocFacingLocBJ( udg_Tobi[1108], GetRectCenter(gg_rct_Gedo), GetUnitLoc(gg_unit_h00M_0196) )
call PauseUnitBJ( true, udg_Tobi[1108] )
call SetUnitInvulnerable( udg_Tobi[1108], true )
call SetUnitInvulnerable( gg_unit_h00M_0196, true )
call TriggerSleepAction( 60.00 )
call SetUnitInvulnerable( udg_Tobi[1108], false )
call SetUnitInvulnerable( gg_unit_h00M_0196, false )
call PauseUnitBJ( false, udg_Tobi[1108] )
call RemoveUnit( udg_Tobi[1008] )
call RemoveItem( GetItemOfTypeFromUnitBJ(udg_Tobi[1108], 'I604') )
call SetUnitUserData( gg_unit_h00M_0196, ( GetUnitUserData(gg_unit_h00M_0196) + 1 ) )
call EnableTrigger( gg_trg_Gedo_mazo )
if ( Trig_Ichibi_item_8_Func016C() ) then
call TriggerExecute( gg_trg_Ichibi_item_10 )
else
endif
set udg_Tobi[1108] = null
set udg_Tobi[1008] = null
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ichibi_item_8 takes nothing returns nothing
set gg_trg_Ichibi_item_8 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ichibi_item_8, gg_rct_Gedo )
call TriggerAddCondition( gg_trg_Ichibi_item_8, Condition( function Trig_Ichibi_item_8_Conditions ) )
call TriggerAddAction( gg_trg_Ichibi_item_8, function Trig_Ichibi_item_8_Actions )
endfunction
function Trig_Ichibi_item_9_Func020C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'I606') == true ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetEnteringUnit()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_9_Conditions takes nothing returns boolean
if ( not Trig_Ichibi_item_9_Func020C() ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_9_Func016C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_h00M_0196) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Ichibi_item_9_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gedo_mazo )
set udg_Tobi[1109] = GetEnteringUnit()
call CreateNUnitsAtLoc( 1, 'h00N', Player(bj_PLAYER_NEUTRAL_VICTIM), GetRectCenter(gg_rct_Gedo_2), bj_UNIT_FACING )
set udg_Tobi[1009] = GetLastCreatedUnit()
call IssueTargetOrderBJ( GetLastCreatedUnit(), "fingerofdeath", udg_Tobi[1109] )
call SetUnitPositionLocFacingLocBJ( udg_Tobi[1109], GetRectCenter(gg_rct_Gedo), GetUnitLoc(gg_unit_h00M_0196) )
call PauseUnitBJ( true, udg_Tobi[1109] )
call SetUnitInvulnerable( udg_Tobi[1109], true )
call SetUnitInvulnerable( gg_unit_h00M_0196, true )
call TriggerSleepAction( 60.00 )
call SetUnitInvulnerable( udg_Tobi[1109], false )
call SetUnitInvulnerable( gg_unit_h00M_0196, false )
call PauseUnitBJ( false, udg_Tobi[1109] )
call RemoveUnit( udg_Tobi[1009] )
call RemoveItem( GetItemOfTypeFromUnitBJ(udg_Tobi[1109], 'I606') )
call SetUnitUserData( gg_unit_h00M_0196, ( GetUnitUserData(gg_unit_h00M_0196) + 1 ) )
call EnableTrigger( gg_trg_Gedo_mazo )
if ( Trig_Ichibi_item_9_Func016C() ) then
call TriggerExecute( gg_trg_Ichibi_item_10 )
else
endif
set udg_Tobi[1109] = null
set udg_Tobi[1009] = null
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ichibi_item_9 takes nothing returns nothing
set gg_trg_Ichibi_item_9 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Ichibi_item_9, gg_rct_Gedo )
call TriggerAddCondition( gg_trg_Ichibi_item_9, Condition( function Trig_Ichibi_item_9_Conditions ) )
call TriggerAddAction( gg_trg_Ichibi_item_9, function Trig_Ichibi_item_9_Actions )
endfunction
function Trig_Ichibi_item_10_Func006A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Ichibi_item_10_Actions takes nothing returns nothing
call DestroyTrigger( gg_trg_Gedo_mazo )
call DestroyTrigger( gg_trg_Ichibi_bidju )
call SetUnitUserData( gg_unit_u004_0152, 1 )
call CreateNUnitsAtLoc( 1, 'u01A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(gg_unit_h00M_0196), 180.00 )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_h00M_0196), "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveUnit( gg_unit_h00M_0196 )
call ForGroupBJ( GetUnitsOfTypeIdAll('u00U'), function Trig_Ichibi_item_10_Func006A )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ichibi_item_10 takes nothing returns nothing
set gg_trg_Ichibi_item_10 = CreateTrigger( )
call TriggerAddAction( gg_trg_Ichibi_item_10, function Trig_Ichibi_item_10_Actions )
endfunction
function Trig_Madarevive_Func008C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'Hpb1' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'Hhkl' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'Hamg' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'H01F' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'H008' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'H01U' ) ) then
return true
endif
return false
endfunction
function Trig_Madarevive_Conditions takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_u004_0152) == 1 ) ) then
return false
endif
if ( not Trig_Madarevive_Func008C() ) then
return false
endif
return true
endfunction
function Trig_Madarevive_Actions takes nothing returns nothing
call SetPlayerAbilityAvailableBJ( false, 'AOre', GetOwningPlayer(GetEnteringUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'Afla', GetOwningPlayer(GetEnteringUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A07F', GetOwningPlayer(GetEnteringUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A04V', GetOwningPlayer(GetEnteringUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A08M', GetOwningPlayer(GetEnteringUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A07O', GetOwningPlayer(GetEnteringUnit()) )
call SetUnitOwner( udg_Hero2[87], GetOwningPlayer(GetEnteringUnit()), true )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Madara_respawn), "Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[5], udg_Hero2[87], "TRIGSTR_878", null, "TRIGSTR_879", bj_TIMETYPE_ADD, 4.00, false )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[8], udg_Hero2[87], "TRIGSTR_880", null, "TRIGSTR_881", bj_TIMETYPE_ADD, 4.00, false )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[9], udg_Hero2[87], "TRIGSTR_882", null, "TRIGSTR_883", bj_TIMETYPE_ADD, 4.00, false )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[10], udg_Hero2[87], "TRIGSTR_884", null, "TRIGSTR_885", bj_TIMETYPE_ADD, 4.00, false )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[11], udg_Hero2[87], "TRIGSTR_886", null, "TRIGSTR_887", bj_TIMETYPE_ADD, 4.00, false )
call TriggerSleepAction( 6.00 )
call DisplayTextToForce( bj_FORCE_PLAYER[5], "TRIGSTR_888" )
call DisplayTextToForce( bj_FORCE_PLAYER[8], "TRIGSTR_889" )
call DisplayTextToForce( bj_FORCE_PLAYER[9], "TRIGSTR_890" )
call DisplayTextToForce( bj_FORCE_PLAYER[10], "TRIGSTR_891" )
call DisplayTextToForce( bj_FORCE_PLAYER[11], "TRIGSTR_892" )
call DestroyTrigger( gg_trg_Madarevive_oroch )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Madarevive takes nothing returns nothing
set gg_trg_Madarevive = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Madarevive, gg_rct_Madara_revive )
call TriggerAddCondition( gg_trg_Madarevive, Condition( function Trig_Madarevive_Conditions ) )
call TriggerAddAction( gg_trg_Madarevive, function Trig_Madarevive_Actions )
endfunction
function Trig_Madarevive_oroch_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'Hant' ) ) then
return false
endif
return true
endfunction
function Trig_Madarevive_oroch_Actions takes nothing returns nothing
call SetPlayerAbilityAvailableBJ( false, 'AOre', GetOwningPlayer(GetEnteringUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'Afla', GetOwningPlayer(GetEnteringUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A07F', GetOwningPlayer(GetEnteringUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A04V', GetOwningPlayer(GetEnteringUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A08M', GetOwningPlayer(GetEnteringUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A07O', GetOwningPlayer(GetEnteringUnit()) )
call SetUnitOwner( udg_Hero2[87], GetOwningPlayer(GetEnteringUnit()), true )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Madara_respawn), "Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[3], GetEnteringUnit(), "TRIGSTR_1554", null, "TRIGSTR_1555", bj_TIMETYPE_ADD, 6.00, false )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[6], GetEnteringUnit(), "TRIGSTR_1572", null, "TRIGSTR_1573", bj_TIMETYPE_ADD, 6.00, false )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[5], GetEnteringUnit(), "TRIGSTR_1570", null, "TRIGSTR_1571", bj_TIMETYPE_ADD, 6.00, false )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[8], GetEnteringUnit(), "TRIGSTR_1563", null, "TRIGSTR_1564", bj_TIMETYPE_ADD, 6.00, false )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[9], GetEnteringUnit(), "TRIGSTR_1565", null, "TRIGSTR_1566", bj_TIMETYPE_ADD, 6.00, false )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[10], GetEnteringUnit(), "TRIGSTR_1567", null, "TRIGSTR_1569", bj_TIMETYPE_ADD, 6.00, false )
call TransmissionFromUnitWithNameBJ( bj_FORCE_PLAYER[11], GetEnteringUnit(), "TRIGSTR_1561", null, "TRIGSTR_1562", bj_TIMETYPE_ADD, 6.00, false )
call DestroyTrigger( gg_trg_Madarevive )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Madarevive_oroch takes nothing returns nothing
set gg_trg_Madarevive_oroch = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Madarevive_oroch, gg_rct_Madara_revive )
call TriggerAddCondition( gg_trg_Madarevive_oroch, Condition( function Trig_Madarevive_oroch_Conditions ) )
call TriggerAddAction( gg_trg_Madarevive_oroch, function Trig_Madarevive_oroch_Actions )
endfunction
function Trig_Afternoon_Actions takes nothing returns nothing
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 38.00, 38.00, 100 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 48.00, 48.00, 100 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 58.00, 58.00, 100 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 68.00, 68.00, 100.00 )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Afternoon_2 )
endfunction
//===========================================================================
function InitTrig_Afternoon takes nothing returns nothing
set gg_trg_Afternoon = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Afternoon, 360.00 )
call TriggerAddAction( gg_trg_Afternoon, function Trig_Afternoon_Actions )
endfunction
function Trig_Afternoon_2_Func009Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 40) == 12 ) ) then
return false
endif
return true
endfunction
function Trig_Afternoon_2_Func009C takes nothing returns boolean
if ( not ( GetRandomInt(1, 25) == 15 ) ) then
return false
endif
return true
endfunction
function Trig_Afternoon_2_Actions takes nothing returns nothing
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 38.00, 38.00, 100 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 48.00, 48.00, 100 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 58.00, 58.00, 100 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 68.00, 68.00, 100.00 )
if ( Trig_Afternoon_2_Func009C() ) then
call AddWeatherEffectSaveLast( gg_rct_World, 'LRaa' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[0] = GetLastCreatedWeatherEffect()
call TriggerSleepAction( 199.00 )
call RemoveWeatherEffectBJ( udg_Sky[0] )
else
if ( Trig_Afternoon_2_Func009Func001C() ) then
call AddWeatherEffectSaveLast( gg_rct_World, 'RLlr' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[0] = GetLastCreatedWeatherEffect()
call TriggerSleepAction( 199.00 )
call RemoveWeatherEffectBJ( udg_Sky[0] )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Afternoon_2 takes nothing returns nothing
set gg_trg_Afternoon_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Afternoon_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Afternoon_2, 640.00 )
call TriggerAddAction( gg_trg_Afternoon_2, function Trig_Afternoon_2_Actions )
endfunction
function Trig_Evening_Actions takes nothing returns nothing
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 68.00, 68.00, 100.00 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 85.00, 59.00, 50.00 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 90.00, 55.00, 20.00 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 90.00, 48.00, 15.00 )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Evening_2 )
endfunction
//===========================================================================
function InitTrig_Evening takes nothing returns nothing
set gg_trg_Evening = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Evening, 620.00 )
call TriggerAddAction( gg_trg_Evening, function Trig_Evening_Actions )
endfunction
function Trig_Evening_2_Func003Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 40) == 12 ) ) then
return false
endif
return true
endfunction
function Trig_Evening_2_Func003C takes nothing returns boolean
if ( not ( GetRandomInt(1, 30) == 15 ) ) then
return false
endif
return true
endfunction
function Trig_Evening_2_Actions takes nothing returns nothing
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 90.00, 48.00, 15.00 )
if ( Trig_Evening_2_Func003C() ) then
call AddWeatherEffectSaveLast( gg_rct_World, 'LRaa' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[0] = GetLastCreatedWeatherEffect()
call TriggerSleepAction( 199.00 )
call RemoveWeatherEffectBJ( udg_Sky[0] )
else
if ( Trig_Evening_2_Func003Func001C() ) then
call AddWeatherEffectSaveLast( gg_rct_World, 'RLhr' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[0] = GetLastCreatedWeatherEffect()
call TriggerSleepAction( 199.00 )
call RemoveWeatherEffectBJ( udg_Sky[0] )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Evening_2 takes nothing returns nothing
set gg_trg_Evening_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Evening_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Evening_2, 1440.00 )
call TriggerAddAction( gg_trg_Evening_2, function Trig_Evening_2_Actions )
endfunction
function Trig_Night_Actions takes nothing returns nothing
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 90.00, 48.00, 15.00 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 60.00, 38.00, 17.00 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 30.00, 20.00, 20.00 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 6.00, 6.00, 20.00 )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Night_2 )
endfunction
//===========================================================================
function InitTrig_Night takes nothing returns nothing
set gg_trg_Night = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Night, 880.00 )
call TriggerAddAction( gg_trg_Night, function Trig_Night_Actions )
endfunction
function Trig_Night_2_Func003Func001Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 30) == 12 ) ) then
return false
endif
return true
endfunction
function Trig_Night_2_Func003Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 60) == 14 ) ) then
return false
endif
return true
endfunction
function Trig_Night_2_Func003C takes nothing returns boolean
if ( not ( GetRandomInt(1, 40) == 15 ) ) then
return false
endif
return true
endfunction
function Trig_Night_2_Actions takes nothing returns nothing
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 6.00, 6.00, 20.00 )
if ( Trig_Night_2_Func003C() ) then
call AddWeatherEffectSaveLast( gg_rct_World, 'LRma' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[0] = GetLastCreatedWeatherEffect()
call TriggerSleepAction( 199.00 )
call RemoveWeatherEffectBJ( udg_Sky[0] )
else
if ( Trig_Night_2_Func003Func001C() ) then
call AddWeatherEffectSaveLast( gg_rct_World, 'SNls' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[0] = GetLastCreatedWeatherEffect()
call AddWeatherEffectSaveLast( gg_rct_World, 'FDwl' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[1] = GetLastCreatedWeatherEffect()
call TriggerSleepAction( 199.00 )
call RemoveWeatherEffectBJ( udg_Sky[0] )
call RemoveWeatherEffectBJ( udg_Sky[1] )
else
if ( Trig_Night_2_Func003Func001Func001C() ) then
call AddWeatherEffectSaveLast( gg_rct_World, 'RLhr' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[0] = GetLastCreatedWeatherEffect()
call AddWeatherEffectSaveLast( gg_rct_World, 'WOlw' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[1] = GetLastCreatedWeatherEffect()
call TriggerSleepAction( 199.00 )
call RemoveWeatherEffectBJ( udg_Sky[0] )
call RemoveWeatherEffectBJ( udg_Sky[1] )
else
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Night_2 takes nothing returns nothing
set gg_trg_Night_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Night_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Night_2, 1440.00 )
call TriggerAddAction( gg_trg_Night_2, function Trig_Night_2_Actions )
endfunction
function Trig_forenoon_Actions takes nothing returns nothing
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 6.00, 6.00, 20.00 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 14.00, 14.00, 40.00 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 20.00, 20.00, 70.00 )
call TriggerSleepAction( 0.01 )
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 28.00, 28.00, 100 )
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_forenoon_2 )
endfunction
//===========================================================================
function InitTrig_forenoon takes nothing returns nothing
set gg_trg_forenoon = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_forenoon, 1440.00 )
call TriggerAddAction( gg_trg_forenoon, function Trig_forenoon_Actions )
endfunction
function Trig_forenoon_2_Func002Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 30) == 12 ) ) then
return false
endif
return true
endfunction
function Trig_forenoon_2_Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 45) == 15 ) ) then
return false
endif
return true
endfunction
function Trig_forenoon_2_Actions takes nothing returns nothing
call SetTerrainFogExBJ( 0, 1250.00, 5000.00, 0.50, 28.00, 28.00, 100 )
if ( Trig_forenoon_2_Func002C() ) then
call AddWeatherEffectSaveLast( gg_rct_World, 'FDbh' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[0] = GetLastCreatedWeatherEffect()
call TriggerSleepAction( 199.00 )
call RemoveWeatherEffectBJ( udg_Sky[0] )
else
if ( Trig_forenoon_2_Func002Func001C() ) then
call AddWeatherEffectSaveLast( gg_rct_World, 'RLlr' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Sky[0] = GetLastCreatedWeatherEffect()
call TriggerSleepAction( 199.00 )
call RemoveWeatherEffectBJ( udg_Sky[0] )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_forenoon_2 takes nothing returns nothing
set gg_trg_forenoon_2 = CreateTrigger( )
call DisableTrigger( gg_trg_forenoon_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_forenoon_2, 1440.00 )
call TriggerAddAction( gg_trg_forenoon_2, function Trig_forenoon_2_Actions )
endfunction
function Trig_Byakugan_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03E' ) ) then
return false
endif
return true
endfunction
function Trig_Byakugan_1_Func008C takes nothing returns boolean
if ( not ( IsTriggerEnabled(gg_trg_Baykugan_2) == true ) ) then
return false
endif
return true
endfunction
function Trig_Byakugan_1_Actions takes nothing returns nothing
set udg_Beast[621] = GetSpellAbilityUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Beast[621]), GetUnitLoc(udg_Beast[621]), bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A03F', GetLastCreatedUnit() )
set udg_Beast[622] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_Baykugan_2 )
call TriggerSleepAction( 8.00 )
if ( Trig_Byakugan_1_Func008C() ) then
call DisableTrigger( gg_trg_Baykugan_2 )
call RemoveUnit( udg_Beast[622] )
set udg_Beast[621] = null
set udg_Beast[622] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Byakugan_1 takes nothing returns nothing
set gg_trg_Byakugan_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Byakugan_1, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Byakugan_1, Condition( function Trig_Byakugan_1_Conditions ) )
call TriggerAddAction( gg_trg_Byakugan_1, function Trig_Byakugan_1_Actions )
endfunction
function Trig_Baykugan_2_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Beast[622], "farsight", GetUnitLoc(udg_Beast[621]) )
endfunction
//===========================================================================
function InitTrig_Baykugan_2 takes nothing returns nothing
set gg_trg_Baykugan_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Baykugan_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Baykugan_2, 1.00 )
call TriggerAddAction( gg_trg_Baykugan_2, function Trig_Baykugan_2_Actions )
endfunction
function Trig_Kaiten_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07Y' ) ) then
return false
endif
return true
endfunction
function Trig_Kaiten_Func005002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Kaiten_Func005002003002 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Hmgd_0319)) == true )
endfunction
function Trig_Kaiten_Func005002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Kaiten_Func005002003001(), Trig_Kaiten_Func005002003002() )
endfunction
function Trig_Kaiten_Func008Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07Y', gg_unit_Hmgd_0319) == 1 )
endfunction
function Trig_Kaiten_Func008Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07Y', gg_unit_Hmgd_0319) == 2 )
endfunction
function Trig_Kaiten_Func008Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07Y', gg_unit_Hmgd_0319) == 3 )
endfunction
function Trig_Kaiten_Func008Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07Y', gg_unit_Hmgd_0319) == 4 )
endfunction
function Trig_Kaiten_Func008A takes nothing returns nothing
if ( Trig_Kaiten_Func008Func001001() ) then
call UnitDamageTargetBJ( gg_unit_Hmgd_0319, GetEnumUnit(), 140.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Kaiten_Func008Func002001() ) then
call UnitDamageTargetBJ( gg_unit_Hmgd_0319, GetEnumUnit(), 200.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Kaiten_Func008Func003001() ) then
call UnitDamageTargetBJ( gg_unit_Hmgd_0319, GetEnumUnit(), 260.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Kaiten_Func008Func004001() ) then
call UnitDamageTargetBJ( gg_unit_Hmgd_0319, GetEnumUnit(), 320.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
endfunction
function Trig_Kaiten_Actions takes nothing returns nothing
set udg_Ypoint[1] = GetUnitLoc(GetSpellAbilityUnit())
call SetUnitTimeScalePercent( gg_unit_Hmgd_0319, 800.00 )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_Hmgd_0319), "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
set udg_aGroups[0] = GetUnitsInRangeOfLocMatching(400.00, udg_Ypoint[1], Condition(function Trig_Kaiten_Func005002003))
call AddSpecialEffectLocBJ( udg_Ypoint[1], "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call ForGroupBJ( udg_aGroups[0], function Trig_Kaiten_Func008A )
call DestroyGroup (udg_aGroups[0])
set udg_aGroups[0] = null
call EnableTrigger( gg_trg_Kaiten_2 )
call TriggerSleepAction( 0.25 )
call DisableTrigger( gg_trg_Kaiten_2 )
call RemoveLocation(udg_Ypoint[1])
set udg_Ypoint[1] = null
call SetUnitTimeScalePercent( gg_unit_Hmgd_0319, 100.00 )
endfunction
//===========================================================================
function InitTrig_Kaiten takes nothing returns nothing
set gg_trg_Kaiten = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kaiten, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Kaiten, Condition( function Trig_Kaiten_Conditions ) )
call TriggerAddAction( gg_trg_Kaiten, function Trig_Kaiten_Actions )
endfunction
function Trig_Kaiten_2_Func001002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Kaiten_2_Func001002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Hmgd_0319)) == true )
endfunction
function Trig_Kaiten_2_Func001002003002002001001 takes nothing returns boolean
return ( GetEnumUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Kaiten_2_Func001002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Kaiten_2_Func001002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Kaiten_2_Func001002003002002001001(), Trig_Kaiten_2_Func001002003002002001002() )
endfunction
function Trig_Kaiten_2_Func001002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Kaiten_2_Func001002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Kaiten_2_Func001002003002002001(), Trig_Kaiten_2_Func001002003002002002() )
endfunction
function Trig_Kaiten_2_Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Kaiten_2_Func001002003002001(), Trig_Kaiten_2_Func001002003002002() )
endfunction
function Trig_Kaiten_2_Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Kaiten_2_Func001002003001(), Trig_Kaiten_2_Func001002003002() )
endfunction
function Trig_Kaiten_2_Func002A takes nothing returns nothing
call IssueImmediateOrderBJ( GetEnumUnit(), "stop" )
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), -18.00, AngleBetweenPoints(GetUnitLoc(GetEnumUnit()), udg_Ypoint[1])) )
endfunction
function Trig_Kaiten_2_Actions takes nothing returns nothing
set udg_aGroups[1] = GetUnitsInRangeOfLocMatching(400.00, udg_Ypoint[1], Condition(function Trig_Kaiten_2_Func001002003))
call ForGroupBJ( udg_aGroups[1], function Trig_Kaiten_2_Func002A )
call DestroyGroup (udg_aGroups[1])
set udg_aGroups[1] = null
endfunction
//===========================================================================
function InitTrig_Kaiten_2 takes nothing returns nothing
set gg_trg_Kaiten_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Kaiten_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Kaiten_2, 0.02 )
call TriggerAddAction( gg_trg_Kaiten_2, function Trig_Kaiten_2_Actions )
endfunction
function Trig_Juken_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00L' ) ) then
return false
endif
return true
endfunction
function Trig_Juken_Func001Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00L', udg_Mo[22]) == 1 )
endfunction
function Trig_Juken_Func001Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00L', udg_Mo[22]) == 2 )
endfunction
function Trig_Juken_Func001Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00L', udg_Mo[22]) == 3 )
endfunction
function Trig_Juken_Func001Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00L', udg_Mo[22]) == 4 )
endfunction
function Trig_Juken_Func001C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Juken_Actions takes nothing returns nothing
if ( Trig_Juken_Func001C() ) then
else
set udg_Mo[22] = GetSpellAbilityUnit()
call SetUnitPositionLoc( GetSpellTargetUnit(), PolarProjectionBJ(GetUnitLoc(udg_Mo[22]), 500.00, AngleBetweenPoints(GetUnitLoc(udg_Mo[22]), GetUnitLoc(GetSpellTargetUnit()))) )
call AddSpecialEffectLocBJ( GetUnitLoc(GetSpellTargetUnit()), "war3mapImported\\explosion.mdx" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
if ( Trig_Juken_Func001Func006001() ) then
call UnitDamageTargetBJ( udg_Mo[22], GetSpellTargetUnit(), 150.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Juken_Func001Func007001() ) then
call UnitDamageTargetBJ( udg_Mo[22], GetSpellTargetUnit(), 220.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Juken_Func001Func008001() ) then
call UnitDamageTargetBJ( udg_Mo[22], GetSpellTargetUnit(), 310.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Juken_Func001Func009001() ) then
call UnitDamageTargetBJ( udg_Mo[22], GetSpellTargetUnit(), 390.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
set udg_Mo[22] = null
endif
endfunction
//===========================================================================
function InitTrig_Juken takes nothing returns nothing
set gg_trg_Juken = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Juken, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Juken, Condition( function Trig_Juken_Conditions ) )
call TriggerAddAction( gg_trg_Juken, function Trig_Juken_Actions )
endfunction
function Trig_Wave_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AUcs' ) ) then
return false
endif
return true
endfunction
function Trig_Wave_Actions takes nothing returns nothing
set udg_Mo[23] = GetSpellAbilityUnit()
set udg_Pointhero[0] = GetUnitLoc(udg_Mo[23])
set udg_Point[621] = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Mo[23]), GetUnitLoc(udg_Mo[23]), AngleBetweenPoints(GetUnitLoc(udg_Mo[23]), GetSpellTargetLoc()) )
call SetUnitAnimation( GetLastCreatedUnit(), "death" )
set udg_Target[621] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_Wave_move )
endfunction
//===========================================================================
function InitTrig_Wave takes nothing returns nothing
set gg_trg_Wave = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wave, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Wave, Condition( function Trig_Wave_Conditions ) )
call TriggerAddAction( gg_trg_Wave, function Trig_Wave_Actions )
endfunction
function Trig_Wave_move_Func008Func001Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Wave_move_Func008Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Wave_move_Func008C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Wave_move_Func013A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Wave_move_Func014C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(udg_Pointhero[0], GetUnitLoc(udg_Target[621])) >= 1000.00 ) ) then
return false
endif
return true
endfunction
function Trig_Wave_move_Actions takes nothing returns nothing
call SetUnitPathing( udg_Target[621], false )
set udg_Ypoint[2] = GetUnitLoc(udg_Target[621])
call SetUnitPositionLoc( udg_Target[621], PolarProjectionBJ(udg_Ypoint[2], 84.00, GetUnitFacing(udg_Target[621])) )
call CreateNUnitsAtLoc( 1, 'h00Y', GetOwningPlayer(gg_unit_Hmgd_0319), udg_Ypoint[2], GetUnitFacing(udg_Target[621]) )
call UnitApplyTimedLifeBJ( 0.90, 'BTLF', GetLastCreatedUnit() )
call RemoveLocation(udg_Ypoint[2])
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Target[621]), "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Target[621]), "Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call EnumDestructablesInCircleBJ( 200.00, GetUnitLoc(udg_Target[621]), function Trig_Wave_move_Func013A )
if ( Trig_Wave_move_Func014C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call RemoveUnit( udg_Target[621] )
set udg_Mo[23] = null
set udg_Target[621] = null
call RemoveLocation(udg_Pointhero[0])
set udg_Pointhero[0] = null
call RemoveLocation(udg_Point[621])
set udg_Point[621] = null
call RemoveLocation(udg_Ypoint[2])
set udg_Ypoint[2] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Wave_move takes nothing returns nothing
set gg_trg_Wave_move = CreateTrigger( )
call DisableTrigger( gg_trg_Wave_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Wave_move, 0.05 )
call TriggerAddAction( gg_trg_Wave_move, function Trig_Wave_move_Actions )
endfunction
function Trig_Hakke_sixfour_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01A' ) ) then
return false
endif
return true
endfunction
function Trig_Hakke_sixfour_Actions takes nothing returns nothing
set udg_Mo[24] = GetSpellAbilityUnit()
set udg_Mo[25] = GetSpellTargetUnit()
call SetUnitAnimation( udg_Mo[24], "stand ready" )
call CreateNUnitsAtLoc( 1, 'u00O', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(udg_Mo[24]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Hakke_sixfour takes nothing returns nothing
set gg_trg_Hakke_sixfour = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hakke_sixfour, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Hakke_sixfour, Condition( function Trig_Hakke_sixfour_Conditions ) )
call TriggerAddAction( gg_trg_Hakke_sixfour, function Trig_Hakke_sixfour_Actions )
endfunction
function Trig_Hakke_sixfour_start_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01A' ) ) then
return false
endif
return true
endfunction
function Trig_Hakke_sixfour_start_Func003Func014001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01A', udg_Mo[24]) == 1 )
endfunction
function Trig_Hakke_sixfour_start_Func003Func015001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01A', udg_Mo[24]) == 2 )
endfunction
function Trig_Hakke_sixfour_start_Func003Func016001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01A', udg_Mo[24]) == 3 )
endfunction
function Trig_Hakke_sixfour_start_Func003C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Mo[25], 'B00N') == false ) ) then
return false
endif
if ( not ( IsUnitPausedBJ(udg_Mo[25]) == false ) ) then
return false
endif
return true
endfunction
function Trig_Hakke_sixfour_start_Actions takes nothing returns nothing
call TriggerSleepAction( 0.04 )
call SetUnitPositionLoc( udg_Mo[24], PolarProjectionBJ(GetUnitLoc(udg_Mo[25]), -100.00, GetUnitFacing(udg_Mo[24])) )
if ( Trig_Hakke_sixfour_start_Func003C() ) then
call SetUnitTimeScalePercent( udg_Mo[24], 300.00 )
call SetUnitInvulnerable( udg_Mo[24], true )
call SetUnitInvulnerable( udg_Mo[25], true )
call PauseUnitBJ( true, udg_Mo[24] )
call PauseUnitBJ( true, udg_Mo[25] )
call EnableTrigger( gg_trg_Hakke_sixfour_start_Damage )
call TriggerSleepAction( 4.00 )
call DisableTrigger( gg_trg_Hakke_sixfour_start_Damage )
call SetUnitTimeScalePercent( udg_Mo[24], 100.00 )
call SetUnitInvulnerable( udg_Mo[24], false )
call SetUnitInvulnerable( udg_Mo[25], false )
if ( Trig_Hakke_sixfour_start_Func003Func014001() ) then
call UnitDamageTargetBJ( udg_Mo[24], udg_Mo[25], 900.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Hakke_sixfour_start_Func003Func015001() ) then
call UnitDamageTargetBJ( udg_Mo[24], udg_Mo[25], 1200.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Hakke_sixfour_start_Func003Func016001() ) then
call UnitDamageTargetBJ( udg_Mo[24], udg_Mo[25], 1400.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
call PauseUnitBJ( false, udg_Mo[24] )
call PauseUnitBJ( false, udg_Mo[25] )
set udg_Mo[24] = null
set udg_Mo[25] = null
call RemoveLocation(udg_Ypoint[3])
set udg_Ypoint[3] = null
call RemoveLocation(udg_Ypoint[4])
set udg_Ypoint[4] = null
else
set udg_Mo[24] = null
set udg_Mo[25] = null
endif
endfunction
//===========================================================================
function InitTrig_Hakke_sixfour_start takes nothing returns nothing
set gg_trg_Hakke_sixfour_start = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hakke_sixfour_start, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Hakke_sixfour_start, Condition( function Trig_Hakke_sixfour_start_Conditions ) )
call TriggerAddAction( gg_trg_Hakke_sixfour_start, function Trig_Hakke_sixfour_start_Actions )
endfunction
function Trig_Hakke_sixfour_start_Damage_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Mo[24]) == true ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Mo[25]) == true ) ) then
return false
endif
return true
endfunction
function Trig_Hakke_sixfour_start_Damage_Actions takes nothing returns nothing
set udg_Ypoint[3] = PolarProjectionBJ(GetUnitLoc(udg_Mo[25]), -100.00, GetUnitFacing(udg_Mo[24]))
set udg_Ypoint[4] = PolarProjectionBJ(GetUnitLoc(udg_Mo[25]), 1.00, GetUnitFacing(udg_Mo[24]))
call SetUnitAnimation( udg_Mo[24], "attack" )
call SetUnitPositionLoc( udg_Mo[24], udg_Ypoint[3] )
call SetUnitFacingToFaceUnitTimed( udg_Mo[24], udg_Mo[25], 0 )
call SetUnitPositionLoc( udg_Mo[25], udg_Ypoint[4] )
call AddSpecialEffectLocBJ( udg_Ypoint[4], "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call IssueImmediateOrderBJ( udg_Mo[25], "stop" )
call RemoveLocation(udg_Ypoint[3])
call RemoveLocation(udg_Ypoint[4])
endfunction
//===========================================================================
function InitTrig_Hakke_sixfour_start_Damage takes nothing returns nothing
set gg_trg_Hakke_sixfour_start_Damage = CreateTrigger( )
call DisableTrigger( gg_trg_Hakke_sixfour_start_Damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Hakke_sixfour_start_Damage, 0.10 )
call TriggerAddCondition( gg_trg_Hakke_sixfour_start_Damage, Condition( function Trig_Hakke_sixfour_start_Damage_Conditions ) )
call TriggerAddAction( gg_trg_Hakke_sixfour_start_Damage, function Trig_Hakke_sixfour_start_Damage_Actions )
endfunction
function Trig_Hakke_Ult_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03L' ) ) then
return false
endif
return true
endfunction
function Trig_Hakke_Ult_Actions takes nothing returns nothing
set udg_Ypoint[5] = GetUnitLoc(GetSpellAbilityUnit())
call SetUnitTimeScalePercent( gg_unit_Hmgd_0319, 400.00 )
call CreateNUnitsAtLoc( 1, 'u00O', GetOwningPlayer(gg_unit_Hmgd_0319), GetUnitLoc(gg_unit_Hmgd_0319), bj_UNIT_FACING )
set udg_Mo[160] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_Hakke_Ult_2 )
endfunction
//===========================================================================
function InitTrig_Hakke_Ult takes nothing returns nothing
set gg_trg_Hakke_Ult = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hakke_Ult, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Hakke_Ult, Condition( function Trig_Hakke_Ult_Conditions ) )
call TriggerAddAction( gg_trg_Hakke_Ult, function Trig_Hakke_Ult_Actions )
endfunction
function Trig_Hakke_Ult_2_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(gg_unit_Hmgd_0319) == true ) ) then
return false
endif
return true
endfunction
function Trig_Hakke_Ult_2_Func003002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Hakke_Ult_2_Func003002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Hmgd_0319)) == true )
endfunction
function Trig_Hakke_Ult_2_Func003002003002002001001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Hakke_Ult_2_Func003002003002002001002 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Hakke_Ult_2_Func003002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Hakke_Ult_2_Func003002003002002001001(), Trig_Hakke_Ult_2_Func003002003002002001002() )
endfunction
function Trig_Hakke_Ult_2_Func003002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Hakke_Ult_2_Func003002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Hakke_Ult_2_Func003002003002002001(), Trig_Hakke_Ult_2_Func003002003002002002() )
endfunction
function Trig_Hakke_Ult_2_Func003002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Hakke_Ult_2_Func003002003002001(), Trig_Hakke_Ult_2_Func003002003002002() )
endfunction
function Trig_Hakke_Ult_2_Func003002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Hakke_Ult_2_Func003002003001(), Trig_Hakke_Ult_2_Func003002003002() )
endfunction
function Trig_Hakke_Ult_2_Func004A takes nothing returns nothing
call IssueImmediateOrderBJ( GetEnumUnit(), "stop" )
call UnitDamageTargetBJ( gg_unit_Hmgd_0319, GetEnumUnit(), 140.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), 10.00, AngleBetweenPoints(GetUnitLoc(GetEnumUnit()), udg_Ypoint[5])) )
call AddSpecialEffectTargetUnitBJ( "chest", GetEnumUnit(), "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
function Trig_Hakke_Ult_2_Actions takes nothing returns nothing
call SetUnitFacingTimed( gg_unit_Hmgd_0319, GetRandomDirectionDeg(), 0 )
set udg_aGroups[2] = GetUnitsInRangeOfLocMatching(490.00, udg_Ypoint[5], Condition(function Trig_Hakke_Ult_2_Func003002003))
call ForGroupBJ( udg_aGroups[2], function Trig_Hakke_Ult_2_Func004A )
call DestroyGroup (udg_aGroups[2])
set udg_aGroups[2] = null
endfunction
//===========================================================================
function InitTrig_Hakke_Ult_2 takes nothing returns nothing
set gg_trg_Hakke_Ult_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Hakke_Ult_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Hakke_Ult_2, 0.09 )
call TriggerAddCondition( gg_trg_Hakke_Ult_2, Condition( function Trig_Hakke_Ult_2_Conditions ) )
call TriggerAddAction( gg_trg_Hakke_Ult_2, function Trig_Hakke_Ult_2_Actions )
endfunction
function Trig_Hakke_Ult_end_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03L' ) ) then
return false
endif
return true
endfunction
function Trig_Hakke_Ult_end_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Hakke_Ult_2 )
call SetUnitTimeScalePercent( gg_unit_Hmgd_0319, 100.00 )
call RemoveUnit( udg_Mo[160] )
set udg_Mo[160] = null
call RemoveLocation(udg_Ypoint[5])
set udg_Ypoint[5] = null
endfunction
//===========================================================================
function InitTrig_Hakke_Ult_end takes nothing returns nothing
set gg_trg_Hakke_Ult_end = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hakke_Ult_end, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerAddCondition( gg_trg_Hakke_Ult_end, Condition( function Trig_Hakke_Ult_end_Conditions ) )
call TriggerAddAction( gg_trg_Hakke_Ult_end, function Trig_Hakke_Ult_end_Actions )
endfunction
function Trig_sage_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A003' ) ) then
return false
endif
return true
endfunction
function Trig_sage_Func001001 takes nothing returns boolean
return ( udg_Bankai[185] == false )
endfunction
function Trig_sage_Func002C takes nothing returns boolean
if ( not ( udg_Bankai[185] == true ) ) then
return false
endif
return true
endfunction
function Trig_sage_Actions takes nothing returns nothing
if ( Trig_sage_Func001001() ) then
set udg_Bankai[185] = true
else
set udg_Bankai[185] = false
endif
if ( Trig_sage_Func002C() ) then
call TriggerSleepAction( 3.00 )
call DestroyEffectBJ( udg_specialeffect[191] )
call SetUnitAnimation( udg_Grimmjow[5], "stand" )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_NEGATIVE, udg_Grimmjow[5] )
call PauseUnitBJ( false, udg_Grimmjow[5] )
else
set udg_Grimmjow[5] = null
endif
endfunction
//===========================================================================
function InitTrig_sage takes nothing returns nothing
set gg_trg_sage = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_sage, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_sage, Condition( function Trig_sage_Conditions ) )
call TriggerAddAction( gg_trg_sage, function Trig_sage_Actions )
endfunction
function Trig_sage_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A003' ) ) then
return false
endif
return true
endfunction
function Trig_sage_2_Actions takes nothing returns nothing
set udg_Grimmjow[5] = GetSpellAbilityUnit()
call PauseUnitBJ( true, udg_Grimmjow[5] )
call SetUnitAnimation( udg_Grimmjow[5], "spell" )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Grimmjow[5], "war3mapImported\\BlueChakra.mdx" )
set udg_specialeffect[191] = GetLastCreatedEffectBJ()
endfunction
//===========================================================================
function InitTrig_sage_2 takes nothing returns nothing
set gg_trg_sage_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_sage_2, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_sage_2, Condition( function Trig_sage_2_Conditions ) )
call TriggerAddAction( gg_trg_sage_2, function Trig_sage_2_Actions )
endfunction
function Trig_Rasengan_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A002' ) ) then
return false
endif
return true
endfunction
function Trig_Rasengan_1_Func001C takes nothing returns boolean
if ( not ( udg_Bankai[185] == true ) ) then
return false
endif
return true
endfunction
function Trig_Rasengan_1_Actions takes nothing returns nothing
if ( Trig_Rasengan_1_Func001C() ) then
set udg_Naruto[3] = GetSpellAbilityUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(gg_unit_Hpal_0018), GetUnitLoc(gg_unit_Hpal_0018), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.40, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A03A', GetLastCreatedUnit() )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "bloodlust", gg_unit_Hpal_0018 )
call UnitRemoveBuffBJ( 'B00L', udg_Naruto[3] )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Naruto[3]), "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
else
set udg_Naruto[1] = GetSpellAbilityUnit()
call AddSpecialEffectLocBJ( PolarProjectionBJ(GetUnitLoc(udg_Naruto[1]), -90.00, ( GetUnitFacing(udg_Naruto[1]) + 50.00 )), "shadowclone.mdx" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h00E', GetOwningPlayer(gg_unit_Hpal_0018), PolarProjectionBJ(GetUnitLoc(udg_Naruto[1]), -90.00, ( GetUnitFacing(udg_Naruto[1]) + 70.00 )), GetUnitLoc(GetTriggerUnit()) )
call UnitApplyTimedLifeBJ( 1.10, 'BTLF', GetLastCreatedUnit() )
call SetUnitAnimation( GetLastCreatedUnit(), "spell three" )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Naruto[1]), "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endif
endfunction
//===========================================================================
function InitTrig_Rasengan_1 takes nothing returns nothing
set gg_trg_Rasengan_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rasengan_1, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Rasengan_1, Condition( function Trig_Rasengan_1_Conditions ) )
call TriggerAddAction( gg_trg_Rasengan_1, function Trig_Rasengan_1_Actions )
endfunction
function Trig_Rasengan_2_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
return true
endfunction
function Trig_Rasengan_2_Func001Func001Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A002', udg_Naruto[1]) == 1 )
endfunction
function Trig_Rasengan_2_Func001Func001Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A002', udg_Naruto[1]) == 2 )
endfunction
function Trig_Rasengan_2_Func001Func001Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A002', udg_Naruto[1]) == 3 )
endfunction
function Trig_Rasengan_2_Func001Func001Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A002', udg_Naruto[1]) == 4 )
endfunction
function Trig_Rasengan_2_Func001Func001C takes nothing returns boolean
if ( not ( GetAttacker() == udg_Naruto[1] ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(udg_Naruto[1], 'B00L') == true ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B00N') == false ) ) then
return false
endif
return true
endfunction
function Trig_Rasengan_2_Func001Func002Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A037', udg_Naruto[3]) == 1 )
endfunction
function Trig_Rasengan_2_Func001Func002Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A037', udg_Naruto[3]) == 2 )
endfunction
function Trig_Rasengan_2_Func001Func002Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A037', udg_Naruto[3]) == 3 )
endfunction
function Trig_Rasengan_2_Func001Func002Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A037', udg_Naruto[3]) == 4 )
endfunction
function Trig_Rasengan_2_Func001Func002C takes nothing returns boolean
if ( not ( GetAttacker() == udg_Naruto[3] ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(udg_Naruto[3], 'B001') == true ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B00N') == false ) ) then
return false
endif
return true
endfunction
function Trig_Rasengan_2_Func001C takes nothing returns boolean
if ( not ( udg_Bankai[185] == true ) ) then
return false
endif
return true
endfunction
function Trig_Rasengan_2_Actions takes nothing returns nothing
if ( Trig_Rasengan_2_Func001C() ) then
if ( Trig_Rasengan_2_Func001Func002C() ) then
set udg_Target[14] = GetAttackedUnitBJ()
if ( Trig_Rasengan_2_Func001Func002Func005001() ) then
call UnitDamageTargetBJ( udg_Naruto[3], udg_Target[14], 240.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Rasengan_2_Func001Func002Func006001() ) then
call UnitDamageTargetBJ( udg_Naruto[3], udg_Target[14], 320.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Rasengan_2_Func001Func002Func007001() ) then
call UnitDamageTargetBJ( udg_Naruto[3], udg_Target[14], 390.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Rasengan_2_Func001Func002Func008001() ) then
call UnitDamageTargetBJ( udg_Naruto[3], udg_Target[14], 450.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
call UnitRemoveBuffBJ( 'B001', udg_Naruto[3] )
call UnitRemoveBuffBJ( 'B00L', udg_Naruto[3] )
call CreateNUnitsAtLoc( 1, 'h01X', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetAttackedUnitBJ()), AngleBetweenPoints(GetUnitLoc(GetAttacker()), GetUnitLoc(GetAttackedUnitBJ())) )
call UnitApplyTimedLifeBJ( 1.60, 'BTLF', GetLastCreatedUnit() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 60.00 )
call EnableTrigger( gg_trg_Rasenrengan_move )
call PolledWait( 0.04 )
call DisableTrigger( gg_trg_Rasenrengan_move )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Target[14]), "war3mapImported\\NewDirtEXNofire.mdx" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call IssueTargetOrderBJ( gg_unit_u004_0538, "thunderbolt", udg_Target[14] )
call RemoveLocation(udg_Ypoint[7])
set udg_Ypoint[7] = null
set udg_Naruto[3] = null
set udg_Target[14] = null
else
endif
else
if ( Trig_Rasengan_2_Func001Func001C() ) then
set udg_Target[1] = GetAttackedUnitBJ()
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Target[1]), "Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
if ( Trig_Rasengan_2_Func001Func001Func007001() ) then
call UnitDamageTargetBJ( udg_Naruto[1], udg_Target[1], 140.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Rasengan_2_Func001Func001Func008001() ) then
call UnitDamageTargetBJ( udg_Naruto[1], udg_Target[1], 220.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Rasengan_2_Func001Func001Func009001() ) then
call UnitDamageTargetBJ( udg_Naruto[1], udg_Target[1], 300.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Rasengan_2_Func001Func001Func010001() ) then
call UnitDamageTargetBJ( udg_Naruto[1], udg_Target[1], 390.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
call UnitRemoveBuffBJ( 'B00L', udg_Naruto[1] )
call CreateNUnitsAtLoc( 1, 'h01X', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetAttackedUnitBJ()), AngleBetweenPoints(GetUnitLoc(GetAttacker()), GetUnitLoc(GetAttackedUnitBJ())) )
call UnitApplyTimedLifeBJ( 1.60, 'BTLF', GetLastCreatedUnit() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 60.00 )
call EnableTrigger( gg_trg_Rasengan_move )
call PolledWait( 0.09 )
call DisableTrigger( gg_trg_Rasengan_move )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Target[1]), "war3mapImported\\EarthSmash.mdx" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Ypoint[6])
set udg_Ypoint[6] = null
set udg_Naruto[1] = null
set udg_Target[1] = null
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Rasengan_2 takes nothing returns nothing
set gg_trg_Rasengan_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rasengan_2, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Rasengan_2, Condition( function Trig_Rasengan_2_Conditions ) )
call TriggerAddAction( gg_trg_Rasengan_2, function Trig_Rasengan_2_Actions )
endfunction
function Trig_Rasengan_move_Func004A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Rasengan_move_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( udg_Target[1], "stop" )
set udg_Ypoint[6] = PolarProjectionBJ(GetUnitLoc(udg_Target[1]), 115.00, AngleBetweenPoints(GetUnitLoc(udg_Naruto[1]), GetUnitLoc(udg_Target[1])))
call SetUnitPositionLoc( udg_Target[1], udg_Ypoint[6] )
call IssueImmediateOrderBJ( udg_Target[1], "stop" )
call EnumDestructablesInCircleBJ( 160.00, udg_Ypoint[6], function Trig_Rasengan_move_Func004A )
call CreateNUnitsAtLoc( 1, 'h00Y', GetOwningPlayer(gg_unit_Hpal_0018), udg_Ypoint[6], AngleBetweenPoints(GetUnitLoc(gg_unit_Hpal_0018), GetUnitLoc(udg_Target[1])) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 35.00, 51.00, 100.00, 0 )
call UnitApplyTimedLifeBJ( 0.90, 'Bapl', GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( udg_Ypoint[6], "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Ypoint[6])
endfunction
//===========================================================================
function InitTrig_Rasengan_move takes nothing returns nothing
set gg_trg_Rasengan_move = CreateTrigger( )
call DisableTrigger( gg_trg_Rasengan_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Rasengan_move, 0.07 )
call TriggerAddAction( gg_trg_Rasengan_move, function Trig_Rasengan_move_Actions )
endfunction
function Trig_Rasenrengan_move_Func004A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Rasenrengan_move_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( udg_Target[14], "stop" )
set udg_Ypoint[7] = PolarProjectionBJ(GetUnitLoc(udg_Target[14]), 115.00, AngleBetweenPoints(GetUnitLoc(udg_Naruto[3]), GetUnitLoc(udg_Target[14])))
call SetUnitPositionLoc( udg_Target[14], udg_Ypoint[7] )
call EnumDestructablesInCircleBJ( 160.00, udg_Ypoint[7], function Trig_Rasenrengan_move_Func004A )
call CreateNUnitsAtLoc( 1, 'h00Y', GetOwningPlayer(gg_unit_Hpal_0018), udg_Ypoint[7], AngleBetweenPoints(GetUnitLoc(gg_unit_Hpal_0018), GetUnitLoc(udg_Target[14])) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 35.00, 51.00, 100.00, 0 )
call UnitApplyTimedLifeBJ( 0.90, 'Bapl', GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( udg_Ypoint[7], "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[7], "Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Ypoint[7])
endfunction
//===========================================================================
function InitTrig_Rasenrengan_move takes nothing returns nothing
set gg_trg_Rasenrengan_move = CreateTrigger( )
call DisableTrigger( gg_trg_Rasenrengan_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Rasenrengan_move, 0.04 )
call TriggerAddAction( gg_trg_Rasenrengan_move, function Trig_Rasenrengan_move_Actions )
endfunction
function Trig_Rasenshuriken_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00B' ) ) then
return false
endif
return true
endfunction
function Trig_Rasenshuriken_Actions takes nothing returns nothing
set udg_Naruto[2] = GetSpellAbilityUnit()
set udg_Point[3] = GetSpellTargetLoc()
set udg_Zpoint[90] = GetUnitLoc(GetTriggerUnit())
call PauseUnitBJ( true, udg_Naruto[2] )
call SetUnitAnimationWithRarity( udg_Naruto[2], "spell two", RARITY_FREQUENT )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h000', GetOwningPlayer(GetTriggerUnit()), PolarProjectionBJ(GetUnitLoc(udg_Naruto[2]), -90.00, ( GetUnitFacing(udg_Naruto[2]) + 50.00 )), GetUnitLoc(GetTriggerUnit()) )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 190.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "spell three" )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h000', GetOwningPlayer(GetTriggerUnit()), PolarProjectionBJ(GetUnitLoc(udg_Naruto[2]), -90.00, ( GetUnitFacing(udg_Naruto[2]) + 90.00 )), GetUnitLoc(GetTriggerUnit()) )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 190.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "spell three" )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call AddSpecialEffectTargetUnitBJ( "right hand", udg_Naruto[2], "Rasenshuriken.mdx" )
set udg_SEffect[2] = GetLastCreatedEffectBJ()
call SetUnitTimeScalePercent( udg_Naruto[2], 190.00 )
call AddSpecialEffectLocBJ( udg_Zpoint[90], "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.30 )
call SetUnitAnimationWithRarity( udg_Naruto[2], "stand four", RARITY_FREQUENT )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Zpoint[90], "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call DestroyEffectBJ( udg_SEffect[2] )
call SetUnitAnimation( udg_Naruto[2], "spell throw" )
call TriggerSleepAction( 0.30 )
call CreateNUnitsAtLoc( 1, 'u000', GetOwningPlayer(udg_Naruto[2]), GetUnitLoc(udg_Naruto[2]), bj_UNIT_FACING )
set udg_Target[7] = GetLastCreatedUnit()
call SetUnitTimeScalePercent( udg_Target[7], 240.00 )
call SetUnitTimeScalePercent( udg_Naruto[2], 100.00 )
call SetUnitAnimation( udg_Naruto[2], "stand" )
call PauseUnitBJ( false, udg_Naruto[2] )
call SetUnitPathing( udg_Target[7], false )
call RemoveLocation(udg_Zpoint[90])
set udg_Zpoint[90] = null
call EnableTrigger( gg_trg_Rasenshuriken_move )
endfunction
//===========================================================================
function InitTrig_Rasenshuriken takes nothing returns nothing
set gg_trg_Rasenshuriken = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rasenshuriken, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Rasenshuriken, Condition( function Trig_Rasenshuriken_Conditions ) )
call TriggerAddAction( gg_trg_Rasenshuriken, function Trig_Rasenshuriken_Actions )
endfunction
function Trig_Rasenshuriken_move_Func003002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Rasenshuriken_move_Func003002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Naruto[2])) == true )
endfunction
function Trig_Rasenshuriken_move_Func003002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Rasenshuriken_move_Func003002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Rasenshuriken_move_Func003002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Rasenshuriken_move_Func003002003002002001001(), Trig_Rasenshuriken_move_Func003002003002002001002() )
endfunction
function Trig_Rasenshuriken_move_Func003002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Rasenshuriken_move_Func003002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Rasenshuriken_move_Func003002003002002001(), Trig_Rasenshuriken_move_Func003002003002002002() )
endfunction
function Trig_Rasenshuriken_move_Func003002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Rasenshuriken_move_Func003002003002001(), Trig_Rasenshuriken_move_Func003002003002002() )
endfunction
function Trig_Rasenshuriken_move_Func003002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Rasenshuriken_move_Func003002003001(), Trig_Rasenshuriken_move_Func003002003002() )
endfunction
function Trig_Rasenshuriken_move_Func004A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), 10.00, AngleBetweenPoints(GetUnitLoc(GetEnumUnit()), udg_Ypoint[8])) )
endfunction
function Trig_Rasenshuriken_move_Func012Func008A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Rasenshuriken_move_Func012C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Target[7]), udg_Point[3]) <= 50.00 ) ) then
return false
endif
return true
endfunction
function Trig_Rasenshuriken_move_Actions takes nothing returns nothing
set udg_Ypoint[8] = PolarProjectionBJ(GetUnitLoc(udg_Target[7]), 20.00, AngleBetweenPoints(GetUnitLoc(udg_Target[7]), udg_Point[3]))
call SetUnitPositionLoc( udg_Target[7], udg_Ypoint[8] )
set udg_aGroups[3] = GetUnitsInRangeOfLocMatching(370.00, udg_Ypoint[8], Condition(function Trig_Rasenshuriken_move_Func003002003))
call ForGroupBJ( udg_aGroups[3], function Trig_Rasenshuriken_move_Func004A )
call CreateNUnitsAtLoc( 1, 'u01E', GetOwningPlayer(udg_Naruto[2]), udg_Ypoint[8], bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 300.00 )
call SetUnitScalePercent( GetLastCreatedUnit(), 95.00, 95.00, 95.00 )
call KillUnit( GetLastCreatedUnit() )
call DestroyGroup (udg_aGroups[3])
set udg_aGroups[3] = null
call RemoveLocation(udg_Ypoint[8])
if ( Trig_Rasenshuriken_move_Func012C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call RemoveLocation(udg_Ypoint[8])
set udg_Ypoint[8] = null
call RemoveLocation(udg_Point[3])
set udg_Point[3] = null
set udg_Point[3] = GetUnitLoc(udg_Target[7])
call RemoveUnit( udg_Target[7] )
call EnumDestructablesInCircleBJ( 600.00, udg_Point[3], function Trig_Rasenshuriken_move_Func012Func008A )
call EnableTrigger( gg_trg_Rasenshuriken_damage )
call TriggerSleepAction( 3.00 )
call DisableTrigger( gg_trg_Rasenshuriken_damage )
call CreateNUnitsAtLoc( 1, 'u001', GetOwningPlayer(udg_Naruto[2]), udg_Point[3], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
set udg_Naruto[2] = null
set udg_Target[7] = null
call RemoveLocation(udg_Point[3])
set udg_Point[3] = null
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Rasenshuriken_move takes nothing returns nothing
set gg_trg_Rasenshuriken_move = CreateTrigger( )
call DisableTrigger( gg_trg_Rasenshuriken_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Rasenshuriken_move, 0.02 )
call TriggerAddAction( gg_trg_Rasenshuriken_move, function Trig_Rasenshuriken_move_Actions )
endfunction
function Trig_Rasenshuriken_damage_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u01E', GetOwningPlayer(udg_Naruto[2]), udg_Point[3], bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 200.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 80.00, 90.00, 100, 0.00 )
call KillUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u003', GetOwningPlayer(udg_Naruto[2]), udg_Point[3], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.56, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u002', GetOwningPlayer(udg_Naruto[2]), udg_Point[3], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.56, 'Bapl', GetLastCreatedUnit() )
call UnitDamagePointLoc( udg_Naruto[2], 0, 500, udg_Point[3], 600.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
//===========================================================================
function InitTrig_Rasenshuriken_damage takes nothing returns nothing
set gg_trg_Rasenshuriken_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Rasenshuriken_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Rasenshuriken_damage, 0.05 )
call TriggerAddAction( gg_trg_Rasenshuriken_damage, function Trig_Rasenshuriken_damage_Actions )
endfunction
function Trig_Clone_dead_Func001C takes nothing returns boolean
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h00E' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'h000' ) ) then
return true
endif
return false
endfunction
function Trig_Clone_dead_Conditions takes nothing returns boolean
if ( not Trig_Clone_dead_Func001C() ) then
return false
endif
return true
endfunction
function Trig_Clone_dead_Actions takes nothing returns nothing
call RemoveUnit( GetTriggerUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "shadowclone.mdx" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Clone_dead takes nothing returns nothing
set gg_trg_Clone_dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Clone_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Clone_dead, Condition( function Trig_Clone_dead_Conditions ) )
call TriggerAddAction( gg_trg_Clone_dead, function Trig_Clone_dead_Actions )
endfunction
function Trig_Odama_rasengan_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A030' ) ) then
return false
endif
return true
endfunction
function Trig_Odama_rasengan_Func016002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Odama_rasengan_Func016002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Naruto[5])) == true )
endfunction
function Trig_Odama_rasengan_Func016002003002002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Odama_rasengan_Func016002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Odama_rasengan_Func016002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Odama_rasengan_Func016002003002002001(), Trig_Odama_rasengan_Func016002003002002002() )
endfunction
function Trig_Odama_rasengan_Func016002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Odama_rasengan_Func016002003002001(), Trig_Odama_rasengan_Func016002003002002() )
endfunction
function Trig_Odama_rasengan_Func016002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Odama_rasengan_Func016002003001(), Trig_Odama_rasengan_Func016002003002() )
endfunction
function Trig_Odama_rasengan_Func017A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Naruto[5], GetEnumUnit(), 600.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
function Trig_Odama_rasengan_Actions takes nothing returns nothing
set udg_Naruto[5] = GetTriggerUnit()
set udg_Naruto[6] = GetSpellTargetUnit()
set udg_Ypoint[110] = GetUnitLoc(udg_Naruto[6])
call SetUnitAnimationWithRarity( udg_Naruto[2], "stand four", RARITY_FREQUENT )
call AddSpecialEffectTargetUnitBJ( "right hand", udg_Naruto[5], "Biglxw.mdx" )
set udg_SEffect[3] = GetLastCreatedEffectBJ()
call SetUnitTimeScalePercent( udg_Naruto[5], 240.00 )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Naruto[5]), "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.30 )
call SetUnitAnimation( udg_Naruto[5], "spell throw" )
call TriggerSleepAction( 0.20 )
call SetUnitPositionLoc( udg_Naruto[5], PolarProjectionBJ(udg_Ypoint[110], -100.00, GetUnitFacing(udg_Naruto[5])) )
call SetUnitTimeScalePercent( udg_Naruto[5], 100.00 )
call DestroyEffectBJ( udg_SEffect[3] )
set udg_aGroups[4] = GetUnitsInRangeOfLocMatching(450.00, udg_Ypoint[110], Condition(function Trig_Odama_rasengan_Func016002003))
call ForGroupBJ( udg_aGroups[4], function Trig_Odama_rasengan_Func017A )
call DestroyGroup (udg_aGroups[4])
set udg_aGroups[4] = null
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 4
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[110], 160.00, ( I2R(GetForLoopIndexA()) * 88.00 )), "war3mapImported\\Wave2.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[110], 240.00, ( I2R(GetForLoopIndexA()) * 88.00 )), "Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call AddSpecialEffectLocBJ( udg_Ypoint[110], "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[110], "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Naruto[5]), udg_Ypoint[110], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.40, 'Brai', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A017', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
call ResetUnitAnimation( udg_Naruto[5] )
set udg_Naruto[5] = null
set udg_Naruto[6] = null
call RemoveLocation(udg_Ypoint[110])
set udg_Ypoint[110] = null
endfunction
//===========================================================================
function InitTrig_Odama_rasengan takes nothing returns nothing
set gg_trg_Odama_rasengan = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Odama_rasengan, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Odama_rasengan, Condition( function Trig_Odama_rasengan_Conditions ) )
call TriggerAddAction( gg_trg_Odama_rasengan, function Trig_Odama_rasengan_Actions )
endfunction
function Trig_Kakashi_random_spells_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A015' ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_random_spells_Func004C takes nothing returns boolean
if ( not ( udg_KakRandomspells == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_random_spells_Func005C takes nothing returns boolean
if ( not ( udg_KakRandomspells == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_random_spells_Func006C takes nothing returns boolean
if ( not ( udg_KakRandomspells == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_random_spells_Actions takes nothing returns nothing
set udg_KakRandomspells = GetRandomInt(1, 3)
if ( Trig_Kakashi_random_spells_Func004C() ) then
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A02S', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", GetSpellTargetLoc() )
else
endif
if ( Trig_Kakashi_random_spells_Func005C() ) then
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A02T', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", GetSpellTargetLoc() )
else
endif
if ( Trig_Kakashi_random_spells_Func006C() ) then
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A02U', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", GetSpellTargetLoc() )
else
endif
endfunction
//===========================================================================
function InitTrig_Kakashi_random_spells takes nothing returns nothing
set gg_trg_Kakashi_random_spells = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kakashi_random_spells, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Kakashi_random_spells, Condition( function Trig_Kakashi_random_spells_Conditions ) )
call TriggerAddAction( gg_trg_Kakashi_random_spells, function Trig_Kakashi_random_spells_Actions )
endfunction
function Trig_Kakashi_random_spells_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02T' ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_random_spells_1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u007', GetOwningPlayer(gg_unit_Harf_0019), PolarProjectionBJ(GetUnitLoc(gg_unit_Harf_0019), 40.00, AngleBetweenPoints(GetUnitLoc(gg_unit_Harf_0019), GetSpellTargetLoc())), AngleBetweenPoints(GetUnitLoc(gg_unit_Harf_0019), GetSpellTargetLoc()) )
set udg_Kakashi[1] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_Kakashi_random_spells_1_move )
call PolledWait( 0.80 )
call DisableTrigger( gg_trg_Kakashi_random_spells_1_move )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Kakashi[1]), "war3mapImported\\NewDirtEXNofire.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveUnit( udg_Kakashi[1] )
set udg_Kakashi[1] = null
call RemoveLocation(udg_Ypoint[10])
set udg_Ypoint[10] = null
endfunction
//===========================================================================
function InitTrig_Kakashi_random_spells_1 takes nothing returns nothing
set gg_trg_Kakashi_random_spells_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kakashi_random_spells_1, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Kakashi_random_spells_1, Condition( function Trig_Kakashi_random_spells_1_Conditions ) )
call TriggerAddAction( gg_trg_Kakashi_random_spells_1, function Trig_Kakashi_random_spells_1_Actions )
endfunction
function Trig_Kakashi_random_spells_1_move_Func006A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Kakashi_random_spells_1_move_Actions takes nothing returns nothing
set udg_UnitPoint[303] = GetUnitLoc(udg_Kakashi[1])
set udg_Ypoint[10] = PolarProjectionBJ(udg_UnitPoint[303], 31.00, GetUnitFacing(udg_Kakashi[1]))
call SetUnitPathing( udg_Kakashi[1], false )
call SetUnitPositionLoc( udg_Kakashi[1], udg_Ypoint[10] )
call AddSpecialEffectLocBJ( udg_Ypoint[10], "abilities\\weapons\\DemolisherMissile\\DemolisherMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call EnumDestructablesInCircleBJ( 200.00, udg_Ypoint[10], function Trig_Kakashi_random_spells_1_move_Func006A )
call RemoveLocation(udg_Ypoint[10])
call RemoveLocation( udg_UnitPoint[303] )
set udg_UnitPoint[303] = null
endfunction
//===========================================================================
function InitTrig_Kakashi_random_spells_1_move takes nothing returns nothing
set gg_trg_Kakashi_random_spells_1_move = CreateTrigger( )
call DisableTrigger( gg_trg_Kakashi_random_spells_1_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Kakashi_random_spells_1_move, 0.03 )
call TriggerAddAction( gg_trg_Kakashi_random_spells_1_move, function Trig_Kakashi_random_spells_1_move_Actions )
endfunction
function Trig_Kakashi_random_spells_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02U' ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_random_spells_2_Actions takes nothing returns nothing
set udg_PointNew[9] = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), 10.00, AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()), GetSpellTargetLoc())), AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()), GetSpellTargetLoc()) )
set udg_Kakashi[20] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_Kakashi_random_spells_2_move )
call PolledWait( 0.34 )
call DisableTrigger( gg_trg_Kakashi_random_spells_2_move )
set udg_UnitPoint[17] = GetUnitLoc(udg_Kakashi[20])
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(PolarProjectionBJ(udg_UnitPoint[17], 256.00, GetUnitFacing(udg_Kakashi[20])), 100.00, ( I2R(GetForLoopIndexA()) * 56.00 )), "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveUnit( udg_Kakashi[20] )
set udg_Kakashi[20] = null
call RemoveLocation(udg_PointNew[9])
set udg_PointNew[9] = null
call RemoveLocation(udg_Ypoint[11])
set udg_Ypoint[11] = null
call RemoveLocation( udg_UnitPoint[17] )
set udg_UnitPoint[17] = null
endfunction
//===========================================================================
function InitTrig_Kakashi_random_spells_2 takes nothing returns nothing
set gg_trg_Kakashi_random_spells_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kakashi_random_spells_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Kakashi_random_spells_2, Condition( function Trig_Kakashi_random_spells_2_Conditions ) )
call TriggerAddAction( gg_trg_Kakashi_random_spells_2, function Trig_Kakashi_random_spells_2_Actions )
endfunction
function Trig_Kakashi_random_spells_2_move_Actions takes nothing returns nothing
call SetUnitPathing( udg_Kakashi[20], false )
set udg_UnitPoint[17] = GetUnitLoc(udg_Kakashi[20])
set udg_Ypoint[11] = PolarProjectionBJ(udg_UnitPoint[17], 35.00, AngleBetweenPoints(GetUnitLoc(gg_unit_Harf_0019), udg_PointNew[9]))
call SetUnitPositionLoc( udg_Kakashi[20], udg_Ypoint[11] )
call CreateNUnitsAtLoc( 1, 'h00R', Player(PLAYER_NEUTRAL_PASSIVE), udg_Ypoint[11], GetUnitFacing(udg_Kakashi[20]) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 0.00, 0.00, 0.00, 100.00 )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 300.00 )
call UnitApplyTimedLifeBJ( 0.24, 'BTLF', GetLastCreatedUnit() )
call RemoveLocation(udg_Ypoint[11])
call RemoveLocation( udg_UnitPoint[17] )
set udg_UnitPoint[17] = null
endfunction
//===========================================================================
function InitTrig_Kakashi_random_spells_2_move takes nothing returns nothing
set gg_trg_Kakashi_random_spells_2_move = CreateTrigger( )
call DisableTrigger( gg_trg_Kakashi_random_spells_2_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Kakashi_random_spells_2_move, 0.03 )
call TriggerAddAction( gg_trg_Kakashi_random_spells_2_move, function Trig_Kakashi_random_spells_2_move_Actions )
endfunction
function Trig_Kakashi_clone_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A018' ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_clone_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(gg_unit_Harf_0019), GetUnitLoc(gg_unit_Harf_0019), GetUnitFacing(gg_unit_Harf_0019) )
set udg_Kakashi[10] = GetLastCreatedUnit()
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', udg_Kakashi[10] )
call UnitAddItemByIdSwapped( 'I601', udg_Kakashi[10] )
call UnitUseItemTarget( udg_Kakashi[10], GetLastCreatedItem(), gg_unit_Harf_0019 )
call RemoveItem( GetLastCreatedItem() )
set udg_Kakashi[10] = null
endfunction
//===========================================================================
function InitTrig_Kakashi_clone takes nothing returns nothing
set gg_trg_Kakashi_clone = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kakashi_clone, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Kakashi_clone, Condition( function Trig_Kakashi_clone_Conditions ) )
call TriggerAddAction( gg_trg_Kakashi_clone, function Trig_Kakashi_clone_Actions )
endfunction
function Trig_Kakashi_clone_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'Harf' ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_clone_2_Func001C takes nothing returns boolean
if ( not ( IsUnitIllusionBJ(GetSummonedUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_clone_2_Actions takes nothing returns nothing
if ( Trig_Kakashi_clone_2_Func001C() ) then
call SetUnitPathing( GetSummonedUnit(), false )
call SetUnitPositionLocFacingBJ( GetSummonedUnit(), GetUnitLoc(udg_Kakashi[10]), GetUnitFacing(gg_unit_Harf_0019) )
call SetUnitPathing( GetSummonedUnit(), true )
else
endif
endfunction
//===========================================================================
function InitTrig_Kakashi_clone_2 takes nothing returns nothing
set gg_trg_Kakashi_clone_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kakashi_clone_2, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_Kakashi_clone_2, Condition( function Trig_Kakashi_clone_2_Conditions ) )
call TriggerAddAction( gg_trg_Kakashi_clone_2, function Trig_Kakashi_clone_2_Actions )
endfunction
function Trig_Kakashi_clone_3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'Harf' ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_clone_3_Func001C takes nothing returns boolean
if ( not ( IsUnitIllusionBJ(GetDyingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Kakashi_clone_3_Actions takes nothing returns nothing
if ( Trig_Kakashi_clone_3_Func001C() ) then
set udg_Zpoint[92] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'u00A', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[92], bj_UNIT_FACING )
call KillUnit( GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( udg_Zpoint[92], "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(gg_unit_Harf_0019), udg_Zpoint[92], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A01X', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A01X', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A018', gg_unit_Harf_0019) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "thunderclap" )
call RemoveLocation(udg_Zpoint[92])
set udg_Zpoint[92] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Kakashi_clone_3 takes nothing returns nothing
set gg_trg_Kakashi_clone_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kakashi_clone_3, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Kakashi_clone_3, Condition( function Trig_Kakashi_clone_3_Conditions ) )
call TriggerAddAction( gg_trg_Kakashi_clone_3, function Trig_Kakashi_clone_3_Actions )
endfunction
function Trig_Podmena_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00E' ) ) then
return false
endif
return true
endfunction
function Trig_Podmena_Actions takes nothing returns nothing
set udg_NagatoPoint[1] = GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ( udg_NagatoPoint[1], "shadowclone.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'u00D', Player(0), udg_NagatoPoint[1], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 3.00, 'BTLF', GetLastCreatedUnit() )
call RemoveLocation( udg_NagatoPoint[1] )
set udg_NagatoPoint[1] = null
endfunction
//===========================================================================
function InitTrig_Podmena takes nothing returns nothing
set gg_trg_Podmena = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Podmena, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Podmena, Condition( function Trig_Podmena_Conditions ) )
call TriggerAddAction( gg_trg_Podmena, function Trig_Podmena_Actions )
endfunction
function Trig_Blow_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A024' ) ) then
return false
endif
return true
endfunction
function Trig_Blow_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A024', gg_unit_Hvwd_0345) == 1 )
endfunction
function Trig_Blow_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A024', gg_unit_Hvwd_0345) == 2 )
endfunction
function Trig_Blow_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A024', gg_unit_Hvwd_0345) == 3 )
endfunction
function Trig_Blow_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A024', gg_unit_Hvwd_0345) == 4 )
endfunction
function Trig_Blow_Actions takes nothing returns nothing
set udg_Sakura[1] = GetSpellAbilityUnit()
set udg_Sakura[0] = GetSpellTargetUnit()
call EnableTrigger( gg_trg_Blow_Move )
call TriggerSleepAction( 0.08 )
call DisableTrigger( gg_trg_Blow_Move )
if ( Trig_Blow_Func006001() ) then
call UnitDamageTargetBJ( gg_unit_Hvwd_0345, udg_Sakura[0], 150.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Blow_Func007001() ) then
call UnitDamageTargetBJ( gg_unit_Hvwd_0345, udg_Sakura[0], 220.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Blow_Func008001() ) then
call UnitDamageTargetBJ( gg_unit_Hvwd_0345, udg_Sakura[0], 310.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Blow_Func009001() ) then
call UnitDamageTargetBJ( gg_unit_Hvwd_0345, udg_Sakura[0], 380.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
call RemoveLocation(udg_Ypoint[44])
set udg_Ypoint[44] = null
set udg_Sakura[1] = null
set udg_Sakura[0] = null
endfunction
//===========================================================================
function InitTrig_Blow takes nothing returns nothing
set gg_trg_Blow = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Blow, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Blow, Condition( function Trig_Blow_Conditions ) )
call TriggerAddAction( gg_trg_Blow, function Trig_Blow_Actions )
endfunction
function Trig_Blow_Move_Func001C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Sakura[0], 'B00N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Blow_Move_Actions takes nothing returns nothing
if ( Trig_Blow_Move_Func001C() ) then
else
set udg_Ypoint[44] = GetUnitLoc(udg_Sakura[0])
call SetUnitPositionLoc( udg_Sakura[0], PolarProjectionBJ(udg_Ypoint[44], 90.00, AngleBetweenPoints(GetUnitLoc(udg_Sakura[1]), GetUnitLoc(udg_Sakura[0]))) )
call IssueImmediateOrderBJ( udg_Sakura[0], "stop" )
call AddSpecialEffectLocBJ( udg_Ypoint[44], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[44], "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Ypoint[44])
endif
endfunction
//===========================================================================
function InitTrig_Blow_Move takes nothing returns nothing
set gg_trg_Blow_Move = CreateTrigger( )
call DisableTrigger( gg_trg_Blow_Move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Blow_Move, 0.03 )
call TriggerAddAction( gg_trg_Blow_Move, function Trig_Blow_Move_Actions )
endfunction
function Trig_Earth_slam_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A022' ) ) then
return false
endif
return true
endfunction
function Trig_Earth_slam_Func003A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Earth_slam_Actions takes nothing returns nothing
set udg_Ypoint[43] = GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 9
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[43], 200.00, ( I2R(GetForLoopIndexA()) * 45.00 )), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[43], 200.00, ( I2R(GetForLoopIndexA()) * 45.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[43], 400.00, ( I2R(GetForLoopIndexA()) * 45.00 )), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[43], 300.00, ( I2R(GetForLoopIndexA()) * 45.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[43], 600.00, ( I2R(GetForLoopIndexA()) * 45.00 )), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[43], 600.00, ( I2R(GetForLoopIndexA()) * 45.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call EnumDestructablesInCircleBJ( 600.00, udg_Ypoint[43], function Trig_Earth_slam_Func003A )
call RemoveLocation(udg_Ypoint[43])
set udg_Ypoint[43] = null
endfunction
//===========================================================================
function InitTrig_Earth_slam takes nothing returns nothing
set gg_trg_Earth_slam = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Earth_slam, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Earth_slam, Condition( function Trig_Earth_slam_Conditions ) )
call TriggerAddAction( gg_trg_Earth_slam, function Trig_Earth_slam_Actions )
endfunction
function Trig_Mana_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00N' ) ) then
return false
endif
return true
endfunction
function Trig_Mana_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.40, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A023', GetLastCreatedUnit() )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "rejuvination", GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Mana takes nothing returns nothing
set gg_trg_Mana = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mana, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Mana, Condition( function Trig_Mana_Conditions ) )
call TriggerAddAction( gg_trg_Mana, function Trig_Mana_Actions )
endfunction
function Trig_Mana_end_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00N' ) ) then
return false
endif
return true
endfunction
function Trig_Mana_end_Actions takes nothing returns nothing
call UnitRemoveBuffBJ( 'B00A', GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Mana_end takes nothing returns nothing
set gg_trg_Mana_end = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mana_end, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerAddCondition( gg_trg_Mana_end, Condition( function Trig_Mana_end_Conditions ) )
call TriggerAddAction( gg_trg_Mana_end, function Trig_Mana_end_Actions )
endfunction
function Trig_Beast_Dies_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'o000' ) ) then
return false
endif
return true
endfunction
function Trig_Beast_Dies_Actions takes nothing returns nothing
call RemoveUnit( GetTriggerUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Objects\\Spawnmodels\\Undead\\UndeadLargeDeathExplode\\UndeadLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Beast_Dies takes nothing returns nothing
set gg_trg_Beast_Dies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Beast_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Beast_Dies, Condition( function Trig_Beast_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Beast_Dies, function Trig_Beast_Dies_Actions )
endfunction
function Trig_Ninpo_Rat_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00Y' ) ) then
return false
endif
return true
endfunction
function Trig_Ninpo_Rat_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', gg_unit_Eill_0344) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Ninpo_Rat_Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', gg_unit_Eill_0344) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Ninpo_Rat_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', gg_unit_Eill_0344) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Ninpo_Rat_Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A00Y', gg_unit_Eill_0344) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Ninpo_Rat_Actions takes nothing returns nothing
if ( Trig_Ninpo_Rat_Func001C() ) then
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'n001', GetOwningPlayer(gg_unit_Eill_0344), PolarProjectionBJ(GetUnitLoc(gg_unit_Eill_0344), 100.00, ( I2R(GetForLoopIndexA()) * 35.00 )), ( I2R(GetForLoopIndexA()) * 35.00 ) )
call UnitApplyTimedLifeBJ( 4.00, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), 1500.00, GetUnitFacing(GetLastCreatedUnit())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
if ( Trig_Ninpo_Rat_Func001Func001C() ) then
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 15
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'n001', GetOwningPlayer(gg_unit_Eill_0344), PolarProjectionBJ(GetUnitLoc(gg_unit_Eill_0344), 100.00, ( I2R(GetForLoopIndexA()) * 24.00 )), ( I2R(GetForLoopIndexA()) * 24.00 ) )
call UnitApplyTimedLifeBJ( 4.00, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), 1500.00, GetUnitFacing(GetLastCreatedUnit())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
if ( Trig_Ninpo_Rat_Func001Func001Func001C() ) then
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 20
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'n001', GetOwningPlayer(gg_unit_Eill_0344), PolarProjectionBJ(GetUnitLoc(gg_unit_Eill_0344), 100.00, ( I2R(GetForLoopIndexA()) * 18.00 )), ( I2R(GetForLoopIndexA()) * 18.00 ) )
call UnitApplyTimedLifeBJ( 4.00, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), 1500.00, GetUnitFacing(GetLastCreatedUnit())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
if ( Trig_Ninpo_Rat_Func001Func001Func001Func001C() ) then
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 25
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'n001', GetOwningPlayer(gg_unit_Eill_0344), PolarProjectionBJ(GetUnitLoc(gg_unit_Eill_0344), 100.00, ( I2R(GetForLoopIndexA()) * 15.00 )), ( I2R(GetForLoopIndexA()) * 15.00 ) )
call UnitApplyTimedLifeBJ( 4.00, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), 1500.00, GetUnitFacing(GetLastCreatedUnit())) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Ninpo_Rat takes nothing returns nothing
set gg_trg_Ninpo_Rat = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ninpo_Rat, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Ninpo_Rat, Condition( function Trig_Ninpo_Rat_Conditions ) )
call TriggerAddAction( gg_trg_Ninpo_Rat, function Trig_Ninpo_Rat_Actions )
endfunction
function Trig_Ninpo_Rat_dead_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'n001' ) ) then
return false
endif
return true
endfunction
function Trig_Ninpo_Rat_dead_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Objects\\Spawnmodels\\NightElf\\NightElfLargeDeathExplode\\NightElfLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Ninpo_Rat_dead takes nothing returns nothing
set gg_trg_Ninpo_Rat_dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ninpo_Rat_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Ninpo_Rat_dead, Condition( function Trig_Ninpo_Rat_dead_Conditions ) )
call TriggerAddAction( gg_trg_Ninpo_Rat_dead, function Trig_Ninpo_Rat_dead_Actions )
endfunction
function Trig_Ninpo_Gigant_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01Q' ) ) then
return false
endif
return true
endfunction
function Trig_Ninpo_Gigant_Func010002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Ninpo_Gigant_Func010002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Eill_0344)) == true )
endfunction
function Trig_Ninpo_Gigant_Func010002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Ninpo_Gigant_Func010002003002002001002 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), GetUnitsOfPlayerAll(Player(PLAYER_NEUTRAL_PASSIVE))) == false )
endfunction
function Trig_Ninpo_Gigant_Func010002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Gigant_Func010002003002002001001(), Trig_Ninpo_Gigant_Func010002003002002001002() )
endfunction
function Trig_Ninpo_Gigant_Func010002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Ninpo_Gigant_Func010002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Gigant_Func010002003002002001(), Trig_Ninpo_Gigant_Func010002003002002002() )
endfunction
function Trig_Ninpo_Gigant_Func010002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Gigant_Func010002003002001(), Trig_Ninpo_Gigant_Func010002003002002() )
endfunction
function Trig_Ninpo_Gigant_Func010002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Gigant_Func010002003001(), Trig_Ninpo_Gigant_Func010002003002() )
endfunction
function Trig_Ninpo_Gigant_Func011Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01Q', gg_unit_Eill_0344) == 1 )
endfunction
function Trig_Ninpo_Gigant_Func011Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01Q', gg_unit_Eill_0344) == 2 )
endfunction
function Trig_Ninpo_Gigant_Func011Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01Q', gg_unit_Eill_0344) == 3 )
endfunction
function Trig_Ninpo_Gigant_Func011A takes nothing returns nothing
if ( Trig_Ninpo_Gigant_Func011Func001001() ) then
call UnitDamageTargetBJ( gg_unit_Eill_0344, GetEnumUnit(), 900.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Ninpo_Gigant_Func011Func002001() ) then
call UnitDamageTargetBJ( gg_unit_Eill_0344, GetEnumUnit(), 1100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Ninpo_Gigant_Func011Func003001() ) then
call UnitDamageTargetBJ( gg_unit_Eill_0344, GetEnumUnit(), 1300.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
endfunction
function Trig_Ninpo_Gigant_Actions takes nothing returns nothing
set udg_PointNew[82] = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'h002', GetOwningPlayer(GetTriggerUnit()), udg_PointNew[82], GetRandomDirectionDeg() )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), -90.00, 1400.00 )
call TriggerSleepAction( 0.48 )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_PointNew[82], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.60, 'Bapl', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A017', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
set udg_aGroups[6] = GetUnitsInRangeOfLocMatching(500.00, udg_PointNew[82], Condition(function Trig_Ninpo_Gigant_Func010002003))
call ForGroupBJ( udg_aGroups[6], function Trig_Ninpo_Gigant_Func011A )
call DestroyGroup (udg_aGroups[6])
set udg_aGroups[6] = null
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[82], 80.00, ( I2R(GetForLoopIndexA()) * 56.00 )), "Objects\\Spawnmodels\\Undead\\UndeadLargeDeathExplode\\UndeadLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[82], 180.00, ( I2R(GetForLoopIndexA()) * 56.00 )), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[82], 180.00, ( I2R(GetForLoopIndexA()) * 56.00 )), "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveLocation( udg_PointNew[82] )
set udg_PointNew[82] = null
endfunction
//===========================================================================
function InitTrig_Ninpo_Gigant takes nothing returns nothing
set gg_trg_Ninpo_Gigant = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ninpo_Gigant, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Ninpo_Gigant, Condition( function Trig_Ninpo_Gigant_Conditions ) )
call TriggerAddAction( gg_trg_Ninpo_Gigant, function Trig_Ninpo_Gigant_Actions )
endfunction
function Trig_Ninpo_Dragon_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A019' ) ) then
return false
endif
return true
endfunction
function Trig_Ninpo_Dragon_Actions takes nothing returns nothing
set udg_PointNew[83] = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'h00G', GetOwningPlayer(GetTriggerUnit()), PolarProjectionBJ(GetUnitLoc(gg_unit_Eill_0344), 100.00, AngleBetweenPoints(GetUnitLoc(gg_unit_Eill_0344), GetSpellTargetLoc())), AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()), GetSpellTargetLoc()) )
call UnitApplyTimedLifeBJ( 10.00, 'BTLF', GetLastCreatedUnit() )
set udg_Naruto[94] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_Ninpo_Dragon_Move )
endfunction
//===========================================================================
function InitTrig_Ninpo_Dragon takes nothing returns nothing
set gg_trg_Ninpo_Dragon = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ninpo_Dragon, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Ninpo_Dragon, Condition( function Trig_Ninpo_Dragon_Conditions ) )
call TriggerAddAction( gg_trg_Ninpo_Dragon, function Trig_Ninpo_Dragon_Actions )
endfunction
function Trig_Ninpo_Dragon_Move_Func004002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Ninpo_Dragon_Move_Func004002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Eill_0344)) == true )
endfunction
function Trig_Ninpo_Dragon_Move_Func004002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Ninpo_Dragon_Move_Func004002003002002001002 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), GetUnitsOfPlayerAll(Player(PLAYER_NEUTRAL_PASSIVE))) == false )
endfunction
function Trig_Ninpo_Dragon_Move_Func004002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Dragon_Move_Func004002003002002001001(), Trig_Ninpo_Dragon_Move_Func004002003002002001002() )
endfunction
function Trig_Ninpo_Dragon_Move_Func004002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Ninpo_Dragon_Move_Func004002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Dragon_Move_Func004002003002002001(), Trig_Ninpo_Dragon_Move_Func004002003002002002() )
endfunction
function Trig_Ninpo_Dragon_Move_Func004002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Dragon_Move_Func004002003002001(), Trig_Ninpo_Dragon_Move_Func004002003002002() )
endfunction
function Trig_Ninpo_Dragon_Move_Func004002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Dragon_Move_Func004002003001(), Trig_Ninpo_Dragon_Move_Func004002003002() )
endfunction
function Trig_Ninpo_Dragon_Move_Func005A takes nothing returns nothing
call IssueImmediateOrderBJ( GetEnumUnit(), "stop" )
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), 10.00, AngleBetweenPoints(GetUnitLoc(GetEnumUnit()), udg_Ypoint[15])) )
endfunction
function Trig_Ninpo_Dragon_Move_Func009Func004002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Ninpo_Dragon_Move_Func009Func004002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Eill_0344)) == true )
endfunction
function Trig_Ninpo_Dragon_Move_Func009Func004002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Ninpo_Dragon_Move_Func009Func004002003002002001002 takes nothing returns boolean
return ( IsUnitInGroup(GetFilterUnit(), GetUnitsOfPlayerAll(Player(PLAYER_NEUTRAL_PASSIVE))) == false )
endfunction
function Trig_Ninpo_Dragon_Move_Func009Func004002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Dragon_Move_Func009Func004002003002002001001(), Trig_Ninpo_Dragon_Move_Func009Func004002003002002001002() )
endfunction
function Trig_Ninpo_Dragon_Move_Func009Func004002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Ninpo_Dragon_Move_Func009Func004002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Dragon_Move_Func009Func004002003002002001(), Trig_Ninpo_Dragon_Move_Func009Func004002003002002002() )
endfunction
function Trig_Ninpo_Dragon_Move_Func009Func004002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Dragon_Move_Func009Func004002003002001(), Trig_Ninpo_Dragon_Move_Func009Func004002003002002() )
endfunction
function Trig_Ninpo_Dragon_Move_Func009Func004002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Ninpo_Dragon_Move_Func009Func004002003001(), Trig_Ninpo_Dragon_Move_Func009Func004002003002() )
endfunction
function Trig_Ninpo_Dragon_Move_Func009Func005A takes nothing returns nothing
call UnitDamageTargetBJ( gg_unit_Eill_0344, GetEnumUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
function Trig_Ninpo_Dragon_Move_Func009C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Naruto[94]), udg_PointNew[83]) <= 40.00 ) ) then
return false
endif
return true
endfunction
function Trig_Ninpo_Dragon_Move_Actions takes nothing returns nothing
set udg_Ypoint[15] = PolarProjectionBJ(GetUnitLoc(udg_Naruto[94]), 18.00, AngleBetweenPoints(GetUnitLoc(udg_Naruto[94]), udg_PointNew[83]))
call SetUnitPositionLoc( udg_Naruto[94], udg_Ypoint[15] )
call SetUnitAnimation( udg_Naruto[94], "walk" )
set udg_aGroups[7] = GetUnitsInRangeOfLocMatching(300.00, udg_Ypoint[15], Condition(function Trig_Ninpo_Dragon_Move_Func004002003))
call ForGroupBJ( udg_aGroups[7], function Trig_Ninpo_Dragon_Move_Func005A )
call DestroyGroup (udg_aGroups[7])
set udg_aGroups[7] = null
call RemoveLocation(udg_Ypoint[15])
if ( Trig_Ninpo_Dragon_Move_Func009C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call RemoveUnit( udg_Naruto[94] )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[83], 100.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "Objects\\Spawnmodels\\Undead\\UndeadLargeDeathExplode\\UndeadLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[83], 100.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[83], 200.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "Objects\\Spawnmodels\\Undead\\UndeadLargeDeathExplode\\UndeadLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[83], 200.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[83], 300.00, ( I2R(GetForLoopIndexA()) * 31.00 )), "Objects\\Spawnmodels\\Undead\\UndeadLargeDeathExplode\\UndeadLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[83], 300.00, ( I2R(GetForLoopIndexA()) * 31.00 )), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_PointNew[83], "Objects\\Spawnmodels\\Undead\\UndeadLargeDeathExplode\\UndeadLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_PointNew[83], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_aGroups[8] = GetUnitsInRangeOfLocMatching(400.00, udg_PointNew[83], Condition(function Trig_Ninpo_Dragon_Move_Func009Func004002003))
call ForGroupBJ( udg_aGroups[8], function Trig_Ninpo_Dragon_Move_Func009Func005A )
call DestroyGroup (udg_aGroups[8])
set udg_aGroups[8] = null
set udg_Naruto[94] = null
call RemoveLocation(udg_Ypoint[15])
set udg_Ypoint[15] = null
call RemoveLocation( udg_PointNew[83] )
set udg_PointNew[83] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Ninpo_Dragon_Move takes nothing returns nothing
set gg_trg_Ninpo_Dragon_Move = CreateTrigger( )
call DisableTrigger( gg_trg_Ninpo_Dragon_Move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Ninpo_Dragon_Move, 0.02 )
call TriggerAddAction( gg_trg_Ninpo_Dragon_Move, function Trig_Ninpo_Dragon_Move_Actions )
endfunction
function Trig_Geppou_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01V' ) ) then
return false
endif
return true
endfunction
function Trig_Geppou_Func016001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01V', udg_Grimmjow[531]) == 1 )
endfunction
function Trig_Geppou_Func017001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01V', udg_Grimmjow[531]) == 2 )
endfunction
function Trig_Geppou_Func018001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01V', udg_Grimmjow[531]) == 3 )
endfunction
function Trig_Geppou_Func019001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01V', udg_Grimmjow[531]) == 4 )
endfunction
function Trig_Geppou_Func020Func003002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) != true )
endfunction
function Trig_Geppou_Func020Func003002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Geppou_Func020Func003002003002002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Grimmjow[531])) == true )
endfunction
function Trig_Geppou_Func020Func003002003002002002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_FLYING) != true )
endfunction
function Trig_Geppou_Func020Func003002003002002002002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_ANCIENT) != true )
endfunction
function Trig_Geppou_Func020Func003002003002002002002002001 takes nothing returns boolean
return ( IsUnitHiddenBJ(GetFilterUnit()) != true )
endfunction
function Trig_Geppou_Func020Func003002003002002002002002002 takes nothing returns boolean
return ( IsUnitVisible(GetFilterUnit(), GetOwningPlayer(udg_Grimmjow[531])) == true )
endfunction
function Trig_Geppou_Func020Func003002003002002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Geppou_Func020Func003002003002002002002002001(), Trig_Geppou_Func020Func003002003002002002002002002() )
endfunction
function Trig_Geppou_Func020Func003002003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Geppou_Func020Func003002003002002002002001(), Trig_Geppou_Func020Func003002003002002002002002() )
endfunction
function Trig_Geppou_Func020Func003002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Geppou_Func020Func003002003002002002001(), Trig_Geppou_Func020Func003002003002002002002() )
endfunction
function Trig_Geppou_Func020Func003002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Geppou_Func020Func003002003002002001(), Trig_Geppou_Func020Func003002003002002002() )
endfunction
function Trig_Geppou_Func020Func003002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Geppou_Func020Func003002003002001(), Trig_Geppou_Func020Func003002003002002() )
endfunction
function Trig_Geppou_Func020Func003002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Geppou_Func020Func003002003001(), Trig_Geppou_Func020Func003002003002() )
endfunction
function Trig_Geppou_Func020Func007Func001Func001C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Grimmjow[531], 'BSTN') == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(udg_Grimmjow[531], 'BPSE') == false ) ) then
return false
endif
return true
endfunction
function Trig_Geppou_Func020Func007Func001Func003Func008001 takes nothing returns boolean
return ( IsUnitPausedBJ(udg_Grimmjow[531]) == true )
endfunction
function Trig_Geppou_Func020Func007Func001Func003Func011001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01V', udg_Grimmjow[531]) == 1 )
endfunction
function Trig_Geppou_Func020Func007Func001Func003Func012001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01V', udg_Grimmjow[531]) == 2 )
endfunction
function Trig_Geppou_Func020Func007Func001Func003Func013001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01V', udg_Grimmjow[531]) == 3 )
endfunction
function Trig_Geppou_Func020Func007Func001Func003Func014001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01V', udg_Grimmjow[531]) == 4 )
endfunction
function Trig_Geppou_Func020Func007Func001Func003A takes nothing returns nothing
set udg_Grimmjow[532] = GetEnumUnit()
set udg_Pointhero[17] = GetUnitLoc(udg_Grimmjow[532])
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Grimmjow[531]), "Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitPositionLoc( udg_Grimmjow[531], PolarProjectionBJ(udg_Pointhero[17], GetRandomReal(10.00, 50.00), GetRandomDirectionDeg()) )
call RemoveLocation(udg_Pointhero[17])
set udg_Pointhero[17] = null
if ( Trig_Geppou_Func020Func007Func001Func003Func008001() ) then
call PauseUnitBJ( false, udg_Grimmjow[531] )
else
call DoNothing( )
endif
call SetUnitTimeScalePercent( udg_Grimmjow[531], 100.00 )
call SetUnitAnimation( udg_Grimmjow[531], "attack" )
if ( Trig_Geppou_Func020Func007Func001Func003Func011001() ) then
call UnitDamageTargetBJ( udg_Grimmjow[531], udg_Grimmjow[532], ( 1.10 * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, udg_Grimmjow[531], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Geppou_Func020Func007Func001Func003Func012001() ) then
call UnitDamageTargetBJ( udg_Grimmjow[531], udg_Grimmjow[532], ( 1.40 * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, udg_Grimmjow[531], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Geppou_Func020Func007Func001Func003Func013001() ) then
call UnitDamageTargetBJ( udg_Grimmjow[531], udg_Grimmjow[532], ( 1.70 * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, udg_Grimmjow[531], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Geppou_Func020Func007Func001Func003Func014001() ) then
call UnitDamageTargetBJ( udg_Grimmjow[531], udg_Grimmjow[532], ( 2.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, udg_Grimmjow[531], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
call AddSpecialEffectTargetUnitBJ( "origin", udg_Grimmjow[532], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_Targets[532] = null
endfunction
function Trig_Geppou_Func020Func007Func001C takes nothing returns boolean
if ( not Trig_Geppou_Func020Func007Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Geppou_Func020Func007Func004001 takes nothing returns boolean
return ( IsUnitPausedBJ(udg_Grimmjow[531]) == true )
endfunction
function Trig_Geppou_Func020Func007Func013Func003C takes nothing returns boolean
if ( not ( udg_bDuel == true ) ) then
return false
endif
if ( not ( udg_Grimmjow[531] != udg_Team1LeaderHero ) ) then
return false
endif
if ( not ( udg_Grimmjow[531] != udg_Team2LeaderHero ) ) then
return false
endif
return true
endfunction
function Trig_Geppou_Func020Func007Func013C takes nothing returns boolean
if ( not Trig_Geppou_Func020Func007Func013Func003C() ) then
return false
endif
return true
endfunction
function Trig_Geppou_Func020Func007C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_UnitGroups[7]) > 0 ) ) then
return false
endif
if ( not ( udg_Omnislashing[GetConvertedPlayerId(GetOwningPlayer(udg_Grimmjow[531]))] == true ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Grimmjow[531]) == true ) ) then
return false
endif
return true
endfunction
function Trig_Geppou_Func023001 takes nothing returns boolean
return ( IsUnitPausedBJ(udg_Grimmjow[531]) == true )
endfunction
function Trig_Geppou_Func032Func003C takes nothing returns boolean
if ( not ( udg_bDuel == true ) ) then
return false
endif
if ( not ( udg_Grimmjow[531] != udg_Team1LeaderHero ) ) then
return false
endif
if ( not ( udg_Grimmjow[531] != udg_Team2LeaderHero ) ) then
return false
endif
return true
endfunction
function Trig_Geppou_Func032C takes nothing returns boolean
if ( not Trig_Geppou_Func032Func003C() ) then
return false
endif
return true
endfunction
function Trig_Geppou_Actions takes nothing returns nothing
set udg_Grimmjow[531] = GetTriggerUnit()
set udg_Grimmjow[532] = GetSpellTargetUnit()
set udg_SkillLoops[3] = ( 8 + GetUnitAbilityLevelSwapped('A01V', udg_Grimmjow[531]) )
set udg_Omnislashing[GetConvertedPlayerId(GetOwningPlayer(udg_Grimmjow[531]))] = true
call ResetUnitAnimation( udg_Grimmjow[531] )
call SetUnitTimeScalePercent( udg_Grimmjow[531], 100.00 )
call AddSpecialEffectTargetUnitBJ( "weapon", udg_Grimmjow[531], "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl" )
set udg_SpecialEffect[531] = GetLastCreatedEffectBJ()
call TriggerSleepAction( 0.01 )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Grimmjow[531]), "Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitPositionLoc( udg_Grimmjow[531], GetUnitLoc(udg_Grimmjow[532]) )
call SetUnitAnimation( udg_Grimmjow[531], "attack" )
if ( Trig_Geppou_Func016001() ) then
call UnitDamageTargetBJ( udg_Grimmjow[531], udg_Grimmjow[532], ( 1.10 * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, udg_Grimmjow[531], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Geppou_Func017001() ) then
call UnitDamageTargetBJ( udg_Grimmjow[531], udg_Grimmjow[532], ( 1.40 * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, udg_Grimmjow[531], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Geppou_Func018001() ) then
call UnitDamageTargetBJ( udg_Grimmjow[531], udg_Grimmjow[532], ( 1.70 * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, udg_Grimmjow[531], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Geppou_Func019001() ) then
call UnitDamageTargetBJ( udg_Grimmjow[531], udg_Grimmjow[532], ( 2.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, udg_Grimmjow[531], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
set udg_Z[8] = 1
loop
exitwhen udg_Z[8] > udg_SkillLoops[3]
call TriggerSleepAction( 0.30 )
set udg_Pointhero[16] = GetUnitLoc(udg_Grimmjow[531])
set udg_UnitGroups[7] = GetUnitsInRangeOfLocMatching(600.00, udg_Pointhero[16], Condition(function Trig_Geppou_Func020Func003002003))
set udg_UnitGroups[8] = GetRandomSubGroup(1, udg_UnitGroups[7])
call RemoveLocation(udg_Pointhero[16])
set udg_Point[16] = null
if ( Trig_Geppou_Func020Func007C() ) then
if ( Trig_Geppou_Func020Func007Func001C() ) then
call ForGroupBJ( udg_UnitGroups[8], function Trig_Geppou_Func020Func007Func001Func003A )
call DestroyGroup(udg_UnitGroups[7])
call DestroyGroup(udg_UnitGroups[8])
set udg_UnitGroups[7] = null
set udg_UnitGroups[8] = null
else
call DoNothing( )
endif
else
call DestroyEffectBJ( udg_SpecialEffect[531] )
call SelectUnitAddForPlayer( udg_Grimmjow[531], GetOwningPlayer(udg_Grimmjow[531]) )
if ( Trig_Geppou_Func020Func007Func004001() ) then
call PauseUnitBJ( false, udg_Grimmjow[531] )
else
call DoNothing( )
endif
call SetUnitTimeScalePercent( udg_Grimmjow[531], 100.00 )
call SetUnitVertexColorBJ( udg_Grimmjow[531], 100, 100, 100, 0 )
call RemoveLocation(udg_Pointhero[16])
set udg_Pointhero[16] = null
call RemoveLocation(udg_Pointhero[17])
set udg_Pointhero[17] = null
call ResetUnitAnimation( udg_Grimmjow[531] )
set udg_Omnislashing[GetConvertedPlayerId(GetOwningPlayer(udg_Grimmjow[531]))] = false
if ( Trig_Geppou_Func020Func007Func013C() ) then
call PauseUnitBJ( true, udg_Grimmjow[531] )
else
call DoNothing( )
endif
set udg_Grimmjow[531] = null
set udg_Grimmjow[532] = null
set udg_SkillLoops[3] = 0
endif
set udg_Z[8] = udg_Z[8] + 1
endloop
call DestroyEffectBJ( udg_SpecialEffect[531] )
call SelectUnitAddForPlayer( udg_Grimmjow[531], GetOwningPlayer(udg_Grimmjow[531]) )
if ( Trig_Geppou_Func023001() ) then
call PauseUnitBJ( false, udg_Grimmjow[531] )
else
call DoNothing( )
endif
call SetUnitTimeScalePercent( udg_Grimmjow[531], 100.00 )
call SetUnitVertexColorBJ( udg_Grimmjow[531], 100, 100, 100, 0 )
call RemoveLocation(udg_Pointhero[16])
set udg_Pointhero[16] = null
call RemoveLocation(udg_Pointhero[17])
set udg_Pointhero[17] = null
call ResetUnitAnimation( udg_Grimmjow[531] )
set udg_Omnislashing[GetConvertedPlayerId(GetOwningPlayer(udg_Grimmjow[531]))] = false
if ( Trig_Geppou_Func032C() ) then
call PauseUnitBJ( true, udg_Grimmjow[531] )
else
call DoNothing( )
endif
set udg_Grimmjow[531] = null
set udg_Grimmjow[531] = null
set udg_SkillLoops[3] = 0
endfunction
//===========================================================================
function InitTrig_Geppou takes nothing returns nothing
set gg_trg_Geppou = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Geppou, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Geppou, Condition( function Trig_Geppou_Conditions ) )
call TriggerAddAction( gg_trg_Geppou, function Trig_Geppou_Actions )
endfunction
function Trig_Gai_Senpu_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AOww' ) ) then
return false
endif
return true
endfunction
function Trig_Gai_Senpu_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_Gai_Senpu_damage )
call TriggerSleepAction( 1.00 )
call DisableTrigger( gg_trg_Gai_Senpu_damage )
call RemoveLocation(udg_Ypoint[16])
set udg_Ypoint[16] = null
endfunction
//===========================================================================
function InitTrig_Gai_Senpu takes nothing returns nothing
set gg_trg_Gai_Senpu = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gai_Senpu, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Gai_Senpu, Condition( function Trig_Gai_Senpu_Conditions ) )
call TriggerAddAction( gg_trg_Gai_Senpu, function Trig_Gai_Senpu_Actions )
endfunction
function Trig_Gai_Senpu_damage_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(gg_unit_Hpb2_0316) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gai_Senpu_damage_Actions takes nothing returns nothing
set udg_Ypoint[16] = GetUnitLoc(gg_unit_Hpb2_0316)
call AddSpecialEffectLocBJ( udg_Ypoint[16], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Ypoint[16])
endfunction
//===========================================================================
function InitTrig_Gai_Senpu_damage takes nothing returns nothing
set gg_trg_Gai_Senpu_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Gai_Senpu_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gai_Senpu_damage, 0.28 )
call TriggerAddCondition( gg_trg_Gai_Senpu_damage, Condition( function Trig_Gai_Senpu_damage_Conditions ) )
call TriggerAddAction( gg_trg_Gai_Senpu_damage, function Trig_Gai_Senpu_damage_Actions )
endfunction
function Trig_Gai_bomb_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01W' ) ) then
return false
endif
return true
endfunction
function Trig_Gai_bomb_Actions takes nothing returns nothing
set udg_gai[4] = GetSpellAbilityUnit()
set udg_Points[470] = GetUnitLoc(udg_gai[4])
set udg_Points[471] = GetSpellTargetLoc()
set udg_Omnislashing[GetConvertedPlayerId(GetOwningPlayer(udg_gai[4]))] = true
call PauseUnitBJ( true, udg_gai[4] )
call SetUnitInvulnerable( udg_gai[4], true )
call TriggerSleepAction( 0.01 )
call ShowUnitHide( udg_gai[4] )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h00I', GetOwningPlayer(udg_gai[4]), udg_Points[470], udg_Points[471] )
set udg_gai[5] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_gai[5] )
call SetUnitAnimation( udg_gai[5], "spell throw" )
call SetUnitTimeScalePercent( udg_gai[5], 60.00 )
call SetUnitFlyHeightBJ( udg_gai[5], 500.00, 2000.00 )
call AddSpecialEffectTargetUnitBJ( "right hand", udg_gai[5], "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl" )
set udg_SEffect[12773] = GetLastCreatedEffectBJ()
call AddSpecialEffectLocBJ( udg_Point[470], "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitInvulnerable( udg_gai[5], true )
call EnableTrigger( gg_trg_Gai_bomb_damage )
call TriggerSleepAction( 0.60 )
call SetUnitFlyHeightBJ( udg_gai[5], 0.00, 5000.00 )
call TriggerSleepAction( 0.10 )
call DisableTrigger( gg_trg_Gai_bomb_damage )
call DestroyEffectBJ( udg_SEffect[12773] )
set udg_Zpoint[70] = GetUnitLoc(udg_gai[5])
call ShowUnitShow( udg_gai[4] )
call SetUnitPositionLocFacingBJ( udg_gai[4], GetUnitLoc(udg_gai[5]), AngleBetweenPoints(udg_Points[470], udg_Points[471]) )
call RemoveUnit( udg_gai[5] )
call SetUnitInvulnerable( udg_gai[4], false )
call PauseUnitBJ( false, udg_gai[4] )
call AddSpecialEffectLocBJ( udg_Zpoint[70], "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[70], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_gai[5]), udg_Zpoint[70], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.05, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A01X', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A01X', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A01W', udg_gai[4]) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "thunderclap" )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_gai[5]), udg_Zpoint[70], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.05, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A017', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
call RemoveLocation( udg_Zpoint[70] )
set udg_Zpoint[70] = null
call SetUnitTimeScalePercent( udg_gai[4], 100.00 )
call SelectUnitForPlayerSingle( udg_gai[4], GetOwningPlayer(udg_gai[4]) )
set udg_gai[4] = null
set udg_gai[5] = null
call RemoveLocation( udg_Points[470] )
set udg_Points[470] = null
call RemoveLocation( udg_Points[471] )
set udg_Points[471] = null
set udg_Omnislashing[GetConvertedPlayerId(GetOwningPlayer(udg_gai[4]))] = false
endfunction
//===========================================================================
function InitTrig_Gai_bomb takes nothing returns nothing
set gg_trg_Gai_bomb = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gai_bomb, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Gai_bomb, Condition( function Trig_Gai_bomb_Conditions ) )
call TriggerAddAction( gg_trg_Gai_bomb, function Trig_Gai_bomb_Actions )
endfunction
function Trig_Gai_bomb_damage_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_gai[4]) == true ) ) then
return false
endif
return true
endfunction
function Trig_Gai_bomb_damage_Func002Func010001 takes nothing returns boolean
return ( udg_bDuel == false )
endfunction
function Trig_Gai_bomb_damage_Func002C takes nothing returns boolean
if ( not ( udg_Omnislashing[GetConvertedPlayerId(GetOwningPlayer(udg_gai[4]))] == true ) ) then
return false
endif
return true
endfunction
function Trig_Gai_bomb_damage_Actions takes nothing returns nothing
if ( Trig_Gai_bomb_damage_Func002C() ) then
set udg_Points[472] = GetUnitLoc(udg_gai[5])
set udg_Points[473] = PolarProjectionBJ(udg_Points[472], ( DistanceBetweenPoints(udg_Points[470], udg_Points[471]) / 50.00 ), GetUnitFacing(udg_gai[5]))
call RemoveLocation( udg_Points[472] )
set udg_Points[472] = null
call SetUnitPositionLoc( udg_gai[5], udg_Points[473] )
call RemoveLocation( udg_Points[473] )
set udg_Points[473] = null
else
call DisableTrigger( GetTriggeringTrigger() )
call ShowUnitShow( udg_gai[4] )
call SetUnitPositionLocFacingBJ( udg_gai[4], GetUnitLoc(udg_gai[5]), AngleBetweenPoints(udg_Points[470], udg_Points[471]) )
call SetUnitInvulnerable( udg_gai[4], false )
call RemoveUnit( udg_gai[5] )
call PauseUnitBJ( false, udg_gai[4] )
call SetUnitTimeScalePercent( udg_gai[4], 100.00 )
call SetUnitInvulnerable( udg_gai[4], false )
call SelectUnitForPlayerSingle( udg_gai[4], GetOwningPlayer(udg_gai[4]) )
if ( Trig_Gai_bomb_damage_Func002Func010001() ) then
call PanCameraToTimedLocForPlayer( GetOwningPlayer(udg_gai[4]), GetUnitLoc(udg_gai[4]), 0.00 )
else
call DoNothing( )
endif
set udg_gai[4] = null
set udg_gai[5] = null
call RemoveLocation( udg_Points[470] )
set udg_Points[470] = null
call RemoveLocation( udg_Points[471] )
set udg_Points[471] = null
set udg_Omnislashing[GetConvertedPlayerId(GetOwningPlayer(udg_gai[4]))] = false
endif
endfunction
//===========================================================================
function InitTrig_Gai_bomb_damage takes nothing returns nothing
set gg_trg_Gai_bomb_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Gai_bomb_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gai_bomb_damage, 0.02 )
call TriggerAddCondition( gg_trg_Gai_bomb_damage, Condition( function Trig_Gai_bomb_damage_Conditions ) )
call TriggerAddAction( gg_trg_Gai_bomb_damage, function Trig_Gai_bomb_damage_Actions )
endfunction
function Trig_Open_Gates_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01Y' ) ) then
return false
endif
return true
endfunction
function Trig_Open_Gates_Actions takes nothing returns nothing
set udg_gai[6] = GetSpellAbilityUnit()
set udg_Zpoint[60] = GetUnitLoc(udg_gai[6])
call PauseUnitBJ( true, udg_gai[6] )
call SetUnitAnimation( udg_gai[6], "ready" )
call SetUnitVertexColorBJ( udg_gai[6], 100, 40.00, 40.00, 0 )
call SetUnitTimeScalePercent( udg_gai[6], 300.00 )
call AddSpecialEffectLocBJ( udg_Zpoint[60], "Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[60], "war3mapImported\\EarthNova.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[60], "war3mapImported\\NatureExplosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[60], "war3mapImported\\NewDirtEXNofire.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[60], "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call IssueImmediateOrderBJ( udg_gai[6], "stop" )
call RemoveLocation(udg_Zpoint[60])
set udg_Zpoint[60] = null
endfunction
//===========================================================================
function InitTrig_Open_Gates takes nothing returns nothing
set gg_trg_Open_Gates = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Open_Gates, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Open_Gates, Condition( function Trig_Open_Gates_Conditions ) )
call TriggerAddAction( gg_trg_Open_Gates, function Trig_Open_Gates_Actions )
endfunction
function Trig_Open_Gates_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01Y' ) ) then
return false
endif
return true
endfunction
function Trig_Open_Gates_2_Func002001 takes nothing returns boolean
return ( udg_Bankai[0] == false )
endfunction
function Trig_Open_Gates_2_Func003C takes nothing returns boolean
if ( not ( udg_Bankai[0] == true ) ) then
return false
endif
return true
endfunction
function Trig_Open_Gates_2_Actions takes nothing returns nothing
if ( Trig_Open_Gates_2_Func002001() ) then
set udg_Bankai[0] = true
else
set udg_Bankai[0] = false
endif
if ( Trig_Open_Gates_2_Func003C() ) then
call EnableTrigger( gg_trg_Open_Gates_dead )
call EnableTrigger( gg_trg_attack_Gai )
call EnableTrigger( gg_trg_Move_Gai )
call PauseUnitBJ( false, udg_gai[6] )
else
call SetUnitVertexColorBJ( udg_gai[6], 100, 100.00, 100.00, 0 )
call SetUnitTimeScalePercent( udg_gai[6], 100.00 )
call DisableTrigger( gg_trg_Open_Gates_dead )
call DisableTrigger( gg_trg_attack_Gai )
call DisableTrigger( gg_trg_Move_Gai )
set udg_gai[6] = null
set udg_Grimmjow[31] = null
call RemoveLocation(udg_Point[449])
set udg_Point[449] = null
endif
endfunction
//===========================================================================
function InitTrig_Open_Gates_2 takes nothing returns nothing
set gg_trg_Open_Gates_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Open_Gates_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Open_Gates_2, Condition( function Trig_Open_Gates_2_Conditions ) )
call TriggerAddAction( gg_trg_Open_Gates_2, function Trig_Open_Gates_2_Actions )
endfunction
function Trig_Open_Gates_dead_Actions takes nothing returns nothing
set udg_Bankai[0] = false
call SetUnitVertexColorBJ( udg_gai[6], 100, 100.00, 100.00, 0 )
call SetUnitTimeScalePercent( udg_gai[6], 100.00 )
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_attack_Gai )
call DisableTrigger( gg_trg_Move_Gai )
set udg_gai[6] = null
set udg_Grimmjow[31] = null
call RemoveLocation(udg_Point[449])
set udg_Point[449] = null
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Open_Gates_dead takes nothing returns nothing
set gg_trg_Open_Gates_dead = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Open_Gates_dead, gg_unit_Hpb2_0316, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Open_Gates_dead, function Trig_Open_Gates_dead_Actions )
endfunction
function Trig_Move_Gai_Conditions takes nothing returns boolean
if ( not ( GetTriggerUnit() == udg_gai[6] ) ) then
return false
endif
return true
endfunction
function Trig_Move_Gai_Actions takes nothing returns nothing
set udg_Point[449] = GetOrderPointLoc()
call SetUnitAnimationByIndex(udg_gai[6],4)
call EnableTrigger( gg_trg_Move_Gai_go )
endfunction
//===========================================================================
function InitTrig_Move_Gai takes nothing returns nothing
set gg_trg_Move_Gai = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Gai )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Move_Gai, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_Move_Gai, Condition( function Trig_Move_Gai_Conditions ) )
call TriggerAddAction( gg_trg_Move_Gai, function Trig_Move_Gai_Actions )
endfunction
function Trig_Move_Gai_go_Func004C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_gai[6]), udg_Point[449]) <= 90.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Gai_go_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_gai[6], PolarProjectionBJ(GetUnitLoc(udg_gai[6]), 60.00, AngleBetweenPoints(GetUnitLoc(udg_gai[6]), udg_Point[449])) )
call SetUnitFacingToFaceLocTimed( udg_gai[6], udg_Point[449], 0 )
if ( Trig_Move_Gai_go_Func004C() ) then
call SetUnitAnimation( udg_gai[6], "stand" )
call IssueImmediateOrderBJ( udg_gai[6], "stop" )
call RemoveLocation(udg_Point[449])
call DisableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
//===========================================================================
function InitTrig_Move_Gai_go takes nothing returns nothing
set gg_trg_Move_Gai_go = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Gai_go )
call TriggerRegisterTimerEventPeriodic( gg_trg_Move_Gai_go, 0.01 )
call TriggerAddAction( gg_trg_Move_Gai_go, function Trig_Move_Gai_go_Actions )
endfunction
function Trig_attack_Gai_Conditions takes nothing returns boolean
if ( not ( GetTriggerUnit() == udg_gai[6] ) ) then
return false
endif
return true
endfunction
function Trig_attack_Gai_Actions takes nothing returns nothing
set udg_Grimmjow[31] = GetOrderTargetUnit()
call SetUnitAnimationByIndex(udg_gai[6],4)
call EnableTrigger( gg_trg_attack_Gai_move )
endfunction
//===========================================================================
function InitTrig_attack_Gai takes nothing returns nothing
set gg_trg_attack_Gai = CreateTrigger( )
call DisableTrigger( gg_trg_attack_Gai )
call TriggerRegisterAnyUnitEventBJ( gg_trg_attack_Gai, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_attack_Gai, Condition( function Trig_attack_Gai_Conditions ) )
call TriggerAddAction( gg_trg_attack_Gai, function Trig_attack_Gai_Actions )
endfunction
function Trig_attack_Gai_move_Func004C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_gai[6]), GetUnitLoc(udg_Grimmjow[31])) <= 120.00 ) ) then
return false
endif
return true
endfunction
function Trig_attack_Gai_move_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_gai[6], PolarProjectionBJ(GetUnitLoc(udg_gai[6]), 60.00, AngleBetweenPoints(GetUnitLoc(udg_gai[6]), GetUnitLoc(udg_Grimmjow[31]))) )
call SetUnitFacingToFaceUnitTimed( udg_gai[6], udg_Grimmjow[31], 0 )
if ( Trig_attack_Gai_move_Func004C() ) then
call IssueTargetOrderBJ( udg_gai[6], "attack", udg_Grimmjow[31] )
call DisableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
//===========================================================================
function InitTrig_attack_Gai_move takes nothing returns nothing
set gg_trg_attack_Gai_move = CreateTrigger( )
call DisableTrigger( gg_trg_attack_Gai_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_attack_Gai_move, 0.01 )
call TriggerAddAction( gg_trg_attack_Gai_move, function Trig_attack_Gai_move_Actions )
endfunction
function Trig_Eight_Gate_damage_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02A' ) ) then
return false
endif
return true
endfunction
function Trig_Eight_Gate_damage_Actions takes nothing returns nothing
set udg_gai[7] = GetSpellAbilityUnit()
endfunction
//===========================================================================
function InitTrig_Eight_Gate_damage takes nothing returns nothing
set gg_trg_Eight_Gate_damage = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Eight_Gate_damage, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Eight_Gate_damage, Condition( function Trig_Eight_Gate_damage_Conditions ) )
call TriggerAddAction( gg_trg_Eight_Gate_damage, function Trig_Eight_Gate_damage_Actions )
endfunction
function Trig_Eight_Gate_damage_2_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_gai[7] ) ) then
return false
endif
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
return true
endfunction
function Trig_Eight_Gate_damage_2_Func003C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_gai[7], 'B00U') == true ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B00N') == false ) ) then
return false
endif
return true
endfunction
function Trig_Eight_Gate_damage_2_Actions takes nothing returns nothing
if ( Trig_Eight_Gate_damage_2_Func003C() ) then
set udg_gai[8] = GetAttackedUnitBJ()
call EnableTrigger( gg_trg_Eight_Gate_damage_move )
call EnableTrigger( gg_trg_Eight_Gate_damage_move_2 )
call UnitRemoveBuffBJ( 'B00T', udg_gai[7] )
call TriggerSleepAction( 6.00 )
call DisableTrigger( gg_trg_Eight_Gate_damage_move )
call DisableTrigger( gg_trg_Eight_Gate_damage_move_2 )
call UnitDamageTargetBJ( udg_gai[7], udg_gai[8], 6000.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
call RemoveLocation(udg_Ypoint[17])
set udg_Ypoint[17] = null
call RemoveLocation(udg_Ypoint[18])
set udg_Ypoint[18] = null
set udg_gai[7] = null
set udg_gai[8] = null
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Eight_Gate_damage_2 takes nothing returns nothing
set gg_trg_Eight_Gate_damage_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Eight_Gate_damage_2, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Eight_Gate_damage_2, Condition( function Trig_Eight_Gate_damage_2_Conditions ) )
call TriggerAddAction( gg_trg_Eight_Gate_damage_2, function Trig_Eight_Gate_damage_2_Actions )
endfunction
function Trig_Eight_Gate_damage_move_Func001Func007A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Eight_Gate_damage_move_Func001Func015C takes nothing returns boolean
if ( ( RectContainsUnit(gg_rct_World, udg_gai[7]) == true ) ) then
return true
endif
return false
endfunction
function Trig_Eight_Gate_damage_move_Func001C takes nothing returns boolean
if ( not Trig_Eight_Gate_damage_move_Func001Func015C() ) then
return false
endif
return true
endfunction
function Trig_Eight_Gate_damage_move_Actions takes nothing returns nothing
if ( Trig_Eight_Gate_damage_move_Func001C() ) then
set udg_Ypoint[17] = PolarProjectionBJ(GetUnitLoc(udg_gai[8]), 60.00, GetUnitFacing(udg_gai[7]))
call SetUnitPositionLoc( udg_gai[8], udg_Ypoint[17] )
call EnumDestructablesInCircleBJ( 160.00, GetUnitLoc(udg_gai[8]), function Trig_Eight_Gate_damage_move_Func001Func007A )
call AddSpecialEffectLocBJ( udg_Ypoint[17], "Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[17], "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[17], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Ypoint[17])
else
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_gai[7], udg_gai[8], 10000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
set udg_gai[7] = null
set udg_gai[8] = null
endif
endfunction
//===========================================================================
function InitTrig_Eight_Gate_damage_move takes nothing returns nothing
set gg_trg_Eight_Gate_damage_move = CreateTrigger( )
call DisableTrigger( gg_trg_Eight_Gate_damage_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Eight_Gate_damage_move, 0.04 )
call TriggerAddAction( gg_trg_Eight_Gate_damage_move, function Trig_Eight_Gate_damage_move_Actions )
endfunction
function Trig_Eight_Gate_damage_move_2_Func001Func006C takes nothing returns boolean
if ( ( RectContainsUnit(gg_rct_World, udg_gai[7]) == true ) ) then
return true
endif
return false
endfunction
function Trig_Eight_Gate_damage_move_2_Func001C takes nothing returns boolean
if ( not Trig_Eight_Gate_damage_move_2_Func001Func006C() ) then
return false
endif
return true
endfunction
function Trig_Eight_Gate_damage_move_2_Actions takes nothing returns nothing
if ( Trig_Eight_Gate_damage_move_2_Func001C() ) then
set udg_Ypoint[18] = PolarProjectionBJ(GetUnitLoc(udg_gai[7]), GetRandomReal(100.00, 700.00), GetRandomDirectionDeg())
call SetUnitPositionLoc( udg_gai[8], udg_Ypoint[18] )
call SetUnitPositionLoc( udg_gai[7], PolarProjectionBJ(GetUnitLoc(udg_gai[8]), 100.00, GetRandomDirectionDeg()) )
call SetUnitFacingToFaceLocTimed( udg_gai[7], GetUnitLoc(udg_gai[8]), 0 )
call AddSpecialEffectLocBJ( udg_Ypoint[18], "war3mapImported\\NewDirtEXNofire.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Ypoint[18])
else
call UnitDamageTargetBJ( udg_gai[7], udg_gai[8], 10000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call DisableTrigger( GetTriggeringTrigger() )
set udg_gai[7] = null
set udg_gai[8] = null
endif
endfunction
//===========================================================================
function InitTrig_Eight_Gate_damage_move_2 takes nothing returns nothing
set gg_trg_Eight_Gate_damage_move_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Eight_Gate_damage_move_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Eight_Gate_damage_move_2, 0.08 )
call TriggerAddAction( gg_trg_Eight_Gate_damage_move_2, function Trig_Eight_Gate_damage_move_2_Actions )
endfunction
function Trig_Lee_Senpu_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02B' ) ) then
return false
endif
return true
endfunction
function Trig_Lee_Senpu_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_Lee_Senpu_damage )
call TriggerSleepAction( 1.00 )
call DisableTrigger( gg_trg_Lee_Senpu_damage )
endfunction
//===========================================================================
function InitTrig_Lee_Senpu takes nothing returns nothing
set gg_trg_Lee_Senpu = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lee_Senpu, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Lee_Senpu, Condition( function Trig_Lee_Senpu_Conditions ) )
call TriggerAddAction( gg_trg_Lee_Senpu, function Trig_Lee_Senpu_Actions )
endfunction
function Trig_Lee_Senpu_damage_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(gg_unit_Obla_0318) == true ) ) then
return false
endif
return true
endfunction
function Trig_Lee_Senpu_damage_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_Obla_0318), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Lee_Senpu_damage takes nothing returns nothing
set gg_trg_Lee_Senpu_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Lee_Senpu_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Lee_Senpu_damage, 0.28 )
call TriggerAddCondition( gg_trg_Lee_Senpu_damage, Condition( function Trig_Lee_Senpu_damage_Conditions ) )
call TriggerAddAction( gg_trg_Lee_Senpu_damage, function Trig_Lee_Senpu_damage_Actions )
endfunction
function Trig_Lee_Lotus_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07A' ) ) then
return false
endif
return true
endfunction
function Trig_Lee_Lotus_Actions takes nothing returns nothing
set udg_gai[20] = GetSpellAbilityUnit()
set udg_PointNew[4211] = PolarProjectionBJ(GetUnitLoc(udg_gai[20]), 1500.00, AngleBetweenPoints(GetUnitLoc(udg_gai[20]), GetSpellTargetLoc()))
set udg_PointNew[4212] = GetUnitLoc(udg_gai[20])
call SetUnitAnimationByIndex(udg_gai[20],4)
call EnableTrigger( gg_trg_Lee_Lotus_move )
call TriggerSleepAction( 1.50 )
call DisableTrigger( gg_trg_Lee_Lotus_move )
call RemoveLocation( udg_PointNew[4211] )
set udg_PointNew[4211] = null
call RemoveLocation( udg_PointNew[4212] )
set udg_PointNew[4212] = null
endfunction
//===========================================================================
function InitTrig_Lee_Lotus takes nothing returns nothing
set gg_trg_Lee_Lotus = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lee_Lotus, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Lee_Lotus, Condition( function Trig_Lee_Lotus_Conditions ) )
call TriggerAddAction( gg_trg_Lee_Lotus, function Trig_Lee_Lotus_Actions )
endfunction
function Trig_Lee_Lotus_2_Func005Func022001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07A', udg_gai[20]) == 1 )
endfunction
function Trig_Lee_Lotus_2_Func005Func023001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07A', udg_gai[20]) == 2 )
endfunction
function Trig_Lee_Lotus_2_Func005Func024001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07A', udg_gai[20]) == 3 )
endfunction
function Trig_Lee_Lotus_2_Func005Func025001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07A', udg_gai[20]) == 4 )
endfunction
function Trig_Lee_Lotus_2_Func005C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_gai[21], 'B00N') == false ) ) then
return false
endif
return true
endfunction
function Trig_Lee_Lotus_2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call CreateFogModifierRadiusLocBJ( true, GetOwningPlayer(udg_gai[21]), FOG_OF_WAR_VISIBLE, GetUnitLoc(udg_gai[21]), 400.00 )
set udg_Visible[13] = GetLastCreatedFogModifier()
call SetUnitPathing( udg_gai[20], false )
call SetUnitPositionLoc( udg_gai[20], GetUnitLoc(udg_gai[21]) )
call SetUnitAnimation( udg_gai[20], "spell slam" )
if ( Trig_Lee_Lotus_2_Func005C() ) then
call PauseUnitBJ( true, udg_gai[20] )
call PauseUnitBJ( true, udg_gai[21] )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_NEGATIVE, udg_gai[20] )
call SetUnitInvulnerable( udg_gai[20], true )
call SetUnitInvulnerable( udg_gai[21], true )
call UnitAddAbilityBJ( 'Arav', udg_gai[21] )
call SetUnitFlyHeightBJ( udg_gai[21], 600.00, 1000.00 )
call TriggerSleepAction( 0.90 )
call ShowUnitHide( udg_gai[21] )
call TriggerSleepAction( 0.30 )
call ShowUnitShow( udg_gai[21] )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_gai[21]), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_gai[21]), "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitPathing( udg_gai[20], true )
call SetUnitInvulnerable( udg_gai[20], false )
call SetUnitInvulnerable( udg_gai[21], false )
if ( Trig_Lee_Lotus_2_Func005Func022001() ) then
call UnitDamageTargetBJ( udg_gai[20], udg_gai[21], 160.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Lee_Lotus_2_Func005Func023001() ) then
call UnitDamageTargetBJ( udg_gai[20], udg_gai[21], 240.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Lee_Lotus_2_Func005Func024001() ) then
call UnitDamageTargetBJ( udg_gai[20], udg_gai[21], 320.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Lee_Lotus_2_Func005Func025001() ) then
call UnitDamageTargetBJ( udg_gai[20], udg_gai[21], 410.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
call SetUnitFlyHeightBJ( udg_gai[21], 0.00, 10000.00 )
call UnitRemoveAbilityBJ( 'Arav', udg_gai[21] )
call PauseUnitBJ( false, udg_gai[20] )
call PauseUnitBJ( false, udg_gai[21] )
call DestroyFogModifier( udg_Visible[13] )
set udg_gai[20] = null
set udg_gai[21] = null
else
set udg_gai[20] = null
set udg_gai[21] = null
endif
endfunction
//===========================================================================
function InitTrig_Lee_Lotus_2 takes nothing returns nothing
set gg_trg_Lee_Lotus_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Lee_Lotus_2 )
call TriggerAddAction( gg_trg_Lee_Lotus_2, function Trig_Lee_Lotus_2_Actions )
endfunction
function Trig_Lee_Lotus_move_Func002002001003001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_gai[20])) == true )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002002002001 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002002002002001 takes nothing returns boolean
return ( GetFilterUnit() != udg_gai[20] )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002002002002002001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002002002002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lee_Lotus_move_Func002002001003002002002002002001(), Trig_Lee_Lotus_move_Func002002001003002002002002002002() )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lee_Lotus_move_Func002002001003002002002002001(), Trig_Lee_Lotus_move_Func002002001003002002002002002() )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lee_Lotus_move_Func002002001003002002002001(), Trig_Lee_Lotus_move_Func002002001003002002002002() )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lee_Lotus_move_Func002002001003002002001(), Trig_Lee_Lotus_move_Func002002001003002002002() )
endfunction
function Trig_Lee_Lotus_move_Func002002001003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lee_Lotus_move_Func002002001003002001(), Trig_Lee_Lotus_move_Func002002001003002002() )
endfunction
function Trig_Lee_Lotus_move_Func002002001003 takes nothing returns boolean
return GetBooleanAnd( Trig_Lee_Lotus_move_Func002002001003001(), Trig_Lee_Lotus_move_Func002002001003002() )
endfunction
function Trig_Lee_Lotus_move_Func003C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_gai[20]), GetUnitLoc(udg_gai[21])) <= 105.00 ) ) then
return false
endif
return true
endfunction
function Trig_Lee_Lotus_move_Func004C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_gai[20]), udg_PointNew[4212]) >= 800.00 ) ) then
return false
endif
return true
endfunction
function Trig_Lee_Lotus_move_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_gai[20], PolarProjectionBJ(GetUnitLoc(udg_gai[20]), 35.00, AngleBetweenPoints(GetUnitLoc(udg_gai[20]), udg_PointNew[4211])) )
set udg_gai[21] = GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(200.00, GetUnitLoc(udg_gai[20]), Condition(function Trig_Lee_Lotus_move_Func002002001003)))
if ( Trig_Lee_Lotus_move_Func003C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_Lee_Lotus_2 )
call ConditionalTriggerExecute( gg_trg_Lee_Lotus_2 )
else
endif
if ( Trig_Lee_Lotus_move_Func004C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call SetUnitAnimation( udg_gai[20], "stand" )
call RemoveLocation( udg_PointNew[4211] )
set udg_PointNew[4211] = null
call RemoveLocation( udg_PointNew[4212] )
set udg_PointNew[4212] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Lee_Lotus_move takes nothing returns nothing
set gg_trg_Lee_Lotus_move = CreateTrigger( )
call DisableTrigger( gg_trg_Lee_Lotus_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Lee_Lotus_move, 0.01 )
call TriggerAddAction( gg_trg_Lee_Lotus_move, function Trig_Lee_Lotus_move_Actions )
endfunction
function Trig_Ura_renge_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02D' ) ) then
return false
endif
return true
endfunction
function Trig_Ura_renge_Actions takes nothing returns nothing
set udg_gai[22] = GetSpellAbilityUnit()
endfunction
//===========================================================================
function InitTrig_Ura_renge takes nothing returns nothing
set gg_trg_Ura_renge = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ura_renge, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Ura_renge, Condition( function Trig_Ura_renge_Conditions ) )
call TriggerAddAction( gg_trg_Ura_renge, function Trig_Ura_renge_Actions )
endfunction
function Trig_Ura_renge_2_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_gai[22] ) ) then
return false
endif
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetAttacker(), 'B00T') == true ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B00N') == false ) ) then
return false
endif
return true
endfunction
function Trig_Ura_renge_2_Actions takes nothing returns nothing
set udg_gai[23] = GetAttackedUnitBJ()
set udg_Pointhero[2] = GetUnitLoc(udg_gai[23])
call SetUnitPathing( udg_gai[22], false )
call SetUnitPathing( udg_gai[23], false )
call UnitAddAbilityBJ( 'Arav', udg_gai[22] )
call UnitAddAbilityBJ( 'Arav', udg_gai[23] )
call PauseUnitBJ( true, udg_gai[22] )
call PauseUnitBJ( true, udg_gai[23] )
call SetUnitInvulnerable( udg_gai[22], true )
call SetUnitInvulnerable( udg_gai[23], true )
call DisableTrigger( gg_trg_Move_Lee_go )
call DisableTrigger( gg_trg_attack_Lee )
call EnableTrigger( gg_trg_Ura_renge_move )
call TriggerSleepAction( 3.00 )
call DisableTrigger( gg_trg_Ura_renge_move )
call SetUnitFlyHeightBJ( udg_gai[22], 0.00, 999999.00 )
call SetUnitAnimation( udg_gai[22], "stand" )
call UnitRemoveBuffBJ( 'B00T', udg_gai[22] )
call SetUnitPositionLoc( udg_gai[23], udg_Pointhero[2] )
call SetUnitFlyHeightBJ( udg_gai[23], 600.00, 1000.00 )
call TriggerSleepAction( 0.50 )
call SetUnitPositionLoc( udg_gai[22], udg_Pointhero[2] )
call SetUnitFlyHeightBJ( udg_gai[22], 600.00, 999999.00 )
call SetUnitAnimation( udg_gai[22], "attack" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(GetUnitLoc(udg_gai[23]), 140.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(GetUnitLoc(udg_gai[23]), 300.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetUnitInvulnerable( udg_gai[23], false )
call UnitDamageTargetBJ( udg_gai[22], udg_gai[23], 6000.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
call SetUnitFlyHeightBJ( udg_gai[23], 0.00, 999999.00 )
call SetUnitPositionLoc( udg_gai[22], udg_Pointhero[2] )
call TriggerSleepAction( 0.20 )
call SetUnitFlyHeightBJ( udg_gai[22], 0.00, 999999.00 )
call UnitRemoveAbilityBJ( 'Arav', udg_gai[22] )
call UnitRemoveAbilityBJ( 'Arav', udg_gai[23] )
call SetUnitInvulnerable( udg_gai[22], false )
call SetUnitPathing( udg_gai[22], true )
call SetUnitPathing( udg_gai[23], true )
call RemoveLocation( udg_Pointhero[2] )
set udg_Pointhero[2] = null
call PauseUnitBJ( false, udg_gai[22] )
call PauseUnitBJ( false, udg_gai[23] )
set udg_gai[22] = null
set udg_gai[23] = null
call EnableTrigger( gg_trg_Move_Lee )
call EnableTrigger( gg_trg_attack_Lee )
endfunction
//===========================================================================
function InitTrig_Ura_renge_2 takes nothing returns nothing
set gg_trg_Ura_renge_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ura_renge_2, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Ura_renge_2, Condition( function Trig_Ura_renge_2_Conditions ) )
call TriggerAddAction( gg_trg_Ura_renge_2, function Trig_Ura_renge_2_Actions )
endfunction
function Trig_Ura_renge_move_Actions takes nothing returns nothing
call SetUnitFlyHeightBJ( udg_gai[22], GetRandomReal(100.00, 500.00), 9000.00 )
call SetUnitFlyHeightBJ( udg_gai[23], GetRandomReal(100.00, 500.00), 9000.00 )
call SetUnitPositionLoc( udg_gai[22], PolarProjectionBJ(udg_Pointhero[2], GetRandomReal(100.00, 700.00), GetRandomDirectionDeg()) )
call SetUnitPositionLoc( udg_gai[23], PolarProjectionBJ(udg_Pointhero[2], GetRandomReal(100.00, 700.00), GetRandomDirectionDeg()) )
call CreateNUnitsAtLoc( 1, 'h01A', Player(PLAYER_NEUTRAL_PASSIVE), PolarProjectionBJ(udg_Pointhero[2], GetRandomReal(100.00, 650.00), GetRandomDirectionDeg()), GetRandomDirectionDeg() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), GetRandomReal(100.00, 500.00), 9000.00 )
call KillUnit( GetLastCreatedUnit() )
call IssueImmediateOrderBJ( udg_gai[22], "stop" )
endfunction
//===========================================================================
function InitTrig_Ura_renge_move takes nothing returns nothing
set gg_trg_Ura_renge_move = CreateTrigger( )
call DisableTrigger( gg_trg_Ura_renge_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Ura_renge_move, 0.06 )
call TriggerAddAction( gg_trg_Ura_renge_move, function Trig_Ura_renge_move_Actions )
endfunction
function Trig_Open_Gates_lee_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A029' ) ) then
return false
endif
return true
endfunction
function Trig_Open_Gates_lee_Actions takes nothing returns nothing
set udg_gai[24] = GetSpellAbilityUnit()
set udg_Zpoint[61] = GetUnitLoc(udg_gai[24])
call PauseUnitBJ( true, udg_gai[24] )
call SetUnitAnimation( udg_gai[24], "ready" )
call SetUnitVertexColorBJ( udg_gai[24], 100, 40.00, 40.00, 0 )
call SetUnitTimeScalePercent( udg_gai[24], 300.00 )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_gai[24]), "Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_gai[24]), "war3mapImported\\EarthNova.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_gai[24]), "war3mapImported\\NatureExplosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call IssueImmediateOrderBJ( udg_gai[24], "stop" )
call RemoveLocation(udg_Zpoint[61])
set udg_Zpoint[61] = null
endfunction
//===========================================================================
function InitTrig_Open_Gates_lee takes nothing returns nothing
set gg_trg_Open_Gates_lee = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Open_Gates_lee, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Open_Gates_lee, Condition( function Trig_Open_Gates_lee_Conditions ) )
call TriggerAddAction( gg_trg_Open_Gates_lee, function Trig_Open_Gates_lee_Actions )
endfunction
function Trig_Open_Gates_lee_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A029' ) ) then
return false
endif
return true
endfunction
function Trig_Open_Gates_lee_2_Func002001 takes nothing returns boolean
return ( udg_Bankai[1] == false )
endfunction
function Trig_Open_Gates_lee_2_Func003C takes nothing returns boolean
if ( not ( udg_Bankai[1] == true ) ) then
return false
endif
return true
endfunction
function Trig_Open_Gates_lee_2_Actions takes nothing returns nothing
if ( Trig_Open_Gates_lee_2_Func002001() ) then
set udg_Bankai[1] = true
else
set udg_Bankai[1] = false
endif
if ( Trig_Open_Gates_lee_2_Func003C() ) then
call EnableTrigger( gg_trg_Open_Gates_lee_dead )
call EnableTrigger( gg_trg_Move_Lee )
call EnableTrigger( gg_trg_attack_Lee )
call PauseUnitBJ( false, udg_gai[24] )
else
call SetUnitVertexColorBJ( udg_gai[24], 100, 100.00, 100.00, 0 )
call SetUnitTimeScalePercent( udg_gai[24], 100.00 )
call DisableTrigger( gg_trg_Open_Gates_lee_dead )
call DisableTrigger( gg_trg_Move_Lee )
call DisableTrigger( gg_trg_attack_Lee )
set udg_gai[24] = null
set udg_Grimmjow[41] = null
call RemoveLocation( udg_Point[450] )
set udg_Point[450] = null
endif
endfunction
//===========================================================================
function InitTrig_Open_Gates_lee_2 takes nothing returns nothing
set gg_trg_Open_Gates_lee_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Open_Gates_lee_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Open_Gates_lee_2, Condition( function Trig_Open_Gates_lee_2_Conditions ) )
call TriggerAddAction( gg_trg_Open_Gates_lee_2, function Trig_Open_Gates_lee_2_Actions )
endfunction
function Trig_Open_Gates_lee_dead_Actions takes nothing returns nothing
set udg_Bankai[1] = false
call SetUnitVertexColorBJ( udg_gai[24], 100, 100.00, 100.00, 0 )
call SetUnitTimeScalePercent( udg_gai[24], 100.00 )
call DisableTrigger( gg_trg_Move_Lee )
call DisableTrigger( gg_trg_attack_Lee )
set udg_gai[24] = null
set udg_Grimmjow[41] = null
call RemoveLocation( udg_Point[450] )
set udg_Point[450] = null
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Open_Gates_lee_dead takes nothing returns nothing
set gg_trg_Open_Gates_lee_dead = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Open_Gates_lee_dead, gg_unit_Obla_0318, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Open_Gates_lee_dead, function Trig_Open_Gates_lee_dead_Actions )
endfunction
function Trig_Move_Lee_Conditions takes nothing returns boolean
if ( not ( GetTriggerUnit() == udg_gai[24] ) ) then
return false
endif
return true
endfunction
function Trig_Move_Lee_Actions takes nothing returns nothing
set udg_Point[450] = GetOrderPointLoc()
call SetUnitAnimationByIndex(udg_gai[24],4)
call EnableTrigger( gg_trg_Move_Lee_go )
endfunction
//===========================================================================
function InitTrig_Move_Lee takes nothing returns nothing
set gg_trg_Move_Lee = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Lee )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Move_Lee, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_Move_Lee, Condition( function Trig_Move_Lee_Conditions ) )
call TriggerAddAction( gg_trg_Move_Lee, function Trig_Move_Lee_Actions )
endfunction
function Trig_Move_Lee_go_Func004Func001C takes nothing returns boolean
if ( not ( GetIssuedOrderIdBJ() == String2OrderIdBJ("stop") ) ) then
return false
endif
return true
endfunction
function Trig_Move_Lee_go_Func004C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_gai[24]), udg_Point[450]) <= 60.00 ) ) then
return false
endif
return true
endfunction
function Trig_Move_Lee_go_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_gai[24], PolarProjectionBJ(GetUnitLoc(udg_gai[24]), 60.00, AngleBetweenPoints(GetUnitLoc(udg_gai[24]), udg_Point[450])) )
call SetUnitFacingToFaceLocTimed( udg_gai[24], udg_Point[450], 0 )
if ( Trig_Move_Lee_go_Func004C() ) then
call SetUnitAnimation( udg_gai[24], "stand" )
call IssueImmediateOrderBJ( udg_gai[24], "stop" )
call RemoveLocation( udg_Point[450] )
set udg_Point[450] = null
call DisableTrigger( GetTriggeringTrigger() )
else
if ( Trig_Move_Lee_go_Func004Func001C() ) then
call SetUnitAnimation( udg_gai[24], "stand" )
call IssueImmediateOrderBJ( udg_gai[24], "stop" )
call DisableTrigger( GetTriggeringTrigger() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Move_Lee_go takes nothing returns nothing
set gg_trg_Move_Lee_go = CreateTrigger( )
call DisableTrigger( gg_trg_Move_Lee_go )
call TriggerRegisterTimerEventPeriodic( gg_trg_Move_Lee_go, 0.01 )
call TriggerAddAction( gg_trg_Move_Lee_go, function Trig_Move_Lee_go_Actions )
endfunction
function Trig_attack_Lee_Conditions takes nothing returns boolean
if ( not ( GetTriggerUnit() == udg_gai[24] ) ) then
return false
endif
return true
endfunction
function Trig_attack_Lee_Actions takes nothing returns nothing
set udg_Grimmjow[41] = GetOrderTargetUnit()
call SetUnitAnimationByIndex(udg_gai[24],4)
call EnableTrigger( gg_trg_attack_Lee_move )
endfunction
//===========================================================================
function InitTrig_attack_Lee takes nothing returns nothing
set gg_trg_attack_Lee = CreateTrigger( )
call DisableTrigger( gg_trg_attack_Lee )
call TriggerRegisterAnyUnitEventBJ( gg_trg_attack_Lee, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_attack_Lee, Condition( function Trig_attack_Lee_Conditions ) )
call TriggerAddAction( gg_trg_attack_Lee, function Trig_attack_Lee_Actions )
endfunction
function Trig_attack_Lee_move_Func004C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_gai[24]), GetUnitLoc(udg_Grimmjow[41])) <= 100.00 ) ) then
return false
endif
return true
endfunction
function Trig_attack_Lee_move_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_gai[24], PolarProjectionBJ(GetUnitLoc(udg_gai[24]), 60.00, AngleBetweenPoints(GetUnitLoc(udg_gai[24]), GetUnitLoc(udg_Grimmjow[41]))) )
call SetUnitFacingToFaceUnitTimed( udg_gai[24], udg_Grimmjow[41], 0 )
if ( Trig_attack_Lee_move_Func004C() ) then
call IssueTargetOrderBJ( udg_gai[24], "attack", udg_Grimmjow[41] )
call DisableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
//===========================================================================
function InitTrig_attack_Lee_move takes nothing returns nothing
set gg_trg_attack_Lee_move = CreateTrigger( )
call DisableTrigger( gg_trg_attack_Lee_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_attack_Lee_move, 0.01 )
call TriggerAddAction( gg_trg_attack_Lee_move, function Trig_attack_Lee_move_Actions )
endfunction
function Trig_Dragon_weapon_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AEsf' ) ) then
return false
endif
return true
endfunction
function Trig_Dragon_weapon_Actions takes nothing returns nothing
set udg_Zpoint[5] = GetUnitLoc(gg_unit_Emoo_0317)
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[5], 0.00 )
call SetUnitScalePercent( GetLastCreatedUnit(), 1000.00, 1000.00, 1000.00 )
call UnitApplyTimedLifeBJ( 2.80, 'BTLF', GetLastCreatedUnit() )
set udg_Grimmjow[24] = GetLastCreatedUnit()
call UnitAddAbilityBJ( 'A027', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A027', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('AEsf', gg_unit_Emoo_0317) )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[5], 280.00 )
call SetUnitScalePercent( GetLastCreatedUnit(), 600.00, 600.00, 600.00 )
call UnitApplyTimedLifeBJ( 2.80, 'BTLF', GetLastCreatedUnit() )
set udg_Grimmjow[25] = GetLastCreatedUnit()
call UnitAddAbilityBJ( 'A027', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A027', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('AEsf', gg_unit_Emoo_0317) )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[5], 150.00 )
call SetUnitScalePercent( GetLastCreatedUnit(), 800.00, 800.00, 800.00 )
call UnitApplyTimedLifeBJ( 2.80, 'BTLF', GetLastCreatedUnit() )
set udg_Grimmjow[26] = GetLastCreatedUnit()
call UnitAddAbilityBJ( 'A027', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A027', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('AEsf', gg_unit_Emoo_0317) )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
call TriggerSleepAction( 0.10 )
call IssueImmediateOrderBJ( udg_Grimmjow[24], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[25], "fanofknives" )
call IssueImmediateOrderBJ( udg_Grimmjow[26], "fanofknives" )
endfunction
//===========================================================================
function InitTrig_Dragon_weapon takes nothing returns nothing
set gg_trg_Dragon_weapon = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dragon_weapon, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Dragon_weapon, Condition( function Trig_Dragon_weapon_Conditions ) )
call TriggerAddAction( gg_trg_Dragon_weapon, function Trig_Dragon_weapon_Actions )
endfunction
function Trig_Dragon_weapon_dead_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AEsf' ) ) then
return false
endif
return true
endfunction
function Trig_Dragon_weapon_dead_Actions takes nothing returns nothing
call RemoveLocation(udg_Zpoint[5])
set udg_Zpoint[5] = null
call RemoveUnit( udg_Grimmjow[24] )
call RemoveUnit( udg_Grimmjow[25] )
call RemoveUnit( udg_Grimmjow[26] )
set udg_Grimmjow[24] = null
set udg_Grimmjow[25] = null
set udg_Grimmjow[26] = null
endfunction
//===========================================================================
function InitTrig_Dragon_weapon_dead takes nothing returns nothing
set gg_trg_Dragon_weapon_dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dragon_weapon_dead, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerAddCondition( gg_trg_Dragon_weapon_dead, Condition( function Trig_Dragon_weapon_dead_Conditions ) )
call TriggerAddAction( gg_trg_Dragon_weapon_dead, function Trig_Dragon_weapon_dead_Actions )
endfunction
function Trig_Fuuma_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03P' ) ) then
return false
endif
return true
endfunction
function Trig_Fuuma_Actions takes nothing returns nothing
set udg_PointNew[56] = GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ( 1, 'n007', GetOwningPlayer(gg_unit_Emoo_0317), PolarProjectionBJ(GetUnitLoc(gg_unit_Emoo_0317), 100.00, AngleBetweenPoints(GetUnitLoc(gg_unit_Emoo_0317), udg_PointNew[56])), udg_PointNew[56] )
set udg_Naruto[40] = GetLastCreatedUnit()
call SetUnitPathing( udg_Naruto[40], false )
call EnableTrigger( gg_trg_Fuuma_damage )
call TriggerSleepAction( 0.65 )
call DisableTrigger( gg_trg_Fuuma_damage )
call RemoveUnit( udg_Naruto[40] )
set udg_Naruto[40] = null
call RemoveLocation( udg_PointNew[56] )
set udg_PointNew[56] = null
endfunction
//===========================================================================
function InitTrig_Fuuma takes nothing returns nothing
set gg_trg_Fuuma = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fuuma, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Fuuma, Condition( function Trig_Fuuma_Conditions ) )
call TriggerAddAction( gg_trg_Fuuma, function Trig_Fuuma_Actions )
endfunction
function Trig_Fuuma_damage_Func002002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Fuuma_damage_Func002002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Emoo_0317)) == true )
endfunction
function Trig_Fuuma_damage_Func002002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Fuuma_damage_Func002002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Fuuma_damage_Func002002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Fuuma_damage_Func002002003002002001001(), Trig_Fuuma_damage_Func002002003002002001002() )
endfunction
function Trig_Fuuma_damage_Func002002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Fuuma_damage_Func002002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Fuuma_damage_Func002002003002002001(), Trig_Fuuma_damage_Func002002003002002002() )
endfunction
function Trig_Fuuma_damage_Func002002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Fuuma_damage_Func002002003002001(), Trig_Fuuma_damage_Func002002003002002() )
endfunction
function Trig_Fuuma_damage_Func002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Fuuma_damage_Func002002003001(), Trig_Fuuma_damage_Func002002003002() )
endfunction
function Trig_Fuuma_damage_Func003Func001C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Naruto[40]), GetUnitLoc(GetEnumUnit())) <= 80.00 ) ) then
return false
endif
return true
endfunction
function Trig_Fuuma_damage_Func003A takes nothing returns nothing
if ( Trig_Fuuma_damage_Func003Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call TriggerRegisterUnitEvent( gg_trg_Fuuma_Die, udg_Naruto[40], EVENT_UNIT_DEATH )
call KillUnit( udg_Naruto[40] )
else
endif
endfunction
function Trig_Fuuma_damage_Actions takes nothing returns nothing
set udg_UnitPoint[53] = GetUnitLoc(udg_Naruto[40])
set udg_UnitPoint[54] = PolarProjectionBJ( udg_UnitPoint[53], 15.00, AngleBetweenPoints(GetUnitLoc(gg_unit_Emoo_0317), udg_PointNew[56]))
call SetUnitPositionLoc( udg_Naruto[40], udg_UnitPoint[54] )
set udg_aGroups[12] = GetUnitsInRangeOfLocMatching(300.00, GetUnitLoc(udg_Naruto[40]), Condition(function Trig_Fuuma_damage_Func002002003))
call ForGroupBJ( udg_aGroups[12], function Trig_Fuuma_damage_Func003A )
call DestroyGroup (udg_aGroups[12])
set udg_aGroups[12] = null
call RemoveLocation( udg_UnitPoint[53] )
set udg_UnitPoint[53] = null
call RemoveLocation( udg_UnitPoint[54] )
set udg_UnitPoint[54] = null
endfunction
//===========================================================================
function InitTrig_Fuuma_damage takes nothing returns nothing
set gg_trg_Fuuma_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Fuuma_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Fuuma_damage, 0.01 )
call TriggerAddAction( gg_trg_Fuuma_damage, function Trig_Fuuma_damage_Actions )
endfunction
function Trig_Fuuma_Die_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n007' ) ) then
return false
endif
return true
endfunction
function Trig_Fuuma_Die_Func001002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Fuuma_Die_Func001002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Emoo_0317)) == true )
endfunction
function Trig_Fuuma_Die_Func001002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Fuuma_Die_Func001002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Fuuma_Die_Func001002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Fuuma_Die_Func001002003002002001001(), Trig_Fuuma_Die_Func001002003002002001002() )
endfunction
function Trig_Fuuma_Die_Func001002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Fuuma_Die_Func001002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Fuuma_Die_Func001002003002002001(), Trig_Fuuma_Die_Func001002003002002002() )
endfunction
function Trig_Fuuma_Die_Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Fuuma_Die_Func001002003002001(), Trig_Fuuma_Die_Func001002003002002() )
endfunction
function Trig_Fuuma_Die_Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Fuuma_Die_Func001002003001(), Trig_Fuuma_Die_Func001002003002() )
endfunction
function Trig_Fuuma_Die_Func004Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A03P', gg_unit_Emoo_0317) == 1 )
endfunction
function Trig_Fuuma_Die_Func004Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A03P', gg_unit_Emoo_0317) == 2 )
endfunction
function Trig_Fuuma_Die_Func004Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A03P', gg_unit_Emoo_0317) == 3 )
endfunction
function Trig_Fuuma_Die_Func004Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A03P', gg_unit_Emoo_0317) == 4 )
endfunction
function Trig_Fuuma_Die_Func004A takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_u004_0538, "thunderbolt", GetEnumUnit() )
if ( Trig_Fuuma_Die_Func004Func002001() ) then
call UnitDamageTargetBJ( gg_unit_Emoo_0317, GetEnumUnit(), 130.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Fuuma_Die_Func004Func003001() ) then
call UnitDamageTargetBJ( gg_unit_Emoo_0317, GetEnumUnit(), 180.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Fuuma_Die_Func004Func004001() ) then
call UnitDamageTargetBJ( gg_unit_Emoo_0317, GetEnumUnit(), 230.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Fuuma_Die_Func004Func005001() ) then
call UnitDamageTargetBJ( gg_unit_Emoo_0317, GetEnumUnit(), 280.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
call AddSpecialEffectTargetUnitBJ( "chest", GetEnumUnit(), "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
function Trig_Fuuma_Die_Actions takes nothing returns nothing
set udg_aGroups[13] = GetUnitsInRangeOfLocMatching(95.00, GetUnitLoc(GetDyingUnit()), Condition(function Trig_Fuuma_Die_Func001002003))
call ForGroupBJ( udg_aGroups[13], function Trig_Fuuma_Die_Func004A )
call RemoveUnit( GetDyingUnit() )
call DestroyGroup (udg_aGroups[13])
set udg_aGroups[13] = null
endfunction
//===========================================================================
function InitTrig_Fuuma_Die takes nothing returns nothing
set gg_trg_Fuuma_Die = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fuuma_Die, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Fuuma_Die, Condition( function Trig_Fuuma_Die_Conditions ) )
call TriggerAddAction( gg_trg_Fuuma_Die, function Trig_Fuuma_Die_Actions )
endfunction
function Trig_Wind_wave_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01L' ) ) then
return false
endif
return true
endfunction
function Trig_Wind_wave_Actions takes nothing returns nothing
set udg_Zpoint[2] = GetUnitLoc(gg_unit_Udre_0037)
set udg_Angle[14] = R2I(AngleBetweenPoints(udg_Zpoint[2], GetSpellTargetLoc()))
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(gg_unit_Udre_0037), udg_Zpoint[2], ( udg_Angle[14] + 20.00 ) )
call UnitAddAbilityBJ( 'A042', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A042', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A01L', gg_unit_Udre_0037) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[2], 256, ( udg_Angle[14] + 20.00 )) )
call UnitApplyTimedLifeBJ( 0.70, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(gg_unit_Udre_0037), udg_Zpoint[2], ( udg_Angle[14] - 20.00 ) )
call UnitAddAbilityBJ( 'A042', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A042', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A01L', gg_unit_Udre_0037) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[2], 256, ( udg_Angle[14] - 20.00 )) )
call UnitApplyTimedLifeBJ( 0.80, 'BTLF', GetLastCreatedUnit() )
call RemoveLocation(udg_Zpoint[2])
set udg_Zpoint[2] = null
endfunction
//===========================================================================
function InitTrig_Wind_wave takes nothing returns nothing
set gg_trg_Wind_wave = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wind_wave, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Wind_wave, Condition( function Trig_Wind_wave_Conditions ) )
call TriggerAddAction( gg_trg_Wind_wave, function Trig_Wind_wave_Actions )
endfunction
function Trig_Wind_storm_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07B' ) ) then
return false
endif
return true
endfunction
function Trig_Wind_storm_Actions takes nothing returns nothing
set udg_Zpoint[3] = GetUnitLoc(gg_unit_Udre_0037)
call SetUnitTimeScalePercent( gg_unit_Udre_0037, 300.00 )
call EnableTrigger( gg_trg_Wind_storm_damage )
call EnableTrigger( gg_trg_Wind_storm_damage_2 )
endfunction
//===========================================================================
function InitTrig_Wind_storm takes nothing returns nothing
set gg_trg_Wind_storm = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wind_storm, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Wind_storm, Condition( function Trig_Wind_storm_Conditions ) )
call TriggerAddAction( gg_trg_Wind_storm, function Trig_Wind_storm_Actions )
endfunction
function Trig_Wind_storm_damage_Actions takes nothing returns nothing
call SetUnitFacingTimed( gg_unit_Udre_0037, ( GetUnitFacing(gg_unit_Udre_0037) + 20.00 ), 0 )
endfunction
//===========================================================================
function InitTrig_Wind_storm_damage takes nothing returns nothing
set gg_trg_Wind_storm_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Wind_storm_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Wind_storm_damage, 0.02 )
call TriggerAddAction( gg_trg_Wind_storm_damage, function Trig_Wind_storm_damage_Actions )
endfunction
function Trig_Wind_storm_damage_2_Func007002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Wind_storm_damage_2_Func007002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Udre_0037)) == true )
endfunction
function Trig_Wind_storm_damage_2_Func007002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Wind_storm_damage_2_Func007002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Wind_storm_damage_2_Func007002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Wind_storm_damage_2_Func007002003002002001001(), Trig_Wind_storm_damage_2_Func007002003002002001002() )
endfunction
function Trig_Wind_storm_damage_2_Func007002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Wind_storm_damage_2_Func007002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Wind_storm_damage_2_Func007002003002002001(), Trig_Wind_storm_damage_2_Func007002003002002002() )
endfunction
function Trig_Wind_storm_damage_2_Func007002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Wind_storm_damage_2_Func007002003002001(), Trig_Wind_storm_damage_2_Func007002003002002() )
endfunction
function Trig_Wind_storm_damage_2_Func007002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Wind_storm_damage_2_Func007002003001(), Trig_Wind_storm_damage_2_Func007002003002() )
endfunction
function Trig_Wind_storm_damage_2_Func008Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07B', gg_unit_Udre_0037) == 1 )
endfunction
function Trig_Wind_storm_damage_2_Func008Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07B', gg_unit_Udre_0037) == 2 )
endfunction
function Trig_Wind_storm_damage_2_Func008Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07B', gg_unit_Udre_0037) == 3 )
endfunction
function Trig_Wind_storm_damage_2_Func008Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07B', gg_unit_Udre_0037) == 4 )
endfunction
function Trig_Wind_storm_damage_2_Func008A takes nothing returns nothing
if ( Trig_Wind_storm_damage_2_Func008Func001001() ) then
call UnitDamageTargetBJ( gg_unit_Udre_0037, GetEnumUnit(), 14.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Wind_storm_damage_2_Func008Func002001() ) then
call UnitDamageTargetBJ( gg_unit_Udre_0037, GetEnumUnit(), 22.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Wind_storm_damage_2_Func008Func003001() ) then
call UnitDamageTargetBJ( gg_unit_Udre_0037, GetEnumUnit(), 28.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Wind_storm_damage_2_Func008Func004001() ) then
call UnitDamageTargetBJ( gg_unit_Udre_0037, GetEnumUnit(), 32.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
endfunction
function Trig_Wind_storm_damage_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h00Z', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[3], GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 240.00 )
call UnitApplyTimedLifeBJ( 0.16, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h010', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[3], GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 240.00 )
call UnitApplyTimedLifeBJ( 0.16, 'Bapl', GetLastCreatedUnit() )
set udg_aGroups[15] = GetUnitsInRangeOfLocMatching(500.00, udg_Zpoint[3], Condition(function Trig_Wind_storm_damage_2_Func007002003))
call ForGroupBJ( udg_aGroups[15], function Trig_Wind_storm_damage_2_Func008A )
call DestroyGroup (udg_aGroups[15])
set udg_aGroups[15] = null
endfunction
//===========================================================================
function InitTrig_Wind_storm_damage_2 takes nothing returns nothing
set gg_trg_Wind_storm_damage_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Wind_storm_damage_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Wind_storm_damage_2, 0.16 )
call TriggerAddAction( gg_trg_Wind_storm_damage_2, function Trig_Wind_storm_damage_2_Actions )
endfunction
function Trig_Wind_storm_end_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07B' ) ) then
return false
endif
return true
endfunction
function Trig_Wind_storm_end_Actions takes nothing returns nothing
call SetUnitTimeScalePercent( gg_unit_Udre_0037, 100.00 )
call RemoveLocation(udg_Zpoint[3])
set udg_Zpoint[3] = null
call DisableTrigger( gg_trg_Wind_storm_damage )
call DisableTrigger( gg_trg_Wind_storm_damage_2 )
endfunction
//===========================================================================
function InitTrig_Wind_storm_end takes nothing returns nothing
set gg_trg_Wind_storm_end = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wind_storm_end, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerAddCondition( gg_trg_Wind_storm_end, Condition( function Trig_Wind_storm_end_Conditions ) )
call TriggerAddAction( gg_trg_Wind_storm_end, function Trig_Wind_storm_end_Actions )
endfunction
function Trig_Wood_health_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01O' ) ) then
return false
endif
return true
endfunction
function Trig_Wood_health_Actions takes nothing returns nothing
set udg_Zpoint[4] = GetUnitLoc(gg_unit_Udre_0037)
call PauseUnitBJ( true, gg_unit_Udre_0037 )
call UnitAddAbilityBJ( 'A06Y', gg_unit_Udre_0037 )
call AddSpecialEffectLocBJ( udg_Zpoint[4], "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'h012', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[4], GetRandomDirectionDeg() )
call UnitApplyTimedLifeBJ( 3.00, 'Brai', GetLastCreatedUnit() )
call SetUnitScalePercent( GetLastCreatedUnit(), 10.00, 10.00, 10.00 )
set udg_PeinReal[193] = 10.00
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 44
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 0.00 )
set udg_PeinReal[193] = ( udg_PeinReal[193] + 0.30 )
call SetUnitScalePercent( GetLastCreatedUnit(), udg_PeinReal[193], udg_PeinReal[193], udg_PeinReal[193] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call UnitRemoveAbilityBJ( 'A06Y', gg_unit_Udre_0037 )
call PauseUnitBJ( false, gg_unit_Udre_0037 )
call AddSpecialEffectLocBJ( udg_Zpoint[4], "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_PeinReal[193] = 0.00
call RemoveLocation(udg_Zpoint[4])
set udg_Zpoint[4] = null
endfunction
//===========================================================================
function InitTrig_Wood_health takes nothing returns nothing
set gg_trg_Wood_health = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wood_health, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Wood_health, Condition( function Trig_Wood_health_Conditions ) )
call TriggerAddAction( gg_trg_Wood_health, function Trig_Wood_health_Actions )
endfunction
function Trig_Baku_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A032' ) ) then
return false
endif
return true
endfunction
function Trig_Baku_Func020001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A032', gg_unit_Udre_0037) == 1 )
endfunction
function Trig_Baku_Func021001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A032', gg_unit_Udre_0037) == 2 )
endfunction
function Trig_Baku_Func022001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A032', gg_unit_Udre_0037) == 3 )
endfunction
function Trig_Baku_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h014', Player(PLAYER_NEUTRAL_PASSIVE), PolarProjectionBJ(GetUnitLoc(gg_unit_Udre_0037), 256.00, GetUnitFacing(gg_unit_Udre_0037)), GetUnitFacing(gg_unit_Udre_0037) )
set udg_Danzou[0] = GetLastCreatedUnit()
set udg_Ypoint[19] = GetUnitLoc(udg_Danzou[0])
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Kachiose.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'h011', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetLastCreatedUnit()), GetUnitFacing(gg_unit_Udre_0037) )
set udg_Danzou[1] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'h015', GetOwningPlayer(gg_unit_Udre_0037), PolarProjectionBJ(GetUnitLoc(udg_Danzou[0]), 400.00, GetUnitFacing(udg_Danzou[0])), GetUnitFacing(udg_Danzou[0]) )
call SetUnitScalePercent( GetLastCreatedUnit(), 170.00, 170.00, 170.00 )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 1000.00 )
set udg_Danzou[2] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'h015', GetOwningPlayer(gg_unit_Udre_0037), PolarProjectionBJ(GetUnitLoc(udg_Danzou[0]), 640.00, GetUnitFacing(udg_Danzou[0])), GetUnitFacing(udg_Danzou[0]) )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 1000.00 )
set udg_Danzou[3] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'h015', GetOwningPlayer(gg_unit_Udre_0037), PolarProjectionBJ(GetUnitLoc(udg_Danzou[0]), 840.00, GetUnitFacing(udg_Danzou[0])), GetUnitFacing(udg_Danzou[0]) )
call SetUnitScalePercent( GetLastCreatedUnit(), 300.00, 300.00, 300.00 )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 1000.00 )
set udg_Danzou[4] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_Baku_Move )
if ( Trig_Baku_Func020001() ) then
call TriggerSleepAction( 8.00 )
else
call DoNothing( )
endif
if ( Trig_Baku_Func021001() ) then
call TriggerSleepAction( 16.00 )
else
call DoNothing( )
endif
if ( Trig_Baku_Func022001() ) then
call TriggerSleepAction( 24.00 )
else
call DoNothing( )
endif
call DisableTrigger( gg_trg_Baku_Move )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Danzou[0]), "Kachiose.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation( udg_Ypoint[19] )
set udg_Ypoint[19] = null
call RemoveUnit( udg_Danzou[0] )
call RemoveUnit( udg_Danzou[1] )
call RemoveUnit( udg_Danzou[2] )
call RemoveUnit( udg_Danzou[3] )
call RemoveUnit( udg_Danzou[4] )
set udg_Danzou[0] = null
set udg_Danzou[1] = null
set udg_Danzou[2] = null
set udg_Danzou[3] = null
set udg_Danzou[4] = null
endfunction
//===========================================================================
function InitTrig_Baku takes nothing returns nothing
set gg_trg_Baku = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Baku, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Baku, Condition( function Trig_Baku_Conditions ) )
call TriggerAddAction( gg_trg_Baku, function Trig_Baku_Actions )
endfunction
function Trig_Baku_Move_Func001002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Baku_Move_Func001002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Udre_0037)) == true )
endfunction
function Trig_Baku_Move_Func001002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Baku_Move_Func001002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Baku_Move_Func001002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func001002003002002001001(), Trig_Baku_Move_Func001002003002002001002() )
endfunction
function Trig_Baku_Move_Func001002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Baku_Move_Func001002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func001002003002002001(), Trig_Baku_Move_Func001002003002002002() )
endfunction
function Trig_Baku_Move_Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func001002003002001(), Trig_Baku_Move_Func001002003002002() )
endfunction
function Trig_Baku_Move_Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func001002003001(), Trig_Baku_Move_Func001002003002() )
endfunction
function Trig_Baku_Move_Func002A takes nothing returns nothing
call IssueImmediateOrderBJ( GetEnumUnit(), "stop" )
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), 10.00, AngleBetweenPoints(GetUnitLoc(GetEnumUnit()), PolarProjectionBJ(udg_Ypoint[19], 200.00, GetUnitFacing(udg_Danzou[0])))) )
endfunction
function Trig_Baku_Move_Func005002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Baku_Move_Func005002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Udre_0037)) == true )
endfunction
function Trig_Baku_Move_Func005002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Baku_Move_Func005002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Baku_Move_Func005002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func005002003002002001001(), Trig_Baku_Move_Func005002003002002001002() )
endfunction
function Trig_Baku_Move_Func005002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Baku_Move_Func005002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func005002003002002001(), Trig_Baku_Move_Func005002003002002002() )
endfunction
function Trig_Baku_Move_Func005002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func005002003002001(), Trig_Baku_Move_Func005002003002002() )
endfunction
function Trig_Baku_Move_Func005002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func005002003001(), Trig_Baku_Move_Func005002003002() )
endfunction
function Trig_Baku_Move_Func006A takes nothing returns nothing
call IssueImmediateOrderBJ( GetEnumUnit(), "stop" )
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), 10.00, AngleBetweenPoints(GetUnitLoc(GetEnumUnit()), PolarProjectionBJ(udg_Ypoint[19], 200.00, GetUnitFacing(udg_Danzou[0])))) )
endfunction
function Trig_Baku_Move_Func009002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Baku_Move_Func009002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Udre_0037)) == true )
endfunction
function Trig_Baku_Move_Func009002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Baku_Move_Func009002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Baku_Move_Func009002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func009002003002002001001(), Trig_Baku_Move_Func009002003002002001002() )
endfunction
function Trig_Baku_Move_Func009002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Baku_Move_Func009002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func009002003002002001(), Trig_Baku_Move_Func009002003002002002() )
endfunction
function Trig_Baku_Move_Func009002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func009002003002001(), Trig_Baku_Move_Func009002003002002() )
endfunction
function Trig_Baku_Move_Func009002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Baku_Move_Func009002003001(), Trig_Baku_Move_Func009002003002() )
endfunction
function Trig_Baku_Move_Func010A takes nothing returns nothing
call IssueImmediateOrderBJ( GetEnumUnit(), "stop" )
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), 10.00, AngleBetweenPoints(GetUnitLoc(GetEnumUnit()), PolarProjectionBJ(udg_Ypoint[19], 200.00, GetUnitFacing(udg_Danzou[0])))) )
endfunction
function Trig_Baku_Move_Actions takes nothing returns nothing
set udg_aGroups[16] = GetUnitsInRangeOfLocMatching(300.00, PolarProjectionBJ(udg_Ypoint[19], 800.00, GetUnitFacing(udg_Danzou[0])), Condition(function Trig_Baku_Move_Func001002003))
call ForGroupBJ( udg_aGroups[16], function Trig_Baku_Move_Func002A )
call DestroyGroup (udg_aGroups[16])
set udg_aGroups[16] = null
set udg_aGroups[17] = GetUnitsInRangeOfLocMatching(300.00, PolarProjectionBJ(udg_Ypoint[19], 600.00, GetUnitFacing(udg_Danzou[0])), Condition(function Trig_Baku_Move_Func005002003))
call ForGroupBJ( udg_aGroups[17], function Trig_Baku_Move_Func006A )
call DestroyGroup (udg_aGroups[17])
set udg_aGroups[17] = null
set udg_aGroups[18] = GetUnitsInRangeOfLocMatching(300.00, PolarProjectionBJ(udg_Ypoint[19], 300.00, GetUnitFacing(udg_Danzou[0])), Condition(function Trig_Baku_Move_Func009002003))
call ForGroupBJ( udg_aGroups[18], function Trig_Baku_Move_Func010A )
call DestroyGroup (udg_aGroups[18])
set udg_aGroups[18] = null
call SetUnitAnimationWithRarity( udg_Danzou[2], "birth", RARITY_RARE )
call SetUnitAnimationWithRarity( udg_Danzou[3], "birth 4", RARITY_RARE )
call SetUnitAnimationWithRarity( udg_Danzou[4], "birth 2", RARITY_RARE )
endfunction
//===========================================================================
function InitTrig_Baku_Move takes nothing returns nothing
set gg_trg_Baku_Move = CreateTrigger( )
call DisableTrigger( gg_trg_Baku_Move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Baku_Move, 0.03 )
call TriggerAddAction( gg_trg_Baku_Move, function Trig_Baku_Move_Actions )
endfunction
function Trig_Manda_Die_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n009' ) ) then
return false
endif
return true
endfunction
function Trig_Manda_Die_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetDyingUnit()), "Kachiose.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Manda_Die takes nothing returns nothing
set gg_trg_Manda_Die = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Manda_Die, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Manda_Die, Condition( function Trig_Manda_Die_Conditions ) )
call TriggerAddAction( gg_trg_Manda_Die, function Trig_Manda_Die_Actions )
endfunction
function Trig_Edo_tensei_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'Scri' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func001C takes nothing returns boolean
if ( not ( udg_Hero2[88] == null ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
if ( not ( udg_Hero2[89] == null ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func001C takes nothing returns boolean
if ( not ( udg_Hero2[90] == null ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( udg_Hero2[304] == null ) ) then
return false
endif
if ( not ( IsUnitDeadBJ(gg_unit_Ewrd_0200) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[303] == null ) ) then
return false
endif
if ( not ( IsUnitDeadBJ(gg_unit_Emns_0226) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[302] == null ) ) then
return false
endif
if ( not ( IsUnitDeadBJ(gg_unit_Ewar_0027) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[301] == null ) ) then
return false
endif
if ( not ( IsUnitDeadBJ(gg_unit_Eevi_0201) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[300] == null ) ) then
return false
endif
if ( not ( IsUnitDeadBJ(gg_unit_Ucrl_0057) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[99] == null ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'nrdr' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[97] == null ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[96] == null ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[95] == null ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[94] == null ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[93] == null ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001Func002C takes nothing returns boolean
if ( not ( udg_Hero2[92] == null ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002Func002C takes nothing returns boolean
if ( not ( udg_Hero2[91] == null ) ) then
return false
endif
if ( not ( IsUnitType(GetSpellTargetUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00Q' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00R' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00V' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00S' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00T' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00W' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00U' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u00X' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u017' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) != 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002Func002C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func002Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002Func002C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func002Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001Func002C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func002Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Func001C takes nothing returns boolean
if ( not Trig_Edo_tensei_Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_tensei_Actions takes nothing returns nothing
if ( Trig_Edo_tensei_Func001C() ) then
set udg_EdoUnit[0] = GetSpellTargetUnit()
set udg_Zpoint[41] = GetUnitLoc(udg_EdoUnit[0])
call PauseUnitBJ( true, udg_EdoUnit[0] )
call SetUnitInvulnerable( udg_EdoUnit[0], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[41], GetUnitFacing(udg_EdoUnit[0]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[41], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[0] )
call CreateNUnitsAtLoc( 1, 'Udea', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[41], GetUnitFacing(udg_EdoUnit[0]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[88] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[41])
set udg_Zpoint[41] = null
else
if ( Trig_Edo_tensei_Func001Func002C() ) then
set udg_EdoUnit[1] = GetSpellTargetUnit()
set udg_Zpoint[52] = GetUnitLoc(udg_EdoUnit[1])
call PauseUnitBJ( true, udg_EdoUnit[1] )
call SetUnitInvulnerable( udg_EdoUnit[1], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[52], GetUnitFacing(udg_EdoUnit[1]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[52], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[1] )
call CreateNUnitsAtLoc( 1, 'Ekee', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[52], GetUnitFacing(udg_EdoUnit[1]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[89] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[52])
set udg_Zpoint[52] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002C() ) then
set udg_EdoUnit[2] = GetSpellTargetUnit()
set udg_Zpoint[43] = GetUnitLoc(udg_EdoUnit[2])
call PauseUnitBJ( true, udg_EdoUnit[2] )
call SetUnitInvulnerable( udg_EdoUnit[2], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[43], GetUnitFacing(udg_EdoUnit[2]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[43], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[2] )
call CreateNUnitsAtLoc( 1, 'Efur', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[43], GetUnitFacing(udg_EdoUnit[2]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[90] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[43])
set udg_Zpoint[43] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002C() ) then
set udg_EdoUnit[3] = GetSpellTargetUnit()
set udg_Zpoint[44] = GetUnitLoc(udg_EdoUnit[3])
call PauseUnitBJ( true, udg_EdoUnit[3] )
call SetUnitInvulnerable( udg_EdoUnit[3], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[44], GetUnitFacing(udg_EdoUnit[3]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[44], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[3] )
call CreateNUnitsAtLoc( 1, 'Nbst', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[44], GetUnitFacing(udg_EdoUnit[3]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[91] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[44])
set udg_Zpoint[44] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001C() ) then
set udg_EdoUnit[4] = GetSpellTargetUnit()
set udg_Zpoint[45] = GetUnitLoc(udg_EdoUnit[4])
call PauseUnitBJ( true, udg_EdoUnit[4] )
call SetUnitInvulnerable( udg_EdoUnit[4], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[45], GetUnitFacing(udg_EdoUnit[4]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[45], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[4] )
call CreateNUnitsAtLoc( 1, 'Nbrn', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[45], GetUnitFacing(udg_EdoUnit[4]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[92] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[45])
set udg_Zpoint[45] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001C() ) then
set udg_EdoUnit[5] = GetSpellTargetUnit()
set udg_Zpoint[46] = GetUnitLoc(udg_EdoUnit[5])
call PauseUnitBJ( true, udg_EdoUnit[5] )
call SetUnitInvulnerable( udg_EdoUnit[5], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[46], GetUnitFacing(udg_EdoUnit[5]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[46], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[5] )
call CreateNUnitsAtLoc( 1, 'Osam', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[46], GetUnitFacing(udg_EdoUnit[5]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[93] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[46])
set udg_Zpoint[46] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001C() ) then
set udg_EdoUnit[6] = GetSpellTargetUnit()
set udg_Zpoint[47] = GetUnitLoc(udg_EdoUnit[6])
call PauseUnitBJ( true, udg_EdoUnit[6] )
call SetUnitInvulnerable( udg_EdoUnit[6], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[47], GetUnitFacing(udg_EdoUnit[6]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[47], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[6] )
call CreateNUnitsAtLoc( 1, 'Nplh', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[47], GetUnitFacing(udg_EdoUnit[6]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[94] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[47])
set udg_Zpoint[47] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001C() ) then
set udg_EdoUnit[7] = GetSpellTargetUnit()
set udg_Zpoint[48] = GetUnitLoc(udg_EdoUnit[7])
call PauseUnitBJ( true, udg_EdoUnit[7] )
call SetUnitInvulnerable( udg_EdoUnit[7], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[48], GetUnitFacing(udg_EdoUnit[7]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[48], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[7] )
call CreateNUnitsAtLoc( 1, 'E002', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[48], GetUnitFacing(udg_EdoUnit[7]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[95] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[48])
set udg_Zpoint[48] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001C() ) then
set udg_EdoUnit[8] = GetSpellTargetUnit()
set udg_Zpoint[49] = GetUnitLoc(udg_EdoUnit[8])
call PauseUnitBJ( true, udg_EdoUnit[8] )
call SetUnitInvulnerable( udg_EdoUnit[8], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[49], GetUnitFacing(udg_EdoUnit[8]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[49], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[8] )
call CreateNUnitsAtLoc( 1, 'Nfir', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[49], GetUnitFacing(udg_EdoUnit[8]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[96] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[49])
set udg_Zpoint[49] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_EdoUnit[9] = GetSpellTargetUnit()
set udg_Zpoint[50] = GetUnitLoc(udg_EdoUnit[9])
call PauseUnitBJ( true, udg_EdoUnit[9] )
call SetUnitInvulnerable( udg_EdoUnit[9], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[50], GetUnitFacing(udg_EdoUnit[9]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[50], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[9] )
call CreateNUnitsAtLoc( 1, 'Ubal', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[50], GetUnitFacing(udg_EdoUnit[9]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[97] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[50])
set udg_Zpoint[50] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_EdoUnit[10] = GetSpellTargetUnit()
set udg_Zpoint[51] = GetUnitLoc(udg_EdoUnit[10])
call PauseUnitBJ( true, udg_EdoUnit[10] )
call SetUnitInvulnerable( udg_EdoUnit[10], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[10]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectTargetUnitBJ( "chest", udg_EdoUnit[10], "Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[10] )
call CreateNUnitsAtLoc( 1, 'nbwm', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[10]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[99] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[51])
set udg_Zpoint[51] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_EdoUnit[11] = GetSpellTargetUnit()
set udg_Zpoint[51] = GetUnitLoc(udg_EdoUnit[11])
call PauseUnitBJ( true, udg_EdoUnit[11] )
call SetUnitInvulnerable( udg_EdoUnit[11], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[11]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[51], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[11] )
call CreateNUnitsAtLoc( 1, 'Ucrl', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[11]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[300] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[51])
set udg_Zpoint[51] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_EdoUnit[12] = GetSpellTargetUnit()
set udg_Zpoint[51] = GetUnitLoc(udg_EdoUnit[12])
call PauseUnitBJ( true, udg_EdoUnit[12] )
call SetUnitInvulnerable( udg_EdoUnit[12], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[12]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[51], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[12] )
call CreateNUnitsAtLoc( 1, 'Eevi', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[12]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[301] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[51])
set udg_Zpoint[51] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_EdoUnit[13] = GetSpellTargetUnit()
set udg_Zpoint[51] = GetUnitLoc(udg_EdoUnit[13])
call PauseUnitBJ( true, udg_EdoUnit[13] )
call SetUnitInvulnerable( udg_EdoUnit[13], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[13]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[51], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[13] )
call CreateNUnitsAtLoc( 1, 'Ewar', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[13]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[302] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[51])
set udg_Zpoint[51] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_EdoUnit[14] = GetSpellTargetUnit()
set udg_Zpoint[51] = GetUnitLoc(udg_EdoUnit[14])
call PauseUnitBJ( true, udg_EdoUnit[14] )
call SetUnitInvulnerable( udg_EdoUnit[14], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[14]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[51], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[14] )
call CreateNUnitsAtLoc( 1, 'Emns', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[14]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[303] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[51])
set udg_Zpoint[51] = null
else
if ( Trig_Edo_tensei_Func001Func002Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_EdoUnit[15] = GetSpellTargetUnit()
set udg_Zpoint[51] = GetUnitLoc(udg_EdoUnit[15])
call PauseUnitBJ( true, udg_EdoUnit[15] )
call SetUnitInvulnerable( udg_EdoUnit[15], true )
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[15]) )
call UnitApplyTimedLifeBJ( 1.61, 'Brai', GetLastCreatedUnit() )
set udg_Orocgimaru[142] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[142], "Spell One" )
call TriggerSleepAction( 0.61 )
call SetUnitAnimation( udg_Orocgimaru[142], "Spell Channel" )
call AddSpecialEffectLocBJ( udg_Zpoint[51], "Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 1.00 )
set udg_Orocgimaru[142] = null
call ShowUnitHide( udg_EdoUnit[15] )
call CreateNUnitsAtLoc( 1, 'Ewrd', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[51], GetUnitFacing(udg_EdoUnit[15]) )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitAddAbilityBJ( 'A05O', GetLastCreatedUnit() )
call SetUnitColor( GetLastCreatedUnit(), ConvertPlayerColor(12) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 40.00, 40.00, 40.00, 0 )
set udg_Hero2[304] = GetLastCreatedUnit()
call RemoveLocation(udg_Zpoint[51])
set udg_Zpoint[51] = null
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Edo_tensei takes nothing returns nothing
set gg_trg_Edo_tensei = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Edo_tensei, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Edo_tensei, Condition( function Trig_Edo_tensei_Conditions ) )
call TriggerAddAction( gg_trg_Edo_tensei, function Trig_Edo_tensei_Actions )
endfunction
function Trig_Edo_Tensei_die_Func001Func002Func002C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[88]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func002C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func002Func002C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func003Func001C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[89]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func003C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func004Func001C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[90]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func004C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func005Func001C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[91]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func005C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func005Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func006Func001C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[92]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func006C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func006Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func007Func001C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[93]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func007C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func007Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func008Func001C takes nothing returns boolean
if ( not ( udg_Hero2[94] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[94]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[94]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func008C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func008Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func009Func001C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[95]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func009C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func009Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func010Func001C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[96]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func010C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func010Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func011Func001C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[97]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func011C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func012Func001C takes nothing returns boolean
if ( not ( udg_Hero2[99] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[99]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[99]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func012C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func012Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func013Func001C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func013C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func013Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func014Func001C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func014C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func014Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func015Func001C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func015C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func015Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func016Func001C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func016C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func016Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func017Func001C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func001Func017C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func001Func017Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func002Func001C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[88] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func002C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func002Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func003Func001C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[89] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func003C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func004Func001C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[90] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func004C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func005Func001C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[91] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func005C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func005Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func006Func015C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[92] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func006C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func006Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func007Func015C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[93] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func007C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func007Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func008Func015C takes nothing returns boolean
if ( not ( udg_Hero2[94] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[94] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[94]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func008C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func008Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func009Func015C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[95] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func009C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func009Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func010Func015C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[96] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func010C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func010Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func011Func001C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[97] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func011C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func011Func001C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func012Func015C takes nothing returns boolean
if ( not ( udg_Hero2[99] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[99] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[99]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func012C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func012Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func013Func015C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[300] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func013C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func013Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func014Func015C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[301] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func014C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func014Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func015Func015C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[302] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func015C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func015Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func016Func015C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[303] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func016C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func016Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func017Func015C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( GetTriggerUnit() == udg_Hero2[304] ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Func017C takes nothing returns boolean
if ( not Trig_Edo_Tensei_die_Func017Func015C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_die_Actions takes nothing returns nothing
if ( Trig_Edo_Tensei_die_Func002C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[0]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[0], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[0] )
call RemoveUnit( udg_Hero2[88] )
call ShowUnitShow( udg_EdoUnit[0] )
call SetUnitInvulnerable( udg_EdoUnit[0], false )
set udg_Hero2[88] = null
set udg_EdoUnit[0] = null
else
endif
if ( Trig_Edo_Tensei_die_Func003C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[1]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[1], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[1] )
call RemoveUnit( udg_Hero2[89] )
call ShowUnitShow( udg_EdoUnit[1] )
call SetUnitInvulnerable( udg_EdoUnit[1], false )
set udg_Hero2[89] = null
set udg_EdoUnit[1] = null
else
endif
if ( Trig_Edo_Tensei_die_Func004C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[2]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[2], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[2] )
call RemoveUnit( udg_Hero2[90] )
call ShowUnitShow( udg_EdoUnit[2] )
call SetUnitInvulnerable( udg_EdoUnit[2], false )
set udg_Hero2[90] = null
set udg_EdoUnit[2] = null
else
endif
if ( Trig_Edo_Tensei_die_Func005C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[3]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[3], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[3] )
call RemoveUnit( udg_Hero2[91] )
call ShowUnitShow( udg_EdoUnit[3] )
call SetUnitInvulnerable( udg_EdoUnit[3], false )
set udg_Hero2[91] = null
set udg_EdoUnit[3] = null
else
endif
if ( Trig_Edo_Tensei_die_Func006C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[4]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[4], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[4] )
call RemoveUnit( udg_Hero2[92] )
call ShowUnitShow( udg_EdoUnit[4] )
call SetUnitInvulnerable( udg_EdoUnit[4], false )
set udg_Hero2[92] = null
set udg_EdoUnit[4] = null
else
endif
if ( Trig_Edo_Tensei_die_Func007C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[5]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[5], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[5] )
call RemoveUnit( udg_Hero2[93] )
call ShowUnitShow( udg_EdoUnit[5] )
call SetUnitInvulnerable( udg_EdoUnit[5], false )
set udg_Hero2[93] = null
set udg_EdoUnit[5] = null
else
endif
if ( Trig_Edo_Tensei_die_Func008C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[6]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[6], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[6] )
call RemoveUnit( udg_Hero2[94] )
call ShowUnitShow( udg_EdoUnit[6] )
call SetUnitInvulnerable( udg_EdoUnit[6], false )
set udg_Hero2[94] = null
set udg_EdoUnit[6] = null
else
endif
if ( Trig_Edo_Tensei_die_Func009C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[7]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[7], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[7] )
call RemoveUnit( udg_Hero2[95] )
call ShowUnitShow( udg_EdoUnit[7] )
call SetUnitInvulnerable( udg_EdoUnit[7], false )
set udg_Hero2[95] = null
set udg_EdoUnit[7] = null
else
endif
if ( Trig_Edo_Tensei_die_Func010C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[8]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[8], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[8] )
call RemoveUnit( udg_Hero2[96] )
call ShowUnitShow( udg_EdoUnit[8] )
call SetUnitInvulnerable( udg_EdoUnit[8], false )
set udg_Hero2[96] = null
set udg_EdoUnit[8] = null
else
endif
if ( Trig_Edo_Tensei_die_Func011C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[9]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[9], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[9] )
call RemoveUnit( udg_Hero2[97] )
call ShowUnitShow( udg_EdoUnit[9] )
call SetUnitInvulnerable( udg_EdoUnit[9], false )
set udg_Hero2[97] = null
set udg_EdoUnit[9] = null
else
endif
if ( Trig_Edo_Tensei_die_Func012C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[10]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[10], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[10] )
call RemoveUnit( udg_Hero2[99] )
call ShowUnitShow( udg_EdoUnit[10] )
call SetUnitInvulnerable( udg_EdoUnit[10], false )
set udg_Hero2[99] = null
set udg_EdoUnit[10] = null
else
endif
if ( Trig_Edo_Tensei_die_Func013C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[11]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[11], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[11] )
call SetUnitInvulnerable( udg_EdoUnit[11], false )
call RemoveUnit( udg_Hero2[300] )
call ShowUnitShow( udg_EdoUnit[11] )
set udg_Hero2[300] = null
set udg_EdoUnit[11] = null
else
endif
if ( Trig_Edo_Tensei_die_Func014C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[12]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[12], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[12] )
call SetUnitInvulnerable( udg_EdoUnit[12], false )
call RemoveUnit( udg_Hero2[301] )
call ShowUnitShow( udg_EdoUnit[12] )
set udg_Hero2[301] = null
set udg_EdoUnit[12] = null
else
endif
if ( Trig_Edo_Tensei_die_Func015C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[13]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[13], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[13] )
call SetUnitInvulnerable( udg_EdoUnit[13], false )
call RemoveUnit( udg_Hero2[302] )
call ShowUnitShow( udg_EdoUnit[13] )
set udg_Hero2[302] = null
set udg_EdoUnit[13] = null
else
endif
if ( Trig_Edo_Tensei_die_Func016C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[14]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[14], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[14] )
call SetUnitInvulnerable( udg_EdoUnit[14], false )
call RemoveUnit( udg_Hero2[303] )
call ShowUnitShow( udg_EdoUnit[14] )
set udg_Hero2[303] = null
set udg_EdoUnit[14] = null
else
endif
if ( Trig_Edo_Tensei_die_Func017C() ) then
set udg_Zpoint[42] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'hdhw', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[42], GetUnitFacing(udg_EdoUnit[15]) )
call UnitApplyTimedLifeBJ( 2.00, 'Brai', GetLastCreatedUnit() )
call SetUnitPositionLocFacingBJ( udg_EdoUnit[15], udg_Zpoint[42], GetUnitFacing(GetTriggerUnit()) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
call RemoveLocation(udg_Zpoint[42])
set udg_Zpoint[42] = null
call TriggerSleepAction( 0.10 )
call KillUnit( udg_EdoUnit[15] )
call SetUnitInvulnerable( udg_EdoUnit[15], false )
call RemoveUnit( udg_Hero2[304] )
call ShowUnitShow( udg_EdoUnit[15] )
set udg_Hero2[304] = null
set udg_EdoUnit[15] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Edo_Tensei_die takes nothing returns nothing
set gg_trg_Edo_Tensei_die = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Edo_Tensei_die, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Edo_Tensei_die, function Trig_Edo_Tensei_die_Actions )
endfunction
function Trig_Edo_Tensei_Kachyose_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09D' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func002Func008C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[88]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func002C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func002Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func003Func008C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[89]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func003C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func003Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func004Func008C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[90]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func004C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func004Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func005Func008C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[91]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func005C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func005Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func006Func008C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[92]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func006C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func006Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func007Func008C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[93]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func007C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func007Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func008Func008C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[95]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func008C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func008Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func009Func008C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[96]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func009C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func009Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func010Func008C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[97]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func010C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func010Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func011Func008C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[300]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func011C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func011Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func012Func008C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[301]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func012C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func012Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func013Func008C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[302]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func013C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func013Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func014Func008C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[303]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func014C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func014Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func015Func008C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[304]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func015C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func015Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func017Func003C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[88]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func017C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func017Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func018Func003C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[89]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func018C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func018Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func019Func003C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[90]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func019C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func019Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func020Func003C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[91]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func020C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func020Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func021Func003C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[92]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func021C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func021Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func022Func003C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[93]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func022C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func022Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func023Func003C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[95]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func023C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func023Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func024Func003C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[96]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func024C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func024Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func025Func003C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[97]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func025C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func025Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func026Func003C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[300]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func026C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func026Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func027Func003C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[301]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func027C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func027Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func028Func003C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[302]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func028C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func028Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func029Func003C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[303]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func029C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func029Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func030Func003C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[304]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func030C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func030Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func032Func008C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[88]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func032C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func032Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func033Func008C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[89]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func033C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func033Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func034Func008C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[90]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func034C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func034Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func035Func008C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[91]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func035C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func035Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func036Func008C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[92]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func036C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func036Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func037Func008C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[93]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func037C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func037Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func038Func008C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[95]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func038C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func038Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func039Func008C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[96]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func039C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func039Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func040Func008C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[97]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func040C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func040Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func041Func008C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[300]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func041C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func041Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func042Func008C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[301]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func042C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func042Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func043Func008C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[302]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func043C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func043Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func044Func008C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[303]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func044C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func044Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func045Func008C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[304]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func045C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func045Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func049Func004C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[88]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func049C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func049Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func050Func004C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[89]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func050C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func050Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func051Func004C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[90]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func051C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func051Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func052Func004C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[91]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func052C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func052Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func053Func004C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[92]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func053C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func053Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func054Func004C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[93]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func054C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func054Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func055Func004C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[95]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func055C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func055Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func056Func004C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[96]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func056C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func056Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func057Func004C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[97]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func057C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func057Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func058Func004C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[300]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func058C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func058Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func059Func004C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[301]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func059C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func059Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func060Func004C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[302]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func060C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func060Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func061Func004C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[303]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func061C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func061Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func062Func004C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[304]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func062C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func062Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func064Func008C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[88]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func064C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func064Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func065Func008C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[89]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func065C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func065Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func066Func008C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[90]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func066C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func066Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func067Func008C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[91]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func067C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func067Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func068Func008C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[92]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func068C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func068Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func069Func008C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[93]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func069C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func069Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func070Func008C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[95]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func070C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func070Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func071Func008C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[96]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func071C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func071Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func072Func008C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[97]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func072C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func072Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func073Func008C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[300]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func073C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func073Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func074Func008C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[301]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func074C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func074Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func075Func008C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[302]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func075C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func075Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func076Func008C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[303]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func076C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func076Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func077Func008C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[304]) == GetOwningPlayer(gg_unit_Hant_0621) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Func077C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose_Func077Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose_Actions takes nothing returns nothing
set udg_Zpoint[54] = GetUnitLoc(gg_unit_Hant_0621)
if ( Trig_Edo_Tensei_Kachyose_Func002C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[88]), GetUnitFacing(udg_Hero2[88]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[0] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[88] )
call SetUnitInvulnerable( udg_Hero2[88], true )
call SetUnitPathing( udg_Hero2[88], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func003C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[89]), GetUnitFacing(udg_Hero2[89]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[1] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[89] )
call SetUnitInvulnerable( udg_Hero2[89], true )
call SetUnitPathing( udg_Hero2[89], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func004C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[90]), GetUnitFacing(udg_Hero2[90]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[2] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[90] )
call SetUnitInvulnerable( udg_Hero2[90], true )
call SetUnitPathing( udg_Hero2[90], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func005C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[91]), GetUnitFacing(udg_Hero2[91]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[3] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[91] )
call SetUnitInvulnerable( udg_Hero2[91], true )
call SetUnitPathing( udg_Hero2[91], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func006C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[92]), GetUnitFacing(udg_Hero2[92]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[4] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[92] )
call SetUnitInvulnerable( udg_Hero2[92], true )
call SetUnitPathing( udg_Hero2[92], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func007C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[93]), GetUnitFacing(udg_Hero2[93]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[5] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[93] )
call SetUnitInvulnerable( udg_Hero2[93], true )
call SetUnitPathing( udg_Hero2[93], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func008C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[95]), GetUnitFacing(udg_Hero2[95]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[7] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[95] )
call SetUnitInvulnerable( udg_Hero2[95], true )
call SetUnitPathing( udg_Hero2[95], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func009C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[96]), GetUnitFacing(udg_Hero2[96]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[8] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[96] )
call SetUnitInvulnerable( udg_Hero2[96], true )
call SetUnitPathing( udg_Hero2[96], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func010C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[97]), GetUnitFacing(udg_Hero2[97]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[9] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[97] )
call SetUnitInvulnerable( udg_Hero2[97], true )
call SetUnitPathing( udg_Hero2[97], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func011C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[300]), GetUnitFacing(udg_Hero2[300]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[10] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[300] )
call SetUnitInvulnerable( udg_Hero2[300], true )
call SetUnitPathing( udg_Hero2[300], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func012C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[301]), GetUnitFacing(udg_Hero2[301]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[11] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[301] )
call SetUnitInvulnerable( udg_Hero2[301], true )
call SetUnitPathing( udg_Hero2[301], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func013C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[302]), GetUnitFacing(udg_Hero2[302]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[12] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[302] )
call SetUnitInvulnerable( udg_Hero2[302], true )
call SetUnitPathing( udg_Hero2[302], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func014C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[303]), GetUnitFacing(udg_Hero2[303]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[13] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[303] )
call SetUnitInvulnerable( udg_Hero2[303], true )
call SetUnitPathing( udg_Hero2[303], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func015C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[304]), GetUnitFacing(udg_Hero2[304]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[14] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[304] )
call SetUnitInvulnerable( udg_Hero2[304], true )
call SetUnitPathing( udg_Hero2[304], false )
else
call DoNothing( )
endif
call TriggerSleepAction( 2.00 )
if ( Trig_Edo_Tensei_Kachyose_Func017C() ) then
call ShowUnitHide( udg_Hero2[88] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func018C() ) then
call ShowUnitHide( udg_Hero2[89] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func019C() ) then
call ShowUnitHide( udg_Hero2[90] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func020C() ) then
call ShowUnitHide( udg_Hero2[91] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func021C() ) then
call ShowUnitHide( udg_Hero2[92] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func022C() ) then
call ShowUnitHide( udg_Hero2[93] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func023C() ) then
call ShowUnitHide( udg_Hero2[95] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func024C() ) then
call ShowUnitHide( udg_Hero2[96] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func025C() ) then
call ShowUnitHide( udg_Hero2[97] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func026C() ) then
call ShowUnitHide( udg_Hero2[300] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func027C() ) then
call ShowUnitHide( udg_Hero2[301] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func028C() ) then
call ShowUnitHide( udg_Hero2[302] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func029C() ) then
call ShowUnitHide( udg_Hero2[303] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func030C() ) then
call ShowUnitHide( udg_Hero2[304] )
else
call DoNothing( )
endif
call TriggerSleepAction( 0.46 )
if ( Trig_Edo_Tensei_Kachyose_Func032C() ) then
call RemoveUnit( udg_Edokachyose[0] )
set udg_Edokachyose[0] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], 270.00, 270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[88], OffsetLocation(udg_Zpoint[54], 270.00, 270.00), 270.00 )
set udg_Edokachyose[0] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func033C() ) then
call RemoveUnit( udg_Edokachyose[1] )
set udg_Edokachyose[1] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], -270.00, 270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[89], OffsetLocation(udg_Zpoint[54], -270.00, 270.00), 270.00 )
set udg_Edokachyose[1] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func034C() ) then
call RemoveUnit( udg_Edokachyose[2] )
set udg_Edokachyose[2] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], 270.00, -270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[90], OffsetLocation(udg_Zpoint[54], 270.00, -270.00), 270.00 )
set udg_Edokachyose[2] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func035C() ) then
call RemoveUnit( udg_Edokachyose[3] )
set udg_Edokachyose[3] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], -270.00, -270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[91], OffsetLocation(udg_Zpoint[54], -270.00, -270.00), 270.00 )
set udg_Edokachyose[3] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func036C() ) then
call RemoveUnit( udg_Edokachyose[4] )
set udg_Edokachyose[4] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], 0.00, 270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[92], OffsetLocation(udg_Zpoint[54], 0.00, 270.00), 270.00 )
set udg_Edokachyose[4] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func037C() ) then
call RemoveUnit( udg_Edokachyose[5] )
set udg_Edokachyose[5] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], 0.00, -270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[93], OffsetLocation(udg_Zpoint[54], 0.00, -270.00), 270.00 )
set udg_Edokachyose[5] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func038C() ) then
call RemoveUnit( udg_Edokachyose[7] )
set udg_Edokachyose[7] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], 270.00, 0.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[95], OffsetLocation(udg_Zpoint[54], 270.00, 0.00), 270.00 )
set udg_Edokachyose[7] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func039C() ) then
call RemoveUnit( udg_Edokachyose[8] )
set udg_Edokachyose[8] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], -270.00, 0.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[96], OffsetLocation(udg_Zpoint[54], -270.00, 0.00), 270.00 )
set udg_Edokachyose[8] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func040C() ) then
call RemoveUnit( udg_Edokachyose[9] )
set udg_Edokachyose[9] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], -540.00, 0.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[97], OffsetLocation(udg_Zpoint[54], -540.00, 0.00), 270.00 )
set udg_Edokachyose[9] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func041C() ) then
call RemoveUnit( udg_Edokachyose[10] )
set udg_Edokachyose[10] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], 540.00, 0.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[300], OffsetLocation(udg_Zpoint[54], 540.00, 0.00), 270.00 )
set udg_Edokachyose[10] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func042C() ) then
call RemoveUnit( udg_Edokachyose[11] )
set udg_Edokachyose[11] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], 540.00, 270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[301], OffsetLocation(udg_Zpoint[54], 540.00, 270.00), 270.00 )
set udg_Edokachyose[11] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func043C() ) then
call RemoveUnit( udg_Edokachyose[12] )
set udg_Edokachyose[12] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], 540.00, -270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[302], OffsetLocation(udg_Zpoint[54], 540.00, -270.00), 270.00 )
set udg_Edokachyose[12] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func044C() ) then
call RemoveUnit( udg_Edokachyose[13] )
set udg_Edokachyose[13] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], -540.00, -270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[303], OffsetLocation(udg_Zpoint[54], -540.00, -270.00), 270.00 )
set udg_Edokachyose[13] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func045C() ) then
call RemoveUnit( udg_Edokachyose[14] )
set udg_Edokachyose[14] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_Zpoint[54], -540.00, 270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[304], OffsetLocation(udg_Zpoint[54], -540.00, 270.00), 270.00 )
set udg_Edokachyose[14] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
call RemoveLocation(udg_Zpoint[54])
set udg_Zpoint[54] = null
call TriggerSleepAction( 2.00 )
if ( Trig_Edo_Tensei_Kachyose_Func049C() ) then
call ShowUnitShow( udg_Hero2[88] )
call SetUnitAnimation( udg_Edokachyose[0], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func050C() ) then
call ShowUnitShow( udg_Hero2[89] )
call SetUnitAnimation( udg_Edokachyose[1], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func051C() ) then
call ShowUnitShow( udg_Hero2[90] )
call SetUnitAnimation( udg_Edokachyose[2], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func052C() ) then
call ShowUnitShow( udg_Hero2[91] )
call SetUnitAnimation( udg_Edokachyose[3], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func053C() ) then
call ShowUnitShow( udg_Hero2[92] )
call SetUnitAnimation( udg_Edokachyose[4], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func054C() ) then
call ShowUnitShow( udg_Hero2[93] )
call SetUnitAnimation( udg_Edokachyose[5], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func055C() ) then
call ShowUnitShow( udg_Hero2[95] )
call SetUnitAnimation( udg_Edokachyose[7], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func056C() ) then
call ShowUnitShow( udg_Hero2[96] )
call SetUnitAnimation( udg_Edokachyose[8], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func057C() ) then
call ShowUnitShow( udg_Hero2[97] )
call SetUnitAnimation( udg_Edokachyose[9], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func058C() ) then
call ShowUnitShow( udg_Hero2[300] )
call SetUnitAnimation( udg_Edokachyose[10], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func059C() ) then
call ShowUnitShow( udg_Hero2[301] )
call SetUnitAnimation( udg_Edokachyose[11], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func060C() ) then
call ShowUnitShow( udg_Hero2[302] )
call SetUnitAnimation( udg_Edokachyose[12], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func061C() ) then
call ShowUnitShow( udg_Hero2[303] )
call SetUnitAnimation( udg_Edokachyose[13], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func062C() ) then
call ShowUnitShow( udg_Hero2[304] )
call SetUnitAnimation( udg_Edokachyose[14], "stand" )
else
call DoNothing( )
endif
call TriggerSleepAction( 1.25 )
if ( Trig_Edo_Tensei_Kachyose_Func064C() ) then
call SetUnitAnimation( udg_Edokachyose[0], "death" )
call RemoveUnit( udg_Edokachyose[0] )
call PauseUnitBJ( false, udg_Hero2[88] )
call SetUnitInvulnerable( udg_Hero2[88], false )
call SetUnitPathing( udg_Hero2[88], true )
set udg_Edokachyose[0] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func065C() ) then
call SetUnitAnimation( udg_Edokachyose[1], "death" )
call RemoveUnit( udg_Edokachyose[1] )
call PauseUnitBJ( false, udg_Hero2[89] )
call SetUnitInvulnerable( udg_Hero2[89], false )
call SetUnitPathing( udg_Hero2[89], true )
set udg_Edokachyose[1] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func066C() ) then
call SetUnitAnimation( udg_Edokachyose[2], "death" )
call RemoveUnit( udg_Edokachyose[2] )
call PauseUnitBJ( false, udg_Hero2[90] )
call SetUnitInvulnerable( udg_Hero2[90], false )
call SetUnitPathing( udg_Hero2[90], true )
set udg_Edokachyose[2] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func067C() ) then
call SetUnitAnimation( udg_Edokachyose[3], "death" )
call RemoveUnit( udg_Edokachyose[3] )
call PauseUnitBJ( false, udg_Hero2[91] )
call SetUnitInvulnerable( udg_Hero2[91], false )
call SetUnitPathing( udg_Hero2[91], true )
set udg_Edokachyose[3] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func068C() ) then
call SetUnitAnimation( udg_Edokachyose[4], "death" )
call RemoveUnit( udg_Edokachyose[4] )
call PauseUnitBJ( false, udg_Hero2[92] )
call SetUnitInvulnerable( udg_Hero2[92], false )
call SetUnitPathing( udg_Hero2[92], true )
set udg_Edokachyose[4] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func069C() ) then
call SetUnitAnimation( udg_Edokachyose[5], "death" )
call RemoveUnit( udg_Edokachyose[5] )
call PauseUnitBJ( false, udg_Hero2[93] )
call SetUnitInvulnerable( udg_Hero2[93], false )
call SetUnitPathing( udg_Hero2[93], true )
set udg_Edokachyose[5] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func070C() ) then
call SetUnitAnimation( udg_Edokachyose[7], "death" )
call RemoveUnit( udg_Edokachyose[7] )
call PauseUnitBJ( false, udg_Hero2[95] )
call SetUnitInvulnerable( udg_Hero2[95], false )
call SetUnitPathing( udg_Hero2[95], true )
set udg_Edokachyose[7] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func071C() ) then
call SetUnitAnimation( udg_Edokachyose[8], "death" )
call RemoveUnit( udg_Edokachyose[8] )
call PauseUnitBJ( false, udg_Hero2[96] )
call SetUnitInvulnerable( udg_Hero2[96], false )
call SetUnitPathing( udg_Hero2[96], true )
set udg_Edokachyose[8] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func072C() ) then
call SetUnitAnimation( udg_Edokachyose[9], "death" )
call RemoveUnit( udg_Edokachyose[9] )
call PauseUnitBJ( false, udg_Hero2[97] )
call SetUnitInvulnerable( udg_Hero2[97], false )
call SetUnitPathing( udg_Hero2[97], true )
set udg_Edokachyose[9] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func073C() ) then
call SetUnitAnimation( udg_Edokachyose[10], "death" )
call RemoveUnit( udg_Edokachyose[10] )
call PauseUnitBJ( false, udg_Hero2[300] )
call SetUnitInvulnerable( udg_Hero2[300], false )
call SetUnitPathing( udg_Hero2[300], true )
set udg_Edokachyose[10] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func074C() ) then
call SetUnitAnimation( udg_Edokachyose[11], "death" )
call RemoveUnit( udg_Edokachyose[11] )
call PauseUnitBJ( false, udg_Hero2[301] )
call SetUnitInvulnerable( udg_Hero2[301], false )
call SetUnitPathing( udg_Hero2[301], true )
set udg_Edokachyose[11] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func075C() ) then
call SetUnitAnimation( udg_Edokachyose[12], "death" )
call RemoveUnit( udg_Edokachyose[12] )
call PauseUnitBJ( false, udg_Hero2[302] )
call SetUnitInvulnerable( udg_Hero2[302], false )
call SetUnitPathing( udg_Hero2[302], true )
set udg_Edokachyose[12] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func076C() ) then
call SetUnitAnimation( udg_Edokachyose[13], "death" )
call RemoveUnit( udg_Edokachyose[13] )
call PauseUnitBJ( false, udg_Hero2[303] )
call SetUnitInvulnerable( udg_Hero2[303], false )
call SetUnitPathing( udg_Hero2[303], true )
set udg_Edokachyose[13] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose_Func077C() ) then
call SetUnitAnimation( udg_Edokachyose[14], "death" )
call RemoveUnit( udg_Edokachyose[14] )
call PauseUnitBJ( false, udg_Hero2[304] )
call SetUnitInvulnerable( udg_Hero2[304], false )
call SetUnitPathing( udg_Hero2[304], true )
set udg_Edokachyose[14] = null
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Edo_Tensei_Kachyose takes nothing returns nothing
set gg_trg_Edo_Tensei_Kachyose = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Edo_Tensei_Kachyose, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Edo_Tensei_Kachyose, Condition( function Trig_Edo_Tensei_Kachyose_Conditions ) )
call TriggerAddAction( gg_trg_Edo_Tensei_Kachyose, function Trig_Edo_Tensei_Kachyose_Actions )
endfunction
function Trig_Edo_Tensei_Kachyose2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AL' ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func002Func008C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[88]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func002C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func002Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func003Func008C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[89]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func003C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func003Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func004Func008C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[90]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func004C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func004Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func005Func008C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[91]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func005C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func005Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func006Func008C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[92]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func006C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func006Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func007Func008C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[93]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func007C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func007Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func008Func008C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[95]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func008C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func008Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func009Func008C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[96]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func009C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func009Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func010Func008C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[97]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func010C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func010Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func011Func008C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[300]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func011C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func011Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func012Func008C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[301]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func012C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func012Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func013Func008C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[302]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func013C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func013Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func014Func008C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[303]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func014C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func014Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func015Func008C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[304]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func015C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func015Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func017Func003C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[88]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func017C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func017Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func018Func003C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[89]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func018C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func018Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func019Func003C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[90]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func019C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func019Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func020Func003C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[91]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func020C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func020Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func021Func003C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[92]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func021C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func021Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func022Func003C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[93]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func022C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func022Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func023Func003C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[95]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func023C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func023Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func024Func003C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[96]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func024C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func024Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func025Func003C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[97]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func025C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func025Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func026Func003C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[300]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func026C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func026Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func027Func003C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[301]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func027C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func027Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func028Func003C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[302]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func028C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func028Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func029Func003C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[303]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func029C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func029Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func030Func003C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[304]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func030C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func030Func003C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func032Func008C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[88]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func032C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func032Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func033Func008C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[89]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func033C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func033Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func034Func008C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[90]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func034C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func034Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func035Func008C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[91]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func035C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func035Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func036Func008C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[92]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func036C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func036Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func037Func008C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[93]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func037C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func037Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func038Func008C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[95]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func038C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func038Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func039Func008C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[96]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func039C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func039Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func040Func008C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[97]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func040C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func040Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func041Func008C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[300]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func041C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func041Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func042Func008C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[301]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func042C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func042Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func043Func008C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[302]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func043C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func043Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func044Func008C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[303]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func044C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func044Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func045Func008C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[304]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func045C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func045Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func049Func004C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[88]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func049C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func049Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func050Func004C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[89]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func050C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func050Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func051Func004C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[90]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func051C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func051Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func052Func004C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[91]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func052C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func052Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func053Func004C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[92]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func053C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func053Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func054Func004C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[93]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func054C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func054Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func055Func004C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[95]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func055C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func055Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func056Func004C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[96]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func056C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func056Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func057Func004C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[97]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func057C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func057Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func058Func004C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[300]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func058C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func058Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func059Func004C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[301]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func059C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func059Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func060Func004C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[302]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func060C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func060Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func061Func004C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[303]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func061C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func061Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func062Func004C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[304]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func062C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func062Func004C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func064Func008C takes nothing returns boolean
if ( not ( udg_Hero2[88] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[88]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[88]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func064C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func064Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func065Func008C takes nothing returns boolean
if ( not ( udg_Hero2[89] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[89]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[89]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func065C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func065Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func066Func008C takes nothing returns boolean
if ( not ( udg_Hero2[90] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[90]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[90]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func066C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func066Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func067Func008C takes nothing returns boolean
if ( not ( udg_Hero2[91] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[91]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[91]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func067C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func067Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func068Func008C takes nothing returns boolean
if ( not ( udg_Hero2[92] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[92]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[92]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func068C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func068Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func069Func008C takes nothing returns boolean
if ( not ( udg_Hero2[93] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[93]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[93]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func069C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func069Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func070Func008C takes nothing returns boolean
if ( not ( udg_Hero2[95] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[95]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[95]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func070C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func070Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func071Func008C takes nothing returns boolean
if ( not ( udg_Hero2[96] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[96]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[96]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func071C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func071Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func072Func008C takes nothing returns boolean
if ( not ( udg_Hero2[97] != null ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[97]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[97]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func072C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func072Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func073Func008C takes nothing returns boolean
if ( not ( udg_Hero2[300] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[300]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[300]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[300]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func073C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func073Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func074Func008C takes nothing returns boolean
if ( not ( udg_Hero2[301] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[301]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[301]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[301]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func074C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func074Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func075Func008C takes nothing returns boolean
if ( not ( udg_Hero2[302] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[302]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[302]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[302]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func075C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func075Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func076Func008C takes nothing returns boolean
if ( not ( udg_Hero2[303] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[303]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[303]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[303]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func076C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func076Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func077Func008C takes nothing returns boolean
if ( not ( udg_Hero2[304] != null ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Hero2[304]) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(udg_Hero2[304]) == GetOwningPlayer(GetTriggerUnit()) ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[304]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Func077C takes nothing returns boolean
if ( not Trig_Edo_Tensei_Kachyose2_Func077Func008C() ) then
return false
endif
return true
endfunction
function Trig_Edo_Tensei_Kachyose2_Actions takes nothing returns nothing
set udg_UnitPoint[65] = GetUnitLoc(GetSpellAbilityUnit())
if ( Trig_Edo_Tensei_Kachyose2_Func002C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[88]), GetUnitFacing(udg_Hero2[88]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[0] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[88] )
call SetUnitInvulnerable( udg_Hero2[88], true )
call SetUnitPathing( udg_Hero2[88], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func003C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[89]), GetUnitFacing(udg_Hero2[89]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[1] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[89] )
call SetUnitInvulnerable( udg_Hero2[89], true )
call SetUnitPathing( udg_Hero2[89], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func004C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[90]), GetUnitFacing(udg_Hero2[90]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[2] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[90] )
call SetUnitInvulnerable( udg_Hero2[90], true )
call SetUnitPathing( udg_Hero2[90], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func005C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[91]), GetUnitFacing(udg_Hero2[91]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[3] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[91] )
call SetUnitInvulnerable( udg_Hero2[91], true )
call SetUnitPathing( udg_Hero2[91], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func006C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[92]), GetUnitFacing(udg_Hero2[92]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[4] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[92] )
call SetUnitInvulnerable( udg_Hero2[92], true )
call SetUnitPathing( udg_Hero2[92], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func007C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[93]), GetUnitFacing(udg_Hero2[93]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[5] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[93] )
call SetUnitInvulnerable( udg_Hero2[93], true )
call SetUnitPathing( udg_Hero2[93], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func008C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[95]), GetUnitFacing(udg_Hero2[95]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[7] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[95] )
call SetUnitInvulnerable( udg_Hero2[95], true )
call SetUnitPathing( udg_Hero2[95], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func009C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[96]), GetUnitFacing(udg_Hero2[96]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[8] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[96] )
call SetUnitInvulnerable( udg_Hero2[96], true )
call SetUnitPathing( udg_Hero2[96], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func010C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[97]), GetUnitFacing(udg_Hero2[97]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[9] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[97] )
call SetUnitInvulnerable( udg_Hero2[97], true )
call SetUnitPathing( udg_Hero2[97], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func011C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[300]), GetUnitFacing(udg_Hero2[300]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[10] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[300] )
call SetUnitInvulnerable( udg_Hero2[300], true )
call SetUnitPathing( udg_Hero2[300], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func012C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[301]), GetUnitFacing(udg_Hero2[301]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[11] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[301] )
call SetUnitInvulnerable( udg_Hero2[301], true )
call SetUnitPathing( udg_Hero2[301], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func013C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[302]), GetUnitFacing(udg_Hero2[302]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[12] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[302] )
call SetUnitInvulnerable( udg_Hero2[302], true )
call SetUnitPathing( udg_Hero2[302], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func014C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[303]), GetUnitFacing(udg_Hero2[303]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[13] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[303] )
call SetUnitInvulnerable( udg_Hero2[303], true )
call SetUnitPathing( udg_Hero2[303], false )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func015C() ) then
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Hero2[304]), GetUnitFacing(udg_Hero2[304]) )
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
set udg_Edokachyose[14] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Hero2[304] )
call SetUnitInvulnerable( udg_Hero2[304], true )
call SetUnitPathing( udg_Hero2[304], false )
else
call DoNothing( )
endif
call TriggerSleepAction( 2.00 )
if ( Trig_Edo_Tensei_Kachyose2_Func017C() ) then
call ShowUnitHide( udg_Hero2[88] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func018C() ) then
call ShowUnitHide( udg_Hero2[89] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func019C() ) then
call ShowUnitHide( udg_Hero2[90] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func020C() ) then
call ShowUnitHide( udg_Hero2[91] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func021C() ) then
call ShowUnitHide( udg_Hero2[92] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func022C() ) then
call ShowUnitHide( udg_Hero2[93] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func023C() ) then
call ShowUnitHide( udg_Hero2[95] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func024C() ) then
call ShowUnitHide( udg_Hero2[96] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func025C() ) then
call ShowUnitHide( udg_Hero2[97] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func026C() ) then
call ShowUnitHide( udg_Hero2[300] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func027C() ) then
call ShowUnitHide( udg_Hero2[301] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func028C() ) then
call ShowUnitHide( udg_Hero2[302] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func029C() ) then
call ShowUnitHide( udg_Hero2[303] )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func030C() ) then
call ShowUnitHide( udg_Hero2[304] )
else
call DoNothing( )
endif
call TriggerSleepAction( 0.46 )
if ( Trig_Edo_Tensei_Kachyose2_Func032C() ) then
call RemoveUnit( udg_Edokachyose[0] )
set udg_Edokachyose[0] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], 270.00, 270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[88], OffsetLocation(udg_UnitPoint[65], 270.00, 270.00), 270.00 )
set udg_Edokachyose[0] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func033C() ) then
call RemoveUnit( udg_Edokachyose[1] )
set udg_Edokachyose[1] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], -270.00, 270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[89], OffsetLocation(udg_UnitPoint[65], -270.00, 270.00), 270.00 )
set udg_Edokachyose[1] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func034C() ) then
call RemoveUnit( udg_Edokachyose[2] )
set udg_Edokachyose[2] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], 270.00, -270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[90], OffsetLocation(udg_UnitPoint[65], 270.00, -270.00), 270.00 )
set udg_Edokachyose[2] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func035C() ) then
call RemoveUnit( udg_Edokachyose[3] )
set udg_Edokachyose[3] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], -270.00, -270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[91], OffsetLocation(udg_UnitPoint[65], -270.00, -270.00), 270.00 )
set udg_Edokachyose[3] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func036C() ) then
call RemoveUnit( udg_Edokachyose[4] )
set udg_Edokachyose[4] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], 0.00, 270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[92], OffsetLocation(udg_UnitPoint[65], 0.00, 270.00), 270.00 )
set udg_Edokachyose[4] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func037C() ) then
call RemoveUnit( udg_Edokachyose[5] )
set udg_Edokachyose[5] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], 0.00, -270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[93], OffsetLocation(udg_UnitPoint[65], 0.00, -270.00), 270.00 )
set udg_Edokachyose[5] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func038C() ) then
call RemoveUnit( udg_Edokachyose[7] )
set udg_Edokachyose[7] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], 270.00, 0.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[95], OffsetLocation(udg_UnitPoint[65], 270.00, 0.00), 270.00 )
set udg_Edokachyose[7] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func039C() ) then
call RemoveUnit( udg_Edokachyose[8] )
set udg_Edokachyose[8] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], -270.00, 0.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[96], OffsetLocation(udg_UnitPoint[65], -270.00, 0.00), 270.00 )
set udg_Edokachyose[8] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func040C() ) then
call RemoveUnit( udg_Edokachyose[9] )
set udg_Edokachyose[9] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], -540.00, 0.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[97], OffsetLocation(udg_UnitPoint[65], -540.00, 0.00), 270.00 )
set udg_Edokachyose[9] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func041C() ) then
call RemoveUnit( udg_Edokachyose[10] )
set udg_Edokachyose[10] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], 540.00, 0.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[300], OffsetLocation(udg_UnitPoint[65], 540.00, 0.00), 270.00 )
set udg_Edokachyose[10] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func042C() ) then
call RemoveUnit( udg_Edokachyose[11] )
set udg_Edokachyose[11] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], 540.00, 270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[301], OffsetLocation(udg_UnitPoint[65], 540.00, 270.00), 270.00 )
set udg_Edokachyose[11] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func043C() ) then
call RemoveUnit( udg_Edokachyose[12] )
set udg_Edokachyose[12] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], 540.00, -270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[302], OffsetLocation(udg_UnitPoint[65], 540.00, -270.00), 270.00 )
set udg_Edokachyose[12] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func044C() ) then
call RemoveUnit( udg_Edokachyose[13] )
set udg_Edokachyose[13] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], -540.00, -270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[303], OffsetLocation(udg_UnitPoint[65], -540.00, -270.00), 270.00 )
set udg_Edokachyose[13] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func045C() ) then
call RemoveUnit( udg_Edokachyose[14] )
set udg_Edokachyose[14] = null
call CreateNUnitsAtLoc( 1, 'hmtt', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(udg_UnitPoint[65], -540.00, 270.00), 270.00 )
call SetUnitPositionLocFacingBJ( udg_Hero2[304], OffsetLocation(udg_UnitPoint[65], -540.00, 270.00), 270.00 )
set udg_Edokachyose[14] = GetLastCreatedUnit()
call SetUnitAnimation( GetLastCreatedUnit(), "Birth" )
else
call DoNothing( )
endif
call RemoveLocation(udg_UnitPoint[65])
set udg_UnitPoint[65] = null
call TriggerSleepAction( 2.00 )
if ( Trig_Edo_Tensei_Kachyose2_Func049C() ) then
call ShowUnitShow( udg_Hero2[88] )
call SetUnitAnimation( udg_Edokachyose[0], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func050C() ) then
call ShowUnitShow( udg_Hero2[89] )
call SetUnitAnimation( udg_Edokachyose[1], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func051C() ) then
call ShowUnitShow( udg_Hero2[90] )
call SetUnitAnimation( udg_Edokachyose[2], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func052C() ) then
call ShowUnitShow( udg_Hero2[91] )
call SetUnitAnimation( udg_Edokachyose[3], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func053C() ) then
call ShowUnitShow( udg_Hero2[92] )
call SetUnitAnimation( udg_Edokachyose[4], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func054C() ) then
call ShowUnitShow( udg_Hero2[93] )
call SetUnitAnimation( udg_Edokachyose[5], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func055C() ) then
call ShowUnitShow( udg_Hero2[95] )
call SetUnitAnimation( udg_Edokachyose[7], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func056C() ) then
call ShowUnitShow( udg_Hero2[96] )
call SetUnitAnimation( udg_Edokachyose[8], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func057C() ) then
call ShowUnitShow( udg_Hero2[97] )
call SetUnitAnimation( udg_Edokachyose[9], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func058C() ) then
call ShowUnitShow( udg_Hero2[300] )
call SetUnitAnimation( udg_Edokachyose[10], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func059C() ) then
call ShowUnitShow( udg_Hero2[301] )
call SetUnitAnimation( udg_Edokachyose[11], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func060C() ) then
call ShowUnitShow( udg_Hero2[302] )
call SetUnitAnimation( udg_Edokachyose[12], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func061C() ) then
call ShowUnitShow( udg_Hero2[303] )
call SetUnitAnimation( udg_Edokachyose[13], "stand" )
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func062C() ) then
call ShowUnitShow( udg_Hero2[304] )
call SetUnitAnimation( udg_Edokachyose[14], "stand" )
else
call DoNothing( )
endif
call TriggerSleepAction( 1.25 )
if ( Trig_Edo_Tensei_Kachyose2_Func064C() ) then
call SetUnitAnimation( udg_Edokachyose[0], "death" )
call RemoveUnit( udg_Edokachyose[0] )
call PauseUnitBJ( false, udg_Hero2[88] )
call SetUnitInvulnerable( udg_Hero2[88], false )
call SetUnitPathing( udg_Hero2[88], true )
set udg_Edokachyose[0] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func065C() ) then
call SetUnitAnimation( udg_Edokachyose[1], "death" )
call RemoveUnit( udg_Edokachyose[1] )
call PauseUnitBJ( false, udg_Hero2[89] )
call SetUnitInvulnerable( udg_Hero2[89], false )
call SetUnitPathing( udg_Hero2[89], true )
set udg_Edokachyose[1] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func066C() ) then
call SetUnitAnimation( udg_Edokachyose[2], "death" )
call RemoveUnit( udg_Edokachyose[2] )
call PauseUnitBJ( false, udg_Hero2[90] )
call SetUnitInvulnerable( udg_Hero2[90], false )
call SetUnitPathing( udg_Hero2[90], true )
set udg_Edokachyose[2] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func067C() ) then
call SetUnitAnimation( udg_Edokachyose[3], "death" )
call RemoveUnit( udg_Edokachyose[3] )
call PauseUnitBJ( false, udg_Hero2[91] )
call SetUnitInvulnerable( udg_Hero2[91], false )
call SetUnitPathing( udg_Hero2[91], true )
set udg_Edokachyose[3] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func068C() ) then
call SetUnitAnimation( udg_Edokachyose[4], "death" )
call RemoveUnit( udg_Edokachyose[4] )
call PauseUnitBJ( false, udg_Hero2[92] )
call SetUnitInvulnerable( udg_Hero2[92], false )
call SetUnitPathing( udg_Hero2[92], true )
set udg_Edokachyose[4] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func069C() ) then
call SetUnitAnimation( udg_Edokachyose[5], "death" )
call RemoveUnit( udg_Edokachyose[5] )
call PauseUnitBJ( false, udg_Hero2[93] )
call SetUnitInvulnerable( udg_Hero2[93], false )
call SetUnitPathing( udg_Hero2[93], true )
set udg_Edokachyose[5] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func070C() ) then
call SetUnitAnimation( udg_Edokachyose[7], "death" )
call RemoveUnit( udg_Edokachyose[7] )
call PauseUnitBJ( false, udg_Hero2[95] )
call SetUnitInvulnerable( udg_Hero2[95], false )
call SetUnitPathing( udg_Hero2[95], true )
set udg_Edokachyose[7] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func071C() ) then
call SetUnitAnimation( udg_Edokachyose[8], "death" )
call RemoveUnit( udg_Edokachyose[8] )
call PauseUnitBJ( false, udg_Hero2[96] )
call SetUnitInvulnerable( udg_Hero2[96], false )
call SetUnitPathing( udg_Hero2[96], true )
set udg_Edokachyose[8] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func072C() ) then
call SetUnitAnimation( udg_Edokachyose[9], "death" )
call RemoveUnit( udg_Edokachyose[9] )
call PauseUnitBJ( false, udg_Hero2[97] )
call SetUnitInvulnerable( udg_Hero2[97], false )
call SetUnitPathing( udg_Hero2[97], true )
set udg_Edokachyose[9] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func073C() ) then
call SetUnitAnimation( udg_Edokachyose[10], "death" )
call RemoveUnit( udg_Edokachyose[10] )
call PauseUnitBJ( false, udg_Hero2[300] )
call SetUnitInvulnerable( udg_Hero2[300], false )
call SetUnitPathing( udg_Hero2[300], true )
set udg_Edokachyose[10] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func074C() ) then
call SetUnitAnimation( udg_Edokachyose[11], "death" )
call RemoveUnit( udg_Edokachyose[11] )
call PauseUnitBJ( false, udg_Hero2[301] )
call SetUnitInvulnerable( udg_Hero2[301], false )
call SetUnitPathing( udg_Hero2[301], true )
set udg_Edokachyose[11] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func075C() ) then
call SetUnitAnimation( udg_Edokachyose[12], "death" )
call RemoveUnit( udg_Edokachyose[12] )
call PauseUnitBJ( false, udg_Hero2[302] )
call SetUnitInvulnerable( udg_Hero2[302], false )
call SetUnitPathing( udg_Hero2[302], true )
set udg_Edokachyose[12] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func076C() ) then
call SetUnitAnimation( udg_Edokachyose[13], "death" )
call RemoveUnit( udg_Edokachyose[13] )
call PauseUnitBJ( false, udg_Hero2[303] )
call SetUnitInvulnerable( udg_Hero2[303], false )
call SetUnitPathing( udg_Hero2[303], true )
set udg_Edokachyose[13] = null
else
call DoNothing( )
endif
if ( Trig_Edo_Tensei_Kachyose2_Func077C() ) then
call SetUnitAnimation( udg_Edokachyose[14], "death" )
call RemoveUnit( udg_Edokachyose[14] )
call PauseUnitBJ( false, udg_Hero2[304] )
call SetUnitInvulnerable( udg_Hero2[304], false )
call SetUnitPathing( udg_Hero2[304], true )
set udg_Edokachyose[14] = null
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Edo_Tensei_Kachyose2 takes nothing returns nothing
set gg_trg_Edo_Tensei_Kachyose2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Edo_Tensei_Kachyose2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Edo_Tensei_Kachyose2, Condition( function Trig_Edo_Tensei_Kachyose2_Conditions ) )
call TriggerAddAction( gg_trg_Edo_Tensei_Kachyose2, function Trig_Edo_Tensei_Kachyose2_Actions )
endfunction
function Trig_Wind_wave_of_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08L' ) ) then
return false
endif
return true
endfunction
function Trig_Wind_wave_of_Actions takes nothing returns nothing
set udg_Zpoint[8] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(gg_unit_Hant_0621), PolarProjectionBJ(udg_Zpoint[8], -200.00, GetUnitFacing(gg_unit_Hant_0621)), GetUnitFacing(gg_unit_Hant_0621) )
call UnitAddAbilityBJ( 'A00K', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A00K', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08L', gg_unit_Hant_0621) )
call SetUnitPathing( GetLastCreatedUnit(), false )
call SetUnitPositionLoc( GetLastCreatedUnit(), PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), -300.00, GetUnitFacing(GetLastCreatedUnit())) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), 300.00, GetUnitFacing(GetLastCreatedUnit())) )
call UnitApplyTimedLifeBJ( 1.00, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(gg_unit_Hant_0621), PolarProjectionBJ(udg_Zpoint[8], -200.00, ( GetUnitFacing(gg_unit_Hant_0621) + 90.00 )), GetUnitFacing(gg_unit_Hant_0621) )
call UnitAddAbilityBJ( 'A00K', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A00K', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08L', gg_unit_Hant_0621) )
call SetUnitPathing( GetLastCreatedUnit(), false )
call SetUnitPositionLoc( GetLastCreatedUnit(), PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), -300.00, GetUnitFacing(GetLastCreatedUnit())) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), 300.00, GetUnitFacing(GetLastCreatedUnit())) )
call UnitApplyTimedLifeBJ( 1.00, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(gg_unit_Hant_0621), PolarProjectionBJ(udg_Zpoint[8], -200.00, ( GetUnitFacing(gg_unit_Hant_0621) - 90.00 )), GetUnitFacing(gg_unit_Hant_0621) )
call UnitAddAbilityBJ( 'A00K', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A00K', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08L', gg_unit_Hant_0621) )
call SetUnitPathing( GetLastCreatedUnit(), false )
call SetUnitPositionLoc( GetLastCreatedUnit(), PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), -300.00, GetUnitFacing(GetLastCreatedUnit())) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), 300.00, GetUnitFacing(GetLastCreatedUnit())) )
call UnitApplyTimedLifeBJ( 1.00, 'Brai', GetLastCreatedUnit() )
call RemoveLocation(udg_Zpoint[8])
set udg_Zpoint[8] = null
endfunction
//===========================================================================
function InitTrig_Wind_wave_of takes nothing returns nothing
set gg_trg_Wind_wave_of = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wind_wave_of, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Wind_wave_of, Condition( function Trig_Wind_wave_of_Conditions ) )
call TriggerAddAction( gg_trg_Wind_wave_of, function Trig_Wind_wave_of_Actions )
endfunction
function Trig_Revive_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03W' ) ) then
return false
endif
return true
endfunction
function Trig_Revive_2_Func007C takes nothing returns boolean
if ( not ( GetPlayerController(GetOwningPlayer(GetTriggerUnit())) == MAP_CONTROL_USER ) ) then
return false
endif
return true
endfunction
function Trig_Revive_2_Func012C takes nothing returns boolean
if ( not ( GetPlayerController(GetOwningPlayer(GetTriggerUnit())) == MAP_CONTROL_USER ) ) then
return false
endif
return true
endfunction
function Trig_Revive_2_Actions takes nothing returns nothing
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_NEGATIVE, GetTriggerUnit() )
call UnitRemoveBuffBJ( 'BEme', GetTriggerUnit() )
call ShowUnitHide( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h00U', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
call KillUnit( GetLastCreatedUnit() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 200.00 )
if ( Trig_Revive_2_Func007C() ) then
call CreateFogModifierRadiusLocBJ( true, GetOwningPlayer(GetTriggerUnit()), FOG_OF_WAR_VISIBLE, GetUnitLoc(GetTriggerUnit()), 200.00 )
set udg_Visible[10] = GetLastCreatedFogModifier()
else
endif
call TriggerSleepAction( 0.40 )
call ShowUnitShow( GetTriggerUnit() )
call SetUnitLifeBJ( GetTriggerUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetTriggerUnit()) + 1000.00 ) )
call SelectUnitForPlayerSingle( GetTriggerUnit(), GetOwningPlayer(GetTriggerUnit()) )
if ( Trig_Revive_2_Func012C() ) then
call DestroyFogModifier( udg_Visible[10] )
else
endif
endfunction
//===========================================================================
function InitTrig_Revive_2 takes nothing returns nothing
set gg_trg_Revive_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Revive_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Revive_2, Condition( function Trig_Revive_2_Conditions ) )
call TriggerAddAction( gg_trg_Revive_2, function Trig_Revive_2_Actions )
endfunction
function Trig_Revive_3_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AK' ) ) then
return false
endif
return true
endfunction
function Trig_Revive_3_Func007C takes nothing returns boolean
if ( not ( GetPlayerController(GetOwningPlayer(GetTriggerUnit())) == MAP_CONTROL_USER ) ) then
return false
endif
return true
endfunction
function Trig_Revive_3_Func012C takes nothing returns boolean
if ( not ( GetPlayerController(GetOwningPlayer(GetTriggerUnit())) == MAP_CONTROL_USER ) ) then
return false
endif
return true
endfunction
function Trig_Revive_3_Actions takes nothing returns nothing
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_NEGATIVE, GetTriggerUnit() )
call UnitRemoveBuffBJ( 'BEme', GetTriggerUnit() )
call ShowUnitHide( GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'h028', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
call KillUnit( GetLastCreatedUnit() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 200.00 )
if ( Trig_Revive_3_Func007C() ) then
call CreateFogModifierRadiusLocBJ( true, GetOwningPlayer(GetTriggerUnit()), FOG_OF_WAR_VISIBLE, GetUnitLoc(GetTriggerUnit()), 200.00 )
set udg_Visible[53] = GetLastCreatedFogModifier()
else
endif
call TriggerSleepAction( 0.12 )
call ShowUnitShow( GetTriggerUnit() )
call SetUnitLifeBJ( GetTriggerUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetTriggerUnit()) + 1000.00 ) )
call SelectUnitForPlayerSingle( GetTriggerUnit(), GetOwningPlayer(GetTriggerUnit()) )
if ( Trig_Revive_3_Func012C() ) then
call DestroyFogModifier( udg_Visible[53] )
else
endif
endfunction
//===========================================================================
function InitTrig_Revive_3 takes nothing returns nothing
set gg_trg_Revive_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Revive_3, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Revive_3, Condition( function Trig_Revive_3_Conditions ) )
call TriggerAddAction( gg_trg_Revive_3, function Trig_Revive_3_Actions )
endfunction
function Trig_Snake_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07I' ) ) then
return false
endif
return true
endfunction
function Trig_Snake_Actions takes nothing returns nothing
set udg_Angle[168] = R2I(GetUnitFacing(gg_unit_Hant_0621))
call EnableTrigger( gg_trg_Snake_Move )
call SetUnitTimeScalePercent( gg_unit_Hant_0621, 300.00 )
endfunction
//===========================================================================
function InitTrig_Snake takes nothing returns nothing
set gg_trg_Snake = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Snake, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Snake, Condition( function Trig_Snake_Conditions ) )
call TriggerAddAction( gg_trg_Snake, function Trig_Snake_Actions )
endfunction
function Trig_Snake_End_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07I' ) ) then
return false
endif
return true
endfunction
function Trig_Snake_End_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Snake_Move )
call SetUnitTimeScalePercent( gg_unit_Hant_0621, 100.00 )
set udg_Angle[168] = 0
endfunction
//===========================================================================
function InitTrig_Snake_End takes nothing returns nothing
set gg_trg_Snake_End = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Snake_End, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerAddCondition( gg_trg_Snake_End, Condition( function Trig_Snake_End_Conditions ) )
call TriggerAddAction( gg_trg_Snake_End, function Trig_Snake_End_Actions )
endfunction
function Trig_Snake_Move_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(gg_unit_Hant_0621) == true ) ) then
return false
endif
return true
endfunction
function Trig_Snake_Move_Actions takes nothing returns nothing
set udg_MyNewPoint[70] = GetUnitLoc(gg_unit_Hant_0621)
call CreateNUnitsAtLoc( 1, 'h019', GetOwningPlayer(gg_unit_Hant_0621), udg_MyNewPoint[70], ( udg_Angle[168] + GetRandomReal(0.00, 30.00) ) )
call SetUnitAnimation( GetLastCreatedUnit(), "death" )
call SetUnitAbilityLevelSwapped( 'A04E', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A07I', gg_unit_Hant_0621) )
call SetUnitPathing( GetLastCreatedUnit(), false )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_MyNewPoint[70], 1000.00, GetUnitFacing(GetLastCreatedUnit() )) )
call UnitApplyTimedLifeBJ( 1.90, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h019', GetOwningPlayer(gg_unit_Hant_0621), udg_MyNewPoint[70], ( udg_Angle[168] - GetRandomReal(0.00, 30.00) ) )
call SetUnitAnimation( GetLastCreatedUnit(), "death" )
call SetUnitAbilityLevelSwapped( 'A04E', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A07I', gg_unit_Hant_0621) )
call SetUnitPathing( GetLastCreatedUnit(), false )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_MyNewPoint[70], 1000.00, GetUnitFacing(GetLastCreatedUnit() )) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call RemoveLocation(udg_MyNewPoint[70])
set udg_MyNewPoint[70] = null
endfunction
//===========================================================================
function InitTrig_Snake_Move takes nothing returns nothing
set gg_trg_Snake_Move = CreateTrigger( )
call DisableTrigger( gg_trg_Snake_Move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Snake_Move, 0.10 )
call TriggerAddCondition( gg_trg_Snake_Move, Condition( function Trig_Snake_Move_Conditions ) )
call TriggerAddAction( gg_trg_Snake_Move, function Trig_Snake_Move_Actions )
endfunction
function Trig_Snake_2_Func002C takes nothing returns boolean
if ( ( GetUnitTypeId(GetSummonedUnit()) == 'n009' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetSummonedUnit()) == 'u00K' ) ) then
return true
endif
return false
endfunction
function Trig_Snake_2_Conditions takes nothing returns boolean
if ( not Trig_Snake_2_Func002C() ) then
return false
endif
return true
endfunction
function Trig_Snake_2_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'u00K' ) ) then
return false
endif
return true
endfunction
function Trig_Snake_2_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'n009' ) ) then
return false
endif
return true
endfunction
function Trig_Snake_2_Actions takes nothing returns nothing
if ( Trig_Snake_2_Func001C() ) then
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Kachiose.mdx" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
if ( Trig_Snake_2_Func001Func001C() ) then
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "shadowclone.mdx" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Snake_2 takes nothing returns nothing
set gg_trg_Snake_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Snake_2, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_Snake_2, Condition( function Trig_Snake_2_Conditions ) )
call TriggerAddAction( gg_trg_Snake_2, function Trig_Snake_2_Actions )
endfunction
function Trig_Kusanagi_sword_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07N' ) ) then
return false
endif
return true
endfunction
function Trig_Kusanagi_sword_Func005C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Kusanagi_sword_Actions takes nothing returns nothing
set udg_Orocgimaru[0] = GetSpellTargetUnit()
call TriggerSleepAction( 0.03 )
set udg_Zpoint[34] = GetUnitLoc(udg_Orocgimaru[0])
call SetUnitPositionLoc( gg_unit_Hant_0621, udg_Zpoint[34] )
if ( Trig_Kusanagi_sword_Func005C() ) then
call AddSpecialEffectLocBJ( udg_Zpoint[34], "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_Orocgimaru[0] = null
else
call AddSpecialEffectLocBJ( udg_Zpoint[34], "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[34], "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call UnitDamageTargetBJ( gg_unit_Hant_0621, udg_Orocgimaru[0], 395.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
call IssueTargetOrderBJ( gg_unit_u004_0538, "thunderbolt", udg_Orocgimaru[0] )
set udg_Orocgimaru[0] = null
endif
call RemoveLocation(udg_Zpoint[34])
set udg_Zpoint[34] = null
endfunction
//===========================================================================
function InitTrig_Kusanagi_sword takes nothing returns nothing
set gg_trg_Kusanagi_sword = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kusanagi_sword, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Kusanagi_sword, Condition( function Trig_Kusanagi_sword_Conditions ) )
call TriggerAddAction( gg_trg_Kusanagi_sword, function Trig_Kusanagi_sword_Actions )
endfunction
function Trig_Snake_spell_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00A' ) ) then
return false
endif
return true
endfunction
function Trig_Snake_spell_Func001Func002C takes nothing returns boolean
if ( ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00N') == true ) ) then
return true
endif
if ( ( IsUnitPausedBJ(GetSpellTargetUnit()) == true ) ) then
return true
endif
return false
endfunction
function Trig_Snake_spell_Func001Func010Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00A', udg_Orocgimaru[55]) == 1 )
endfunction
function Trig_Snake_spell_Func001Func010Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00A', udg_Orocgimaru[55]) == 2 )
endfunction
function Trig_Snake_spell_Func001Func010Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00A', udg_Orocgimaru[55]) == 3 )
endfunction
function Trig_Snake_spell_Func001Func010Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00A', udg_Orocgimaru[55]) == 4 )
endfunction
function Trig_Snake_spell_Func001Func010Func005Func010C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Orocgimaru[53]) == true ) ) then
return false
endif
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Orocgimaru[53]), GetUnitLoc(udg_Orocgimaru[54])) <= 180.00 ) ) then
return false
endif
return true
endfunction
function Trig_Snake_spell_Func001Func010Func005C takes nothing returns boolean
if ( not Trig_Snake_spell_Func001Func010Func005Func010C() ) then
return false
endif
return true
endfunction
function Trig_Snake_spell_Func001C takes nothing returns boolean
if ( not Trig_Snake_spell_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Snake_spell_Actions takes nothing returns nothing
if ( Trig_Snake_spell_Func001C() ) then
else
set udg_Ypoint[49] = GetUnitLoc(GetSpellTargetUnit())
set udg_Orocgimaru[53] = GetSpellTargetUnit()
call CreateNUnitsAtLoc( 1, 'u00C', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Orocgimaru[53]), GetRandomDirectionDeg() )
set udg_Orocgimaru[54] = GetLastCreatedUnit()
call SetUnitAnimation( udg_Orocgimaru[54], "spell two" )
set udg_Orocgimaru[55] = GetSpellAbilityUnit()
call SetUnitPathing( GetLastCreatedUnit(), false )
call SetUnitPositionLoc( GetLastCreatedUnit(), udg_Ypoint[49] )
call PauseUnitBJ( true, udg_Orocgimaru[53] )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 21
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Snake_spell_Func001Func010Func001001() ) then
call TriggerSleepAction( 0.04 )
else
call DoNothing( )
endif
if ( Trig_Snake_spell_Func001Func010Func002001() ) then
call TriggerSleepAction( 0.06 )
else
call DoNothing( )
endif
if ( Trig_Snake_spell_Func001Func010Func003001() ) then
call TriggerSleepAction( 0.08 )
else
call DoNothing( )
endif
if ( Trig_Snake_spell_Func001Func010Func004001() ) then
call TriggerSleepAction( 0.10 )
else
call DoNothing( )
endif
if ( Trig_Snake_spell_Func001Func010Func005C() ) then
call SetUnitPositionLoc( udg_Orocgimaru[54], udg_Ypoint[49] )
else
call RemoveUnit( udg_Orocgimaru[54] )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Orocgimaru[53]), "shadowclone.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call UnitRemoveBuffBJ( 'BPSE', udg_Orocgimaru[53] )
call PauseUnitBJ( false, udg_Orocgimaru[53] )
set udg_Orocgimaru[53] = null
set udg_Orocgimaru[54] = null
set udg_Orocgimaru[55] = null
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveUnit( udg_Orocgimaru[54] )
call AddSpecialEffectLocBJ( udg_Ypoint[49], "shadowclone.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call UnitRemoveBuffBJ( 'BPSE', udg_Orocgimaru[53] )
call PauseUnitBJ( false, udg_Orocgimaru[53] )
call RemoveLocation(udg_Ypoint[49])
set udg_Ypoint[49] = null
set udg_Orocgimaru[53] = null
set udg_Orocgimaru[54] = null
set udg_Orocgimaru[55] = null
endif
endfunction
//===========================================================================
function InitTrig_Snake_spell takes nothing returns nothing
set gg_trg_Snake_spell = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Snake_spell, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Snake_spell, Condition( function Trig_Snake_spell_Conditions ) )
call TriggerAddAction( gg_trg_Snake_spell, function Trig_Snake_spell_Actions )
endfunction
function Trig_change_of_Body_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07D' ) ) then
return false
endif
return true
endfunction
function Trig_change_of_Body_Actions takes nothing returns nothing
set udg_Orocgimaru[61] = GetSpellTargetUnit()
set udg_Orocgimaru[62] = GetSpellAbilityUnit()
set udg_CasterPoint[9] = GetUnitLoc(udg_Orocgimaru[62])
set udg_HPORO = GetUnitLifePercent(udg_Orocgimaru[62])
call RemoveUnit( udg_Orocgimaru[889] )
set udg_Orocgimaru[889] = null
call TriggerSleepAction( 0.05 )
call SetUnitPositionLocFacingBJ( udg_Orocgimaru[62], GetUnitLoc(udg_Orocgimaru[61]), GetUnitFacing(udg_Orocgimaru[61]) )
call SetUnitLifePercentBJ( udg_Orocgimaru[62], GetUnitLifePercent(udg_Orocgimaru[61]) )
call SetUnitPositionLocFacingLocBJ( udg_Orocgimaru[61], udg_CasterPoint[9], GetUnitLoc(udg_Orocgimaru[62]) )
call SetUnitLifePercentBJ( udg_Orocgimaru[61], udg_HPORO )
call AddSpecialEffectLocBJ( udg_CasterPoint[9], "Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_CasterPoint[9], "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Orocgimaru[62]), "Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Orocgimaru[62]), "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_Orocgimaru[61] = null
set udg_Orocgimaru[62] = null
set udg_HPORO = 0.00
call RemoveLocation (udg_CasterPoint[9])
set udg_CasterPoint[9] = null
endfunction
//===========================================================================
function InitTrig_change_of_Body takes nothing returns nothing
set gg_trg_change_of_Body = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_change_of_Body, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_change_of_Body, Condition( function Trig_change_of_Body_Conditions ) )
call TriggerAddAction( gg_trg_change_of_Body, function Trig_change_of_Body_Actions )
endfunction
// Trigger: Snake moves
//===========================================================================
function Trig_move_to_Snake_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03S' ) ) then
return false
endif
return true
endfunction
function Trig_move_to_Snake_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_Hant_0621), "Objects\\Spawnmodels\\Orc\\OrcLargeDeathExplode\\OrcLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.00 )
call SetUnitPositionLoc( gg_unit_Hant_0621, GetUnitLoc(GetSpellAbilityUnit()) )
call AddSpecialEffectLocBJ( GetUnitLoc(GetSpellAbilityUnit()), "Objects\\Spawnmodels\\Orc\\OrcLargeDeathExplode\\OrcLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveUnit( GetSpellAbilityUnit() )
call SelectUnitForPlayerSingle( gg_unit_Hant_0621, GetOwningPlayer(gg_unit_Hant_0621) )
endfunction
//===========================================================================
function InitTrig_Snake_moves takes nothing returns nothing
set gg_trg_Snake_moves = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Snake_moves, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Snake_moves, Condition( function Trig_move_to_Snake_Conditions ) )
call TriggerAddAction( gg_trg_Snake_moves, function Trig_move_to_Snake_Actions )
endfunction
function Trig_Cursed_Seal_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A006' ) ) then
return false
endif
return true
endfunction
function Trig_Cursed_Seal_Actions takes nothing returns nothing
set udg_Orocgimaru[76] = GetSpellTargetUnit()
call TriggerSleepAction( 200.00 )
set udg_Orocgimaru[76] = null
endfunction
//===========================================================================
function InitTrig_Cursed_Seal takes nothing returns nothing
set gg_trg_Cursed_Seal = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Cursed_Seal, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Cursed_Seal, Condition( function Trig_Cursed_Seal_Conditions ) )
call TriggerAddAction( gg_trg_Cursed_Seal, function Trig_Cursed_Seal_Actions )
endfunction
function Trig_Cursed_Seal_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nfre' ) ) then
return false
endif
return true
endfunction
function Trig_Cursed_Seal_2_Actions takes nothing returns nothing
set udg_Zpoint[40] = GetUnitLoc(GetTriggerUnit())
call RemoveUnit( GetTriggerUnit() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[40], 100.00, ( I2R(GetForLoopIndexA()) * 56.00 )), "Units\\Undead\\Abomination\\AbominationExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[40], 180.00, ( I2R(GetForLoopIndexA()) * 56.00 )), "Units\\Undead\\Abomination\\AbominationExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[40], 245.00, ( I2R(GetForLoopIndexA()) * 56.00 )), "Objects\\Spawnmodels\\Orc\\OrcSmallDeathExplode\\OrcSmallDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[40], 300.00, ( I2R(GetForLoopIndexA()) * 56.00 )), "Objects\\Spawnmodels\\Orc\\OrcSmallDeathExplode\\OrcSmallDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetUnitPositionLoc( gg_unit_Hant_0621, udg_Zpoint[40] )
call ShowUnitShow( gg_unit_Hant_0621 )
call RemoveLocation(udg_Zpoint[40])
set udg_Zpoint[40] = null
endfunction
//===========================================================================
function InitTrig_Cursed_Seal_2 takes nothing returns nothing
set gg_trg_Cursed_Seal_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Cursed_Seal_2, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Cursed_Seal_2, Condition( function Trig_Cursed_Seal_2_Conditions ) )
call TriggerAddAction( gg_trg_Cursed_Seal_2, function Trig_Cursed_Seal_2_Actions )
endfunction
function Trig_Chidori_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A005' ) ) then
return false
endif
return true
endfunction
function Trig_Chidori_Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'E005' ) ) then
return false
endif
return true
endfunction
function Trig_Chidori_Actions takes nothing returns nothing
set udg_Sasuke[1] = GetSpellAbilityUnit()
set udg_Sasuke[56] = GetSpellTargetUnit()
call SetUnitPathing( udg_Sasuke[1], false )
if ( Trig_Chidori_Func004C() ) then
call AddSpecialEffectTargetUnitBJ( "right hand", udg_Sasuke[1], "Chirodri.mdx" )
set udg_SEffect[4] = GetLastCreatedEffectBJ()
else
call AddSpecialEffectTargetUnitBJ( "left hand", udg_Sasuke[1], "Chirodri.mdx" )
set udg_SEffect[4] = GetLastCreatedEffectBJ()
endif
call TriggerSleepAction( 0.15 )
call SetUnitAnimation( udg_Sasuke[1], "Spell Channel two" )
call PauseUnitBJ( true, udg_Sasuke[1] )
call EnableTrigger( gg_trg_Chidori_move )
endfunction
//===========================================================================
function InitTrig_Chidori takes nothing returns nothing
set gg_trg_Chidori = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Chidori, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Chidori, Condition( function Trig_Chidori_Conditions ) )
call TriggerAddAction( gg_trg_Chidori, function Trig_Chidori_Actions )
endfunction
function Trig_Chidori_move_Func009Func001C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Sasuke[1]), GetUnitLoc(udg_Sasuke[56])) <= 5.00 ) ) then
return false
endif
return true
endfunction
function Trig_Chidori_move_Func009Func003Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A005', udg_Sasuke[1]) == 1 )
endfunction
function Trig_Chidori_move_Func009Func003Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A005', udg_Sasuke[1]) == 2 )
endfunction
function Trig_Chidori_move_Func009Func003Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A005', udg_Sasuke[1]) == 3 )
endfunction
function Trig_Chidori_move_Func009Func003Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A005', udg_Sasuke[1]) == 4 )
endfunction
function Trig_Chidori_move_Func009Func003C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Sasuke[1]), GetUnitLoc(udg_Sasuke[56])) <= 140.00 ) ) then
return false
endif
return true
endfunction
function Trig_Chidori_move_Func009C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Sasuke[56], 'B00N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Chidori_move_Actions takes nothing returns nothing
set udg_Ypoint[62] = GetUnitLoc(udg_Sasuke[1])
set udg_UnitPoint[440] = PolarProjectionBJ(udg_Ypoint[62], 20.00, AngleBetweenPoints(udg_Ypoint[62], GetUnitLoc(udg_Sasuke[56])))
call SetUnitPositionLoc( udg_Sasuke[1], udg_UnitPoint[440] )
call RemoveLocation(udg_UnitPoint[440])
set udg_UnitPoint[440] = null
call SetUnitFacingToFaceUnitTimed( udg_Sasuke[1], udg_Sasuke[56], 0 )
call AddSpecialEffectLocBJ( udg_Ypoint[62], "Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitAnimation( udg_Sasuke[1], "Spell Channel two" )
call RemoveLocation(udg_Ypoint[62])
set udg_Ypoint[62] = null
if ( Trig_Chidori_move_Func009C() ) then
if ( Trig_Chidori_move_Func009Func001C() ) then
call DisableTrigger( gg_trg_Chidori_move )
call SetUnitPathing( udg_Sasuke[1], true )
call DestroyEffectBJ( udg_SEffect[4] )
call SetUnitTimeScalePercent( udg_Sasuke[1], 200.00 )
call SetUnitAnimation( udg_Sasuke[1], "spell four" )
call TriggerSleepAction( 0.24 )
call PauseUnitBJ( false, udg_Sasuke[1] )
call SetUnitTimeScalePercent( udg_Sasuke[1], 100.00 )
call SetUnitAnimation( udg_Sasuke[1], "stand ready" )
set udg_Sasuke[1] = null
set udg_Sasuke[56] = null
else
endif
else
if ( Trig_Chidori_move_Func009Func003C() ) then
call DisableTrigger( gg_trg_Chidori_move )
set udg_Ypoint[62] = GetUnitLoc(udg_Sasuke[56])
call SetUnitPathing( udg_Sasuke[1], true )
call DestroyEffectBJ( udg_SEffect[4] )
call SetUnitTimeScalePercent( udg_Sasuke[1], 200.00 )
call SetUnitAnimation( udg_Sasuke[1], "spell four" )
if ( Trig_Chidori_move_Func009Func003Func007001() ) then
call UnitDamageTargetBJ( udg_Sasuke[1], udg_Sasuke[56], 160.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Chidori_move_Func009Func003Func008001() ) then
call UnitDamageTargetBJ( udg_Sasuke[1], udg_Sasuke[56], 220.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Chidori_move_Func009Func003Func009001() ) then
call UnitDamageTargetBJ( udg_Sasuke[1], udg_Sasuke[56], 340.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Chidori_move_Func009Func003Func010001() ) then
call UnitDamageTargetBJ( udg_Sasuke[1], udg_Sasuke[56], 390.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
call AddSpecialEffectLocBJ( udg_Ypoint[62], "Abilities\\Weapons\\Bolt\\BoltImpact.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[62], "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call IssueTargetOrderBJ( gg_unit_u004_0538, "thunderbolt", udg_Sasuke[56] )
call TriggerSleepAction( 0.24 )
call PauseUnitBJ( false, udg_Sasuke[1] )
call SetUnitTimeScalePercent( udg_Sasuke[1], 100.00 )
call SetUnitAnimation( udg_Sasuke[1], "stand ready" )
call RemoveLocation(udg_Ypoint[62])
set udg_Ypoint[62] = null
set udg_Sasuke[1] = null
set udg_Sasuke[56] = null
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Chidori_move takes nothing returns nothing
set gg_trg_Chidori_move = CreateTrigger( )
call DisableTrigger( gg_trg_Chidori_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Chidori_move, 0.02 )
call TriggerAddAction( gg_trg_Chidori_move, function Trig_Chidori_move_Actions )
endfunction
function Trig_Chidori_nagashi_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A004' ) ) then
return false
endif
return true
endfunction
function Trig_Chidori_nagashi_Actions takes nothing returns nothing
set udg_Ypoint[61] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'u00A', Player(PLAYER_NEUTRAL_PASSIVE), udg_Ypoint[61], bj_UNIT_FACING )
call KillUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u00B', Player(PLAYER_NEUTRAL_PASSIVE), udg_Ypoint[61], bj_UNIT_FACING )
call KillUnit( GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( udg_Ypoint[61], "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Ypoint[61])
set udg_Ypoint[61] = null
endfunction
//===========================================================================
function InitTrig_Chidori_nagashi takes nothing returns nothing
set gg_trg_Chidori_nagashi = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Chidori_nagashi, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Chidori_nagashi, Condition( function Trig_Chidori_nagashi_Conditions ) )
call TriggerAddAction( gg_trg_Chidori_nagashi, function Trig_Chidori_nagashi_Actions )
endfunction
function Trig_Revive_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00H' ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Func004C takes nothing returns boolean
if ( not ( GetPlayerController(GetOwningPlayer(GetTriggerUnit())) == MAP_CONTROL_USER ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Func005C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'E005' ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Func009C takes nothing returns boolean
if ( not ( GetPlayerController(GetOwningPlayer(GetTriggerUnit())) == MAP_CONTROL_USER ) ) then
return false
endif
return true
endfunction
function Trig_Revive_Actions takes nothing returns nothing
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_NEGATIVE, GetTriggerUnit() )
call UnitRemoveBuffBJ( 'BEme', GetTriggerUnit() )
call ShowUnitHide( GetTriggerUnit() )
if ( Trig_Revive_Func004C() ) then
call CreateFogModifierRadiusLocBJ( true, GetOwningPlayer(GetTriggerUnit()), FOG_OF_WAR_VISIBLE, GetUnitLoc(GetTriggerUnit()), 200.00 )
set udg_Visible[11] = GetLastCreatedFogModifier()
else
endif
if ( Trig_Revive_Func005C() ) then
call CreateNUnitsAtLoc( 1, 'h00B', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
else
call CreateNUnitsAtLoc( 1, 'h003', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
endif
call KillUnit( GetLastCreatedUnit() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 200.00 )
call TriggerSleepAction( 0.40 )
if ( Trig_Revive_Func009C() ) then
call DestroyFogModifier( udg_Visible[11] )
else
endif
call ShowUnitShow( GetTriggerUnit() )
call SetUnitLifeBJ( GetTriggerUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetTriggerUnit()) + 1000.00 ) )
call SelectUnitForPlayerSingle( GetTriggerUnit(), GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_Revive takes nothing returns nothing
set gg_trg_Revive = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Revive, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Revive, Condition( function Trig_Revive_Conditions ) )
call TriggerAddAction( gg_trg_Revive, function Trig_Revive_Actions )
endfunction
function Trig_Kirin_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A007' ) ) then
return false
endif
return true
endfunction
function Trig_Kirin_Actions takes nothing returns nothing
set udg_Sasuke[10] = GetSpellAbilityUnit()
set udg_PointNew[129] = GetUnitLoc(GetSpellTargetUnit())
call PauseUnitBJ( true, udg_Sasuke[10] )
call SetUnitTimeScalePercent( udg_Sasuke[10], 300.00 )
call SetUnitAnimation( udg_Sasuke[10], "Spell Three" )
call TriggerSleepAction( 0.01 )
call UnitDamagePointLoc( udg_Sasuke[10], 0, 50.00, udg_PointNew[129], 500.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 18
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[129], 50.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "war3mapImported\\Great Lightning.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerSleepAction( 0.01 )
call PauseUnitBJ( false, udg_Sasuke[10] )
call SetUnitTimeScalePercent( udg_Sasuke[10], 100.00 )
call UnitDamagePointLoc( udg_Sasuke[10], 0, 100.00, udg_PointNew[129], 500.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 18
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[129], 150.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "war3mapImported\\Great Lightning.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerSleepAction( 0.01 )
call UnitDamagePointLoc( udg_Sasuke[10], 0, 250.00, udg_PointNew[129], 500.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 18
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[129], 250.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "war3mapImported\\Great Lightning.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call UnitDamagePointLoc( udg_Sasuke[10], 0, 350.00, udg_PointNew[129], 500.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 18
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[129], 350.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "war3mapImported\\Great Lightning.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerSleepAction( 0.01 )
call UnitDamagePointLoc( udg_Sasuke[10], 0, 450.00, udg_PointNew[129], 500.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 18
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[129], 450.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "war3mapImported\\Great Lightning.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerSleepAction( 0.01 )
call UnitDamagePointLoc( udg_Sasuke[10], 0, 550.00, udg_PointNew[129], 500.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 18
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[129], 550.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "war3mapImported\\Great Lightning.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerSleepAction( 0.01 )
call UnitDamagePointLoc( udg_Sasuke[10], 0, 650.00, udg_PointNew[129], 400.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 18
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_PointNew[129], 650.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "war3mapImported\\Great Lightning.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveLocation( udg_PointNew[129] )
set udg_Sasuke[10] = null
set udg_Target[4] = null
endfunction
//===========================================================================
function InitTrig_Kirin takes nothing returns nothing
set gg_trg_Kirin = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kirin, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Kirin, Condition( function Trig_Kirin_Conditions ) )
call TriggerAddAction( gg_trg_Kirin, function Trig_Kirin_Actions )
endfunction
function Trig_MSH_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A080' ) ) then
return false
endif
return true
endfunction
function Trig_MSH_2_Func001Func001Func005C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetTriggerUnit(), 'B015') == true ) ) then
return false
endif
return true
endfunction
function Trig_MSH_2_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitUserData(GetTriggerUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_MSH_2_Func001C takes nothing returns boolean
if ( not ( GetUnitUserData(GetTriggerUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_MSH_2_Actions takes nothing returns nothing
if ( Trig_MSH_2_Func001C() ) then
call SetUnitUserData( GetTriggerUnit(), 1 )
call CreateNUnitsAtLoc( 1, 'orai', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
set udg_Sasuke[19] = GetLastCreatedUnit()
call IssueTargetOrderBJ( gg_unit_u004_0479, "innerfire", GetTriggerUnit() )
call IssueTargetOrderBJ( gg_unit_u004_0538, "bloodlust", GetTriggerUnit() )
call SetPlayerAbilityAvailableBJ( false, 'A00H', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A082', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A007', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A089', GetOwningPlayer(GetTriggerUnit()) )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "bloodlust", GetSpellAbilityUnit() )
else
if ( Trig_MSH_2_Func001Func001C() ) then
call SetUnitUserData( GetTriggerUnit(), 0 )
call KillUnit( udg_Sasuke[19] )
set udg_Sasuke[19] = null
if ( Trig_MSH_2_Func001Func001Func005C() ) then
call UnitRemoveAbilityBJ( 'A08A', GetTriggerUnit() )
call UnitRemoveAbilityBJ( 'A086', GetTriggerUnit() )
call UnitRemoveAbilityBJ( 'A01C', GetTriggerUnit() )
call DisableTrigger( gg_trg_Sasanoos_2 )
else
endif
call SetPlayerAbilityAvailableBJ( false, 'A082', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A00H', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A089', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A007', GetOwningPlayer(GetTriggerUnit()) )
call UnitRemoveBuffBJ( 'B014', GetSpellAbilityUnit() )
call UnitRemoveBuffBJ( 'Bblo', GetSpellAbilityUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_MSH_2 takes nothing returns nothing
set gg_trg_MSH_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_MSH_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_MSH_2, Condition( function Trig_MSH_2_Conditions ) )
call TriggerAddAction( gg_trg_MSH_2, function Trig_MSH_2_Actions )
endfunction
function Trig_Tsu_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A082' ) ) then
return false
endif
return true
endfunction
function Trig_Tsu_Actions takes nothing returns nothing
set udg_Sasuke[17] = GetSpellAbilityUnit()
set udg_Sasuke[18] = GetSpellTargetUnit()
set udg_Zpoint[9] = GetUnitLoc(udg_Sasuke[18])
call PauseUnitBJ( true, udg_Sasuke[18] )
call UnitDamageTargetBJ( udg_Sasuke[17], udg_Sasuke[17], 66.70, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
call AddSpecialEffectTargetUnitBJ( "head", udg_Sasuke[17], "Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[9], "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[9], "SasukeMangekyouPulse.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call UnitDamageTargetBJ( udg_Sasuke[17], udg_Sasuke[18], 500.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
call CreateNUnitsAtLoc( 1, 'h01C', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[9], 45.00 )
call UnitApplyTimedLifeBJ( 4.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100, 100, 100, 30.00 )
call CreateNUnitsAtLoc( 1, 'h01C', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[9], 360.00 )
call UnitApplyTimedLifeBJ( 4.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100, 100, 100, 30.00 )
call CreateNUnitsAtLoc( 1, 'h01C', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[9], 315.00 )
call UnitApplyTimedLifeBJ( 4.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100, 100, 100, 30.00 )
call CreateNUnitsAtLoc( 1, 'h01C', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[9], 225.00 )
call UnitApplyTimedLifeBJ( 4.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100, 100, 100, 30.00 )
call CreateNUnitsAtLoc( 1, 'h01C', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[9], 180.00 )
call UnitApplyTimedLifeBJ( 4.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100, 100, 100, 30.00 )
call CreateNUnitsAtLoc( 1, 'h01C', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[9], 135.00 )
call UnitApplyTimedLifeBJ( 4.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100, 100, 100, 30.00 )
call TriggerSleepAction( 4.00 )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[9], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.40, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'AUsl', GetLastCreatedUnit() )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "sleep", udg_Sasuke[18] )
call SetUnitAnimation( udg_Sasuke[18], "death" )
call PauseUnitBJ( false, udg_Sasuke[18] )
call RemoveLocation(udg_Zpoint[9])
set udg_Zpoint[9] = null
set udg_Sasuke[17] = null
set udg_Sasuke[18] = null
endfunction
//===========================================================================
function InitTrig_Tsu takes nothing returns nothing
set gg_trg_Tsu = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tsu, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Tsu, Condition( function Trig_Tsu_Conditions ) )
call TriggerAddAction( gg_trg_Tsu, function Trig_Tsu_Actions )
endfunction
function Trig_Sasuke_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'E005' ) ) then
return false
endif
return true
endfunction
function Trig_Sasuke_Func003C takes nothing returns boolean
if ( not ( GetUnitUserData(GetTriggerUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Sasuke_Actions takes nothing returns nothing
if ( Trig_Sasuke_Func003C() ) then
call SetUnitUserData( GetTriggerUnit(), 1 )
call KillUnit( udg_Sasuke[19] )
set udg_Sasuke[19] = null
set udg_Sasuke[73] = null
call UnitRemoveAbilityBJ( 'A086', GetTriggerUnit() )
call UnitRemoveAbilityBJ( 'A08A', GetTriggerUnit() )
call UnitRemoveAbilityBJ( 'A01C', GetTriggerUnit() )
call SetPlayerAbilityAvailableBJ( false, 'A082', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A00H', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A089', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A007', GetOwningPlayer(GetTriggerUnit()) )
call UnitRemoveBuffBJ( 'B014', GetTriggerUnit() )
call UnitRemoveBuffBJ( 'Bblo', GetTriggerUnit() )
call DisableTrigger( gg_trg_Sasanoos_2 )
else
endif
call TriggerSleepAction( 10.05 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Gedo), true )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetDyingUnit()), GetRectCenter(gg_rct_Gedo), 0 )
endfunction
//===========================================================================
function InitTrig_Sasuke takes nothing returns nothing
set gg_trg_Sasuke = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sasuke, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Sasuke, Condition( function Trig_Sasuke_Conditions ) )
call TriggerAddAction( gg_trg_Sasuke, function Trig_Sasuke_Actions )
endfunction
function Trig_Sasanoos_1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A089' ) ) then
return false
endif
return true
endfunction
function Trig_Sasanoos_1_Func002Func001C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetTriggerUnit(), 'B015') == false ) ) then
return false
endif
return true
endfunction
function Trig_Sasanoos_1_Func002C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetTriggerUnit(), 'B015') == true ) ) then
return false
endif
return true
endfunction
function Trig_Sasanoos_1_Actions takes nothing returns nothing
if ( Trig_Sasanoos_1_Func002C() ) then
call UnitRemoveAbilityBJ( 'A086', GetTriggerUnit() )
call UnitRemoveAbilityBJ( 'A01C', GetTriggerUnit() )
call UnitRemoveAbilityBJ( 'A08A', GetTriggerUnit() )
call DisableTrigger( gg_trg_Sasanoos_2 )
set udg_Sasuke[73] = null
else
if ( Trig_Sasanoos_1_Func002Func001C() ) then
set udg_Sasuke[73] = GetSpellAbilityUnit()
call UnitAddAbilityBJ( 'A086', GetTriggerUnit() )
call UnitAddAbilityBJ( 'A01C', GetTriggerUnit() )
call UnitAddAbilityBJ( 'A08A', GetTriggerUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call EnableTrigger( gg_trg_Sasanoos_2 )
call TriggerSleepAction( 0.01 )
call IssueTargetOrderBJ( gg_unit_u004_0479, "innerfire", GetTriggerUnit() )
call IssueTargetOrderBJ( gg_unit_u004_0538, "bloodlust", GetTriggerUnit() )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Sasanoos_1 takes nothing returns nothing
set gg_trg_Sasanoos_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sasanoos_1, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Sasanoos_1, Condition( function Trig_Sasanoos_1_Conditions ) )
call TriggerAddAction( gg_trg_Sasanoos_1, function Trig_Sasanoos_1_Actions )
endfunction
function Trig_Sasanoos_2_Actions takes nothing returns nothing
call UnitDamageTargetBJ( udg_Sasuke[73], udg_Sasuke[73], 4.50, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_DIVINE )
endfunction
//===========================================================================
function InitTrig_Sasanoos_2 takes nothing returns nothing
set gg_trg_Sasanoos_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Sasanoos_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sasanoos_2, 0.55 )
call TriggerAddAction( gg_trg_Sasanoos_2, function Trig_Sasanoos_2_Actions )
endfunction
function Trig_stomb_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02G' ) ) then
return false
endif
return true
endfunction
function Trig_stomb_Actions takes nothing returns nothing
set udg_Ypoint[20] = GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ( udg_Ypoint[20], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[20], "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[20], 150.00, ( I2R(GetForLoopIndexA()) * 120.00 )), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveLocation(udg_Ypoint[20])
set udg_Ypoint[20] = null
endfunction
//===========================================================================
function InitTrig_stomb takes nothing returns nothing
set gg_trg_stomb = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_stomb, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_stomb, Condition( function Trig_stomb_Conditions ) )
call TriggerAddAction( gg_trg_stomb, function Trig_stomb_Actions )
endfunction
function Trig_Bazoouka_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02V' ) ) then
return false
endif
return true
endfunction
function Trig_Bazoouka_Actions takes nothing returns nothing
set udg_Zpoint[33] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[33], GetUnitFacing(GetTriggerUnit()) )
call UnitAddAbilityBJ( 'A09T', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A09T', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetTriggerUnit()) )
call SetUnitScalePercent( GetLastCreatedUnit(), 300.00, 300.00, 300.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[33], 256, GetUnitFacing(GetTriggerUnit())) )
call UnitApplyTimedLifeBJ( 1.00, 'Brai', GetLastCreatedUnit() )
call RemoveLocation(udg_Zpoint[33])
set udg_Zpoint[33] = null
endfunction
//===========================================================================
function InitTrig_Bazoouka takes nothing returns nothing
set gg_trg_Bazoouka = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bazoouka, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Bazoouka, Condition( function Trig_Bazoouka_Conditions ) )
call TriggerAddAction( gg_trg_Bazoouka, function Trig_Bazoouka_Actions )
endfunction
function Trig_Whaaa_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02I' ) ) then
return false
endif
return true
endfunction
function Trig_Whaaa_Func015001 takes nothing returns boolean
return ( DistanceBetweenPoints(GetUnitLoc(udg_Bansho_Tenin[151]), GetUnitLoc(udg_Bansho_Tenin[152])) <= 200.00 )
endfunction
function Trig_Whaaa_Func023002003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Bansho_Tenin[151])) == true )
endfunction
function Trig_Whaaa_Func024A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Bansho_Tenin[151], GetEnumUnit(), 5000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
function Trig_Whaaa_Actions takes nothing returns nothing
set udg_Bansho_Tenin[151] = GetSpellAbilityUnit()
set udg_Bansho_Tenin[152] = GetSpellTargetUnit()
set udg_Zpoint[32] = GetUnitLoc(udg_Bansho_Tenin[151])
call SetUnitPathing( udg_Bansho_Tenin[151], false )
call PauseUnitBJ( true, udg_Bansho_Tenin[151] )
call SetUnitTimeScalePercent( udg_Bansho_Tenin[151], 300.00 )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Bansho_Tenin[151], "Abilities\\Spells\\Orc\\Shockwave\\ShockwaveMissile.mdl" )
set udg_SEffect[571] = GetLastCreatedEffectBJ()
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Bansho_Tenin[32]), "Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Zpoint[32])
set udg_Zpoint[32] = null
call TriggerSleepAction( 0.05 )
call EnableTrigger( gg_trg_Whaaa_move )
loop
exitwhen ( Trig_Whaaa_Func015001() )
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10))
endloop
call DisableTrigger( gg_trg_Whaaa_move )
call SetUnitPathing( udg_Bansho_Tenin[151], true )
call SetUnitAnimation( udg_Bansho_Tenin[151], "attack" )
call DestroyEffect( udg_SEffect[571] )
call TriggerSleepAction( 0.06 )
call SetUnitTimeScalePercent( udg_Bansho_Tenin[151], 100.00 )
set udg_Zpoint[32] = GetUnitLoc(udg_Bansho_Tenin[151])
set udg_zGroups[910] = GetUnitsInRangeOfLocMatching(400.00, udg_Zpoint[32], Condition(function Trig_Whaaa_Func023002003))
call ForGroupBJ( udg_zGroups[910], function Trig_Whaaa_Func024A )
call DestroyGroup (udg_zGroups[910])
set udg_zGroups[910] = null
call CreateNUnitsAtLoc( 1, 'u008', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[32], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( udg_Zpoint[32], "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 7
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[32], 250.00, ( I2R(GetForLoopIndexA()) * 55.00 )), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[32], 250.00, ( I2R(GetForLoopIndexA()) * 55.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call PauseUnitBJ( false, udg_Bansho_Tenin[151] )
set udg_Bansho_Tenin[151] = null
set udg_Bansho_Tenin[152] = null
call RemoveLocation(udg_Zpoint[32])
set udg_Zpoint[32] = null
endfunction
//===========================================================================
function InitTrig_Whaaa takes nothing returns nothing
set gg_trg_Whaaa = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Whaaa, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Whaaa, Condition( function Trig_Whaaa_Conditions ) )
call TriggerAddAction( gg_trg_Whaaa, function Trig_Whaaa_Actions )
endfunction
function Trig_Whaaa_move_Actions takes nothing returns nothing
set udg_Zpoint[32] = GetUnitLoc(udg_Bansho_Tenin[151])
call SetUnitPositionLoc( udg_Bansho_Tenin[151], PolarProjectionBJ(udg_Zpoint[32], 30.00, AngleBetweenPoints(udg_Zpoint[32], GetUnitLoc(udg_Bansho_Tenin[152]))) )
call SetUnitFacingToFaceUnitTimed( udg_Bansho_Tenin[151], udg_Bansho_Tenin[152], 0 )
call AddSpecialEffectLocBJ( udg_Zpoint[32], "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Zpoint[32])
set udg_Zpoint[32] = null
call SetUnitAnimation( udg_Bansho_Tenin[151], "walk" )
endfunction
//===========================================================================
function InitTrig_Whaaa_move takes nothing returns nothing
set gg_trg_Whaaa_move = CreateTrigger( )
call DisableTrigger( gg_trg_Whaaa_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Whaaa_move, 0.02 )
call TriggerAddAction( gg_trg_Whaaa_move, function Trig_Whaaa_move_Actions )
endfunction
function Trig_Overpower_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07U' ) ) then
return false
endif
return true
endfunction
function Trig_Overpower_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07U', udg_Hero2[101]) == 1 )
endfunction
function Trig_Overpower_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07U', udg_Hero2[101]) == 2 )
endfunction
function Trig_Overpower_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07U', udg_Hero2[101]) == 3 )
endfunction
function Trig_Overpower_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07U', udg_Hero2[101]) == 4 )
endfunction
function Trig_Overpower_Func010C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Hero2[101]) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(udg_Hero2[101]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Overpower_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "origin", udg_Hero2[101], "Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call ModifyHeroStat( bj_HEROSTAT_STR, udg_Hero2[101], bj_MODIFYMETHOD_ADD, 120 )
call SetUnitVertexColorBJ( udg_Hero2[101], 80.00, 60.00, 100.00, 0 )
call SetUnitUserData( udg_Hero2[101], 1 )
if ( Trig_Overpower_Func006001() ) then
call TriggerSleepAction( 5.00 )
else
call DoNothing( )
endif
if ( Trig_Overpower_Func007001() ) then
call TriggerSleepAction( 9.00 )
else
call DoNothing( )
endif
if ( Trig_Overpower_Func008001() ) then
call TriggerSleepAction( 13.00 )
else
call DoNothing( )
endif
if ( Trig_Overpower_Func009001() ) then
call TriggerSleepAction( 17.00 )
else
call DoNothing( )
endif
if ( Trig_Overpower_Func010C() ) then
call UnitRemoveBuffBJ( 'B018', udg_Hero2[101] )
set udg_PeinReal[118] = GetUnitLifePercent(udg_Hero2[101])
call ModifyHeroStat( bj_HEROSTAT_STR, udg_Hero2[101], bj_MODIFYMETHOD_SUB, 120 )
call SetUnitVertexColorBJ( udg_Hero2[101], 90.00, 90.00, 90.00, 0 )
call SetUnitLifePercentBJ( udg_Hero2[101], udg_PeinReal[118] )
set udg_PeinReal[118] = 0.00
call SetUnitUserData( udg_Hero2[101], 0 )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Overpower takes nothing returns nothing
set gg_trg_Overpower = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Overpower, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Overpower, Condition( function Trig_Overpower_Conditions ) )
call TriggerAddAction( gg_trg_Overpower, function Trig_Overpower_Actions )
endfunction
function Trig_Podmena_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03V' ) ) then
return false
endif
return true
endfunction
function Trig_Podmena_2_Func004Func002002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Podmena_2_Func004Func002002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Podmena_2_Func004Func002002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Podmena_2_Func004Func002002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Podmena_2_Func004Func002002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Podmena_2_Func004Func002002003002002001001(), Trig_Podmena_2_Func004Func002002003002002001002() )
endfunction
function Trig_Podmena_2_Func004Func002002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Podmena_2_Func004Func002002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Podmena_2_Func004Func002002003002002001(), Trig_Podmena_2_Func004Func002002003002002002() )
endfunction
function Trig_Podmena_2_Func004Func002002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Podmena_2_Func004Func002002003002001(), Trig_Podmena_2_Func004Func002002003002002() )
endfunction
function Trig_Podmena_2_Func004Func002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Podmena_2_Func004Func002002003001(), Trig_Podmena_2_Func004Func002002003002() )
endfunction
function Trig_Podmena_2_Func004Func003A takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 300.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
endfunction
function Trig_Podmena_2_Func004C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(udg_Zpoint[10], GetUnitLoc(udg_Beast[515])) <= 500.00 ) ) then
return false
endif
return true
endfunction
function Trig_Podmena_2_Actions takes nothing returns nothing
set udg_Zpoint[10] = GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ( udg_Zpoint[10], "war3mapImported\\WaterGeyser.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
if ( Trig_Podmena_2_Func004C() ) then
set udg_aGroups[19] = GetUnitsInRangeOfLocMatching(500.00, GetUnitLoc(GetTriggerUnit()), Condition(function Trig_Podmena_2_Func004Func002002003))
call ForGroupBJ( udg_aGroups[19], function Trig_Podmena_2_Func004Func003A )
call DestroyGroup (udg_aGroups[19])
set udg_aGroups[19] = null
call AddSpecialEffectLocBJ( udg_Zpoint[10], "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[10], "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Zpoint[10])
set udg_Zpoint[10] = null
else
call DoNothing( )
endif
call RemoveLocation(udg_Zpoint[10])
set udg_Zpoint[10] = null
endfunction
//===========================================================================
function InitTrig_Podmena_2 takes nothing returns nothing
set gg_trg_Podmena_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Podmena_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Podmena_2, Condition( function Trig_Podmena_2_Conditions ) )
call TriggerAddAction( gg_trg_Podmena_2, function Trig_Podmena_2_Actions )
endfunction
function Trig_water_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A0AZ' ) ) then
return false
endif
return true
endfunction
function Trig_water_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AZ', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_water_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AZ', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_water_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AZ', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_water_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A0AZ', GetSpellAbilityUnit()) == 4 )
endfunction
function Trig_water_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u01D', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetSpellAbilityUnit()), GetRandomDirectionDeg() )
set udg_Beast[515] = GetLastCreatedUnit()
if ( Trig_water_Func002001() ) then
call UnitApplyTimedLifeBJ( 10.00, 'BTLF', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_water_Func003001() ) then
call UnitApplyTimedLifeBJ( 15.00, 'BTLF', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_water_Func004001() ) then
call UnitApplyTimedLifeBJ( 20.00, 'BTLF', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_water_Func005001() ) then
call UnitApplyTimedLifeBJ( 25.00, 'BTLF', GetLastCreatedUnit() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_water takes nothing returns nothing
set gg_trg_water = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_water, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_water, Condition( function Trig_water_Conditions ) )
call TriggerAddAction( gg_trg_water, function Trig_water_Actions )
endfunction
function Trig_water_dead_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Beast[515] ) ) then
return false
endif
return true
endfunction
function Trig_water_dead_Actions takes nothing returns nothing
set udg_Beast[515] = null
endfunction
//===========================================================================
function InitTrig_water_dead takes nothing returns nothing
set gg_trg_water_dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_water_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_water_dead, Condition( function Trig_water_dead_Conditions ) )
call TriggerAddAction( gg_trg_water_dead, function Trig_water_dead_Actions )
endfunction
function Trig_Charge_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A012' ) ) then
return false
endif
return true
endfunction
function Trig_Charge_Actions takes nothing returns nothing
set udg_Beast[513] = GetSpellAbilityUnit()
set udg_Beast[514] = GetSpellTargetUnit()
call SetUnitPathing( udg_Beast[513], false )
call TriggerSleepAction( 0.04 )
call PauseUnitBJ( true, udg_Beast[513] )
call SetUnitAnimationByIndex(udg_Beast[513],5)
call EnableTrigger( gg_trg_Chargei_move )
endfunction
//===========================================================================
function InitTrig_Charge takes nothing returns nothing
set gg_trg_Charge = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Charge, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Charge, Condition( function Trig_Charge_Conditions ) )
call TriggerAddAction( gg_trg_Charge, function Trig_Charge_Actions )
endfunction
function Trig_Chargei_move_Func003Func010Func001002003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Beast[513])) == true )
endfunction
function Trig_Chargei_move_Func003Func010Func002A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Beast[513], GetEnumUnit(), 160.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
function Trig_Chargei_move_Func003Func010C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Beast[513]), GetUnitLoc(udg_Beast[515])) <= 500.00 ) ) then
return false
endif
return true
endfunction
function Trig_Chargei_move_Func003C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Beast[513]), GetUnitLoc(udg_Beast[514])) <= 140.00 ) ) then
return false
endif
return true
endfunction
function Trig_Chargei_move_Actions takes nothing returns nothing
set udg_UnitPoint[429] = GetUnitLoc(udg_Beast[513])
set udg_UnitPoint[428] = PolarProjectionBJ(udg_UnitPoint[429], 15.00, AngleBetweenPoints(udg_UnitPoint[429], GetUnitLoc(udg_Beast[514])))
call SetUnitPositionLoc( udg_Beast[513], udg_UnitPoint[428] )
call RemoveLocation(udg_UnitPoint[428])
set udg_UnitPoint[428] = null
call RemoveLocation(udg_UnitPoint[429])
set udg_UnitPoint[429] = null
call SetUnitFacingToFaceUnitTimed( udg_Beast[513], udg_Beast[514], 0 )
if ( Trig_Chargei_move_Func003C() ) then
call DisableTrigger( GetTriggeringTrigger() )
set udg_Zpoint[31] = GetUnitLoc(udg_Beast[513])
call SetUnitPathing( udg_Beast[513], true )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Beast[513]), udg_Zpoint[31], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.05, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A01X', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A01X', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A012', udg_Beast[513]) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "thunderclap" )
if ( Trig_Chargei_move_Func003Func010C() ) then
set udg_zGroups[909] = GetUnitsInRangeOfLocMatching(400.00, udg_Zpoint[31], Condition(function Trig_Chargei_move_Func003Func010Func001002003))
call ForGroupBJ( udg_zGroups[909], function Trig_Chargei_move_Func003Func010Func002A )
call DestroyGroup (udg_zGroups[909])
set udg_zGroups[909] = null
call AddSpecialEffectLocBJ( udg_Zpoint[31], "war3mapImported\\AquaSpike.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[31], 140.00, ( I2R(GetForLoopIndexA()) * 120.00 )), "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[31], 140.00, ( I2R(GetForLoopIndexA()) * 120.00 )), "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
call AddSpecialEffectLocBJ( udg_Zpoint[31], "war3mapImported\\WaterGeyser.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[31], "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[31], "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endif
call PauseUnitBJ( false, udg_Beast[513] )
call SetUnitAnimation( udg_Beast[513], "stand ready" )
set udg_Beast[513] = null
set udg_Beast[514] = null
call RemoveLocation(udg_Zpoint[31])
set udg_Zpoint[31] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Chargei_move takes nothing returns nothing
set gg_trg_Chargei_move = CreateTrigger( )
call DisableTrigger( gg_trg_Chargei_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Chargei_move, 0.02 )
call TriggerAddAction( gg_trg_Chargei_move, function Trig_Chargei_move_Actions )
endfunction
function Trig_Sword_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08N' ) ) then
return false
endif
return true
endfunction
function Trig_Sword_Actions takes nothing returns nothing
set udg_Beast[512] = GetSpellAbilityUnit()
call SetUnitTimeScalePercent( udg_Beast[512], 300.00 )
call EnableTrigger( gg_trg_Sword_attack )
call TriggerSleepAction( 2 )
call DisableTrigger( gg_trg_Sword_attack )
call SetUnitTimeScalePercent( udg_Beast[512], 100.00 )
set udg_Beast[512] = null
endfunction
//===========================================================================
function InitTrig_Sword takes nothing returns nothing
set gg_trg_Sword = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sword, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Sword, Condition( function Trig_Sword_Conditions ) )
call TriggerAddAction( gg_trg_Sword, function Trig_Sword_Actions )
endfunction
function Trig_Sword_attack_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( udg_Beast[512], "stop" )
call SetUnitAnimation( udg_Beast[512], "attack" )
call AddSpecialEffectLocBJ( PolarProjectionBJ(GetUnitLoc(udg_Beast[512]), 100.00, GetUnitFacing(udg_Beast[512])), "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Sword_attack takes nothing returns nothing
set gg_trg_Sword_attack = CreateTrigger( )
call DisableTrigger( gg_trg_Sword_attack )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sword_attack, 0.40 )
call TriggerAddAction( gg_trg_Sword_attack, function Trig_Sword_attack_Actions )
endfunction
function Trig_Water_wave_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08P' ) ) then
return false
endif
return true
endfunction
function Trig_Water_wave_Func008C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()), GetUnitLoc(udg_Beast[515])) <= 500.00 ) ) then
return false
endif
return true
endfunction
function Trig_Water_wave_Actions takes nothing returns nothing
set udg_Zpoint[30] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[30], GetUnitFacing(GetTriggerUnit()) )
call SetUnitScalePercent( GetLastCreatedUnit(), 200.00, 200.00, 200.00 )
call UnitAddAbilityBJ( 'A08Q', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A08Q', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08P', GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[30], 256, GetUnitFacing(GetTriggerUnit())) )
call UnitApplyTimedLifeBJ( 0.80, 'BTLF', GetLastCreatedUnit() )
if ( Trig_Water_wave_Func008C() ) then
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[30], ( GetUnitFacing(GetTriggerUnit()) + 50.00 ) )
call SetUnitScalePercent( GetLastCreatedUnit(), 200.00, 200.00, 200.00 )
call UnitAddAbilityBJ( 'A08Q', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A08Q', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08P', GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[30], 256.00, ( GetUnitFacing(GetTriggerUnit()) + 50.00 )) )
call UnitApplyTimedLifeBJ( 0.80, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[30], ( GetUnitFacing(GetTriggerUnit()) + 100.00 ) )
call SetUnitScalePercent( GetLastCreatedUnit(), 200.00, 200.00, 200.00 )
call UnitAddAbilityBJ( 'A08Q', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A08Q', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08P', GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[30], 256.00, ( GetUnitFacing(GetTriggerUnit()) + 100.00 )) )
call UnitApplyTimedLifeBJ( 0.80, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[30], ( GetUnitFacing(GetTriggerUnit()) + 150.00 ) )
call SetUnitScalePercent( GetLastCreatedUnit(), 200.00, 200.00, 200.00 )
call UnitAddAbilityBJ( 'A08Q', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A08Q', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08P', GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[30], 256.00, ( GetUnitFacing(GetTriggerUnit()) + 150.00 )) )
call UnitApplyTimedLifeBJ( 0.80, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[30], ( GetUnitFacing(GetTriggerUnit()) - 50.00 ) )
call SetUnitScalePercent( GetLastCreatedUnit(), 200.00, 200.00, 200.00 )
call UnitAddAbilityBJ( 'A08Q', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A08Q', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08P', GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[30], 256, ( GetUnitFacing(GetTriggerUnit()) - 50.00 )) )
call UnitApplyTimedLifeBJ( 0.80, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[30], ( GetUnitFacing(GetTriggerUnit()) - 100.00 ) )
call SetUnitScalePercent( GetLastCreatedUnit(), 200.00, 200.00, 200.00 )
call UnitAddAbilityBJ( 'A08Q', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A08Q', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08P', GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[30], 256, ( GetUnitFacing(GetTriggerUnit()) - 100.00 )) )
call UnitApplyTimedLifeBJ( 0.80, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[30], ( GetUnitFacing(GetTriggerUnit()) - 150.00 ) )
call SetUnitScalePercent( GetLastCreatedUnit(), 200.00, 200.00, 200.00 )
call UnitAddAbilityBJ( 'A08Q', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A08Q', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08P', GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[30], 256, ( GetUnitFacing(GetTriggerUnit()) - 150.00 )) )
call UnitApplyTimedLifeBJ( 0.80, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[30], ( GetUnitFacing(GetTriggerUnit()) - 200.00 ) )
call SetUnitScalePercent( GetLastCreatedUnit(), 200.00, 200.00, 200.00 )
call UnitAddAbilityBJ( 'A08Q', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A08Q', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08P', GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(udg_Zpoint[30], 256, ( GetUnitFacing(GetTriggerUnit()) - 200.00 )) )
call UnitApplyTimedLifeBJ( 0.80, 'BTLF', GetLastCreatedUnit() )
else
endif
call RemoveLocation(udg_Zpoint[30])
set udg_Zpoint[30] = null
endfunction
//===========================================================================
function InitTrig_Water_wave takes nothing returns nothing
set gg_trg_Water_wave = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Water_wave, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Water_wave, Condition( function Trig_Water_wave_Conditions ) )
call TriggerAddAction( gg_trg_Water_wave, function Trig_Water_wave_Actions )
endfunction
function Trig_Sens_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02O' ) ) then
return false
endif
return true
endfunction
function Trig_Sens_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02O', GetSpellAbilityUnit()) == 1 )
endfunction
function Trig_Sens_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02O', GetSpellAbilityUnit()) == 2 )
endfunction
function Trig_Sens_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02O', GetSpellAbilityUnit()) == 3 )
endfunction
function Trig_Sens_Func010C takes nothing returns boolean
if ( not ( IsTriggerEnabled(gg_trg_Sens_activ) == true ) ) then
return false
endif
return true
endfunction
function Trig_Sens_Actions takes nothing returns nothing
set udg_Beast[612] = GetSpellAbilityUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Beast[612]), GetUnitLoc(udg_Beast[612]), bj_UNIT_FACING )
call UnitAddAbilityBJ( 'A008', GetLastCreatedUnit() )
set udg_Beast[613] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_Sens_activ )
if ( Trig_Sens_Func006001() ) then
call TriggerSleepAction( 20.00 )
else
call DoNothing( )
endif
if ( Trig_Sens_Func007001() ) then
call TriggerSleepAction( 40.00 )
else
call DoNothing( )
endif
if ( Trig_Sens_Func008001() ) then
call TriggerSleepAction( 60.00 )
else
call DoNothing( )
endif
call TriggerSleepAction( 60.00 )
if ( Trig_Sens_Func010C() ) then
call DisableTrigger( gg_trg_Sens_activ )
call RemoveUnit( udg_Beast[613] )
set udg_Beast[612] = null
set udg_Beast[613] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Sens takes nothing returns nothing
set gg_trg_Sens = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sens, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Sens, Condition( function Trig_Sens_Conditions ) )
call TriggerAddAction( gg_trg_Sens, function Trig_Sens_Actions )
endfunction
function Trig_Sens_activ_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( udg_Beast[613], "farsight", GetUnitLoc(udg_Beast[612]) )
endfunction
//===========================================================================
function InitTrig_Sens_activ takes nothing returns nothing
set gg_trg_Sens_activ = CreateTrigger( )
call DisableTrigger( gg_trg_Sens_activ )
call TriggerRegisterTimerEventPeriodic( gg_trg_Sens_activ, 1.00 )
call TriggerAddAction( gg_trg_Sens_activ, function Trig_Sens_activ_Actions )
endfunction
function Trig_w_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08K' ) ) then
return false
endif
return true
endfunction
function Trig_w_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'ACsi', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'ACsi', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A08K', GetTriggerUnit()) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "silence", GetUnitLoc(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_w takes nothing returns nothing
set gg_trg_w = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_w, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_w, Condition( function Trig_w_Conditions ) )
call TriggerAddAction( gg_trg_w, function Trig_w_Actions )
endfunction
function Trig_t_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A033' ) ) then
return false
endif
return true
endfunction
function Trig_t_Actions takes nothing returns nothing
call SetUnitLifePercentBJ( GetSpellTargetUnit(), 100 )
call SetUnitManaPercentBJ( GetSpellTargetUnit(), 100 )
call AddSpecialEffectTargetUnitBJ( "right hand", GetSpellAbilityUnit(), "Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "left hand", GetSpellAbilityUnit(), "Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_t takes nothing returns nothing
set gg_trg_t = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_t, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_t, Condition( function Trig_t_Conditions ) )
call TriggerAddAction( gg_trg_t, function Trig_t_Actions )
endfunction
function Trig_Hand_kinjal_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A034' ) ) then
return false
endif
return true
endfunction
function Trig_Hand_kinjal_Func002Func021001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 1 )
endfunction
function Trig_Hand_kinjal_Func002Func022001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 2 )
endfunction
function Trig_Hand_kinjal_Func002Func023001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 3 )
endfunction
function Trig_Hand_kinjal_Func002Func024001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 4 )
endfunction
function Trig_Hand_kinjal_Func002Func027001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 1 )
endfunction
function Trig_Hand_kinjal_Func002Func028001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 2 )
endfunction
function Trig_Hand_kinjal_Func002Func029001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 3 )
endfunction
function Trig_Hand_kinjal_Func002Func030001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 4 )
endfunction
function Trig_Hand_kinjal_Func002Func036001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 1 )
endfunction
function Trig_Hand_kinjal_Func002Func037001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 2 )
endfunction
function Trig_Hand_kinjal_Func002Func038001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 3 )
endfunction
function Trig_Hand_kinjal_Func002Func039001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 4 )
endfunction
function Trig_Hand_kinjal_Func002Func044001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 1 )
endfunction
function Trig_Hand_kinjal_Func002Func045001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 2 )
endfunction
function Trig_Hand_kinjal_Func002Func046001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 3 )
endfunction
function Trig_Hand_kinjal_Func002Func047001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 4 )
endfunction
function Trig_Hand_kinjal_Func002Func052001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 1 )
endfunction
function Trig_Hand_kinjal_Func002Func053001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 2 )
endfunction
function Trig_Hand_kinjal_Func002Func054001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 3 )
endfunction
function Trig_Hand_kinjal_Func002Func055001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 4 )
endfunction
function Trig_Hand_kinjal_Func002Func060001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 1 )
endfunction
function Trig_Hand_kinjal_Func002Func061001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 2 )
endfunction
function Trig_Hand_kinjal_Func002Func062001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 3 )
endfunction
function Trig_Hand_kinjal_Func002Func063001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 4 )
endfunction
function Trig_Hand_kinjal_Func002Func068001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 1 )
endfunction
function Trig_Hand_kinjal_Func002Func069001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 2 )
endfunction
function Trig_Hand_kinjal_Func002Func070001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 3 )
endfunction
function Trig_Hand_kinjal_Func002Func071001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 4 )
endfunction
function Trig_Hand_kinjal_Func002Func076001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 1 )
endfunction
function Trig_Hand_kinjal_Func002Func077001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 2 )
endfunction
function Trig_Hand_kinjal_Func002Func078001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 3 )
endfunction
function Trig_Hand_kinjal_Func002Func079001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 4 )
endfunction
function Trig_Hand_kinjal_Func002Func084001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 1 )
endfunction
function Trig_Hand_kinjal_Func002Func085001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 2 )
endfunction
function Trig_Hand_kinjal_Func002Func086001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 3 )
endfunction
function Trig_Hand_kinjal_Func002Func087001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A034', gg_unit_Hgam_0383) == 4 )
endfunction
function Trig_Hand_kinjal_Func002C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Asuma[1], 'B00N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Hand_kinjal_Actions takes nothing returns nothing
set udg_Asuma[1] = GetSpellTargetUnit()
if ( Trig_Hand_kinjal_Func002C() ) then
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_Hgam_0383), "Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitPositionLoc( gg_unit_Hgam_0383, PolarProjectionBJ(GetUnitLoc(udg_Asuma[1]), -100.00, GetUnitFacing(gg_unit_Hgam_0383)) )
call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_Hgam_0383), "Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitAnimation( gg_unit_Hgam_0383, "attack" )
set udg_Asuma[1] = null
else
call SetUnitPositionLoc( gg_unit_Hgam_0383, PolarProjectionBJ(GetUnitLoc(udg_Asuma[1]), -100.00, GetUnitFacing(gg_unit_Hgam_0383)) )
call PauseUnitBJ( true, gg_unit_Hgam_0383 )
call PauseUnitBJ( true, udg_Asuma[1] )
call AddSpecialEffectTargetUnitBJ( "right hand", gg_unit_Hgam_0383, "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl" )
set udg_SEffect[16] = GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ( "left hand", gg_unit_Hgam_0383, "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl" )
set udg_SEffect[17] = GetLastCreatedEffectBJ()
call TriggerSleepAction( 0.05 )
call SetUnitTimeScalePercent( gg_unit_Hgam_0383, 200.00 )
call SetUnitAnimation( gg_unit_Hgam_0383, "attack" )
call AddSpecialEffectTargetUnitBJ( "chest", udg_Asuma[1], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
if ( Trig_Hand_kinjal_Func002Func021001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.60 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func022001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.80 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func023001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func024001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.20 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
call TriggerSleepAction( 0.05 )
call SetUnitAnimation( gg_unit_Hgam_0383, "attack" )
if ( Trig_Hand_kinjal_Func002Func027001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.60 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func028001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.80 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func029001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func030001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.20 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], 80.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectTargetUnitBJ( "chest", udg_Asuma[1], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.05 )
call SetUnitAnimation( gg_unit_Hgam_0383, "attack" )
if ( Trig_Hand_kinjal_Func002Func036001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.60 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func037001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.80 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func038001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func039001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.20 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
call AddSpecialEffectTargetUnitBJ( "chest", udg_Asuma[1], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.05 )
call SetUnitAnimation( gg_unit_Hgam_0383, "attack" )
if ( Trig_Hand_kinjal_Func002Func044001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.60 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func045001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.80 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func046001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func047001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.20 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
call AddSpecialEffectTargetUnitBJ( "chest", udg_Asuma[1], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.05 )
call SetUnitAnimation( gg_unit_Hgam_0383, "attack" )
if ( Trig_Hand_kinjal_Func002Func052001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.60 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func053001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.80 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func054001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func055001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.20 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
call AddSpecialEffectTargetUnitBJ( "chest", udg_Asuma[1], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.05 )
call SetUnitAnimation( gg_unit_Hgam_0383, "attack" )
if ( Trig_Hand_kinjal_Func002Func060001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.60 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func061001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.80 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func062001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func063001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.20 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
call AddSpecialEffectTargetUnitBJ( "chest", udg_Asuma[1], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.05 )
call SetUnitAnimation( gg_unit_Hgam_0383, "attack" )
if ( Trig_Hand_kinjal_Func002Func068001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.60 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func069001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.80 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func070001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func071001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.20 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
call AddSpecialEffectTargetUnitBJ( "chest", udg_Asuma[1], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.05 )
call SetUnitAnimation( gg_unit_Hgam_0383, "attack" )
if ( Trig_Hand_kinjal_Func002Func076001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.60 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func077001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.80 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func078001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func079001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.40 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
call AddSpecialEffectTargetUnitBJ( "chest", udg_Asuma[1], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.05 )
call SetUnitAnimation( gg_unit_Hgam_0383, "attack" )
if ( Trig_Hand_kinjal_Func002Func084001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.60 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func085001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 0.80 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func086001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
if ( Trig_Hand_kinjal_Func002Func087001() ) then
call UnitDamageTargetBJ( gg_unit_Hgam_0383, udg_Asuma[1], ( 1.40 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, gg_unit_Hgam_0383, true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
call SetUnitTimeScalePercent( gg_unit_Hgam_0383, 100.00 )
call PauseUnitBJ( false, gg_unit_Hgam_0383 )
call PauseUnitBJ( false, udg_Asuma[1] )
call DestroyEffectBJ( udg_SEffect[16] )
call DestroyEffectBJ( udg_SEffect[17] )
set udg_Asuma[1] = null
endif
endfunction
//===========================================================================
function InitTrig_Hand_kinjal takes nothing returns nothing
set gg_trg_Hand_kinjal = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hand_kinjal, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Hand_kinjal, Condition( function Trig_Hand_kinjal_Conditions ) )
call TriggerAddAction( gg_trg_Hand_kinjal, function Trig_Hand_kinjal_Actions )
endfunction
function Trig_Hand_Hand_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02R' ) ) then
return false
endif
return true
endfunction
function Trig_Hand_Hand_Actions takes nothing returns nothing
set udg_Asuma[2] = GetSpellAbilityUnit()
call EnableTrigger( gg_trg_Hand_Hand_damage )
call TriggerSleepAction( 20.00 )
call DisableTrigger( gg_trg_Hand_Hand_damage )
set udg_Asuma[2] = null
endfunction
//===========================================================================
function InitTrig_Hand_Hand takes nothing returns nothing
set gg_trg_Hand_Hand = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hand_Hand, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Hand_Hand, Condition( function Trig_Hand_Hand_Conditions ) )
call TriggerAddAction( gg_trg_Hand_Hand, function Trig_Hand_Hand_Actions )
endfunction
function Trig_Hand_Hand_damage_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Asuma[2] ) ) then
return false
endif
return true
endfunction
function Trig_Hand_Hand_damage_Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02R', udg_Asuma[2]) == 1 )
endfunction
function Trig_Hand_Hand_damage_Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02R', udg_Asuma[2]) == 2 )
endfunction
function Trig_Hand_Hand_damage_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02R', udg_Asuma[2]) == 3 )
endfunction
function Trig_Hand_Hand_damage_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02R', udg_Asuma[2]) == 4 )
endfunction
function Trig_Hand_Hand_damage_Func005C takes nothing returns boolean
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_MECHANICAL) == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B00N') == false ) ) then
return false
endif
return true
endfunction
function Trig_Hand_Hand_damage_Actions takes nothing returns nothing
if ( Trig_Hand_Hand_damage_Func001001() ) then
call UnitDamageTargetBJ( udg_Asuma[2], GetAttackedUnitBJ(), ( 0.60 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, udg_Asuma[2], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Hand_Hand_damage_Func002001() ) then
call UnitDamageTargetBJ( udg_Asuma[2], GetAttackedUnitBJ(), ( 0.90 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, udg_Asuma[2], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Hand_Hand_damage_Func003001() ) then
call UnitDamageTargetBJ( udg_Asuma[2], GetAttackedUnitBJ(), ( 1.30 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, udg_Asuma[2], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Hand_Hand_damage_Func004001() ) then
call UnitDamageTargetBJ( udg_Asuma[2], GetAttackedUnitBJ(), ( 1.80 * I2R(GetHeroStatBJ(bj_HEROSTAT_INT, udg_Asuma[2], true)) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Hand_Hand_damage_Func005C() ) then
call AddSpecialEffectTargetUnitBJ( "chest", GetAttackedUnitBJ(), "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call IssueTargetOrderBJ( gg_unit_u004_0479, "slow", GetAttackedUnitBJ() )
else
endif
endfunction
//===========================================================================
function InitTrig_Hand_Hand_damage takes nothing returns nothing
set gg_trg_Hand_Hand_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Hand_Hand_damage )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hand_Hand_damage, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Hand_Hand_damage, Condition( function Trig_Hand_Hand_damage_Conditions ) )
call TriggerAddAction( gg_trg_Hand_Hand_damage, function Trig_Hand_Hand_damage_Actions )
endfunction
function Trig_Sinra_move_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00O' ) ) then
return false
endif
return true
endfunction
function Trig_Sinra_move_Func004C takes nothing returns boolean
if ( not ( GetTriggerUnit() == udg_Kisame[6] ) ) then
return false
endif
return true
endfunction
function Trig_Sinra_move_Actions takes nothing returns nothing
set udg_Kisame[6] = GetSpellAbilityUnit()
set udg_Point[52] = PolarProjectionBJ(GetUnitLoc(udg_Kisame[6]), 1000.00, AngleBetweenPoints(GetUnitLoc(udg_Kisame[6]), GetSpellTargetLoc()))
call TriggerSleepAction( 0.01 )
if ( Trig_Sinra_move_Func004C() ) then
call SetUnitAnimation( udg_Kisame[6], "Walk" )
call EnableTrigger( gg_trg_Shinra_move_damage )
call TriggerSleepAction( 0.14 )
call DisableTrigger( gg_trg_Shinra_move_damage )
call SetUnitPathing( udg_Kisame[6], true )
set udg_Kisame[6] = null
call RemoveLocation( udg_Point[52] )
set udg_Point[52] = null
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Sinra_move takes nothing returns nothing
set gg_trg_Sinra_move = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sinra_move, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Sinra_move, Condition( function Trig_Sinra_move_Conditions ) )
call TriggerAddAction( gg_trg_Sinra_move, function Trig_Sinra_move_Actions )
endfunction
function Trig_Shinra_move_damage_Actions takes nothing returns nothing
call SetUnitPathing( udg_Kisame[6], false )
set udg_Zpoint[29] = GetUnitLoc(udg_Kisame[6])
set udg_UnitPoint[310] = PolarProjectionBJ(udg_Zpoint[29], 40.00, AngleBetweenPoints(udg_Zpoint[29], udg_Point[52]) )
call SetUnitPositionLoc( udg_Kisame[6], udg_UnitPoint[310])
call SetUnitAnimation( udg_Kisame[6], "Walk" )
call AddSpecialEffectLocBJ( udg_Zpoint[29], "Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Zpoint[29])
set udg_Zpoint[29] = null
call RemoveLocation(udg_UnitPoint[310])
set udg_UnitPoint[310] = null
endfunction
//===========================================================================
function InitTrig_Shinra_move_damage takes nothing returns nothing
set gg_trg_Shinra_move_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Shinra_move_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Shinra_move_damage, 0.01 )
call TriggerAddAction( gg_trg_Shinra_move_damage, function Trig_Shinra_move_damage_Actions )
endfunction
function Trig_bansho_tenin_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'ANsb' ) ) then
return false
endif
return true
endfunction
function Trig_bansho_tenin_Func001C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00N') == false ) ) then
return false
endif
return true
endfunction
function Trig_bansho_tenin_Actions takes nothing returns nothing
if ( Trig_bansho_tenin_Func001C() ) then
set udg_Bansho_Tenin[1] = GetSpellAbilityUnit()
set udg_Bansho_Tenin[2] = GetSpellTargetUnit()
set udg_Bansho_Tenin_Point[1] = GetUnitLoc(udg_Bansho_Tenin[1])
call PauseUnitBJ( true, udg_Bansho_Tenin[1] )
call PauseUnitBJ( true, udg_Bansho_Tenin[2] )
call SetUnitPathing( udg_Bansho_Tenin[2], false )
call EnableTrigger( gg_trg_bansho_tenin_move )
else
endif
endfunction
//===========================================================================
function InitTrig_bansho_tenin takes nothing returns nothing
set gg_trg_bansho_tenin = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_bansho_tenin, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_bansho_tenin, Condition( function Trig_bansho_tenin_Conditions ) )
call TriggerAddAction( gg_trg_bansho_tenin, function Trig_bansho_tenin_Actions )
endfunction
function Trig_bansho_tenin_move_Func006Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('ANsb', udg_Bansho_Tenin[1]) == 1 )
endfunction
function Trig_bansho_tenin_move_Func006Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('ANsb', udg_Bansho_Tenin[1]) == 2 )
endfunction
function Trig_bansho_tenin_move_Func006Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('ANsb', udg_Bansho_Tenin[1]) == 3 )
endfunction
function Trig_bansho_tenin_move_Func006Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('ANsb', udg_Bansho_Tenin[1]) == 4 )
endfunction
function Trig_bansho_tenin_move_Func006C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(udg_Bansho_Tenin_Point[1], udg_Bansho_Tenin_Point[3]) <= 100.00 ) ) then
return false
endif
return true
endfunction
function Trig_bansho_tenin_move_Actions takes nothing returns nothing
set udg_Bansho_Tenin_Point[3] = GetUnitLoc(udg_Bansho_Tenin[2])
set udg_Bansho_Tenin_Point[4] = PolarProjectionBJ(udg_Bansho_Tenin_Point[3], 29.00, AngleBetweenPoints(udg_Bansho_Tenin_Point[3], udg_Bansho_Tenin_Point[1]))
call SetUnitPositionLocFacingLocBJ( udg_Bansho_Tenin[2], udg_Bansho_Tenin_Point[4], udg_Bansho_Tenin_Point[1] )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Bansho_Tenin[2]), "Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
if ( Trig_bansho_tenin_move_Func006C() ) then
if ( Trig_bansho_tenin_move_Func006Func001001() ) then
call UnitDamageTargetBJ( udg_Bansho_Tenin[1], udg_Bansho_Tenin[2], 140.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_bansho_tenin_move_Func006Func002001() ) then
call UnitDamageTargetBJ( udg_Bansho_Tenin[1], udg_Bansho_Tenin[2], 220.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_bansho_tenin_move_Func006Func003001() ) then
call UnitDamageTargetBJ( udg_Bansho_Tenin[1], udg_Bansho_Tenin[2], 300.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_bansho_tenin_move_Func006Func004001() ) then
call UnitDamageTargetBJ( udg_Bansho_Tenin[1], udg_Bansho_Tenin[2], 380.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
call PauseUnitBJ( false, udg_Bansho_Tenin[1] )
call PauseUnitBJ( false, udg_Bansho_Tenin[2] )
call SetUnitPathing( udg_Bansho_Tenin[2], true )
call RemoveLocation(udg_Bansho_Tenin_Point[1])
call DisableTrigger( GetTriggeringTrigger() )
set udg_Bansho_Tenin[1] = null
set udg_Bansho_Tenin[2] = null
else
endif
call RemoveLocation(udg_Bansho_Tenin_Point[3])
call RemoveLocation(udg_Bansho_Tenin_Point[4])
endfunction
//===========================================================================
function InitTrig_bansho_tenin_move takes nothing returns nothing
set gg_trg_bansho_tenin_move = CreateTrigger( )
call DisableTrigger( gg_trg_bansho_tenin_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_bansho_tenin_move, 0.01 )
call TriggerAddAction( gg_trg_bansho_tenin_move, function Trig_bansho_tenin_move_Actions )
endfunction
function Trig_Giga_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AOws' ) ) then
return false
endif
return true
endfunction
function Trig_Giga_Func007A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Giga_Actions takes nothing returns nothing
set udg_Pein[25] = GetTriggerUnit()
set udg_Ypoint[42] = GetUnitLoc(udg_Pein[25])
set udg_PeinReal[172] = 150.00
call EnableTrigger( gg_trg_Giga_move )
call TriggerSleepAction( 0.15 )
call DisableTrigger( gg_trg_Giga_move )
call EnumDestructablesInCircleBJ( 1500.00, udg_Ypoint[42], function Trig_Giga_Func007A )
call RemoveLocation(udg_Ypoint[42])
set udg_Ypoint[42] = null
set udg_Pein[25] = null
endfunction
//===========================================================================
function InitTrig_Giga takes nothing returns nothing
set gg_trg_Giga = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Giga, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Giga, Condition( function Trig_Giga_Conditions ) )
call TriggerAddAction( gg_trg_Giga, function Trig_Giga_Actions )
endfunction
function Trig_Giga_move_Func001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Pein[25])) == true )
endfunction
function Trig_Giga_move_Func001002003002001 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Giga_move_Func001002003002002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Giga_move_Func001002003002002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false )
endfunction
function Trig_Giga_move_Func001002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Giga_move_Func001002003002002001(), Trig_Giga_move_Func001002003002002002() )
endfunction
function Trig_Giga_move_Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Giga_move_Func001002003002001(), Trig_Giga_move_Func001002003002002() )
endfunction
function Trig_Giga_move_Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Giga_move_Func001002003001(), Trig_Giga_move_Func001002003002() )
endfunction
function Trig_Giga_move_Func002A takes nothing returns nothing
call IssueImmediateOrderBJ( GetEnumUnit(), "stop" )
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), -70.00, AngleBetweenPoints(GetUnitLoc(GetEnumUnit()), udg_Ypoint[42])) )
endfunction
function Trig_Giga_move_Actions takes nothing returns nothing
set udg_zGroups[903] = GetUnitsInRangeOfLocMatching(400.00, udg_Ypoint[42], Condition(function Trig_Giga_move_Func001002003))
call ForGroupBJ( udg_zGroups[903], function Trig_Giga_move_Func002A )
call DestroyGroup (udg_zGroups[903])
set udg_zGroups[903] = null
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[42], udg_PeinReal[172], ( I2R(GetForLoopIndexA()) * 30.00 )), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_PeinReal[172] = ( udg_PeinReal[172] + 200.00 )
endfunction
//===========================================================================
function InitTrig_Giga_move takes nothing returns nothing
set gg_trg_Giga_move = CreateTrigger( )
call DisableTrigger( gg_trg_Giga_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Giga_move, 0.03 )
call TriggerAddAction( gg_trg_Giga_move, function Trig_Giga_move_Actions )
endfunction
function Trig_Ama_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A09C' ) ) then
return false
endif
return true
endfunction
function Trig_Ama_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'AUim', GetTriggerUnit() )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Ama takes nothing returns nothing
set gg_trg_Ama = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ama, EVENT_PLAYER_HERO_SKILL )
call TriggerAddCondition( gg_trg_Ama, Condition( function Trig_Ama_Conditions ) )
call TriggerAddAction( gg_trg_Ama, function Trig_Ama_Actions )
endfunction
function Trig_ItachiClone_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09C' ) ) then
return false
endif
return true
endfunction
function Trig_ItachiClone_Actions takes nothing returns nothing
set udg_Zpoint[26] = GetSpellTargetLoc()
call TriggerSleepAction( 0.05 )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
call SetUnitUserData( GetLastCreatedUnit(), 1 )
call UnitApplyTimedLifeBJ( 0.40, 'BTLF', GetLastCreatedUnit() )
call UnitAddItemByIdSwapped( 'I02F', GetLastCreatedUnit() )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), GetTriggerUnit() )
call RemoveItem( GetLastCreatedItem() )
call SetUnitPositionLoc( GetTriggerUnit(), udg_Zpoint[26] )
call RemoveLocation(udg_Zpoint[26])
set udg_Zpoint[26] = null
endfunction
//===========================================================================
function InitTrig_ItachiClone takes nothing returns nothing
set gg_trg_ItachiClone = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_ItachiClone, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_ItachiClone, Condition( function Trig_ItachiClone_Conditions ) )
call TriggerAddAction( gg_trg_ItachiClone, function Trig_ItachiClone_Actions )
endfunction
function Trig_Slashing_blow_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AOcl' ) ) then
return false
endif
return true
endfunction
function Trig_Slashing_blow_Func005Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('AOcl', udg_Itachi[1]) == 1 )
endfunction
function Trig_Slashing_blow_Func005Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('AOcl', udg_Itachi[1]) == 2 )
endfunction
function Trig_Slashing_blow_Func005Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('AOcl', udg_Itachi[1]) == 3 )
endfunction
function Trig_Slashing_blow_Func005Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('AOcl', udg_Itachi[1]) == 4 )
endfunction
function Trig_Slashing_blow_Func005C takes nothing returns boolean
if ( not ( udg_Itachi[1] == GetSpellAbilityUnit() ) ) then
return false
endif
return true
endfunction
function Trig_Slashing_blow_Actions takes nothing returns nothing
set udg_Itachi[1] = GetSpellAbilityUnit()
set udg_Target[4] = GetSpellTargetUnit()
call SetUnitAnimation( udg_Itachi[1], "attack alternate 2" )
call TriggerSleepAction( 0.05 )
if ( Trig_Slashing_blow_Func005C() ) then
call SetUnitPositionLoc( udg_Itachi[1], PolarProjectionBJ(GetUnitLoc(udg_Target[4]), 200.00, AngleBetweenPoints(GetUnitLoc(udg_Itachi[1]), GetUnitLoc(udg_Target[4]))) )
call AddSpecialEffectTargetUnitBJ( "chest", udg_Target[4], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
if ( Trig_Slashing_blow_Func005Func005001() ) then
call UnitDamageTargetBJ( udg_Itachi[1], udg_Target[4], 180.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEATH )
else
call DoNothing( )
endif
if ( Trig_Slashing_blow_Func005Func006001() ) then
call UnitDamageTargetBJ( udg_Itachi[1], udg_Target[4], 260.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEATH )
else
call DoNothing( )
endif
if ( Trig_Slashing_blow_Func005Func007001() ) then
call UnitDamageTargetBJ( udg_Itachi[1], udg_Target[4], 340.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEATH )
else
call DoNothing( )
endif
if ( Trig_Slashing_blow_Func005Func008001() ) then
call UnitDamageTargetBJ( udg_Itachi[1], udg_Target[4], 400.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEATH )
else
call DoNothing( )
endif
call TriggerSleepAction( 0.10 )
set udg_Itachi[1] = null
set udg_Target[4] = null
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Slashing_blow takes nothing returns nothing
set gg_trg_Slashing_blow = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Slashing_blow, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Slashing_blow, Condition( function Trig_Slashing_blow_Conditions ) )
call TriggerAddAction( gg_trg_Slashing_blow, function Trig_Slashing_blow_Actions )
endfunction
function Trig_MSH_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01F' ) ) then
return false
endif
return true
endfunction
function Trig_MSH_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitUserData(GetTriggerUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_MSH_Func001C takes nothing returns boolean
if ( not ( GetUnitUserData(GetTriggerUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_MSH_Actions takes nothing returns nothing
if ( Trig_MSH_Func001C() ) then
call SetUnitUserData( GetTriggerUnit(), 2 )
call CreateNUnitsAtLoc( 1, 'orai', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
set udg_Itachi[15] = GetLastCreatedUnit()
call IssueTargetOrderBJ( gg_unit_u004_0538, "innerfire", GetTriggerUnit() )
call IssueTargetOrderBJ( gg_unit_u004_0538, "bloodlust", GetTriggerUnit() )
call SetPlayerAbilityAvailableBJ( false, 'A09C', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'AUim', GetOwningPlayer(GetTriggerUnit()) )
call SetUnitAbilityLevelSwapped( 'AUim', GetTriggerUnit(), GetUnitAbilityLevelSwapped('A09C', GetTriggerUnit()) )
else
if ( Trig_MSH_Func001Func001C() ) then
call SetUnitUserData( GetTriggerUnit(), 1 )
call KillUnit( udg_Itachi[15] )
set udg_Itachi[15] = null
call UnitRemoveBuffBJ( 'Binf', GetSpellAbilityUnit() )
call UnitRemoveBuffBJ( 'Bblo', GetSpellAbilityUnit() )
call SetPlayerAbilityAvailableBJ( true, 'A09C', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'AUim', GetOwningPlayer(GetTriggerUnit()) )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_MSH takes nothing returns nothing
set gg_trg_MSH = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_MSH, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_MSH, Condition( function Trig_MSH_Conditions ) )
call TriggerAddAction( gg_trg_MSH, function Trig_MSH_Actions )
endfunction
function Trig_Illusion_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AOwk' ) ) then
return false
endif
return true
endfunction
function Trig_Illusion_Actions takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_u004_0538, "invisibility", GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
call SetUnitUserData( GetLastCreatedUnit(), 2 )
call UnitApplyTimedLifeBJ( 0.40, 'BTLF', GetLastCreatedUnit() )
call UnitAddItemByIdSwapped( 'will', GetLastCreatedUnit() )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), GetTriggerUnit() )
call RemoveItem( GetLastCreatedItem() )
endfunction
//===========================================================================
function InitTrig_Illusion takes nothing returns nothing
set gg_trg_Illusion = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Illusion, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Illusion, Condition( function Trig_Illusion_Conditions ) )
call TriggerAddAction( gg_trg_Illusion, function Trig_Illusion_Actions )
endfunction
function Trig_Illusion_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'Hblm' ) ) then
return false
endif
return true
endfunction
function Trig_Illusion_2_Func001Func001Func002C takes nothing returns boolean
if ( not ( IsUnitIllusionBJ(GetSummonedUnit()) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(GetSummoningUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Illusion_2_Func001Func001Func006C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(gg_unit_Hblm_0000, 'Binf') == true ) ) then
return false
endif
return true
endfunction
function Trig_Illusion_2_Func001Func001C takes nothing returns boolean
if ( not Trig_Illusion_2_Func001Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Illusion_2_Func001Func005C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(gg_unit_Hblm_0000, 'Binf') == true ) ) then
return false
endif
return true
endfunction
function Trig_Illusion_2_Func001Func009C takes nothing returns boolean
if ( not ( IsUnitIllusionBJ(GetSummonedUnit()) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(GetSummoningUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Illusion_2_Func001C takes nothing returns boolean
if ( not Trig_Illusion_2_Func001Func009C() ) then
return false
endif
return true
endfunction
function Trig_Illusion_2_Actions takes nothing returns nothing
if ( Trig_Illusion_2_Func001C() ) then
call IssueImmediateOrderBJ( gg_unit_Hblm_0000, "stop" )
call SetUnitUserData( GetSummonedUnit(), 2 )
call SetUnitPathing( GetSummonedUnit(), false )
if ( Trig_Illusion_2_Func001Func005C() ) then
call IssueTargetOrderBJ( gg_unit_u004_0538, "innerfire", GetSummonedUnit() )
call IssueTargetOrderBJ( gg_unit_u004_0538, "bloodlust", GetSummonedUnit() )
else
endif
call SetUnitPositionLocFacingBJ( GetSummonedUnit(), GetUnitLoc(gg_unit_Hblm_0000), GetUnitFacing(gg_unit_Hblm_0000) )
call TriggerSleepAction( 0.01 )
call SetUnitPathing( GetSummonedUnit(), true )
else
if ( Trig_Illusion_2_Func001Func001C() ) then
call IssueImmediateOrderBJ( gg_unit_Hblm_0000, "stop" )
call SetUnitUserData( GetSummonedUnit(), 1 )
call SetUnitPathing( GetSummonedUnit(), false )
if ( Trig_Illusion_2_Func001Func001Func006C() ) then
call IssueTargetOrderBJ( gg_unit_u004_0538, "innerfire", GetSummonedUnit() )
call IssueTargetOrderBJ( gg_unit_u004_0538, "bloodlust", GetSummonedUnit() )
else
endif
call SetUnitPositionLocFacingBJ( GetSummonedUnit(), GetUnitLoc(gg_unit_Hblm_0000), GetUnitFacing(gg_unit_Hblm_0000) )
call TriggerSleepAction( 0.01 )
call SetUnitPathing( GetSummonedUnit(), true )
else
call DoNothing( )
endif
endif
endfunction
//===========================================================================
function InitTrig_Illusion_2 takes nothing returns nothing
set gg_trg_Illusion_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Illusion_2, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_Illusion_2, Condition( function Trig_Illusion_2_Conditions ) )
call TriggerAddAction( gg_trg_Illusion_2, function Trig_Illusion_2_Actions )
endfunction
function Trig_Itachi_clone_dead_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'Hblm' ) ) then
return false
endif
return true
endfunction
function Trig_Itachi_clone_dead_Func001Func001Func014002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Itachi_clone_dead_Func001Func001Func014002003002001 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Itachi_clone_dead_Func001Func001Func014002003002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Itachi_clone_dead_Func001Func001Func014002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Itachi_clone_dead_Func001Func001Func014002003002001(), Trig_Itachi_clone_dead_Func001Func001Func014002003002002() )
endfunction
function Trig_Itachi_clone_dead_Func001Func001Func014002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Itachi_clone_dead_Func001Func001Func014002003001(), Trig_Itachi_clone_dead_Func001Func001Func014002003002() )
endfunction
function Trig_Itachi_clone_dead_Func001Func001Func015Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09C', GetTriggerUnit()) == 1 )
endfunction
function Trig_Itachi_clone_dead_Func001Func001Func015Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09C', GetTriggerUnit()) == 2 )
endfunction
function Trig_Itachi_clone_dead_Func001Func001Func015Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09C', GetTriggerUnit()) == 3 )
endfunction
function Trig_Itachi_clone_dead_Func001Func001Func015A takes nothing returns nothing
if ( Trig_Itachi_clone_dead_Func001Func001Func015Func001001() ) then
call UnitDamageTargetBJ( gg_unit_Hblm_0000, GetEnumUnit(), 600.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Itachi_clone_dead_Func001Func001Func015Func002001() ) then
call UnitDamageTargetBJ( gg_unit_Hblm_0000, GetEnumUnit(), 900.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Itachi_clone_dead_Func001Func001Func015Func003001() ) then
call UnitDamageTargetBJ( gg_unit_Hblm_0000, GetEnumUnit(), 1300.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
endfunction
function Trig_Itachi_clone_dead_Func001Func001Func020C takes nothing returns boolean
if ( not ( IsUnitIllusionBJ(GetDyingUnit()) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(GetDyingUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Itachi_clone_dead_Func001Func001C takes nothing returns boolean
if ( not Trig_Itachi_clone_dead_Func001Func001Func020C() ) then
return false
endif
return true
endfunction
function Trig_Itachi_clone_dead_Func001Func002C takes nothing returns boolean
if ( not ( IsUnitIllusionBJ(GetDyingUnit()) == true ) ) then
return false
endif
if ( not ( GetUnitUserData(GetDyingUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Itachi_clone_dead_Func001C takes nothing returns boolean
if ( not Trig_Itachi_clone_dead_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Itachi_clone_dead_Actions takes nothing returns nothing
if ( Trig_Itachi_clone_dead_Func001C() ) then
set udg_Zpoint[28] = GetUnitLoc(GetTriggerUnit())
call SelectUnitForPlayerSingle( gg_unit_Hblm_0000, GetOwningPlayer( gg_unit_Hblm_0000 ) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 100.00 ) )
call UnitApplyTimedLifeBJ( 0.52, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 400.00, ( GetUnitFacing(GetTriggerUnit()) + 100.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 200.00 ) )
call UnitApplyTimedLifeBJ( 0.55, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 410.00, ( GetUnitFacing(GetTriggerUnit()) + 200.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 250.00 ) )
call UnitApplyTimedLifeBJ( 0.53, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 450.00, ( GetUnitFacing(GetTriggerUnit()) + 250.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 300.00 ) )
call UnitApplyTimedLifeBJ( 0.56, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 380.00, ( GetUnitFacing(GetTriggerUnit()) + 300.00 )) )
call TriggerSleepAction( 0.01 )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 80.00 ) )
call UnitApplyTimedLifeBJ( 0.62, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 101.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 500.00, ( GetUnitFacing(GetTriggerUnit()) + 80.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 80.00 ) )
call UnitApplyTimedLifeBJ( 0.64, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 101.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 500.00, ( GetUnitFacing(GetTriggerUnit()) + 130.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 180.00 ) )
call UnitApplyTimedLifeBJ( 0.61, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 101.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 500.00, ( GetUnitFacing(GetTriggerUnit()) + 180.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 230.00 ) )
call UnitApplyTimedLifeBJ( 0.63, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 101.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 450.00, ( GetUnitFacing(GetTriggerUnit()) + 230.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 280.00 ) )
call UnitApplyTimedLifeBJ( 0.65, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 101.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 500.00, ( GetUnitFacing(GetTriggerUnit()) + 280.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 330.00 ) )
call UnitApplyTimedLifeBJ( 0.62, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 101.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 500.00, ( GetUnitFacing(GetTriggerUnit()) + 350.00 )) )
call TriggerSleepAction( 0.01 )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 50.00 ) )
call UnitApplyTimedLifeBJ( 0.75, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 300.00, 150.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 500.00, ( GetUnitFacing(GetTriggerUnit()) + 120.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 100.00 ) )
call UnitApplyTimedLifeBJ( 0.77, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 320.00, 150.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 500.00, ( GetUnitFacing(GetTriggerUnit()) + 190.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 150.00 ) )
call UnitApplyTimedLifeBJ( 0.76, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 330.00, 150.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 500.00, ( GetUnitFacing(GetTriggerUnit()) + 240.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[28], ( GetUnitFacing(GetTriggerUnit()) + 250.00 ) )
call UnitApplyTimedLifeBJ( 0.76, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 340.00, 150.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Zpoint[28], 450.00, ( GetUnitFacing(GetTriggerUnit()) + 350.00 )) )
call RemoveUnit( GetTriggerUnit() )
call RemoveLocation(udg_Zpoint[28])
set udg_Zpoint[28] = null
else
if ( Trig_Itachi_clone_dead_Func001Func001C() ) then
set udg_Zpoint[25] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[25], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.60, 'Bapl', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A017', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
call CreateNUnitsAtLoc( 1, 'u008', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[25], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[25], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( udg_Zpoint[25], "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[25], "Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_zGroups[904] = GetUnitsInRangeOfLocMatching(460.00, udg_Zpoint[25], Condition(function Trig_Itachi_clone_dead_Func001Func001Func014002003))
call ForGroupBJ( udg_zGroups[904], function Trig_Itachi_clone_dead_Func001Func001Func015A )
call DestroyGroup (udg_zGroups[904])
set udg_zGroups[904] = null
call RemoveLocation(udg_Zpoint[25])
set udg_Zpoint[25] = null
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Itachi_clone_dead takes nothing returns nothing
set gg_trg_Itachi_clone_dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Itachi_clone_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Itachi_clone_dead, Condition( function Trig_Itachi_clone_dead_Conditions ) )
call TriggerAddAction( gg_trg_Itachi_clone_dead, function Trig_Itachi_clone_dead_Actions )
endfunction
function Trig_Tsukyomi_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01D' ) ) then
return false
endif
return true
endfunction
function Trig_Tsukyomi_Func003Func004C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_Hblm_0000) == 2 ) ) then
return false
endif
if ( not ( IsUnitPausedBJ(udg_Target[21]) == false ) ) then
return false
endif
return true
endfunction
function Trig_Tsukyomi_Func003Func070002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", PolarProjectionBJ(GetUnitLoc(udg_Target[21]), 256.00, 200.00) )
endfunction
function Trig_Tsukyomi_Func003Func075A takes nothing returns nothing
call SetUnitAbilityLevelSwapped( 'A01I', GetEnumUnit(), GetUnitAbilityLevelSwapped('A01D', gg_unit_Hblm_0000) )
call IssueTargetOrderBJ( GetEnumUnit(), "thunderbolt", udg_Target[21] )
endfunction
function Trig_Tsukyomi_Func003C takes nothing returns boolean
if ( not ( GetUnitUserData(gg_unit_Hblm_0000) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Tsukyomi_Actions takes nothing returns nothing
set udg_Itachi[3] = GetSpellAbilityUnit()
set udg_Target[21] = GetSpellTargetUnit()
if ( Trig_Tsukyomi_Func003C() ) then
set udg_Ypoint[101] = GetUnitLoc(udg_Itachi[3])
call UnitRemoveBuffsExBJ( bj_BUFF_POLARITY_NEGATIVE, bj_BUFF_RESIST_EITHER, gg_unit_Hblm_0000, true, true )
call ShowUnitHide( gg_unit_Hblm_0000 )
call CreateFogModifierRadiusLocBJ( true, GetOwningPlayer(gg_unit_Hblm_0000), FOG_OF_WAR_VISIBLE, udg_Ypoint[101], 800.00 )
set udg_Visible[0] = GetLastCreatedFogModifier()
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 50.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 450.00, ( GetUnitFacing(udg_Itachi[3]) + 50.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 100.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 400.00, ( GetUnitFacing(udg_Itachi[3]) + 100.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 150.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 350.00, ( GetUnitFacing(udg_Itachi[3]) + 150.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 250.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 450.00, ( GetUnitFacing(udg_Itachi[3]) + 250.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 300.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 380.00, ( GetUnitFacing(udg_Itachi[3]) + 300.00 )) )
call TriggerSleepAction( 0.01 )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 30.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 200.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 500.00, ( GetUnitFacing(udg_Itachi[3]) + 30.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 80.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 200.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 500.00, ( GetUnitFacing(udg_Itachi[3]) + 80.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 80.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 200.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 500.00, ( GetUnitFacing(udg_Itachi[3]) + 130.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 180.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 200.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 500.00, ( GetUnitFacing(udg_Itachi[3]) + 180.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 230.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 200.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 450.00, ( GetUnitFacing(udg_Itachi[3]) + 230.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 330.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 200.00, 200.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 500.00, ( GetUnitFacing(udg_Itachi[3]) + 350.00 )) )
call TriggerSleepAction( 0.01 )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 100.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 320.00, 200.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 500.00, ( GetUnitFacing(udg_Itachi[3]) + 190.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 150.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 330.00, 200.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 500.00, ( GetUnitFacing(udg_Itachi[3]) + 240.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 200.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 320.00, 200.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 500.00, ( GetUnitFacing(udg_Itachi[3]) + 300.00 )) )
call CreateNUnitsAtLoc( 1, 'u005', GetOwningPlayer(udg_Itachi[3]), udg_Ypoint[101], ( GetUnitFacing(udg_Itachi[3]) + 250.00 ) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 340.00, 200.00 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "move", PolarProjectionBJ(udg_Ypoint[101], 450.00, ( GetUnitFacing(udg_Itachi[3]) + 350.00 )) )
call SetUnitPositionLoc( gg_unit_Hblm_0000, PolarProjectionBJ(GetUnitLoc(udg_Target[21]), 140.00, AngleBetweenPoints(udg_Ypoint[101], GetUnitLoc(udg_Target[21]))) )
call RemoveLocation(udg_Ypoint[101])
set udg_Ypoint[101] = null
call TriggerSleepAction( 0.40 )
set udg_UnitGroups[939] = GetUnitsOfTypeIdAll('u005')
call ForGroupBJ( udg_UnitGroups[939], function Trig_Tsukyomi_Func003Func070002 )
call DestroyGroup (udg_UnitGroups[939])
set udg_UnitGroups[939] = null
call TriggerSleepAction( 0.30 )
set udg_UnitGroups[939] = GetUnitsOfTypeIdAll('u005')
call ForGroupBJ( udg_UnitGroups[939], function Trig_Tsukyomi_Func003Func075A )
call DestroyGroup (udg_UnitGroups[939])
set udg_UnitGroups[939] = null
set udg_Itachi[3] = null
set udg_Target[21] = null
call TriggerSleepAction( 0.70 )
call DestroyFogModifier( udg_Visible[0] )
call ShowUnitShow( gg_unit_Hblm_0000 )
call SelectUnitForPlayerSingle( gg_unit_Hblm_0000, GetOwningPlayer( gg_unit_Hblm_0000 ) )
else
if ( Trig_Tsukyomi_Func003Func004C() ) then
call PauseUnitBJ( true, udg_Target[21] )
set udg_Ypoint[102] = GetUnitLoc(udg_Target[21])
call AddSpecialEffectLocBJ( udg_Ypoint[102], "ItachiMangekyouPulse.mdx" )
set udg_SEffect[5] = GetLastCreatedEffectBJ()
call UnitDamageTargetBJ( udg_Itachi[3], udg_Itachi[3], 65.90, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
call AddSpecialEffectTargetUnitBJ( "head", udg_Itachi[3], "Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'h004', GetOwningPlayer(udg_Itachi[3]), OffsetLocation(udg_Ypoint[102], 0.00, 90.00), 270.00 )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 250.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100.00, 100.00, 100.00, 50.00 )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "attack", udg_Target[21] )
call UnitApplyTimedLifeBJ( 4.00, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h004', GetOwningPlayer(udg_Itachi[3]), OffsetLocation(udg_Ypoint[102], 90.00, 50.00), 225.00 )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 250.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100.00, 100.00, 100.00, 50.00 )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "attack", udg_Target[21] )
call UnitApplyTimedLifeBJ( 4.00, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h004', GetOwningPlayer(udg_Itachi[3]), OffsetLocation(udg_Ypoint[102], 90.00, -50.00), 135.00 )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 250.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100.00, 100.00, 100.00, 50.00 )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "attack", udg_Target[21] )
call UnitApplyTimedLifeBJ( 4.00, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h004', GetOwningPlayer(udg_Itachi[3]), OffsetLocation(udg_Ypoint[102], 0.00, -100.00), 90.00 )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 250.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100.00, 100.00, 100.00, 50.00 )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "attack", udg_Target[21] )
call UnitApplyTimedLifeBJ( 4.00, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h004', GetOwningPlayer(udg_Itachi[3]), OffsetLocation(udg_Ypoint[102], -90.00, -50.00), 45.00 )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 250.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100.00, 100.00, 100.00, 50.00 )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "attack", udg_Target[21] )
call UnitApplyTimedLifeBJ( 4.00, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h004', GetOwningPlayer(udg_Itachi[3]), OffsetLocation(udg_Ypoint[102], -90.00, 50.00), 315.00 )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 260.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100.00, 100.00, 100.00, 50.00 )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "attack", udg_Target[21] )
call UnitApplyTimedLifeBJ( 4.00, 'Brai', GetLastCreatedUnit() )
call DestroyEffectBJ( udg_SEffect[5] )
call EnableTrigger( gg_trg_Tsukyomi_damage )
call TriggerSleepAction( 4.00 )
call DisableTrigger( gg_trg_Tsukyomi_damage )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Ypoint[102], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.40, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'AUsl', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'AUsl', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A01D', gg_unit_Hblm_0000) )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "sleep", udg_Target[21] )
call SetUnitAnimation( udg_Target[21], "death" )
call UnitRemoveBuffBJ( 'BPSE', udg_Target[21] )
call PauseUnitBJ( false, udg_Target[21] )
call RemoveLocation(udg_Ypoint[102])
set udg_Ypoint[102] = null
set udg_Itachi[3] = null
set udg_Target[21] = null
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Tsukyomi takes nothing returns nothing
set gg_trg_Tsukyomi = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tsukyomi, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Tsukyomi, Condition( function Trig_Tsukyomi_Conditions ) )
call TriggerAddAction( gg_trg_Tsukyomi, function Trig_Tsukyomi_Actions )
endfunction
function Trig_Tsukyomi_dead_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'h004' ) ) then
return false
endif
return true
endfunction
function Trig_Tsukyomi_dead_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Tsukyomi_dead takes nothing returns nothing
set gg_trg_Tsukyomi_dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tsukyomi_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Tsukyomi_dead, Condition( function Trig_Tsukyomi_dead_Conditions ) )
call TriggerAddAction( gg_trg_Tsukyomi_dead, function Trig_Tsukyomi_dead_Actions )
endfunction
function Trig_Tsukyomi_damage_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01D', gg_unit_Hblm_0000) == 1 )
endfunction
function Trig_Tsukyomi_damage_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01D', gg_unit_Hblm_0000) == 2 )
endfunction
function Trig_Tsukyomi_damage_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01D', gg_unit_Hblm_0000) == 3 )
endfunction
function Trig_Tsukyomi_damage_Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A01D', gg_unit_Hblm_0000) == 4 )
endfunction
function Trig_Tsukyomi_damage_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "origin", udg_Target[21], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[102], "Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
if ( Trig_Tsukyomi_damage_Func005001() ) then
call UnitDamageTargetBJ( gg_unit_Hblm_0000, udg_Target[21], 35.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Tsukyomi_damage_Func006001() ) then
call UnitDamageTargetBJ( gg_unit_Hblm_0000, udg_Target[21], 48.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Tsukyomi_damage_Func007001() ) then
call UnitDamageTargetBJ( gg_unit_Hblm_0000, udg_Target[21], 59.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Tsukyomi_damage_Func008001() ) then
call UnitDamageTargetBJ( gg_unit_Hblm_0000, udg_Target[21], 80.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Tsukyomi_damage takes nothing returns nothing
set gg_trg_Tsukyomi_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Tsukyomi_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Tsukyomi_damage, 0.45 )
call TriggerAddAction( gg_trg_Tsukyomi_damage, function Trig_Tsukyomi_damage_Actions )
endfunction
function Trig_Katonitach_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09R' ) ) then
return false
endif
return true
endfunction
function Trig_Katonitach_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u007', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetSpellAbilityUnit()), AngleBetweenPoints(GetUnitLoc(GetSpellAbilityUnit()), GetSpellTargetLoc()) )
set udg_Target[5] = GetLastCreatedUnit()
call SetUnitPathing( udg_Target[5], false )
call EnableTrigger( gg_trg_Katonitachmove )
call PolledWait( 0.91 )
call DisableTrigger( gg_trg_Katonitachmove )
set udg_Ypoint[100] = GetUnitLoc(udg_Target[5])
call CreateNUnitsAtLoc( 1, 'u008', Player(PLAYER_NEUTRAL_PASSIVE), udg_Ypoint[100], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( udg_Ypoint[100], "war3mapImported\\NewDirtEXNofire.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveUnit( udg_Target[5] )
set udg_Target[5] = null
call RemoveLocation(udg_Ypoint[100])
set udg_Ypoint[100] = null
endfunction
//===========================================================================
function InitTrig_Katonitach takes nothing returns nothing
set gg_trg_Katonitach = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Katonitach, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Katonitach, Condition( function Trig_Katonitach_Conditions ) )
call TriggerAddAction( gg_trg_Katonitach, function Trig_Katonitach_Actions )
endfunction
function Trig_Katonitachmove_Func004A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Katonitachmove_Actions takes nothing returns nothing
set udg_Ypoint[100] = GetUnitLoc(udg_Target[5])
call EnumDestructablesInCircleBJ( 200.00, udg_Ypoint[100], function Trig_Katonitachmove_Func004A )
call AddSpecialEffectLocBJ( udg_Ypoint[100], "abilities\\weapons\\DemolisherMissile\\DemolisherMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
set udg_UnitPoint[302] = PolarProjectionBJ(udg_Ypoint[100], 30.00, GetUnitFacing(udg_Target[5]))
call SetUnitPositionLoc( udg_Target[5], udg_UnitPoint[302] )
call RemoveLocation(udg_Ypoint[100])
set udg_Ypoint[100] = null
call RemoveLocation( udg_UnitPoint[302] )
set udg_UnitPoint[302] = null
endfunction
//===========================================================================
function InitTrig_Katonitachmove takes nothing returns nothing
set gg_trg_Katonitachmove = CreateTrigger( )
call DisableTrigger( gg_trg_Katonitachmove )
call TriggerRegisterTimerEventPeriodic( gg_trg_Katonitachmove, 0.03 )
call TriggerAddAction( gg_trg_Katonitachmove, function Trig_Katonitachmove_Actions )
endfunction
function Trig_Crow_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01I' ) ) then
return false
endif
return true
endfunction
function Trig_Crow_2_Actions takes nothing returns nothing
call TriggerSleepAction( 0.03 )
call RemoveUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Crow_2 takes nothing returns nothing
set gg_trg_Crow_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Crow_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Crow_2, Condition( function Trig_Crow_2_Conditions ) )
call TriggerAddAction( gg_trg_Crow_2, function Trig_Crow_2_Actions )
endfunction
function Trig_Amateras_Func001C takes nothing returns boolean
if ( ( GetSpellAbilityId() == 'A083' ) ) then
return true
endif
if ( ( GetSpellAbilityId() == 'AUim' ) ) then
return true
endif
return false
endfunction
function Trig_Amateras_Conditions takes nothing returns boolean
if ( not Trig_Amateras_Func001C() ) then
return false
endif
return true
endfunction
function Trig_Amateras_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
call SetUnitScalePercent( GetLastCreatedUnit(), 70.00, 70.00, 70.00 )
call UnitApplyTimedLifeBJ( 0.56, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'ANcs', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "clusterrockets", GetSpellTargetLoc() )
call AddSpecialEffectTargetUnitBJ( "head", GetTriggerUnit(), "Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call UnitDamageTargetBJ( GetTriggerUnit(), GetTriggerUnit(), 82.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
//===========================================================================
function InitTrig_Amateras takes nothing returns nothing
set gg_trg_Amateras = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Amateras, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Amateras, Condition( function Trig_Amateras_Conditions ) )
call TriggerAddAction( gg_trg_Amateras, function Trig_Amateras_Actions )
endfunction
function Trig_Amateras_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'ANcs' ) ) then
return false
endif
return true
endfunction
function Trig_Amateras_2_Func004A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Amateras_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u006', GetOwningPlayer(GetTriggerUnit()), GetSpellTargetLoc(), bj_UNIT_FACING )
call SetUnitAbilityLevelSwapped( 'ANab', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('AUim', gg_unit_Hblm_0000) )
call UnitApplyTimedLifeBJ( 10.00, 'BTLF', GetLastCreatedUnit() )
call EnumDestructablesInCircleBJ( 150.00, GetSpellTargetLoc(), function Trig_Amateras_2_Func004A )
endfunction
//===========================================================================
function InitTrig_Amateras_2 takes nothing returns nothing
set gg_trg_Amateras_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Amateras_2, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerAddCondition( gg_trg_Amateras_2, Condition( function Trig_Amateras_2_Conditions ) )
call TriggerAddAction( gg_trg_Amateras_2, function Trig_Amateras_2_Actions )
endfunction
function Trig_Susanno_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'ANcr' ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_Func002001 takes nothing returns boolean
return ( udg_Bankai[435] == false )
endfunction
function Trig_Susanno_Func003C takes nothing returns boolean
if ( not ( udg_Bankai[435] == true ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_Func001C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A02H', udg_Itachi[6]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_Actions takes nothing returns nothing
set udg_Itachi[6] = GetSpellAbilityUnit()
if ( Trig_Susanno_Func002001() ) then
set udg_Bankai[435] = true
else
set udg_Bankai[435] = false
endif
if ( Trig_Susanno_Func003C() ) then
set udg_Ypoint[103] = GetUnitLoc(udg_Itachi[6])
call PauseUnitBJ( true, udg_Itachi[6] )
call SetUnitInvulnerable( udg_Itachi[6], true )
call CreateNUnitsAtLoc( 1, 'u009', GetOwningPlayer(udg_Itachi[6]), udg_Ypoint[103], GetUnitFacing(udg_Itachi[6]) )
set udg_Target[22] = GetLastCreatedUnit()
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 250.00 )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 100.00 )
call SetUnitLifePercentBJ( udg_Itachi[6], ( GetUnitLifePercent(udg_Itachi[6]) + 40.00 ) )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Ypoint[103], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 94.00 )
call CreateTextTagUnitBJ( "TRIGSTR_5036", udg_Itachi[6], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[0] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Ypoint[103], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 86.00 )
call DestroyTextTagBJ( udg_Text[0] )
call CreateTextTagUnitBJ( "TRIGSTR_5037", udg_Itachi[6], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[0] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Ypoint[103], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 77.00 )
call DestroyTextTagBJ( udg_Text[0] )
call CreateTextTagUnitBJ( "TRIGSTR_5038", udg_Itachi[6], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[0] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Ypoint[103], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 68.00 )
call DestroyTextTagBJ( udg_Text[0] )
call CreateTextTagUnitBJ( "TRIGSTR_5039", udg_Itachi[6], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[0] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Ypoint[103], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 59.00 )
call DestroyTextTagBJ( udg_Text[0] )
call CreateTextTagUnitBJ( "TRIGSTR_5040", udg_Itachi[6], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[0] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Ypoint[103], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 50.00 )
call DestroyTextTagBJ( udg_Text[0] )
call CreateTextTagUnitBJ( "TRIGSTR_5041", udg_Itachi[6], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[0] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Ypoint[103], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 41.00 )
call DestroyTextTagBJ( udg_Text[0] )
call CreateTextTagUnitBJ( "TRIGSTR_5042", udg_Itachi[6], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[0] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Ypoint[103], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 32.00 )
call DestroyTextTagBJ( udg_Text[0] )
call CreateTextTagUnitBJ( "TRIGSTR_5043", udg_Itachi[6], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[0] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Ypoint[103], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 29.00 )
call DestroyTextTagBJ( udg_Text[0] )
call CreateTextTagUnitBJ( "TRIGSTR_5044", udg_Itachi[6], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[0] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( udg_Ypoint[103], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100, 100, 100, 20.00 )
call DestroyTextTagBJ( udg_Text[0] )
call CreateTextTagUnitBJ( "TRIGSTR_5045", udg_Itachi[6], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[0] = GetLastCreatedTextTag()
call SetPlayerAbilityAvailableBJ( false, 'AOcl', GetOwningPlayer(udg_Itachi[6]) )
call SetPlayerAbilityAvailableBJ( false, 'A01D', GetOwningPlayer(udg_Itachi[6]) )
call UnitAddAbilityBJ( 'A00F', udg_Itachi[6] )
call UnitAddAbilityBJ( 'A009', udg_Itachi[6] )
call UnitAddAbilityBJ( 'A085', udg_Itachi[6] )
call UnitAddAbilityBJ( 'A084', udg_Itachi[6] )
call UnitAddAbilityBJ( 'A0BM', udg_Itachi[6] )
call TriggerSleepAction( 0.05 )
call DestroyTextTagBJ( udg_Text[0] )
call EnableTrigger( gg_trg_Susanno_move )
call EnableTrigger( gg_trg_Susanno_attack )
call EnableTrigger( gg_trg_Susanno_totsuka )
call EnableTrigger( gg_trg_Susanno_shield )
call EnableTrigger( gg_trg_Susanno_dead )
call SetUnitInvulnerable( udg_Itachi[6], false )
call PauseUnitBJ( false, udg_Itachi[6] )
else
call PauseUnitBJ( true, udg_Itachi[6] )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 30.00 )
call TriggerSleepAction( 0.05 )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 40.00 )
call TriggerSleepAction( 0.05 )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 50.00 )
call TriggerSleepAction( 0.05 )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 60.00 )
call TriggerSleepAction( 0.05 )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 70.00 )
call TriggerSleepAction( 0.05 )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 80.00 )
call TriggerSleepAction( 0.05 )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 90.00 )
if ( Trig_Susanno_Func001C() ) then
call UnitRemoveAbilityBJ( 'A06Y', udg_Itachi[6] )
else
call DoNothing( )
endif
call UnitRemoveAbilityBJ( 'Apig', udg_Itachi[6] )
call UnitRemoveAbilityBJ( 'ACce', udg_Itachi[6] )
call UnitRemoveAbilityBJ( 'A00F', udg_Itachi[6] )
call UnitRemoveAbilityBJ( 'A009', udg_Itachi[6] )
call UnitRemoveAbilityBJ( 'A085', udg_Itachi[6] )
call UnitRemoveAbilityBJ( 'A084', udg_Itachi[6] )
call UnitRemoveAbilityBJ( 'A0BM', udg_Itachi[6] )
call SetPlayerAbilityAvailableBJ( true, 'AOcl', GetOwningPlayer(udg_Itachi[6]) )
call SetPlayerAbilityAvailableBJ( true, 'A01D', GetOwningPlayer(udg_Itachi[6]) )
call UnitAddAbilityBJ( 'AUim', udg_Itachi[6] )
call SetUnitAbilityLevelSwapped( 'AUim', udg_Itachi[6], 3 )
call TriggerSleepAction( 0.05 )
call SetUnitVertexColorBJ( udg_Target[22], 100, 100, 100, 100.00 )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_NEGATIVE, udg_Itachi[6] )
call PauseUnitBJ( false, udg_Itachi[6] )
call DisableTrigger( gg_trg_Susanno_move )
call DisableTrigger( gg_trg_Susanno_attack )
call DisableTrigger( gg_trg_Susanno_totsuka )
call DisableTrigger( gg_trg_Susanno_shield )
call DisableTrigger( gg_trg_Susanno_dead )
call RemoveUnit( udg_Target[22] )
call RemoveLocation(udg_Ypoint[103])
set udg_Ypoint[103] = null
set udg_Target[22] = null
set udg_Itachi[6] = null
endif
endfunction
//===========================================================================
function InitTrig_Susanno takes nothing returns nothing
set gg_trg_Susanno = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Susanno, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Susanno, Condition( function Trig_Susanno_Conditions ) )
call TriggerAddAction( gg_trg_Susanno, function Trig_Susanno_Actions )
endfunction
function Trig_Susanno_move_Func004A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Susanno_move_Actions takes nothing returns nothing
set udg_Ypoint[103] = GetUnitLoc(udg_Itachi[6])
call SetUnitPositionLocFacingBJ( udg_Target[22], udg_Ypoint[103], GetUnitFacing(udg_Itachi[6]) )
call EnumDestructablesInCircleBJ( 400.00, udg_Ypoint[103], function Trig_Susanno_move_Func004A )
call RemoveLocation(udg_Ypoint[103])
endfunction
//===========================================================================
function InitTrig_Susanno_move takes nothing returns nothing
set gg_trg_Susanno_move = CreateTrigger( )
call DisableTrigger( gg_trg_Susanno_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Susanno_move, 0.01 )
call TriggerAddAction( gg_trg_Susanno_move, function Trig_Susanno_move_Actions )
endfunction
function Trig_Susanno_attack_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Itachi[6] ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_attack_Actions takes nothing returns nothing
call SetUnitAnimation( udg_Target[22], "attack" )
call SetUnitAnimation( udg_Itachi[6], "stand" )
call TriggerSleepAction( 0.23 )
call SetUnitAnimation( udg_Target[22], "stand" )
endfunction
//===========================================================================
function InitTrig_Susanno_attack takes nothing returns nothing
set gg_trg_Susanno_attack = CreateTrigger( )
call DisableTrigger( gg_trg_Susanno_attack )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Susanno_attack, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Susanno_attack, Condition( function Trig_Susanno_attack_Conditions ) )
call TriggerAddAction( gg_trg_Susanno_attack, function Trig_Susanno_attack_Actions )
endfunction
function Trig_Susanno_totsuka_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00F' ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_totsuka_Actions takes nothing returns nothing
call SetUnitAnimation( udg_Target[22], "spell" )
call SetUnitAnimation( udg_Itachi[6], "stand" )
call TriggerSleepAction( 0.23 )
call SetUnitAnimation( udg_Target[22], "stand" )
endfunction
//===========================================================================
function InitTrig_Susanno_totsuka takes nothing returns nothing
set gg_trg_Susanno_totsuka = CreateTrigger( )
call DisableTrigger( gg_trg_Susanno_totsuka )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Susanno_totsuka, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Susanno_totsuka, Condition( function Trig_Susanno_totsuka_Conditions ) )
call TriggerAddAction( gg_trg_Susanno_totsuka, function Trig_Susanno_totsuka_Actions )
endfunction
function Trig_Susanno_shield_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A009' ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_shield_Func001C takes nothing returns boolean
if ( not ( IsTriggerEnabled(GetTriggeringTrigger()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_shield_Func003C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A06Y', udg_Itachi[6]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_shield_Actions takes nothing returns nothing
call SetUnitAnimation( udg_Target[22], "spell two" )
call SetUnitAnimation( udg_Itachi[6], "stand" )
call UnitAddAbilityBJ( 'A06Y', udg_Itachi[6] )
call PolledWait( 8.10 )
if ( Trig_Susanno_shield_Func003C() ) then
call UnitRemoveAbilityBJ( 'A06Y', udg_Itachi[6] )
else
call DoNothing( )
endif
if ( Trig_Susanno_shield_Func001C() ) then
call IssueTargetOrderBJ( udg_Itachi[6], "innerfire", udg_Itachi[6] )
call IssueTargetOrderBJ( udg_Itachi[6], "bloodlust", udg_Itachi[6] )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Susanno_shield takes nothing returns nothing
set gg_trg_Susanno_shield = CreateTrigger( )
call DisableTrigger( gg_trg_Susanno_shield )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Susanno_shield, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Susanno_shield, Condition( function Trig_Susanno_shield_Conditions ) )
call TriggerAddAction( gg_trg_Susanno_shield, function Trig_Susanno_shield_Actions )
endfunction
function Trig_Susanno_dead_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Itachi[6] ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_dead_Func001C takes nothing returns boolean
if ( not ( udg_Bankai[435] == true ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_dead_Func003C takes nothing returns boolean
if ( not ( GetUnitAbilityLevelSwapped('A02H', udg_Itachi[6]) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Susanno_dead_Actions takes nothing returns nothing
if ( Trig_Susanno_dead_Func001C() ) then
set udg_Bankai[435] = false
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Susanno_move )
call DisableTrigger( gg_trg_Susanno_attack )
call DisableTrigger( gg_trg_Susanno_totsuka )
call DisableTrigger( gg_trg_Susanno_shield )
call UnitRemoveAbilityBJ( 'A00F', udg_Itachi[6] )
call UnitRemoveAbilityBJ( 'A009', udg_Itachi[6] )
call SetPlayerAbilityAvailableBJ( true, 'AOcl', GetOwningPlayer(udg_Itachi[6]) )
call SetPlayerAbilityAvailableBJ( true, 'A01D', GetOwningPlayer(udg_Itachi[6]) )
call UnitRemoveAbilityBJ( 'A085', udg_Itachi[6] )
call UnitRemoveAbilityBJ( 'A084', udg_Itachi[6] )
call UnitRemoveAbilityBJ( 'A0BM', udg_Itachi[6] )
call RemoveUnit( udg_Target[22] )
set udg_Target[22] = null
call TriggerSleepAction( 10.10 )
if ( Trig_Susanno_dead_Func003C() ) then
call UnitRemoveAbilityBJ( 'A02H', udg_Itachi[6] )
else
call DoNothing( )
endif
call UnitAddAbilityBJ( 'AUim', udg_Itachi[6] )
call SetUnitAbilityLevelSwapped( 'AUim', udg_Itachi[6], 3 )
set udg_Itachi[6] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Susanno_dead takes nothing returns nothing
set gg_trg_Susanno_dead = CreateTrigger( )
call DisableTrigger( gg_trg_Susanno_dead )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Susanno_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Susanno_dead, Condition( function Trig_Susanno_dead_Conditions ) )
call TriggerAddAction( gg_trg_Susanno_dead, function Trig_Susanno_dead_Actions )
endfunction
function Trig_Itachi_Func002C takes nothing returns boolean
if ( not ( GetUnitUserData(GetTriggerUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Itachi_Actions takes nothing returns nothing
if ( Trig_Itachi_Func002C() ) then
call SetUnitUserData( GetTriggerUnit(), 1 )
call KillUnit( udg_Itachi[15] )
set udg_Itachi[15] = null
call UnitRemoveBuffBJ( 'Binf', GetTriggerUnit() )
call UnitRemoveBuffBJ( 'Bblo', GetTriggerUnit() )
call SetPlayerAbilityAvailableBJ( false, 'AUim', GetOwningPlayer(udg_Itachi[6]) )
call SetPlayerAbilityAvailableBJ( true, 'A09C', GetOwningPlayer(udg_Itachi[6]) )
else
endif
endfunction
//===========================================================================
function InitTrig_Itachi takes nothing returns nothing
set gg_trg_Itachi = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Itachi, gg_unit_Hblm_0000, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Itachi, function Trig_Itachi_Actions )
endfunction
function Trig_Sphere_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02P' ) ) then
return false
endif
return true
endfunction
function Trig_Sphere_Func001Func001C takes nothing returns boolean
if ( ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00N') == true ) ) then
return true
endif
if ( ( IsUnitPausedBJ(GetSpellTargetUnit()) == true ) ) then
return true
endif
return false
endfunction
function Trig_Sphere_Func001Func018Func002Func013C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Kisame[1616]) == true ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_Kisame[1617]) == true ) ) then
return false
endif
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Kisame[1616]), udg_Ypoint[48]) <= 280.00 ) ) then
return false
endif
return true
endfunction
function Trig_Sphere_Func001Func018Func002C takes nothing returns boolean
if ( not Trig_Sphere_Func001Func018Func002Func013C() ) then
return false
endif
return true
endfunction
function Trig_Sphere_Func001C takes nothing returns boolean
if ( not Trig_Sphere_Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Sphere_Actions takes nothing returns nothing
if ( Trig_Sphere_Func001C() ) then
call SetUnitAnimation( udg_Kisame[1616], "spell throw" )
else
set udg_Kisame[1616] = GetSpellAbilityUnit()
set udg_Kisame[1617] = GetSpellTargetUnit()
set udg_Ypoint[48] = GetUnitLoc(GetSpellTargetUnit())
call CreateNUnitsAtLoc( 1, 'u01B', Player(PLAYER_NEUTRAL_PASSIVE), udg_Ypoint[48], bj_UNIT_FACING )
set udg_Kisame[1618] = GetLastCreatedUnit()
call SetUnitPathing( udg_Kisame[1618], false )
call SetUnitPositionLoc( GetLastCreatedUnit(), udg_Ypoint[48] )
call SetUnitPathing( GetLastCreatedUnit(), false )
call SetUnitPositionLoc( GetLastCreatedUnit(), udg_Ypoint[48] )
call SetUnitFacingToFaceUnitTimed( udg_Kisame[1616], udg_Kisame[1617], 0 )
call PauseUnitBJ( true, udg_Kisame[1616] )
call PauseUnitBJ( true, udg_Kisame[1617] )
call SetUnitAnimation( udg_Kisame[1616], "spell throw" )
call TriggerSleepAction( 0.15 )
call SetUnitTimeScalePercent( udg_Kisame[1616], 0.00 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 16
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 0.08 )
if ( Trig_Sphere_Func001Func018Func002C() ) then
call SetUnitPositionLoc( udg_Kisame[1618], udg_Ypoint[48] )
else
call RemoveUnit( udg_Kisame[1618] )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Kisame[1617]), "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call UnitRemoveBuffBJ( 'BPSE', udg_Kisame[1616] )
call UnitRemoveBuffBJ( 'BPSE', udg_Kisame[1617] )
call SetUnitTimeScalePercent( udg_Kisame[1616], 100.00 )
call PauseUnitBJ( false, udg_Kisame[1616] )
call PauseUnitBJ( false, udg_Kisame[1617] )
set udg_Ypoint[48] = null
set udg_Kisame[1616] = null
set udg_Kisame[1617] = null
set udg_Kisame[1618] = null
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveUnit( udg_Kisame[1618] )
call UnitRemoveBuffBJ( 'BPSE', udg_Kisame[1616] )
call UnitRemoveBuffBJ( 'BPSE', udg_Kisame[1617] )
call PauseUnitBJ( false, udg_Kisame[1616] )
call PauseUnitBJ( false, udg_Kisame[1617] )
call SetUnitTimeScalePercent( udg_Kisame[1616], 100.00 )
set udg_Kisame[1616] = null
set udg_Kisame[1617] = null
set udg_Kisame[1618] = null
endif
endfunction
//===========================================================================
function InitTrig_Sphere takes nothing returns nothing
set gg_trg_Sphere = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sphere, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Sphere, Condition( function Trig_Sphere_Conditions ) )
call TriggerAddAction( gg_trg_Sphere, function Trig_Sphere_Actions )
endfunction
function Trig_Suitun_shark_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'ANcf' ) ) then
return false
endif
return true
endfunction
function Trig_Suitun_shark_Actions takes nothing returns nothing
set udg_Kisame[11] = GetSpellAbilityUnit()
call CreateNUnitsAtLocFacingLocBJ( 1, 'u00Y', GetOwningPlayer(udg_Kisame[11]), PolarProjectionBJ(GetUnitLoc(udg_Kisame[11]), 100.00, AngleBetweenPoints(GetUnitLoc(udg_Kisame[11]), GetSpellTargetLoc())), GetSpellTargetLoc() )
set udg_Kisame[19] = GetLastCreatedUnit()
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Kisame[19]), "Abilities\\Spells\\Other\\CrushingWave\\CrushingWaveDamage.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call SetUnitPathing( udg_Kisame[19], false )
call EnableTrigger( gg_trg_Suitun_shark_damage )
call TriggerSleepAction( 0.61 )
call DisableTrigger( gg_trg_Suitun_shark_damage )
call RemoveUnit( udg_Kisame[19] )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Kisame[19]), "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_Kisame[11] = null
set udg_Kisame[19] = null
endfunction
//===========================================================================
function InitTrig_Suitun_shark takes nothing returns nothing
set gg_trg_Suitun_shark = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Suitun_shark, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Suitun_shark, Condition( function Trig_Suitun_shark_Conditions ) )
call TriggerAddAction( gg_trg_Suitun_shark, function Trig_Suitun_shark_Actions )
endfunction
function Trig_Suitun_shark_damage_Func005Func001001001003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Suitun_shark_damage_Func005Func001001001003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Suitun_shark_damage_Func005Func001001001003002002001 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Suitun_shark_damage_Func005Func001001001003002002002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Hpb1_0013)) == true )
endfunction
function Trig_Suitun_shark_damage_Func005Func001001001003002002002002 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_Hpb1_0013 )
endfunction
function Trig_Suitun_shark_damage_Func005Func001001001003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Suitun_shark_damage_Func005Func001001001003002002002001(), Trig_Suitun_shark_damage_Func005Func001001001003002002002002() )
endfunction
function Trig_Suitun_shark_damage_Func005Func001001001003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Suitun_shark_damage_Func005Func001001001003002002001(), Trig_Suitun_shark_damage_Func005Func001001001003002002002() )
endfunction
function Trig_Suitun_shark_damage_Func005Func001001001003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Suitun_shark_damage_Func005Func001001001003002001(), Trig_Suitun_shark_damage_Func005Func001001001003002002() )
endfunction
function Trig_Suitun_shark_damage_Func005Func001001001003 takes nothing returns boolean
return GetBooleanAnd( Trig_Suitun_shark_damage_Func005Func001001001003001(), Trig_Suitun_shark_damage_Func005Func001001001003002() )
endfunction
function Trig_Suitun_shark_damage_Func005C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(220.00, udg_Ypoint[115], Condition(function Trig_Suitun_shark_damage_Func005Func001001001003))) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Suitun_shark_damage_Actions takes nothing returns nothing
set udg_Ypoint[115] = GetUnitLoc(udg_Kisame[19])
call SetUnitPositionLoc( udg_Kisame[19], PolarProjectionBJ(udg_Ypoint[115], 40.00, AngleBetweenPoints(udg_Ypoint[115], PolarProjectionBJ(udg_Ypoint[115], 190.00, GetUnitFacing(udg_Kisame[19])))) )
call AddSpecialEffectLocBJ( udg_Ypoint[115], "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
if ( Trig_Suitun_shark_damage_Func005C() ) then
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Kisame[11]), udg_Ypoint[115], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A01X', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'A01X', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('ANcf', udg_Kisame[11]) )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "thunderclap" )
call RemoveUnit( udg_Kisame[19] )
call AddSpecialEffectLocBJ( udg_Ypoint[115], "war3mapImported\\AquaSpike.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[115], "Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[115], "war3mapImported\\EarthSmash.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_Kisame[11] = null
set udg_Kisame[19] = null
else
endif
call RemoveLocation(udg_Ypoint[115])
endfunction
//===========================================================================
function InitTrig_Suitun_shark_damage takes nothing returns nothing
set gg_trg_Suitun_shark_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Suitun_shark_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Suitun_shark_damage, 0.03 )
call TriggerAddAction( gg_trg_Suitun_shark_damage, function Trig_Suitun_shark_damage_Actions )
endfunction
function Trig_Samehada_chakra_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == gg_unit_Hpb1_0013 ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_chakra_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttackedUnitBJ()) < 10.00 ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_chakra_Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttackedUnitBJ()) > 10.00 ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_chakra_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttackedUnitBJ()) > 2500.00 ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_chakra_Func001C takes nothing returns boolean
if ( not ( udg_Bankai[GetConvertedPlayerId(GetOwningPlayer(GetAttacker()))] == true ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_chakra_Actions takes nothing returns nothing
if ( Trig_Samehada_chakra_Func001C() ) then
call SetUnitManaBJ( GetAttacker(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttacker()) + 150.00 ) )
call SetUnitManaBJ( GetAttackedUnitBJ(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttackedUnitBJ()) - 150.00 ) )
else
if ( Trig_Samehada_chakra_Func001Func001C() ) then
call SetUnitManaBJ( GetAttacker(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttacker()) + 150.00 ) )
call SetUnitManaBJ( GetAttackedUnitBJ(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttackedUnitBJ()) - 150.00 ) )
else
if ( Trig_Samehada_chakra_Func001Func001Func001C() ) then
call SetUnitManaBJ( GetAttacker(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttacker()) + 20.00 ) )
call SetUnitManaBJ( GetAttackedUnitBJ(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttackedUnitBJ()) - 20.00 ) )
else
if ( Trig_Samehada_chakra_Func001Func001Func001Func001C() ) then
call SetUnitManaBJ( GetAttacker(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttacker()) + GetUnitManaPercent(GetAttackedUnitBJ()) ) )
call SetUnitManaBJ( GetAttackedUnitBJ(), ( GetUnitStateSwap(UNIT_STATE_MANA, GetAttackedUnitBJ()) - 10.00 ) )
else
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Samehada_chakra takes nothing returns nothing
set gg_trg_Samehada_chakra = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Samehada_chakra, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Samehada_chakra, Condition( function Trig_Samehada_chakra_Conditions ) )
call TriggerAddAction( gg_trg_Samehada_chakra, function Trig_Samehada_chakra_Actions )
endfunction
function Trig_Samehada_Heal_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AHhb' ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_Heal_Actions takes nothing returns nothing
call SetUnitLifeBJ( GetSpellTargetUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) + GetUnitStateSwap(UNIT_STATE_MANA, GetTriggerUnit()) ) )
call SetUnitManaPercentBJ( GetTriggerUnit(), 0.00 )
endfunction
//===========================================================================
function InitTrig_Samehada_Heal takes nothing returns nothing
set gg_trg_Samehada_Heal = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Samehada_Heal, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Samehada_Heal, Condition( function Trig_Samehada_Heal_Conditions ) )
call TriggerAddAction( gg_trg_Samehada_Heal, function Trig_Samehada_Heal_Actions )
endfunction
function Trig_Suitun_bakeshi_shouha_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'Arsp' ) ) then
return false
endif
return true
endfunction
function Trig_Suitun_bakeshi_shouha_Actions takes nothing returns nothing
set udg_Kisame[1] = GetSpellAbilityUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Kisame[1]), GetUnitLoc(udg_Kisame[1]), bj_UNIT_FACING )
set udg_Kisame[12] = GetLastCreatedUnit()
call SetUnitScalePercent( GetLastCreatedUnit(), 200.00, 200.00, 200.00 )
call UnitAddAbilityBJ( 'ANst', GetLastCreatedUnit() )
call SetUnitAbilityLevelSwapped( 'ANst', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('Arsp', udg_Kisame[1]) )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "stampede", GetSpellTargetLoc() )
endfunction
//===========================================================================
function InitTrig_Suitun_bakeshi_shouha takes nothing returns nothing
set gg_trg_Suitun_bakeshi_shouha = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Suitun_bakeshi_shouha, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Suitun_bakeshi_shouha, Condition( function Trig_Suitun_bakeshi_shouha_Conditions ) )
call TriggerAddAction( gg_trg_Suitun_bakeshi_shouha, function Trig_Suitun_bakeshi_shouha_Actions )
endfunction
function Trig_Suitun_bakeshi_shouha_end_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'Arsp' ) ) then
return false
endif
return true
endfunction
function Trig_Suitun_bakeshi_shouha_end_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( udg_Kisame[12], "stop" )
call RemoveUnit( udg_Kisame[12] )
set udg_Kisame[12] = null
set udg_Kisame[1] = null
endfunction
//===========================================================================
function InitTrig_Suitun_bakeshi_shouha_end takes nothing returns nothing
set gg_trg_Suitun_bakeshi_shouha_end = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Suitun_bakeshi_shouha_end, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerAddCondition( gg_trg_Suitun_bakeshi_shouha_end, Condition( function Trig_Suitun_bakeshi_shouha_end_Conditions ) )
call TriggerAddAction( gg_trg_Suitun_bakeshi_shouha_end, function Trig_Suitun_bakeshi_shouha_end_Actions )
endfunction
function Trig_Suitun_surou_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00X' ) ) then
return false
endif
return true
endfunction
function Trig_Suitun_surou_Actions takes nothing returns nothing
set udg_Ypoint[114] = GetUnitLoc(GetSpellAbilityUnit())
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[114], 180.00, ( I2R(GetForLoopIndexA()) * 70.00 )), "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[114], 120.00, ( I2R(GetForLoopIndexA()) * 70.00 )), "war3mapImported\\WaterGeyser.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[114], 170.00, ( I2R(GetForLoopIndexA()) * 70.00 )), "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveLocation(udg_Ypoint[114])
set udg_Ypoint[114] = null
endfunction
//===========================================================================
function InitTrig_Suitun_surou takes nothing returns nothing
set gg_trg_Suitun_surou = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Suitun_surou, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Suitun_surou, Condition( function Trig_Suitun_surou_Conditions ) )
call TriggerAddAction( gg_trg_Suitun_surou, function Trig_Suitun_surou_Actions )
endfunction
function Trig_Samehada_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00G' ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_Func002001 takes nothing returns boolean
return ( udg_Bankai[GetConvertedPlayerId(GetTriggerPlayer())] == false )
endfunction
function Trig_Samehada_Func004Func010C takes nothing returns boolean
if ( not ( GetPlayerController(Player(9)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_Func004C takes nothing returns boolean
if ( not ( udg_Bankai[GetConvertedPlayerId(GetOwningPlayer(udg_Kisame[2]))] == true ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_Actions takes nothing returns nothing
set udg_Kisame[2] = GetSpellAbilityUnit()
if ( Trig_Samehada_Func002001() ) then
set udg_Bankai[GetConvertedPlayerId(GetTriggerPlayer())] = true
else
set udg_Bankai[GetConvertedPlayerId(GetTriggerPlayer())] = false
endif
call TriggerSleepAction( 0.25 )
if ( Trig_Samehada_Func004C() ) then
call CreateNUnitsAtLoc( 1, 'u00G', GetOwningPlayer(udg_Kisame[2]), GetUnitLoc(udg_Kisame[2]), bj_UNIT_FACING )
set udg_Kisame[3] = GetLastCreatedUnit()
call SetPlayerAbilityAvailableBJ( false, 'AOmi', GetOwningPlayer(udg_Kisame[2]) )
call SetPlayerAbilityAvailableBJ( false, 'Arsp', GetOwningPlayer(udg_Kisame[2]) )
call UnitAddAbilityBJ( 'AUls', udg_Kisame[2] )
call UnitAddAbilityBJ( 'A09V', udg_Kisame[2] )
call EnableTrigger( gg_trg_Samehada_move )
call EnableTrigger( gg_trg_Samehada_dead )
else
call RemoveUnit( udg_Kisame[3] )
call DisableTrigger( gg_trg_Samehada_move )
call DisableTrigger( gg_trg_Samehada_dead )
call UnitRemoveAbilityBJ( 'AUls', udg_Kisame[2] )
call UnitRemoveAbilityBJ( 'A09V', udg_Kisame[2] )
call SetPlayerAbilityAvailableBJ( true, 'AOmi', GetOwningPlayer(udg_Kisame[2]) )
call SetPlayerAbilityAvailableBJ( true, 'Arsp', GetOwningPlayer(udg_Kisame[2]) )
set udg_Kisame[3] = null
set udg_Kisame[2] = null
endif
endfunction
//===========================================================================
function InitTrig_Samehada takes nothing returns nothing
set gg_trg_Samehada = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Samehada, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Samehada, Condition( function Trig_Samehada_Conditions ) )
call TriggerAddAction( gg_trg_Samehada, function Trig_Samehada_Actions )
endfunction
function Trig_Samehada_move_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_Kisame[3], GetUnitLoc(udg_Kisame[2]) )
endfunction
//===========================================================================
function InitTrig_Samehada_move takes nothing returns nothing
set gg_trg_Samehada_move = CreateTrigger( )
call DisableTrigger( gg_trg_Samehada_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Samehada_move, 0.01 )
call TriggerAddAction( gg_trg_Samehada_move, function Trig_Samehada_move_Actions )
endfunction
function Trig_Samehada_dead_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Kisame[2] ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_dead_Func009C takes nothing returns boolean
if ( not ( GetPlayerController(Player(9)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_Samehada_dead_Actions takes nothing returns nothing
set udg_Bankai[GetConvertedPlayerId(GetOwningPlayer(udg_Kisame[2]))] = false
call RemoveUnit( udg_Kisame[3] )
call DisableTrigger( gg_trg_Samehada_move )
call UnitRemoveAbilityBJ( 'AUls', udg_Kisame[2] )
call UnitRemoveAbilityBJ( 'A09V', udg_Kisame[2] )
call SetPlayerAbilityAvailableBJ( true, 'AOmi', GetOwningPlayer(udg_Kisame[2]) )
call SetPlayerAbilityAvailableBJ( true, 'Arsp', GetOwningPlayer(udg_Kisame[2]) )
set udg_Kisame[3] = null
set udg_Kisame[2] = null
endfunction
//===========================================================================
function InitTrig_Samehada_dead takes nothing returns nothing
set gg_trg_Samehada_dead = CreateTrigger( )
call DisableTrigger( gg_trg_Samehada_dead )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Samehada_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Samehada_dead, Condition( function Trig_Samehada_dead_Conditions ) )
call TriggerAddAction( gg_trg_Samehada_dead, function Trig_Samehada_dead_Actions )
endfunction
function Trig_GigaShark_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09V' ) ) then
return false
endif
return true
endfunction
function Trig_GigaShark_Actions takes nothing returns nothing
set udg_GigaShark[0] = GetSpellAbilityUnit()
set udg_MyNewPoint[0] = GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01P', Player(9), PolarProjectionBJ(GetUnitLoc(udg_GigaShark[0]), 170.00, GetUnitFacing(udg_GigaShark[0])), GetSpellTargetLoc() )
set udg_GigaShark[1] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_GigaShark_2 )
endfunction
//===========================================================================
function InitTrig_GigaShark takes nothing returns nothing
set gg_trg_GigaShark = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_GigaShark, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_GigaShark, Condition( function Trig_GigaShark_Conditions ) )
call TriggerAddAction( gg_trg_GigaShark, function Trig_GigaShark_Actions )
endfunction
function Trig_GigaShark_2_Func010Func010002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Hpb1_0013)) == true )
endfunction
function Trig_GigaShark_2_Func010Func010002003002 takes nothing returns boolean
return ( IsUnitDeadBJ(GetFilterUnit()) == false )
endfunction
function Trig_GigaShark_2_Func010Func010002003 takes nothing returns boolean
return GetBooleanAnd( Trig_GigaShark_2_Func010Func010002003001(), Trig_GigaShark_2_Func010Func010002003002() )
endfunction
function Trig_GigaShark_2_Func010Func011A takes nothing returns nothing
call UnitDamageTargetBJ( udg_GigaShark[0], GetEnumUnit(), 1900.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
endfunction
function Trig_GigaShark_2_Func010C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(udg_MyNewPoint[1], udg_MyNewPoint[0]) <= 60.00 ) ) then
return false
endif
return true
endfunction
function Trig_GigaShark_2_Actions takes nothing returns nothing
set udg_MyNewPoint[1] = GetUnitLoc(udg_GigaShark[1])
set udg_MyNewPoint[771] = PolarProjectionBJ(udg_MyNewPoint[1], 60.00, AngleBetweenPoints(udg_MyNewPoint[1], udg_MyNewPoint[0]))
call SetUnitPositionLoc( udg_GigaShark[1], udg_MyNewPoint[771] )
call SetUnitFacingToFaceLocTimed( udg_GigaShark[1], udg_MyNewPoint[0], 0 )
call AddSpecialEffectLocBJ( udg_MyNewPoint[1], "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_MyNewPoint[771])
set udg_MyNewPoint[771] = null
if ( Trig_GigaShark_2_Func010C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call RemoveUnit( udg_GigaShark[1] )
call CreateNUnitsAtLoc( 1, 'u00N', GetOwningPlayer(gg_unit_Hpb1_0013), udg_MyNewPoint[0], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.60, 'Brai', GetLastCreatedUnit() )
call SetUnitScalePercent( GetLastCreatedUnit(), 400.00, 400.00, 400.00 )
call CreateNUnitsAtLoc( 1, 'h021', GetOwningPlayer(gg_unit_Hpb1_0013), udg_MyNewPoint[0], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.60, 'Brai', GetLastCreatedUnit() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 40.00 )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(gg_unit_Hpb1_0013), udg_MyNewPoint[0], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.40, 'Brai', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A017', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
set udg_MyNewGroups[0] = GetUnitsInRangeOfLocMatching(500.00, udg_MyNewPoint[0], Condition(function Trig_GigaShark_2_Func010Func010002003))
call ForGroupBJ( udg_MyNewGroups[0], function Trig_GigaShark_2_Func010Func011A )
call DestroyGroup (udg_MyNewGroups[0])
set udg_MyNewGroups[0] = null
call RemoveLocation(udg_MyNewPoint[0])
set udg_MyNewPoint[0] = null
set udg_GigaShark[0] = null
set udg_GigaShark[1] = null
else
call DoNothing( )
endif
call RemoveLocation(udg_MyNewPoint[1])
set udg_MyNewPoint[1] = null
endfunction
//===========================================================================
function InitTrig_GigaShark_2 takes nothing returns nothing
set gg_trg_GigaShark_2 = CreateTrigger( )
call DisableTrigger( gg_trg_GigaShark_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_GigaShark_2, 0.04 )
call TriggerAddAction( gg_trg_GigaShark_2, function Trig_GigaShark_2_Actions )
endfunction
function Trig_Kats_C1_mine_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n004' ) ) then
return false
endif
return true
endfunction
function Trig_Kats_C1_mine_Func006A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Kats_C1_mine_Actions takes nothing returns nothing
set udg_Zpoint[0] = GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ( udg_Zpoint[0], "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[0], "Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call EnumDestructablesInCircleBJ( 200.00, udg_Zpoint[0], function Trig_Kats_C1_mine_Func006A )
call RemoveLocation(udg_Zpoint[0])
set udg_Zpoint[0] = null
endfunction
//===========================================================================
function InitTrig_Kats_C1_mine takes nothing returns nothing
set gg_trg_Kats_C1_mine = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kats_C1_mine, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Kats_C1_mine, Condition( function Trig_Kats_C1_mine_Conditions ) )
call TriggerAddAction( gg_trg_Kats_C1_mine, function Trig_Kats_C1_mine_Actions )
endfunction
function Trig_Kats_C1_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttacker()) == 'ngsp' ) ) then
return false
endif
return true
endfunction
function Trig_Kats_C1_Actions takes nothing returns nothing
call KillUnit( GetAttacker() )
endfunction
//===========================================================================
function InitTrig_Kats_C1 takes nothing returns nothing
set gg_trg_Kats_C1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kats_C1, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Kats_C1, Condition( function Trig_Kats_C1_Conditions ) )
call TriggerAddAction( gg_trg_Kats_C1, function Trig_Kats_C1_Actions )
endfunction
function Trig_Kats_C1_dead_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'ngsp' ) ) then
return false
endif
return true
endfunction
function Trig_Kats_C1_dead_Func007A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Kats_C1_dead_Actions takes nothing returns nothing
set udg_Ypoint[161] = GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ( udg_Ypoint[161], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[161], "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call UnitDamagePointLoc( gg_unit_Hamg_0014, 0, 250.00, udg_Ypoint[161], 300.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
call EnumDestructablesInCircleBJ( 200.00, udg_Ypoint[161], function Trig_Kats_C1_dead_Func007A )
call RemoveUnit( GetTriggerUnit() )
call RemoveLocation(udg_Ypoint[161])
set udg_Ypoint[161] = null
endfunction
//===========================================================================
function InitTrig_Kats_C1_dead takes nothing returns nothing
set gg_trg_Kats_C1_dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kats_C1_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Kats_C1_dead, Condition( function Trig_Kats_C1_dead_Conditions ) )
call TriggerAddAction( gg_trg_Kats_C1_dead, function Trig_Kats_C1_dead_Actions )
endfunction
function Trig_Kats_C1_bird_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00T' ) ) then
return false
endif
return true
endfunction
function Trig_Kats_C1_bird_Actions takes nothing returns nothing
set udg_PointNew[8] = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'h00S', GetOwningPlayer(gg_unit_Hamg_0014), GetUnitLoc(gg_unit_Hamg_0014), AngleBetweenPoints(GetUnitLoc(gg_unit_Hamg_0014), udg_PointNew[8]) )
call UnitApplyTimedLifeBJ( 10.00, 'BTLF', GetLastCreatedUnit() )
set udg_Deidara[3] = GetLastCreatedUnit()
call SetUnitPathing( udg_Deidara[3], false )
call EnableTrigger( gg_trg_Kats_C1_bird_move )
endfunction
//===========================================================================
function InitTrig_Kats_C1_bird takes nothing returns nothing
set gg_trg_Kats_C1_bird = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kats_C1_bird, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Kats_C1_bird, Condition( function Trig_Kats_C1_bird_Conditions ) )
call TriggerAddAction( gg_trg_Kats_C1_bird, function Trig_Kats_C1_bird_Actions )
endfunction
function Trig_Kats_C1_bird_move_Func002Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00T', gg_unit_Hamg_0014) == 1 )
endfunction
function Trig_Kats_C1_bird_move_Func002Func011001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00T', gg_unit_Hamg_0014) == 2 )
endfunction
function Trig_Kats_C1_bird_move_Func002Func012001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00T', gg_unit_Hamg_0014) == 3 )
endfunction
function Trig_Kats_C1_bird_move_Func002Func013001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00T', gg_unit_Hamg_0014) == 4 )
endfunction
function Trig_Kats_C1_bird_move_Func002Func014A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Kats_C1_bird_move_Func002C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Deidara[3]), udg_PointNew[8]) <= 90.00 ) ) then
return false
endif
return true
endfunction
function Trig_Kats_C1_bird_move_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_Deidara[3], PolarProjectionBJ(GetUnitLoc(udg_Deidara[3]), 15.00, AngleBetweenPoints(GetUnitLoc(gg_unit_Hamg_0014), udg_PointNew[8])) )
if ( Trig_Kats_C1_bird_move_Func002C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call RemoveUnit( udg_Deidara[3] )
call AddSpecialEffectLocBJ( udg_PointNew[8], "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_PointNew[8], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_PointNew[8], "war3mapImported\\NewDirtEXNofire.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
if ( Trig_Kats_C1_bird_move_Func002Func010001() ) then
call UnitDamagePointLoc( gg_unit_Hamg_0014, 0, 300.00, GetUnitLoc(udg_Deidara[3]), 190.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Kats_C1_bird_move_Func002Func011001() ) then
call UnitDamagePointLoc( gg_unit_Hamg_0014, 0, 300.00, GetUnitLoc(udg_Deidara[3]), 280.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Kats_C1_bird_move_Func002Func012001() ) then
call UnitDamagePointLoc( gg_unit_Hamg_0014, 0, 300.00, GetUnitLoc(udg_Deidara[3]), 340.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Kats_C1_bird_move_Func002Func013001() ) then
call UnitDamagePointLoc( gg_unit_Hamg_0014, 0, 300.00, GetUnitLoc(udg_Deidara[3]), 410.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
call EnumDestructablesInCircleBJ( 300.00, udg_PointNew[8], function Trig_Kats_C1_bird_move_Func002Func014A )
set udg_Deidara[3] = null
call RemoveLocation( udg_PointNew[8] )
set udg_PointNew[8] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Kats_C1_bird_move takes nothing returns nothing
set gg_trg_Kats_C1_bird_move = CreateTrigger( )
call DisableTrigger( gg_trg_Kats_C1_bird_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Kats_C1_bird_move, 0.01 )
call TriggerAddAction( gg_trg_Kats_C1_bird_move, function Trig_Kats_C1_bird_move_Actions )
endfunction
function Trig_Kats_C3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'h009' ) ) then
return false
endif
return true
endfunction
function Trig_Kats_C3_Func006C takes nothing returns boolean
if ( not ( GetOwningPlayer(gg_unit_Hamg_0014) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_Kats_C3_Actions takes nothing returns nothing
set udg_Deidara[1] = gg_unit_Hamg_0014
set udg_Target[926] = GetSummonedUnit()
call IssuePointOrderLocBJ( udg_Target[926], "move", PolarProjectionBJ(GetUnitLoc(gg_unit_Hamg_0014), 325.00, GetUnitFacing(gg_unit_Hamg_0014)) )
call SetUnitFlyHeightBJ( udg_Target[926], 600.00, 800.00 )
call TriggerSleepAction( 2 )
if ( Trig_Kats_C3_Func006C() ) then
call IssueImmediateOrderBJ( udg_Target[926], "berserk" )
else
endif
endfunction
//===========================================================================
function InitTrig_Kats_C3 takes nothing returns nothing
set gg_trg_Kats_C3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kats_C3, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_Kats_C3, Condition( function Trig_Kats_C3_Conditions ) )
call TriggerAddAction( gg_trg_Kats_C3, function Trig_Kats_C3_Actions )
endfunction
function Trig_Kats_C3_Blast_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A001' ) ) then
return false
endif
return true
endfunction
function Trig_Kats_C3_Blast_Func014A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Kats_C3_Blast_Func015001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('ANwm', udg_Deidara[1]) == 1 )
endfunction
function Trig_Kats_C3_Blast_Func016001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('ANwm', udg_Deidara[1]) == 2 )
endfunction
function Trig_Kats_C3_Blast_Func017001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('ANwm', udg_Deidara[1]) == 3 )
endfunction
function Trig_Kats_C3_Blast_Actions takes nothing returns nothing
call SetUnitFlyHeightBJ( udg_Target[926], 0.00, 1000.00 )
call TriggerSleepAction( 0.55 )
set udg_Ypoint[90] = GetUnitLoc(udg_Target[926])
call CreateNUnitsAtLoc( 1, 'u01E', Player(PLAYER_NEUTRAL_PASSIVE), udg_Ypoint[90], bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 120.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 80.00, 90.00, 100, 0.00 )
call KillUnit( GetLastCreatedUnit() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[90], 100.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[90], 200.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[90], 300.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[90], 400.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 14
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[90], 500.00, ( I2R(GetForLoopIndexA()) * 27.00 )), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 14
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Ypoint[90], 600.00, ( I2R(GetForLoopIndexA()) * 27.00 )), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call EnumDestructablesInCircleBJ( 600.00, udg_Ypoint[90], function Trig_Kats_C3_Blast_Func014A )
if ( Trig_Kats_C3_Blast_Func015001() ) then
call UnitDamagePointLoc( udg_Deidara[1], 0, 600.00, udg_Ypoint[90], 900.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Kats_C3_Blast_Func016001() ) then
call UnitDamagePointLoc( udg_Deidara[1], 0, 600.00, udg_Ypoint[90], 1100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Kats_C3_Blast_Func017001() ) then
call UnitDamagePointLoc( udg_Deidara[1], 0, 600.00, udg_Ypoint[90], 1300.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
call RemoveUnit( udg_Target[926] )
set udg_Deidara[1] = null
set udg_Target[926] = null
call RemoveLocation(udg_Ypoint[90])
set udg_Ypoint[90] = null
endfunction
//===========================================================================
function InitTrig_Kats_C3_Blast takes nothing returns nothing
set gg_trg_Kats_C3_Blast = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kats_C3_Blast, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Kats_C3_Blast, Condition( function Trig_Kats_C3_Blast_Conditions ) )
call TriggerAddAction( gg_trg_Kats_C3_Blast, function Trig_Kats_C3_Blast_Actions )
endfunction
function Trig_Kats_C3_Dead_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'h009' ) ) then
return false
endif
return true
endfunction
function Trig_Kats_C3_Dead_Actions takes nothing returns nothing
set udg_Deidara[1] = null
set udg_Target[926] = null
endfunction
//===========================================================================
function InitTrig_Kats_C3_Dead takes nothing returns nothing
set gg_trg_Kats_C3_Dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kats_C3_Dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Kats_C3_Dead, Condition( function Trig_Kats_C3_Dead_Conditions ) )
call TriggerAddAction( gg_trg_Kats_C3_Dead, function Trig_Kats_C3_Dead_Actions )
endfunction
function Trig_Kats_C5_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AOw2' ) ) then
return false
endif
return true
endfunction
function Trig_Kats_C5_Func031A takes nothing returns nothing
call CameraSetEQNoiseForPlayer( GetEnumPlayer(), 10.00 )
endfunction
function Trig_Kats_C5_Func035A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Deidara[15], GetEnumUnit(), 10000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
endfunction
function Trig_Kats_C5_Func042A takes nothing returns nothing
call CameraClearNoiseForPlayer( GetEnumPlayer() )
endfunction
function Trig_Kats_C5_Actions takes nothing returns nothing
set udg_Deidara[15] = GetSpellAbilityUnit()
call SetUnitInvulnerable( udg_Deidara[15], true )
call PauseUnitBJ( true, udg_Deidara[15] )
call SetUnitVertexColorBJ( udg_Deidara[15], 90.00, 90.00, 90.00, 20.00 )
call TriggerSleepAction( 0.10 )
call SetUnitVertexColorBJ( udg_Deidara[15], 90.00, 90.00, 90.00, 30.00 )
call TriggerSleepAction( 0.10 )
call SetUnitVertexColorBJ( udg_Deidara[15], 90.00, 90.00, 90.00, 40.00 )
call TriggerSleepAction( 0.10 )
call SetUnitVertexColorBJ( udg_Deidara[15], 75.00, 75.00, 75.00, 50.00 )
call TriggerSleepAction( 0.10 )
call SetUnitVertexColorBJ( udg_Deidara[15], 60.00, 60.00, 60.00, 60.00 )
call TriggerSleepAction( 0.10 )
call SetUnitVertexColorBJ( udg_Deidara[15], 40.00, 40.00, 40.00, 70.00 )
call TriggerSleepAction( 0.10 )
call SetUnitVertexColorBJ( udg_Deidara[15], 20.00, 20.00, 20.00, 80.00 )
call TriggerSleepAction( 0.10 )
call SetUnitVertexColorBJ( udg_Deidara[15], 100.00, 100.00, 100.00, 0.00 )
call SetUnitVertexColorBJ( udg_Deidara[15], 10.00, 10.00, 10.00, 80.00 )
call TriggerSleepAction( 3.00 )
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 0 )
set udg_Zpoint[27] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'u01E', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[27], bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 120.00 )
call SetUnitScalePercent( GetLastCreatedUnit(), 500.00, 500.00, 500.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 80.00, 90.00, 100, 0.00 )
call KillUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h00D', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[27], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 5.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h00C', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[27], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 5.00, 'BTLF', GetLastCreatedUnit() )
call ForForce( GetPlayersAll(), function Trig_Kats_C5_Func031A )
call TriggerSleepAction( 0.10 )
call SetUnitInvulnerable( udg_Deidara[15], false )
call PauseUnitBJ( false, udg_Deidara[15] )
set udg_zGroups[901] = GetUnitsInRangeOfLocAll(1300.00, GetUnitLoc(udg_Deidara[15]))
call ForGroupBJ( udg_zGroups[901], function Trig_Kats_C5_Func035A )
call DestroyGroup (udg_zGroups[901])
set udg_zGroups[901] = null
set udg_Deidara[15] = null
call RemoveLocation(udg_Zpoint[27])
set udg_Zpoint[27] = null
call TriggerSleepAction( 4.00 )
call ForForce( GetPlayersAll(), function Trig_Kats_C5_Func042A )
endfunction
//===========================================================================
function InitTrig_Kats_C5 takes nothing returns nothing
set gg_trg_Kats_C5 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kats_C5, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Kats_C5, Condition( function Trig_Kats_C5_Conditions ) )
call TriggerAddAction( gg_trg_Kats_C5, function Trig_Kats_C5_Actions )
endfunction
function Trig_Kats_bird_attack_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttacker()) == 'u00L' ) ) then
return false
endif
return true
endfunction
function Trig_Kats_bird_attack_Func008A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Kats_bird_attack_Actions takes nothing returns nothing
set udg_Zpoint[1] = GetUnitLoc(GetAttacker())
call RemoveUnit( GetAttacker() )
call AddSpecialEffectLocBJ( udg_Zpoint[1], "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[1], "war3mapImported\\EarthSmash.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call UnitDamagePointLoc( gg_unit_Hamg_0014, 0, 250.00, udg_Zpoint[1], 300.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
call EnumDestructablesInCircleBJ( 200.00, udg_Zpoint[1], function Trig_Kats_bird_attack_Func008A )
call RemoveLocation(udg_Zpoint[1])
set udg_Zpoint[1] = null
endfunction
//===========================================================================
function InitTrig_Kats_bird_attack takes nothing returns nothing
set gg_trg_Kats_bird_attack = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kats_bird_attack, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Kats_bird_attack, Condition( function Trig_Kats_bird_attack_Conditions ) )
call TriggerAddAction( gg_trg_Kats_bird_attack, function Trig_Kats_bird_attack_Actions )
endfunction
function Trig_Stone_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00P' ) ) then
return false
endif
return true
endfunction
function Trig_Stone_Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00P', udg_Tobi[5]) == 1 )
endfunction
function Trig_Stone_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00P', udg_Tobi[5]) == 2 )
endfunction
function Trig_Stone_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00P', udg_Tobi[5]) == 3 )
endfunction
function Trig_Stone_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A00P', udg_Tobi[5]) == 4 )
endfunction
function Trig_Stone_Actions takes nothing returns nothing
set udg_Tobi[5] = GetTriggerUnit()
call UnitAddAbilityBJ( 'A07T', udg_Tobi[5] )
if ( Trig_Stone_Func003001() ) then
call TriggerSleepAction( 5.00 )
else
call DoNothing( )
endif
if ( Trig_Stone_Func004001() ) then
call TriggerSleepAction( 10.00 )
else
call DoNothing( )
endif
if ( Trig_Stone_Func005001() ) then
call TriggerSleepAction( 15.00 )
else
call DoNothing( )
endif
if ( Trig_Stone_Func006001() ) then
call TriggerSleepAction( 20.00 )
else
call DoNothing( )
endif
call UnitRemoveAbilityBJ( 'A07T', udg_Tobi[5] )
set udg_Tobi[5] = null
endfunction
//===========================================================================
function InitTrig_Stone takes nothing returns nothing
set gg_trg_Stone = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stone, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Stone, Condition( function Trig_Stone_Conditions ) )
call TriggerAddAction( gg_trg_Stone, function Trig_Stone_Actions )
endfunction
function Trig_Earth_teleport_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A070' ) ) then
return false
endif
return true
endfunction
function Trig_Earth_teleport_Func006C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Tobi[125], 'B00N') == false ) ) then
return false
endif
return true
endfunction
function Trig_Earth_teleport_Func009C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Tobi[125], 'B00N') == false ) ) then
return false
endif
return true
endfunction
function Trig_Earth_teleport_Actions takes nothing returns nothing
set udg_Tobi[125] = GetTriggerUnit()
set udg_PointNew[3534] = GetSpellTargetLoc()
call SetUnitTimeScalePercent( udg_Tobi[125], 400.00 )
call SetUnitAnimation( udg_Tobi[125], "spell one" )
call TriggerSleepAction( 0.05 )
if ( Trig_Earth_teleport_Func006C() ) then
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Tobi[125]), "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
else
endif
call SetUnitPositionLoc( GetTriggerUnit(), udg_PointNew[3534] )
call SetUnitAnimation( udg_Tobi[125], "spell three" )
if ( Trig_Earth_teleport_Func009C() ) then
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Tobi[125]), "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
else
endif
call SetUnitTimeScalePercent( udg_Tobi[125], 100.00 )
set udg_Tobi[125] = null
call RemoveLocation(udg_PointNew[3534])
set udg_PointNew[3534] = null
endfunction
//===========================================================================
function InitTrig_Earth_teleport takes nothing returns nothing
set gg_trg_Earth_teleport = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Earth_teleport, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Earth_teleport, Condition( function Trig_Earth_teleport_Conditions ) )
call TriggerAddAction( gg_trg_Earth_teleport, function Trig_Earth_teleport_Actions )
endfunction
function Trig_RINNEGAN_Conditions takes nothing returns boolean
if ( not ( GetIssuedOrderIdBJ() == String2OrderIdBJ("immolation") ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('AEim', GetTriggerUnit()) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_RINNEGAN_Actions takes nothing returns nothing
call SetPlayerAbilityAvailableBJ( false, 'A08J', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A00R', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A071', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A08H', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A05D', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'Afla', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A07F', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A04V', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A08M', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A07O', GetOwningPlayer(GetTriggerUnit()) )
call UnitRemoveAbilityBJ( 'A08F', GetTriggerUnit() )
call UnitAddAbilityBJ( 'A043', GetTriggerUnit() )
call EnableTrigger( gg_trg_RINNEGAN_end )
endfunction
//===========================================================================
function InitTrig_RINNEGAN takes nothing returns nothing
set gg_trg_RINNEGAN = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_RINNEGAN, EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddCondition( gg_trg_RINNEGAN, Condition( function Trig_RINNEGAN_Conditions ) )
call TriggerAddAction( gg_trg_RINNEGAN, function Trig_RINNEGAN_Actions )
endfunction
function Trig_RINNEGAN_end_Conditions takes nothing returns boolean
if ( not ( GetIssuedOrderIdBJ() == String2OrderIdBJ("unimmolation") ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('AEim', GetTriggerUnit()) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_RINNEGAN_end_Actions takes nothing returns nothing
call SetPlayerAbilityAvailableBJ( true, 'A08J', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A00R', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A071', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A08H', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A05D', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'Afla', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A07F', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A04V', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A08M', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( false, 'A07O', GetOwningPlayer(GetTriggerUnit()) )
call UnitRemoveAbilityBJ( 'A043', GetTriggerUnit() )
call UnitAddAbilityBJ( 'A08F', GetTriggerUnit() )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_RINNEGAN_end takes nothing returns nothing
set gg_trg_RINNEGAN_end = CreateTrigger( )
call DisableTrigger( gg_trg_RINNEGAN_end )
call TriggerRegisterAnyUnitEventBJ( gg_trg_RINNEGAN_end, EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddCondition( gg_trg_RINNEGAN_end, Condition( function Trig_RINNEGAN_end_Conditions ) )
call TriggerAddAction( gg_trg_RINNEGAN_end, function Trig_RINNEGAN_end_Actions )
endfunction
function Trig_KATONUCHIHA_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08G' ) ) then
return false
endif
return true
endfunction
function Trig_KATONUCHIHA_Actions takes nothing returns nothing
set udg_Bansho_Tenin[126] = GetSpellAbilityUnit()
set udg_Angle[912] = R2I(AngleBetweenPoints(GetUnitLoc(udg_Bansho_Tenin[126]), GetSpellTargetLoc()))
call CreateNUnitsAtLoc( 1, 'u007', GetOwningPlayer(udg_Bansho_Tenin[126]), GetUnitLoc(udg_Bansho_Tenin[126]), ( udg_Angle[912] - 6.00 ) )
call UnitApplyTimedLifeBJ( 1.10, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u007', GetOwningPlayer(udg_Bansho_Tenin[126]), GetUnitLoc(udg_Bansho_Tenin[126]), ( udg_Angle[912] + 6.00 ) )
call UnitApplyTimedLifeBJ( 1.10, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u007', GetOwningPlayer(udg_Bansho_Tenin[126]), GetUnitLoc(udg_Bansho_Tenin[126]), ( udg_Angle[912] + 18.00 ) )
call UnitApplyTimedLifeBJ( 1.10, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u007', GetOwningPlayer(udg_Bansho_Tenin[126]), GetUnitLoc(udg_Bansho_Tenin[126]), ( udg_Angle[912] - 18.00 ) )
call UnitApplyTimedLifeBJ( 1.10, 'BTLF', GetLastCreatedUnit() )
call EnableTrigger( gg_trg_KATONUCHIHA_Move )
call TriggerSleepAction( 0.85 )
call DisableTrigger( gg_trg_KATONUCHIHA_Move )
set udg_Bansho_Tenin[126] = null
set udg_Bansho_Tenin[127] = null
endfunction
//===========================================================================
function InitTrig_KATONUCHIHA takes nothing returns nothing
set gg_trg_KATONUCHIHA = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_KATONUCHIHA, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_KATONUCHIHA, Condition( function Trig_KATONUCHIHA_Conditions ) )
call TriggerAddAction( gg_trg_KATONUCHIHA, function Trig_KATONUCHIHA_Actions )
endfunction
function Trig_KATONUCHIHA_Move_Func001Func001Func005A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_KATONUCHIHA_Move_Func001Func001Func006001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Bansho_Tenin[126])) == true )
endfunction
function Trig_KATONUCHIHA_Move_Func001Func001Func006A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Bansho_Tenin[127], GetEnumUnit(), 57.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
function Trig_KATONUCHIHA_Move_Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnumUnit()) == GetOwningPlayer(udg_Bansho_Tenin[126]) ) ) then
return false
endif
return true
endfunction
function Trig_KATONUCHIHA_Move_Func001A takes nothing returns nothing
if ( Trig_KATONUCHIHA_Move_Func001Func001C() ) then
set udg_Bansho_Tenin[127] = GetEnumUnit()
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), 74.00, GetUnitFacing(GetEnumUnit())) )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "war3mapImported\\NeutralBuildingExplosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call EnumDestructablesInCircleBJ( 300.00, GetUnitLoc(GetEnumUnit()), function Trig_KATONUCHIHA_Move_Func001Func001Func005A )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(300.00, GetUnitLoc(GetEnumUnit()), Condition(function Trig_KATONUCHIHA_Move_Func001Func001Func006001003)), function Trig_KATONUCHIHA_Move_Func001Func001Func006A )
else
endif
endfunction
function Trig_KATONUCHIHA_Move_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfTypeIdAll('u007'), function Trig_KATONUCHIHA_Move_Func001A )
endfunction
//===========================================================================
function InitTrig_KATONUCHIHA_Move takes nothing returns nothing
set gg_trg_KATONUCHIHA_Move = CreateTrigger( )
call DisableTrigger( gg_trg_KATONUCHIHA_Move )
call TriggerRegisterTimerEventPeriodic( gg_trg_KATONUCHIHA_Move, 0.05 )
call TriggerAddAction( gg_trg_KATONUCHIHA_Move, function Trig_KATONUCHIHA_Move_Actions )
endfunction
function Trig_MADARACLONES_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08M' ) ) then
return false
endif
return true
endfunction
function Trig_MADARACLONES_Actions takes nothing returns nothing
set udg_Bansho_Tenin[137] = GetSpellAbilityUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(udg_Bansho_Tenin[137]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call UnitAddItemByIdSwapped( 'I600', GetLastCreatedUnit() )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call UnitUseItemTarget( GetLastCreatedUnit(), GetLastCreatedItem(), udg_Bansho_Tenin[137] )
call RemoveItem( GetLastCreatedItem() )
set udg_Bansho_Tenin[138] = GetSpellAbilityUnit()
endfunction
//===========================================================================
function InitTrig_MADARACLONES takes nothing returns nothing
set gg_trg_MADARACLONES = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_MADARACLONES, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_MADARACLONES, Condition( function Trig_MADARACLONES_Conditions ) )
call TriggerAddAction( gg_trg_MADARACLONES, function Trig_MADARACLONES_Actions )
endfunction
function Trig_MOVE_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'Afla' ) ) then
return false
endif
return true
endfunction
function Trig_MOVE_Func014A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_MOVE_Func015001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_MOVE_Func015A takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 300.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
function Trig_MOVE_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitPositionLoc( GetTriggerUnit(), GetSpellTargetLoc() )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01I', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A017', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
call EnumDestructablesInCircleBJ( 300.00, GetUnitLoc(GetTriggerUnit()), function Trig_MOVE_Func014A )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(412.00, GetUnitLoc(GetTriggerUnit()), Condition(function Trig_MOVE_Func015001003)), function Trig_MOVE_Func015A )
endfunction
//===========================================================================
function InitTrig_MOVE takes nothing returns nothing
set gg_trg_MOVE = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_MOVE, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_MOVE, Condition( function Trig_MOVE_Conditions ) )
call TriggerAddAction( gg_trg_MOVE, function Trig_MOVE_Actions )
endfunction
function Trig_WOODSTYLE_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07F' ) ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_Actions takes nothing returns nothing
set udg_Bansho_Tenin[131] = GetSpellAbilityUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Bansho_Tenin[131]), GetUnitLoc(udg_Bansho_Tenin[131]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 7.00, 'BTLF', GetLastCreatedUnit() )
set udg_Bansho_Tenin[132] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Bansho_Tenin[131]), GetUnitLoc(udg_Bansho_Tenin[131]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 3.00, 'BTLF', GetLastCreatedUnit() )
set udg_Bansho_Tenin[133] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Bansho_Tenin[131]), GetUnitLoc(udg_Bansho_Tenin[131]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 5.00, 'BTLF', GetLastCreatedUnit() )
set udg_Bansho_Tenin[134] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_WOODSTYLE_move )
call TriggerSleepAction( 4.00 )
call DisableTrigger( gg_trg_WOODSTYLE_move )
set udg_Bansho_Tenin[132] = null
set udg_Bansho_Tenin[133] = null
set udg_Bansho_Tenin[134] = null
endfunction
//===========================================================================
function InitTrig_WOODSTYLE takes nothing returns nothing
set gg_trg_WOODSTYLE = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_WOODSTYLE, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_WOODSTYLE, Condition( function Trig_WOODSTYLE_Conditions ) )
call TriggerAddAction( gg_trg_WOODSTYLE, function Trig_WOODSTYLE_Actions )
endfunction
function Trig_WOODSTYLE_move_Func001Func007Func005C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_move_Func001Func007C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_move_Func001C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Bansho_Tenin[132]) == true ) ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_move_Func002Func007Func005C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_move_Func002Func007C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_move_Func002C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Bansho_Tenin[133]) == true ) ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_move_Func003Func007Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_move_Func003Func007C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_move_Func003C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Bansho_Tenin[134]) == true ) ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_move_Actions takes nothing returns nothing
if ( Trig_WOODSTYLE_move_Func001C() ) then
call SetUnitPositionLoc( udg_Bansho_Tenin[132], PolarProjectionBJ(GetUnitLoc(udg_Bansho_Tenin[132]), 300.00, GetRandomDirectionDeg()) )
call CreateNUnitsAtLoc( 1, 'u018', GetOwningPlayer(udg_Bansho_Tenin[132]), GetUnitLoc(udg_Bansho_Tenin[132]), GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 180.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( GetRandomReal(4.00, 6.00), 'BTLF', GetLastCreatedUnit() )
if ( Trig_WOODSTYLE_move_Func001Func007C() ) then
call CreateNUnitsAtLoc( 1, 'u013', GetOwningPlayer(udg_Bansho_Tenin[132]), GetUnitLoc(udg_Bansho_Tenin[132]), GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 180.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( GetRandomReal(4.00, 6.00), 'BTLF', GetLastCreatedUnit() )
else
if ( Trig_WOODSTYLE_move_Func001Func007Func005C() ) then
call CreateNUnitsAtLoc( 1, 'u019', GetOwningPlayer(udg_Bansho_Tenin[132]), GetUnitLoc(udg_Bansho_Tenin[132]), GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 180.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( GetRandomReal(4.00, 6.00), 'BTLF', GetLastCreatedUnit() )
else
endif
endif
call SetTerrainTypeBJ( GetUnitLoc(GetLastCreatedUnit()), 'Avin', -1, 2, 0 )
else
endif
if ( Trig_WOODSTYLE_move_Func002C() ) then
call SetUnitPositionLoc( udg_Bansho_Tenin[133], PolarProjectionBJ(GetUnitLoc(udg_Bansho_Tenin[133]), 290.00, GetRandomDirectionDeg()) )
call CreateNUnitsAtLoc( 1, 'u018', GetOwningPlayer(udg_Bansho_Tenin[133]), GetUnitLoc(udg_Bansho_Tenin[133]), GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 180.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( GetRandomReal(4.00, 6.00), 'BTLF', GetLastCreatedUnit() )
if ( Trig_WOODSTYLE_move_Func002Func007C() ) then
call CreateNUnitsAtLoc( 1, 'u013', GetOwningPlayer(udg_Bansho_Tenin[133]), GetUnitLoc(udg_Bansho_Tenin[133]), GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 20.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( GetRandomReal(4.00, 6.00), 'BTLF', GetLastCreatedUnit() )
else
if ( Trig_WOODSTYLE_move_Func002Func007Func005C() ) then
call CreateNUnitsAtLoc( 1, 'u019', GetOwningPlayer(udg_Bansho_Tenin[133]), GetUnitLoc(udg_Bansho_Tenin[133]), GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 20.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( GetRandomReal(4.00, 6.00), 'BTLF', GetLastCreatedUnit() )
else
endif
endif
call SetTerrainTypeBJ( GetUnitLoc(GetLastCreatedUnit()), 'Avin', -1, 2, 0 )
else
endif
if ( Trig_WOODSTYLE_move_Func003C() ) then
call SetUnitPositionLoc( udg_Bansho_Tenin[134], PolarProjectionBJ(GetUnitLoc(udg_Bansho_Tenin[134]), 290.00, GetRandomDirectionDeg()) )
call CreateNUnitsAtLoc( 1, 'u018', GetOwningPlayer(udg_Bansho_Tenin[134]), GetUnitLoc(udg_Bansho_Tenin[134]), GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 180.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( GetRandomReal(4.00, 6.00), 'BTLF', GetLastCreatedUnit() )
if ( Trig_WOODSTYLE_move_Func003Func007C() ) then
call CreateNUnitsAtLoc( 1, 'u019', GetOwningPlayer(udg_Bansho_Tenin[134]), GetUnitLoc(udg_Bansho_Tenin[134]), GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 20.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( GetRandomReal(4.00, 6.00), 'BTLF', GetLastCreatedUnit() )
else
if ( Trig_WOODSTYLE_move_Func003Func007Func001C() ) then
call CreateNUnitsAtLoc( 1, 'u013', GetOwningPlayer(udg_Bansho_Tenin[134]), GetUnitLoc(udg_Bansho_Tenin[134]), GetRandomDirectionDeg() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 20.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( GetRandomReal(4.00, 6.00), 'BTLF', GetLastCreatedUnit() )
else
endif
endif
call SetTerrainTypeBJ( GetUnitLoc(GetLastCreatedUnit()), 'Avin', -1, 2, 0 )
else
endif
endfunction
//===========================================================================
function InitTrig_WOODSTYLE_move takes nothing returns nothing
set gg_trg_WOODSTYLE_move = CreateTrigger( )
call DisableTrigger( gg_trg_WOODSTYLE_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_WOODSTYLE_move, 0.14 )
call TriggerAddAction( gg_trg_WOODSTYLE_move, function Trig_WOODSTYLE_move_Actions )
endfunction
function Trig_WOODSTYLE_Dead_Func001C takes nothing returns boolean
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u018' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u013' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'u019' ) ) then
return true
endif
return false
endfunction
function Trig_WOODSTYLE_Dead_Conditions takes nothing returns boolean
if ( not Trig_WOODSTYLE_Dead_Func001C() ) then
return false
endif
return true
endfunction
function Trig_WOODSTYLE_Dead_Func002001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetDyingUnit())) == true )
endfunction
function Trig_WOODSTYLE_Dead_Func002A takes nothing returns nothing
call UnitDamageTargetBJ( GetDyingUnit(), GetEnumUnit(), 576.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
function Trig_WOODSTYLE_Dead_Func007A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_WOODSTYLE_Dead_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocMatching(320.00, GetUnitLoc(GetDyingUnit()), Condition(function Trig_WOODSTYLE_Dead_Func002001003)), function Trig_WOODSTYLE_Dead_Func002A )
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "war3mapImported\\NeutralBuildingExplosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call EnumDestructablesInCircleBJ( 300.00, GetUnitLoc(GetTriggerUnit()), function Trig_WOODSTYLE_Dead_Func007A )
call SetTerrainTypeBJ( GetUnitLoc(GetDyingUnit()), 'Osmb', -1, 2, 0 )
endfunction
//===========================================================================
function InitTrig_WOODSTYLE_Dead takes nothing returns nothing
set gg_trg_WOODSTYLE_Dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_WOODSTYLE_Dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_WOODSTYLE_Dead, Condition( function Trig_WOODSTYLE_Dead_Conditions ) )
call TriggerAddAction( gg_trg_WOODSTYLE_Dead, function Trig_WOODSTYLE_Dead_Actions )
endfunction
function Trig_METEOR_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00R' ) ) then
return false
endif
return true
endfunction
function Trig_METEOR_Func047A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_METEOR_Func048001003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Bansho_Tenin[136])) == true )
endfunction
function Trig_METEOR_Func048A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Bansho_Tenin[136], GetEnumUnit(), 10000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
function Trig_METEOR_Func073A takes nothing returns nothing
call CameraSetEQNoiseForPlayer( GetEnumPlayer(), 38.00 )
endfunction
function Trig_METEOR_Func080A takes nothing returns nothing
call CameraClearNoiseForPlayer( GetEnumPlayer() )
endfunction
function Trig_METEOR_Actions takes nothing returns nothing
set udg_Bansho_Tenin[136] = GetSpellAbilityUnit()
set udg_Point[1931] = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'h01K', GetOwningPlayer(udg_Bansho_Tenin[136]), udg_Point[1931], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.90, 'Bapl', GetLastCreatedUnit() )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 115.00 )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), -400.00, 2000.00 )
call TriggerSleepAction( 0.50 )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 310.00, 90.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 310.00, 180.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 310.00, 270.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 620.00, 45.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 620.00, 135.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 620.00, 225.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 620.00, 315.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 910.00, 360.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 910.00, 90.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 910.00, 180.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 910.00, 270.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call TriggerSleepAction( 0.05 )
call CreateNUnitsAtLoc( 1, 'u01E', Player(PLAYER_NEUTRAL_PASSIVE), udg_Point[1931], bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 120.00 )
call SetUnitScalePercent( GetLastCreatedUnit(), 500.00, 500.00, 500.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 80.00, 90.00, 100, 0.00 )
call KillUnit( GetLastCreatedUnit() )
call EnumDestructablesInCircleBJ( 1900.00, udg_Point[1931], function Trig_METEOR_Func047A )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(1600.00, udg_Point[1931], Condition(function Trig_METEOR_Func048001003)), function Trig_METEOR_Func048A )
call CreateNUnitsAtLoc( 1, 'h00X', GetOwningPlayer(udg_Bansho_Tenin[136]), udg_Point[1931], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h00C', GetOwningPlayer(udg_Bansho_Tenin[136]), udg_Point[1931], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01I', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 1420.00, 45.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.00, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01I', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 1420.00, 135.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.00, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01I', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 1420.00, 225.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.00, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01I', GetOwningPlayer(udg_Bansho_Tenin[136]), PolarProjectionBJ(udg_Point[1931], 1420.00, 315.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.00, 'Bapl', GetLastCreatedUnit() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Point[1931], 300.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 14
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Point[1931], 500.00, ( I2R(GetForLoopIndexA()) * 28.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 20
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Point[1931], 700.00, ( I2R(GetForLoopIndexA()) * 30.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 22
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Point[1931], 900.00, ( I2R(GetForLoopIndexA()) * 30.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 30
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Point[1931], 1100.00, ( I2R(GetForLoopIndexA()) * 32.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 30
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Point[1931], 1300.00, ( I2R(GetForLoopIndexA()) * 32.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 31
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Point[1931], 1500.00, ( I2R(GetForLoopIndexA()) * 32.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 38
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Point[1931], 1700.00, ( I2R(GetForLoopIndexA()) * 32.00 )), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForForce( GetPlayersAll(), function Trig_METEOR_Func073A )
call SetTerrainTypeBJ( udg_Point[1931], 'Osmb', -1, 12, 0 )
call TerrainDeformationRippleBJ( 5.00, false, udg_Point[1931], 256.00, 1424.00, 64.00, 1, 512 )
set udg_Bansho_Tenin[136] = null
call RemoveLocation( udg_Point[1931] )
set udg_Point[1931] = null
call TriggerSleepAction( 2.00 )
call ForForce( GetPlayersAll(), function Trig_METEOR_Func080A )
endfunction
//===========================================================================
function InitTrig_METEOR takes nothing returns nothing
set gg_trg_METEOR = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_METEOR, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_METEOR, Condition( function Trig_METEOR_Conditions ) )
call TriggerAddAction( gg_trg_METEOR, function Trig_METEOR_Actions )
endfunction
function Trig_SUSANNOSTOMB_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09S' ) ) then
return false
endif
return true
endfunction
function Trig_SUSANNOSTOMB_Actions takes nothing returns nothing
set udg_MyNewPoint[22] = GetUnitLoc(GetTriggerUnit())
set udg_Bansho_Tenin[126] = GetSpellAbilityUnit()
call CreateNUnitsAtLoc( 1, 'u01E', Player(PLAYER_NEUTRAL_PASSIVE), udg_MyNewPoint[22], bj_UNIT_FACING )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100.00, 50.00, 40.00, 10.00 )
call KillUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), udg_MyNewPoint[22], bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', Player(PLAYER_NEUTRAL_PASSIVE), udg_MyNewPoint[22], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 2.00, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), PolarProjectionBJ(udg_MyNewPoint[22], 320.00, 45.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), PolarProjectionBJ(udg_MyNewPoint[22], 320.00, 135.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), PolarProjectionBJ(udg_MyNewPoint[22], 320.00, 225.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), PolarProjectionBJ(udg_MyNewPoint[22], 320.00, 315.00), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 35.00 )
call UnitApplyTimedLifeBJ( 2.50, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01Z', GetOwningPlayer(GetTriggerUnit()), udg_MyNewPoint[22], ( GetUnitFacing(GetTriggerUnit()) + 0.00 ) )
call UnitApplyTimedLifeBJ( 0.90, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01Z', GetOwningPlayer(GetTriggerUnit()), udg_MyNewPoint[22], ( GetUnitFacing(GetTriggerUnit()) - 18.00 ) )
call UnitApplyTimedLifeBJ( 0.90, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01Z', GetOwningPlayer(GetTriggerUnit()), udg_MyNewPoint[22], ( GetUnitFacing(GetTriggerUnit()) + 18.00 ) )
call UnitApplyTimedLifeBJ( 0.90, 'Brai', GetLastCreatedUnit() )
call RemoveLocation(udg_MyNewPoint[22])
set udg_MyNewPoint[22] = null
call EnableTrigger ( gg_trg_SUSANNOSTOMB_move )
call TriggerSleepAction( 0.70 )
call DisableTrigger ( gg_trg_SUSANNOSTOMB_move )
set udg_Bansho_Tenin[126] = null
endfunction
//===========================================================================
function InitTrig_SUSANNOSTOMB takes nothing returns nothing
set gg_trg_SUSANNOSTOMB = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_SUSANNOSTOMB, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_SUSANNOSTOMB, Condition( function Trig_SUSANNOSTOMB_Conditions ) )
call TriggerAddAction( gg_trg_SUSANNOSTOMB, function Trig_SUSANNOSTOMB_Actions )
endfunction
function Trig_GREENDRAGON_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04V' ) ) then
return false
endif
return true
endfunction
function Trig_GREENDRAGON_Actions takes nothing returns nothing
set udg_Bansho_Tenin[143] = GetSpellAbilityUnit()
set udg_Pointhero[1931] = GetSpellTargetLoc()
set udg_PeinReal[192] = 0.00
call CreateNUnitsAtLoc( 1, 'h007', GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()), udg_Pointhero[1931]) )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_Bansho_Tenin[144] = GetLastCreatedUnit()
call EnableTrigger( gg_trg_GREENDRAGON_move )
endfunction
//===========================================================================
function InitTrig_GREENDRAGON takes nothing returns nothing
set gg_trg_GREENDRAGON = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_GREENDRAGON, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_GREENDRAGON, Condition( function Trig_GREENDRAGON_Conditions ) )
call TriggerAddAction( gg_trg_GREENDRAGON, function Trig_GREENDRAGON_Actions )
endfunction
function Trig_GREENDRAGON_move_Func003001003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Bansho_Tenin[143])) == true )
endfunction
function Trig_GREENDRAGON_move_Func003001003002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_GREENDRAGON_move_Func003001003 takes nothing returns boolean
return GetBooleanAnd( Trig_GREENDRAGON_move_Func003001003001(), Trig_GREENDRAGON_move_Func003001003002() )
endfunction
function Trig_GREENDRAGON_move_Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(GetUnitLoc(GetEnumUnit()), 70.00, AngleBetweenPoints(GetUnitLoc(GetEnumUnit()), GetUnitLoc(udg_Bansho_Tenin[144]))) )
endfunction
function Trig_GREENDRAGON_move_Func006Func004002003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Bansho_Tenin[143])) == true )
endfunction
function Trig_GREENDRAGON_move_Func006Func008A takes nothing returns nothing
call PauseUnitBJ( true, GetEnumUnit() )
endfunction
function Trig_GREENDRAGON_move_Func006Func026A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Bansho_Tenin[143], GetEnumUnit(), 40000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
call PauseUnitBJ( false, GetEnumUnit() )
endfunction
function Trig_GREENDRAGON_move_Func006C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Bansho_Tenin[144]), udg_Pointhero[1931]) <= 60.00 ) ) then
return false
endif
return true
endfunction
function Trig_GREENDRAGON_move_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_Bansho_Tenin[144], PolarProjectionBJ(GetUnitLoc(udg_Bansho_Tenin[144]), 80.00, AngleBetweenPoints(GetUnitLoc(udg_Bansho_Tenin[144]), udg_Pointhero[1931])) )
call SetUnitAnimation( udg_Bansho_Tenin[144], "walk" )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(300.00, GetUnitLoc(udg_Bansho_Tenin[144]), Condition(function Trig_GREENDRAGON_move_Func003001003)), function Trig_GREENDRAGON_move_Func003A )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Bansho_Tenin[144]), "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
if ( Trig_GREENDRAGON_move_Func006C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call CreateNUnitsAtLoc( 1, 'h012', Player(PLAYER_NEUTRAL_PASSIVE), OffsetLocation(GetUnitLoc(udg_Bansho_Tenin[144]), 80.00, 135.00), GetRandomDirectionDeg() )
set udg_Bansho_Tenin[145] = GetLastCreatedUnit()
set udg_UnitGroups[197] = GetUnitsInRangeOfLocMatching(700.00, GetUnitLoc(GetLastCreatedUnit()), Condition(function Trig_GREENDRAGON_move_Func006Func004002003))
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( 6.00, 'BTLF', GetLastCreatedUnit() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 8
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateNUnitsAtLoc( 1, 'u018', Player(PLAYER_NEUTRAL_PASSIVE), PolarProjectionBJ(GetUnitLoc(udg_Bansho_Tenin[144]), 350.00, ( I2R(GetForLoopIndexA()) * 50.00 )), GetRandomDirectionDeg() )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( 6.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u019', Player(PLAYER_NEUTRAL_PASSIVE), PolarProjectionBJ(GetUnitLoc(udg_Bansho_Tenin[144]), 350.00, ( I2R(GetForLoopIndexA()) * 50.00 )), GetRandomDirectionDeg() )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( 6.00, 'BTLF', GetLastCreatedUnit() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ForGroupBJ( udg_UnitGroups[197], function Trig_GREENDRAGON_move_Func006Func008A )
call EnableTrigger( gg_trg_GREENDRAGON_time )
call CreateNUnitsAtLoc( 1, 'u018', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Bansho_Tenin[144]), GetRandomDirectionDeg() )
call SetUnitScalePercent( GetLastCreatedUnit(), 400.00, 400.00, 400.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( 6.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u013', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Bansho_Tenin[144]), GetRandomDirectionDeg() )
call SetUnitScalePercent( GetLastCreatedUnit(), 1000.00, 1000.00, 1000.00 )
call SetUnitAnimation( GetLastCreatedUnit(), "birth" )
call UnitApplyTimedLifeBJ( 6.00, 'BTLF', GetLastCreatedUnit() )
call RemoveUnit( udg_Bansho_Tenin[144] )
call TriggerSleepAction( 2 )
call DisableTrigger( gg_trg_GREENDRAGON_time )
call TriggerSleepAction( 4.00 )
call CreateNUnitsAtLoc( 1, 'h00D', GetOwningPlayer(udg_Bansho_Tenin[143]), udg_Pointhero[1931], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 5.00, 'BTLF', GetLastCreatedUnit() )
call SetUnitScalePercent( GetLastCreatedUnit(), 70.00, 70.00, 70.00 )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), -150.00, 999999.00 )
call ForGroupBJ( udg_UnitGroups[197], function Trig_GREENDRAGON_move_Func006Func026A )
set udg_Bansho_Tenin[144] = null
set udg_Bansho_Tenin[143] = null
set udg_Bansho_Tenin[145] = null
call RemoveLocation( udg_Pointhero[1931] )
set udg_Pointhero[1931] = null
call DestroyGroup (udg_UnitGroups[197])
set udg_UnitGroups[197] = null
else
endif
endfunction
//===========================================================================
function InitTrig_GREENDRAGON_move takes nothing returns nothing
set gg_trg_GREENDRAGON_move = CreateTrigger( )
call DisableTrigger( gg_trg_GREENDRAGON_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_GREENDRAGON_move, 0.08 )
call TriggerAddAction( gg_trg_GREENDRAGON_move, function Trig_GREENDRAGON_move_Actions )
endfunction
function Trig_GREENDRAGON_time_Actions takes nothing returns nothing
set udg_PeinReal[192] = ( udg_PeinReal[192] + 1.00 )
call SetUnitScalePercent( udg_Bansho_Tenin[145], udg_PeinReal[192], udg_PeinReal[192], udg_PeinReal[192] )
endfunction
//===========================================================================
function InitTrig_GREENDRAGON_time takes nothing returns nothing
set gg_trg_GREENDRAGON_time = CreateTrigger( )
call DisableTrigger( gg_trg_GREENDRAGON_time )
call TriggerRegisterTimerEventPeriodic( gg_trg_GREENDRAGON_time, 0.03 )
call TriggerAddAction( gg_trg_GREENDRAGON_time, function Trig_GREENDRAGON_time_Actions )
endfunction
function Trig_ABSORPTION_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07O' ) ) then
return false
endif
return true
endfunction
function Trig_ABSORPTION_Actions takes nothing returns nothing
set udg_Bansho_Tenin[148] = GetSpellAbilityUnit()
call PauseUnitBJ( true, udg_Bansho_Tenin[148] )
call UnitAddAbilityBJ( 'A02H', udg_Bansho_Tenin[148] )
call UnitAddAbilityBJ( 'A00D', udg_Bansho_Tenin[148] )
call EnableTrigger( gg_trg_ABSORPTION_end )
call TriggerSleepAction( 10.00 )
call DisableTrigger( gg_trg_ABSORPTION_end )
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_NEGATIVE, udg_Bansho_Tenin[148] )
call PauseUnitBJ( false, udg_Bansho_Tenin[148] )
call UnitRemoveAbilityBJ( 'A00D', udg_Bansho_Tenin[148] )
call UnitRemoveAbilityBJ( 'A02H', udg_Bansho_Tenin[148] )
set udg_Bansho_Tenin[148] = null
endfunction
//===========================================================================
function InitTrig_ABSORPTION takes nothing returns nothing
set gg_trg_ABSORPTION = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_ABSORPTION, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_ABSORPTION, Condition( function Trig_ABSORPTION_Conditions ) )
call TriggerAddAction( gg_trg_ABSORPTION, function Trig_ABSORPTION_Actions )
endfunction
function Trig_ABSORPTION_end_Conditions takes nothing returns boolean
if ( not ( GetAttackedUnitBJ() == udg_Bansho_Tenin[148] ) ) then
return false
endif
return true
endfunction
function Trig_ABSORPTION_end_Actions takes nothing returns nothing
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_NEGATIVE, udg_Bansho_Tenin[148] )
call PauseUnitBJ( false, udg_Bansho_Tenin[148] )
call UnitRemoveAbilityBJ( 'A02H', udg_Bansho_Tenin[148] )
call UnitRemoveAbilityBJ( 'A00D', udg_Bansho_Tenin[148] )
call TriggerSleepAction( 0.02 )
set udg_Bansho_Tenin[148] = null
endfunction
//===========================================================================
function InitTrig_ABSORPTION_end takes nothing returns nothing
set gg_trg_ABSORPTION_end = CreateTrigger( )
call DisableTrigger( gg_trg_ABSORPTION_end )
call TriggerRegisterAnyUnitEventBJ( gg_trg_ABSORPTION_end, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_ABSORPTION_end, Condition( function Trig_ABSORPTION_end_Conditions ) )
call TriggerAddAction( gg_trg_ABSORPTION_end, function Trig_ABSORPTION_end_Actions )
endfunction
function Trig_SUSANNO_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A071' ) ) then
return false
endif
return true
endfunction
function Trig_SUSANNO_Func012C takes nothing returns boolean
if ( not ( GetOwningPlayer(udg_Bansho_Tenin[146]) == Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_SUSANNO_Actions takes nothing returns nothing
set udg_Bansho_Tenin[146] = GetSpellAbilityUnit()
call UnitAddAbilityBJ( 'A087', udg_Bansho_Tenin[146] )
call CreateNUnitsAtLoc( 1, 'u01C', GetOwningPlayer(udg_Bansho_Tenin[146]), GetUnitLoc(udg_Bansho_Tenin[146]), GetUnitFacing(udg_Bansho_Tenin[146]) )
set udg_Bansho_Tenin[147] = GetLastCreatedUnit()
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 175.00 )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100, 100, 100, 30.00 )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Bansho_Tenin[146]), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call EnableTrigger( gg_trg_SUSANNO_move )
call EnableTrigger( gg_trg_SUSANNO_attack )
call EnableTrigger( gg_trg_SUSANNO_die )
call TriggerSleepAction( 30.00 )
if ( Trig_SUSANNO_Func012C() ) then
else
call DisableTrigger( gg_trg_SUSANNO_move )
call DisableTrigger( gg_trg_SUSANNO_attack )
call DisableTrigger( gg_trg_SUSANNO_die )
call RemoveUnit( udg_Bansho_Tenin[147] )
call UnitRemoveAbilityBJ( 'A087', udg_Bansho_Tenin[146] )
set udg_Bansho_Tenin[146] = null
set udg_Bansho_Tenin[147] = null
endif
endfunction
//===========================================================================
function InitTrig_SUSANNO takes nothing returns nothing
set gg_trg_SUSANNO = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_SUSANNO, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_SUSANNO, Condition( function Trig_SUSANNO_Conditions ) )
call TriggerAddAction( gg_trg_SUSANNO, function Trig_SUSANNO_Actions )
endfunction
function Trig_SUSANNO_move_Func002A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_SUSANNO_move_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ( udg_Bansho_Tenin[147], GetUnitLoc(udg_Bansho_Tenin[146]), GetUnitFacing(udg_Bansho_Tenin[146]) )
call EnumDestructablesInCircleBJ( 400.00, GetUnitLoc(udg_Bansho_Tenin[147]), function Trig_SUSANNO_move_Func002A )
endfunction
//===========================================================================
function InitTrig_SUSANNO_move takes nothing returns nothing
set gg_trg_SUSANNO_move = CreateTrigger( )
call DisableTrigger( gg_trg_SUSANNO_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_SUSANNO_move, 0.01 )
call TriggerAddAction( gg_trg_SUSANNO_move, function Trig_SUSANNO_move_Actions )
endfunction
function Trig_SUSANNO_attack_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Bansho_Tenin[146] ) ) then
return false
endif
return true
endfunction
function Trig_SUSANNO_attack_Actions takes nothing returns nothing
call SetUnitAnimation( udg_Bansho_Tenin[147], "attack" )
call SetUnitAnimation( udg_Bansho_Tenin[146], "stand" )
call TriggerSleepAction( 0.23 )
call SetUnitAnimation( udg_Bansho_Tenin[147], "stand" )
endfunction
//===========================================================================
function InitTrig_SUSANNO_attack takes nothing returns nothing
set gg_trg_SUSANNO_attack = CreateTrigger( )
call DisableTrigger( gg_trg_SUSANNO_attack )
call TriggerRegisterAnyUnitEventBJ( gg_trg_SUSANNO_attack, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_SUSANNO_attack, Condition( function Trig_SUSANNO_attack_Conditions ) )
call TriggerAddAction( gg_trg_SUSANNO_attack, function Trig_SUSANNO_attack_Actions )
endfunction
function Trig_SUSANNO_die_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_Bansho_Tenin[146] ) ) then
return false
endif
return true
endfunction
function Trig_SUSANNO_die_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_SUSANNO_move )
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_SUSANNO_attack )
call RemoveUnit( udg_Bansho_Tenin[147] )
call UnitRemoveAbilityBJ( 'A087', udg_Bansho_Tenin[146] )
set udg_Bansho_Tenin[146] = null
set udg_Bansho_Tenin[147] = null
endfunction
//===========================================================================
function InitTrig_SUSANNO_die takes nothing returns nothing
set gg_trg_SUSANNO_die = CreateTrigger( )
call DisableTrigger( gg_trg_SUSANNO_die )
call TriggerRegisterAnyUnitEventBJ( gg_trg_SUSANNO_die, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_SUSANNO_die, Condition( function Trig_SUSANNO_die_Conditions ) )
call TriggerAddAction( gg_trg_SUSANNO_die, function Trig_SUSANNO_die_Actions )
endfunction
function Trig_SUSANNO2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A05D' ) ) then
return false
endif
return true
endfunction
function Trig_SUSANNO2_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_SUSANNO_move )
call DisableTrigger( gg_trg_SUSANNO_attack )
call DisableTrigger( gg_trg_SUSANNO_die )
call RemoveUnit( udg_Bansho_Tenin[147] )
call UnitRemoveAbilityBJ( 'A087', udg_Bansho_Tenin[146] )
set udg_Bansho_Tenin[146] = null
set udg_Bansho_Tenin[147] = null
set udg_Bansho_Tenin[146] = GetSpellAbilityUnit()
call SetUnitPathing( udg_Bansho_Tenin[146], false )
call SetUnitInvulnerable( udg_Bansho_Tenin[146], true )
call UnitAddAbilityBJ( 'Arav', udg_Bansho_Tenin[146] )
call CreateNUnitsAtLoc( 1, 'H00T', GetOwningPlayer(udg_Bansho_Tenin[146]), GetUnitLoc(udg_Bansho_Tenin[146]), GetUnitFacing(udg_Bansho_Tenin[146]) )
set udg_Bansho_Tenin[147] = GetLastCreatedUnit()
call SetHeroLevelBJ( udg_Bansho_Tenin[147], 30, false )
call SetUnitOwner( udg_Bansho_Tenin[146], Player(PLAYER_NEUTRAL_PASSIVE), true )
call ResetUnitAnimation( udg_Bansho_Tenin[146] )
call SetUnitFlyHeightBJ( udg_Bansho_Tenin[146], 600.00, 1400.00 )
call PauseUnitBJ( true, udg_Bansho_Tenin[147] )
call EnableTrigger( gg_trg_SUSANNO2_move )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Bansho_Tenin[147]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( udg_Bansho_Tenin[147], 100, 100, 100, 86.00 )
call CreateTextTagUnitBJ( "TRIGSTR_765", udg_Bansho_Tenin[147], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[1] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Bansho_Tenin[147]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( udg_Bansho_Tenin[147], 100, 100, 100, 76.00 )
call DestroyTextTagBJ( udg_Text[1] )
call CreateTextTagUnitBJ( "TRIGSTR_767", udg_Bansho_Tenin[147], 0, 20.00, 100, 30.00, 30.00, 0 )
set udg_Text[1] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Bansho_Tenin[147]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( udg_Bansho_Tenin[147], 100, 100, 100, 67.00 )
call DestroyTextTagBJ( udg_Text[1] )
call CreateTextTagUnitBJ( "TRIGSTR_770", udg_Bansho_Tenin[147], 0, 60.00, 100, 30.00, 30.00, 0 )
set udg_Text[1] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Bansho_Tenin[147]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( udg_Bansho_Tenin[147], 100, 100, 100, 48.00 )
call DestroyTextTagBJ( udg_Text[1] )
call CreateTextTagUnitBJ( "TRIGSTR_771", udg_Bansho_Tenin[147], 0, 60.00, 100, 30.00, 30.00, 0 )
set udg_Text[1] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Bansho_Tenin[147]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( udg_Bansho_Tenin[147], 100, 100, 100, 27.00 )
call DestroyTextTagBJ( udg_Text[1] )
call CreateTextTagUnitBJ( "TRIGSTR_772", udg_Bansho_Tenin[147], 0, 60.00, 100, 30.00, 30.00, 0 )
set udg_Text[1] = GetLastCreatedTextTag()
call TriggerSleepAction( 0.05 )
call DestroyTextTagBJ( udg_Text[1] )
call PauseUnitBJ( false, udg_Bansho_Tenin[147] )
call SelectUnitForPlayerSingle( udg_Bansho_Tenin[147], GetOwningPlayer(udg_Bansho_Tenin[147]) )
call TriggerSleepAction( 100.00 )
call SetUnitFlyHeightBJ( udg_Bansho_Tenin[146], 0.00, 1400.00 )
call TriggerSleepAction( 1.00 )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Bansho_Tenin[147]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call UnitRemoveAbilityBJ( 'Arav', udg_Bansho_Tenin[146] )
call SelectUnitForPlayerSingle( udg_Bansho_Tenin[147], GetOwningPlayer(udg_Bansho_Tenin[146]) )
call SetUnitOwner( udg_Bansho_Tenin[146], GetOwningPlayer(udg_Bansho_Tenin[147]), true )
call RemoveUnit( udg_Bansho_Tenin[147] )
call SetUnitInvulnerable( udg_Bansho_Tenin[146], false )
call SetUnitPathing( udg_Bansho_Tenin[146], true )
call DisableTrigger( gg_trg_SUSANNO2_move )
set udg_Bansho_Tenin[146] = null
set udg_Bansho_Tenin[147] = null
endfunction
//===========================================================================
function InitTrig_SUSANNO2 takes nothing returns nothing
set gg_trg_SUSANNO2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_SUSANNO2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_SUSANNO2, Condition( function Trig_SUSANNO2_Conditions ) )
call TriggerAddAction( gg_trg_SUSANNO2, function Trig_SUSANNO2_Actions )
endfunction
function Trig_SUSANNO2_move_Func003A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_SUSANNO2_move_Actions takes nothing returns nothing
set udg_Zpoint[93] = GetUnitLoc(udg_Bansho_Tenin[147])
call SetUnitPositionLocFacingBJ( udg_Bansho_Tenin[146], udg_Zpoint[93], GetUnitFacing(udg_Bansho_Tenin[147]) )
call EnumDestructablesInCircleBJ( 400.00, udg_Zpoint[93], function Trig_SUSANNO2_move_Func003A )
call RemoveLocation(udg_Zpoint[93])
set udg_Zpoint[93] = null
endfunction
//===========================================================================
function InitTrig_SUSANNO2_move takes nothing returns nothing
set gg_trg_SUSANNO2_move = CreateTrigger( )
call DisableTrigger( gg_trg_SUSANNO2_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_SUSANNO2_move, 0.01 )
call TriggerAddAction( gg_trg_SUSANNO2_move, function Trig_SUSANNO2_move_Actions )
endfunction
function Trig_SUSANNO_CLONE_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H00T' ) ) then
return false
endif
return true
endfunction
function Trig_SUSANNO_CLONE_Func001C takes nothing returns boolean
if ( not ( IsUnitIllusionBJ(GetTriggerUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_SUSANNO_CLONE_Actions takes nothing returns nothing
if ( Trig_SUSANNO_CLONE_Func001C() ) then
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
else
endif
endfunction
//===========================================================================
function InitTrig_SUSANNO_CLONE takes nothing returns nothing
set gg_trg_SUSANNO_CLONE = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_SUSANNO_CLONE, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_SUSANNO_CLONE, Condition( function Trig_SUSANNO_CLONE_Conditions ) )
call TriggerAddAction( gg_trg_SUSANNO_CLONE, function Trig_SUSANNO_CLONE_Actions )
endfunction
function Trig_SUSANNO_CLONE_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'H00T' ) ) then
return false
endif
return true
endfunction
function Trig_SUSANNO_CLONE_2_Func001C takes nothing returns boolean
if ( not ( IsUnitIllusionBJ(GetSummonedUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_SUSANNO_CLONE_2_Actions takes nothing returns nothing
if ( Trig_SUSANNO_CLONE_2_Func001C() ) then
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetSummonedUnit()), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.50, 'BTLF', GetLastCreatedUnit() )
call SetUnitVertexColorBJ( GetSummonedUnit(), 100, 100, 100, 27.00 )
else
endif
endfunction
//===========================================================================
function InitTrig_SUSANNO_CLONE_2 takes nothing returns nothing
set gg_trg_SUSANNO_CLONE_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_SUSANNO_CLONE_2, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_SUSANNO_CLONE_2, Condition( function Trig_SUSANNO_CLONE_2_Conditions ) )
call TriggerAddAction( gg_trg_SUSANNO_CLONE_2, function Trig_SUSANNO_CLONE_2_Actions )
endfunction
function Trig_Water_waves_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08V' ) ) then
return false
endif
return true
endfunction
function Trig_Water_waves_Func010Func003C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Water_waves_Func010C takes nothing returns boolean
if ( not ( GetRandomInt(1, 2) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Water_waves_Actions takes nothing returns nothing
set udg_Zpoint[13] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[13], GetUnitFacing(GetTriggerUnit()) )
set udg_mei[0] = GetLastCreatedUnit()
set udg_Number[0] = GetUnitFacing(udg_mei[0])
call UnitAddAbilityBJ( 'A08T', udg_mei[0] )
call SetUnitAbilityLevelSwapped( 'A08T', udg_mei[0], GetUnitAbilityLevelSwapped('A08V', GetTriggerUnit()) )
call SetUnitScalePercent( udg_mei[0], 200.00, 200.00, 200.00 )
call IssuePointOrderLocBJ( udg_mei[0], "carrionswarm", PolarProjectionBJ(udg_Zpoint[13], 100.00, udg_Number[0]) )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
if ( Trig_Water_waves_Func010C() ) then
call TriggerSleepAction( 0.23 )
call IssuePointOrderLocBJ( udg_mei[0], "carrionswarm", PolarProjectionBJ(udg_Zpoint[13], 256, udg_Number[0]) )
if ( Trig_Water_waves_Func010Func003C() ) then
call TriggerSleepAction( 0.23 )
call IssuePointOrderLocBJ( udg_mei[0], "carrionswarm", PolarProjectionBJ(udg_Zpoint[13], 256, udg_Number[0]) )
else
endif
else
endif
set udg_mei[0] = null
set udg_Number[0] = 0.00
call RemoveLocation(udg_Zpoint[13])
set udg_Zpoint[13] = null
endfunction
//===========================================================================
function InitTrig_Water_waves takes nothing returns nothing
set gg_trg_Water_waves = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Water_waves, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Water_waves, Condition( function Trig_Water_waves_Conditions ) )
call TriggerAddAction( gg_trg_Water_waves, function Trig_Water_waves_Actions )
endfunction
function Trig_Water_bombs_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A091' ) ) then
return false
endif
return true
endfunction
function Trig_Water_bombs_Func010002003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_mei[1])) == true )
endfunction
function Trig_Water_bombs_Func011Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A091', udg_mei[1]) == 1 )
endfunction
function Trig_Water_bombs_Func011Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A091', udg_mei[1]) == 2 )
endfunction
function Trig_Water_bombs_Func011Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A091', udg_mei[1]) == 3 )
endfunction
function Trig_Water_bombs_Func011Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A091', udg_mei[1]) == 4 )
endfunction
function Trig_Water_bombs_Func011A takes nothing returns nothing
if ( Trig_Water_bombs_Func011Func001001() ) then
call UnitDamageTargetBJ( udg_mei[1], GetEnumUnit(), 70.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Water_bombs_Func011Func002001() ) then
call UnitDamageTargetBJ( udg_mei[1], GetEnumUnit(), 100.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Water_bombs_Func011Func003001() ) then
call UnitDamageTargetBJ( udg_mei[1], GetEnumUnit(), 130.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Water_bombs_Func011Func004001() ) then
call UnitDamageTargetBJ( udg_mei[1], GetEnumUnit(), 160.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
endfunction
function Trig_Water_bombs_Func016Func009002003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_mei[1])) == true )
endfunction
function Trig_Water_bombs_Func016Func010Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A091', udg_mei[1]) == 1 )
endfunction
function Trig_Water_bombs_Func016Func010Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A091', udg_mei[1]) == 2 )
endfunction
function Trig_Water_bombs_Func016Func010Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A091', udg_mei[1]) == 3 )
endfunction
function Trig_Water_bombs_Func016Func010Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A091', udg_mei[1]) == 4 )
endfunction
function Trig_Water_bombs_Func016Func010A takes nothing returns nothing
if ( Trig_Water_bombs_Func016Func010Func001001() ) then
call UnitDamageTargetBJ( udg_mei[1], GetEnumUnit(), 70.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Water_bombs_Func016Func010Func002001() ) then
call UnitDamageTargetBJ( udg_mei[1], GetEnumUnit(), 100.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Water_bombs_Func016Func010Func003001() ) then
call UnitDamageTargetBJ( udg_mei[1], GetEnumUnit(), 130.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Water_bombs_Func016Func010Func004001() ) then
call UnitDamageTargetBJ( udg_mei[1], GetEnumUnit(), 160.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
endfunction
function Trig_Water_bombs_Actions takes nothing returns nothing
set udg_mei[1] = GetTriggerUnit()
set udg_mei[2] = GetSpellTargetUnit()
set udg_Zpoint[14] = GetUnitLoc(udg_mei[2])
call AddSpecialEffectLocBJ( udg_Zpoint[14], "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[14], "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[14], "war3mapImported\\WaterGeyser.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_zGroups[0] = GetUnitsInRangeOfLocMatching(350.00, udg_Zpoint[14], Condition(function Trig_Water_bombs_Func010002003))
call ForGroupBJ( udg_zGroups[0], function Trig_Water_bombs_Func011A )
call DestroyGroup (udg_zGroups[0])
set udg_zGroups[0] = null
call RemoveLocation(udg_Zpoint[14])
set udg_Zpoint[14] = null
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
set udg_Zpoint[14] = GetUnitLoc(udg_mei[2])
call AddSpecialEffectLocBJ( udg_Zpoint[14], "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[14], "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[14], "war3mapImported\\WaterGeyser.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_zGroups[0] = GetUnitsInRangeOfLocMatching(350.00, udg_Zpoint[14], Condition(function Trig_Water_bombs_Func016Func009002003))
call ForGroupBJ( udg_zGroups[0], function Trig_Water_bombs_Func016Func010A )
call DestroyGroup (udg_zGroups[0])
set udg_zGroups[0] = null
call RemoveLocation(udg_Zpoint[14])
set udg_Zpoint[14] = null
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_mei[1] = null
set udg_mei[2] = null
endfunction
//===========================================================================
function InitTrig_Water_bombs takes nothing returns nothing
set gg_trg_Water_bombs = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Water_bombs, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Water_bombs, Condition( function Trig_Water_bombs_Conditions ) )
call TriggerAddAction( gg_trg_Water_bombs, function Trig_Water_bombs_Actions )
endfunction
function Trig_Mist_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A092' ) ) then
return false
endif
return true
endfunction
function Trig_Mist_Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 1 )
endfunction
function Trig_Mist_Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 2 )
endfunction
function Trig_Mist_Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 3 )
endfunction
function Trig_Mist_Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 4 )
endfunction
function Trig_Mist_Func009001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 1 )
endfunction
function Trig_Mist_Func010001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 2 )
endfunction
function Trig_Mist_Func011001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 3 )
endfunction
function Trig_Mist_Func012001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 4 )
endfunction
function Trig_Mist_Func014001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 1 )
endfunction
function Trig_Mist_Func015001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 2 )
endfunction
function Trig_Mist_Func016001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 3 )
endfunction
function Trig_Mist_Func017001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 4 )
endfunction
function Trig_Mist_Func019001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 1 )
endfunction
function Trig_Mist_Func020001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 2 )
endfunction
function Trig_Mist_Func021001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 3 )
endfunction
function Trig_Mist_Func022001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 4 )
endfunction
function Trig_Mist_Func024001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 1 )
endfunction
function Trig_Mist_Func025001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 2 )
endfunction
function Trig_Mist_Func026001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 3 )
endfunction
function Trig_Mist_Func027001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 4 )
endfunction
function Trig_Mist_Func029001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 1 )
endfunction
function Trig_Mist_Func030001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 2 )
endfunction
function Trig_Mist_Func031001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 3 )
endfunction
function Trig_Mist_Func032001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 4 )
endfunction
function Trig_Mist_Func034001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 1 )
endfunction
function Trig_Mist_Func035001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 2 )
endfunction
function Trig_Mist_Func036001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 3 )
endfunction
function Trig_Mist_Func037001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 4 )
endfunction
function Trig_Mist_Func039001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 1 )
endfunction
function Trig_Mist_Func040001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 2 )
endfunction
function Trig_Mist_Func041001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 3 )
endfunction
function Trig_Mist_Func042001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A092', udg_mei[3]) == 4 )
endfunction
function Trig_Mist_Actions takes nothing returns nothing
set udg_mei[3] = GetTriggerUnit()
set udg_Zpoint[15] = GetUnitLoc(udg_mei[3])
call CreateNUnitsAtLoc( 1, 'h016', GetOwningPlayer(udg_mei[3]), PolarProjectionBJ(udg_Zpoint[15], 300.00, 270.00), bj_UNIT_FACING )
if ( Trig_Mist_Func004001() ) then
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func005001() ) then
call UnitApplyTimedLifeBJ( 10.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func006001() ) then
call UnitApplyTimedLifeBJ( 15.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func007001() ) then
call UnitApplyTimedLifeBJ( 20.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'h016', GetOwningPlayer(udg_mei[3]), PolarProjectionBJ(udg_Zpoint[15], 600.00, 315.00), bj_UNIT_FACING )
if ( Trig_Mist_Func009001() ) then
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func010001() ) then
call UnitApplyTimedLifeBJ( 10.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func011001() ) then
call UnitApplyTimedLifeBJ( 15.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func012001() ) then
call UnitApplyTimedLifeBJ( 20.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'h016', GetOwningPlayer(udg_mei[3]), PolarProjectionBJ(udg_Zpoint[15], 300.00, 360.00), bj_UNIT_FACING )
if ( Trig_Mist_Func014001() ) then
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func015001() ) then
call UnitApplyTimedLifeBJ( 10.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func016001() ) then
call UnitApplyTimedLifeBJ( 15.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func017001() ) then
call UnitApplyTimedLifeBJ( 20.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'h016', GetOwningPlayer(udg_mei[3]), PolarProjectionBJ(udg_Zpoint[15], 600.00, 45.00), bj_UNIT_FACING )
if ( Trig_Mist_Func019001() ) then
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func020001() ) then
call UnitApplyTimedLifeBJ( 10.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func021001() ) then
call UnitApplyTimedLifeBJ( 15.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func022001() ) then
call UnitApplyTimedLifeBJ( 20.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'h016', GetOwningPlayer(udg_mei[3]), PolarProjectionBJ(udg_Zpoint[15], 300.00, 90.00), bj_UNIT_FACING )
if ( Trig_Mist_Func024001() ) then
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func025001() ) then
call UnitApplyTimedLifeBJ( 10.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func026001() ) then
call UnitApplyTimedLifeBJ( 15.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func027001() ) then
call UnitApplyTimedLifeBJ( 20.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'h016', GetOwningPlayer(udg_mei[3]), PolarProjectionBJ(udg_Zpoint[15], 600.00, 135.00), bj_UNIT_FACING )
if ( Trig_Mist_Func029001() ) then
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func030001() ) then
call UnitApplyTimedLifeBJ( 10.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func031001() ) then
call UnitApplyTimedLifeBJ( 15.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func032001() ) then
call UnitApplyTimedLifeBJ( 20.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'h016', GetOwningPlayer(udg_mei[3]), PolarProjectionBJ(udg_Zpoint[15], 300.00, 180.00), bj_UNIT_FACING )
if ( Trig_Mist_Func034001() ) then
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func035001() ) then
call UnitApplyTimedLifeBJ( 10.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func036001() ) then
call UnitApplyTimedLifeBJ( 15.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func037001() ) then
call UnitApplyTimedLifeBJ( 20.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
call CreateNUnitsAtLoc( 1, 'h016', GetOwningPlayer(udg_mei[3]), PolarProjectionBJ(udg_Zpoint[15], 600.00, 225.00), bj_UNIT_FACING )
if ( Trig_Mist_Func039001() ) then
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func040001() ) then
call UnitApplyTimedLifeBJ( 10.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func041001() ) then
call UnitApplyTimedLifeBJ( 15.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
if ( Trig_Mist_Func042001() ) then
call UnitApplyTimedLifeBJ( 20.00, 'Bapl', GetLastCreatedUnit() )
else
call DoNothing( )
endif
call RemoveLocation(udg_Zpoint[15])
set udg_Zpoint[15] = null
endfunction
//===========================================================================
function InitTrig_Mist takes nothing returns nothing
set gg_trg_Mist = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mist, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Mist, Condition( function Trig_Mist_Conditions ) )
call TriggerAddAction( gg_trg_Mist, function Trig_Mist_Actions )
endfunction
function Trig_Lava_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A094' ) ) then
return false
endif
return true
endfunction
function Trig_Lava_Actions takes nothing returns nothing
set udg_mei[4] = GetTriggerUnit()
set udg_Zpoint[16] = GetUnitLoc(udg_mei[4])
set udg_Zpoint[17] = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[16], GetUnitFacing(GetTriggerUnit()) )
set udg_mei[5] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[16], GetUnitFacing(GetTriggerUnit()) )
set udg_mei[6] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[16], GetUnitFacing(GetTriggerUnit()) )
set udg_mei[7] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[16], GetUnitFacing(GetTriggerUnit()) )
set udg_mei[8] = GetLastCreatedUnit()
call UnitAddAbilityBJ( 'A097', udg_mei[5] )
call SetUnitScalePercent( udg_mei[5], 400.00, 400.00, 400.00 )
call UnitAddAbilityBJ( 'A098', udg_mei[6] )
call SetUnitScalePercent( udg_mei[6], 400.00, 400.00, 400.00 )
call UnitAddAbilityBJ( 'A097', udg_mei[7] )
call SetUnitScalePercent( udg_mei[7], 400.00, 400.00, 400.00 )
call UnitAddAbilityBJ( 'A099', udg_mei[8] )
call SetUnitScalePercent( udg_mei[8], 300.00, 300.00, 300.00 )
call IssuePointOrderLocBJ( udg_mei[5], "clusterrockets", udg_Zpoint[17] )
call IssuePointOrderLocBJ( udg_mei[6], "clusterrockets", udg_Zpoint[17] )
call IssuePointOrderLocBJ( udg_mei[7], "clusterrockets", udg_Zpoint[17] )
call IssuePointOrderLocBJ( udg_mei[8], "clusterrockets", udg_Zpoint[17] )
call RemoveLocation(udg_Zpoint[16])
set udg_Zpoint[16] = null
call EnableTrigger( gg_trg_Lava_2 )
endfunction
//===========================================================================
function InitTrig_Lava takes nothing returns nothing
set gg_trg_Lava = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lava, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Lava, Condition( function Trig_Lava_Conditions ) )
call TriggerAddAction( gg_trg_Lava, function Trig_Lava_Actions )
endfunction
function Trig_Lava_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h01D', GetOwningPlayer(udg_mei[4]), PolarProjectionBJ(udg_Zpoint[17], GetRandomReal(0, 400.00), GetRandomDirectionDeg()), GetRandomDirectionDeg() )
call UnitApplyTimedLifeBJ( 6.00, 'Bapl', GetLastCreatedUnit() )
endfunction
//===========================================================================
function InitTrig_Lava_2 takes nothing returns nothing
set gg_trg_Lava_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Lava_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Lava_2, 0.17 )
call TriggerAddAction( gg_trg_Lava_2, function Trig_Lava_2_Actions )
endfunction
function Trig_Lava_end_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A094' ) ) then
return false
endif
return true
endfunction
function Trig_Lava_end_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Lava_2 )
set udg_mei[4] = null
call RemoveUnit( udg_mei[5] )
call RemoveUnit( udg_mei[6] )
call RemoveUnit( udg_mei[7] )
call RemoveUnit( udg_mei[8] )
set udg_mei[5] = null
set udg_mei[6] = null
set udg_mei[7] = null
set udg_mei[8] = null
call RemoveLocation(udg_Zpoint[17])
set udg_Zpoint[17] = null
endfunction
//===========================================================================
function InitTrig_Lava_end takes nothing returns nothing
set gg_trg_Lava_end = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lava_end, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerAddCondition( gg_trg_Lava_end, Condition( function Trig_Lava_end_Conditions ) )
call TriggerAddAction( gg_trg_Lava_end, function Trig_Lava_end_Actions )
endfunction
function Trig_Kiss_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A095' ) ) then
return false
endif
return true
endfunction
function Trig_Kiss_Actions takes nothing returns nothing
set udg_mei[9] = GetSpellAbilityUnit()
call EnableTrigger( gg_trg_Kiss2 )
endfunction
//===========================================================================
function InitTrig_Kiss takes nothing returns nothing
set gg_trg_Kiss = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kiss, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Kiss, Condition( function Trig_Kiss_Conditions ) )
call TriggerAddAction( gg_trg_Kiss, function Trig_Kiss_Actions )
endfunction
function Trig_Kiss2_Func001Func005C takes nothing returns boolean
if ( ( GetOwningPlayer(GetAttackedUnitBJ()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetAttackedUnitBJ()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'Hapm' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'Hkal' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'Hvwd' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'Emoo' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'u00Q' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'u00R' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'u00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'u00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'u00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'u00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'u00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'u00U' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'u017' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'u01A' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'Nplh' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'Nbrn' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'Ewar' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetAttackedUnitBJ()) != 'Ewrd' ) ) then
return true
endif
return false
endfunction
function Trig_Kiss2_Func001C takes nothing returns boolean
if ( not ( GetAttacker() == udg_mei[9] ) ) then
return false
endif
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(udg_mei[9], 'B01O') == true ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B00N') == false ) ) then
return false
endif
if ( not Trig_Kiss2_Func001Func005C() ) then
return false
endif
return true
endfunction
function Trig_Kiss2_Conditions takes nothing returns boolean
if ( not Trig_Kiss2_Func001C() ) then
return false
endif
return true
endfunction
function Trig_Kiss2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( GetAttacker(), GetAttackedUnitBJ(), 1000000000.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
call UnitRemoveBuffBJ( 'B01O', GetAttacker() )
endfunction
//===========================================================================
function InitTrig_Kiss2 takes nothing returns nothing
set gg_trg_Kiss2 = CreateTrigger( )
call DisableTrigger( gg_trg_Kiss2 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Kiss2, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Kiss2, Condition( function Trig_Kiss2_Conditions ) )
call TriggerAddAction( gg_trg_Kiss2, function Trig_Kiss2_Actions )
endfunction
function Trig_Sabakyuu_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03I' ) ) then
return false
endif
return true
endfunction
function Trig_Sabakyuu_Func001Func005C takes nothing returns boolean
if ( ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00N') == false ) ) then
return true
endif
if ( ( GetUnitTypeId(GetSpellTargetUnit()) != 'H00T' ) ) then
return true
endif
return false
endfunction
function Trig_Sabakyuu_Func001Func023002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Sabakyuu_Func001Func023002003002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Sabakyuu_Func001Func023002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Sabakyuu_Func001Func023002003001(), Trig_Sabakyuu_Func001Func023002003002() )
endfunction
function Trig_Sabakyuu_Func001Func024Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A03I', GetTriggerUnit()) == 1 )
endfunction
function Trig_Sabakyuu_Func001Func024Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A03I', GetTriggerUnit()) == 2 )
endfunction
function Trig_Sabakyuu_Func001Func024Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A03I', GetTriggerUnit()) == 3 )
endfunction
function Trig_Sabakyuu_Func001Func024Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A03I', GetTriggerUnit()) == 4 )
endfunction
function Trig_Sabakyuu_Func001Func024A takes nothing returns nothing
if ( Trig_Sabakyuu_Func001Func024Func001001() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 140.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Sabakyuu_Func001Func024Func002001() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 220.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Sabakyuu_Func001Func024Func003001() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 340.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Sabakyuu_Func001Func024Func004001() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 410.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
endfunction
function Trig_Sabakyuu_Func001Func030C takes nothing returns boolean
if ( not ( GetPlayerController(GetOwningPlayer(udg_Hero2[21])) == MAP_CONTROL_USER ) ) then
return false
endif
return true
endfunction
function Trig_Sabakyuu_Func001C takes nothing returns boolean
if ( not Trig_Sabakyuu_Func001Func005C() ) then
return false
endif
return true
endfunction
function Trig_Sabakyuu_Actions takes nothing returns nothing
if ( Trig_Sabakyuu_Func001C() ) then
set udg_Hero2[21] = GetSpellTargetUnit()
set udg_Zpoint[18] = GetUnitLoc(udg_Hero2[21])
if ( Trig_Sabakyuu_Func001Func030C() ) then
call CreateFogModifierRadiusLocBJ( true, GetOwningPlayer(udg_Hero2[21]), FOG_OF_WAR_VISIBLE, GetUnitLoc(udg_Hero2[21]), 400.00 )
set udg_Visible[12] = GetLastCreatedFogModifier()
else
endif
call ShowUnitHide( udg_Hero2[21] )
call PauseUnitBJ( true, udg_Hero2[21] )
call CreateNUnitsAtLoc( 1, 'h01B', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[18], GetRandomDirectionDeg() )
set udg_Hero2[22] = GetLastCreatedUnit()
call SetUnitFlyHeightBJ( udg_Hero2[22], 600.00, 800.00 )
call TriggerSleepAction( 0.40 )
call SetUnitFlyHeightBJ( udg_Hero2[22], 0.00, 1400.00 )
call AddSpecialEffectLocBJ( udg_Zpoint[18], "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call TriggerSleepAction( 0.19 )
call AddSpecialEffectLocBJ( udg_Zpoint[18], "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[18], "war3mapImported\\SandExplosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 4
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[18], 80.00, ( I2R(GetForLoopIndexA()) * 85.00 )), "Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[18], 160.00, ( I2R(GetForLoopIndexA()) * 85.00 )), "Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call ShowUnitShow( udg_Hero2[21] )
call PauseUnitBJ( false, udg_Hero2[21] )
set udg_zGroups[1] = GetUnitsInRangeOfLocMatching(350.00, udg_Zpoint[18], Condition(function Trig_Sabakyuu_Func001Func023002003))
call ForGroupBJ( udg_zGroups[1], function Trig_Sabakyuu_Func001Func024A )
call DestroyGroup (udg_zGroups[1])
set udg_zGroups[1] = null
call RemoveUnit( udg_Hero2[22] )
set udg_Hero2[21] = null
set udg_Hero2[22] = null
call DestroyFogModifier( udg_Visible[12] )
call RemoveLocation(udg_Zpoint[18])
set udg_Zpoint[18] = null
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Sabakyuu takes nothing returns nothing
set gg_trg_Sabakyuu = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sabakyuu, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Sabakyuu, Condition( function Trig_Sabakyuu_Conditions ) )
call TriggerAddAction( gg_trg_Sabakyuu, function Trig_Sabakyuu_Actions )
endfunction
function Trig_Sandjail_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09E' ) ) then
return false
endif
return true
endfunction
function Trig_Sandjail_Func002002003 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Sandjail_Func003A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "origin", GetEnumUnit(), "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "origin", GetEnumUnit(), "Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
function Trig_Sandjail_Actions takes nothing returns nothing
set udg_Zpoint[19] = GetUnitLoc(GetTriggerUnit())
set udg_zGroups[902] = GetUnitsInRangeOfLocMatching(400.00, udg_Zpoint[19], Condition(function Trig_Sandjail_Func002002003))
call ForGroupBJ( udg_zGroups[902], function Trig_Sandjail_Func003A )
call DestroyGroup (udg_zGroups[902])
set udg_zGroups[902] = null
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[19], 100.00, ( I2R(GetForLoopIndexA()) * 32.00 )), "Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[19], 200.00, ( I2R(GetForLoopIndexA()) * 32.00 )), "Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[19], 300.00, ( I2R(GetForLoopIndexA()) * 32.00 )), "Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[19], 400.00, ( I2R(GetForLoopIndexA()) * 32.00 )), "Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveLocation(udg_Zpoint[19])
set udg_Zpoint[19] = null
endfunction
//===========================================================================
function InitTrig_Sandjail takes nothing returns nothing
set gg_trg_Sandjail = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sandjail, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Sandjail, Condition( function Trig_Sandjail_Conditions ) )
call TriggerAddAction( gg_trg_Sandjail, function Trig_Sandjail_Actions )
endfunction
function Trig_SandStart_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09G' ) ) then
return false
endif
return true
endfunction
function Trig_SandStart_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_Gaara = GetSpellAbilityUnit()
set udg_Zpoint[63] = GetUnitLoc(udg_Gaara)
call UnitRemoveBuffsBJ( bj_REMOVEBUFFS_ALL, udg_Gaara )
call CreateNUnitsAtLoc( 1, 'h01G', GetOwningPlayer(udg_Gaara), udg_Zpoint[63], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call TriggerSleepAction( 0.50 )
call CreateNUnitsAtLoc( 1, 'hkni', GetOwningPlayer(udg_Gaara), udg_Zpoint[63], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 60.00, 'Brai', GetLastCreatedUnit() )
call PauseUnitBJ( true, udg_Gaara )
call SetUnitInvulnerable( udg_Gaara, true )
call SetUnitVertexColorBJ( udg_Gaara, 100, 100, 100, 0.00 )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01E', GetOwningPlayer(udg_Gaara), GetUnitLoc(udg_Gaara), GetUnitLoc(udg_Gaara) )
set udg_CrushingSand = GetLastCreatedUnit()
call SetUnitInvulnerable( udg_CrushingSand, true )
call SelectUnitAddForPlayer( udg_CrushingSand, GetOwningPlayer(udg_Gaara) )
call RemoveLocation(udg_Zpoint[63])
set udg_Zpoint[63] = null
call TriggerSleepAction( 60.00 )
call PauseUnitBJ( false, udg_Gaara )
call SetUnitInvulnerable( udg_Gaara, false )
call RemoveUnit( udg_CrushingSand )
call SetUnitVertexColorBJ( udg_Gaara, 100, 100, 100, 0.00 )
call EnableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_SandStart takes nothing returns nothing
set gg_trg_SandStart = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_SandStart, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_SandStart, Condition( function Trig_SandStart_Conditions ) )
call TriggerAddAction( gg_trg_SandStart, function Trig_SandStart_Actions )
endfunction
function Trig_CrushingSandAttack_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_CrushingSand ) ) then
return false
endif
return true
endfunction
function Trig_CrushingSandAttack_Func006002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false )
endfunction
function Trig_CrushingSandAttack_Func006002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Gaara)) == true )
endfunction
function Trig_CrushingSandAttack_Func006002003002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_CrushingSandAttack_Func006002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_CrushingSandAttack_Func006002003002001(), Trig_CrushingSandAttack_Func006002003002002() )
endfunction
function Trig_CrushingSandAttack_Func006002003 takes nothing returns boolean
return GetBooleanAnd( Trig_CrushingSandAttack_Func006002003001(), Trig_CrushingSandAttack_Func006002003002() )
endfunction
function Trig_CrushingSandAttack_Func007A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Sand, GetEnumUnit(), I2R(( GetHeroStatBJ(bj_HEROSTAT_INT, udg_Gaara, false) / 3 )), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
function Trig_CrushingSandAttack_Actions takes nothing returns nothing
set udg_Sand = GetAttacker()
call AddSpecialEffectLocBJ( GetUnitLoc(GetAttackedUnitBJ()), "war3mapImported\\SandExplosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_GaaraUnitGroup[3] = GetUnitsInRangeOfLocMatching(250.00, GetUnitLoc(GetAttackedUnitBJ()), Condition(function Trig_CrushingSandAttack_Func006002003))
call ForGroupBJ( udg_GaaraUnitGroup[3], function Trig_CrushingSandAttack_Func007A )
call DestroyGroup (udg_GaaraUnitGroup[3])
set udg_GaaraUnitGroup[3] = null
endfunction
//===========================================================================
function InitTrig_CrushingSandAttack takes nothing returns nothing
set gg_trg_CrushingSandAttack = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_CrushingSandAttack, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_CrushingSandAttack, Condition( function Trig_CrushingSandAttack_Conditions ) )
call TriggerAddAction( gg_trg_CrushingSandAttack, function Trig_CrushingSandAttack_Actions )
endfunction
function Trig_Gaara_Shield_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09H' ) ) then
return false
endif
return true
endfunction
function Trig_Gaara_Shield_Func006Func002C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Hero2[106]) == true ) ) then
return false
endif
if ( not ( DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()), GetUnitLoc(udg_Grimmjow[66])) <= 180.00 ) ) then
return false
endif
return true
endfunction
function Trig_Gaara_Shield_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A01C', GetTriggerUnit() )
call CreateNUnitsAtLoc( 1, 'hsor', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
set udg_Grimmjow[66] = GetLastCreatedUnit()
call SetUnitMoveSpeed( GetTriggerUnit(), 0.00 )
call IssueTargetOrderBJ( gg_unit_u004_0538, "ensnare", udg_Hero2[106] )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 30
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerSleepAction( 1.00 )
if ( Trig_Gaara_Shield_Func006Func002C() ) then
else
call RemoveUnit( udg_Grimmjow[66] )
call UnitRemoveAbilityBJ( 'A01C', GetTriggerUnit() )
call SetUnitMoveSpeed( GetTriggerUnit(), GetUnitDefaultMoveSpeed(GetTriggerUnit()) )
call UnitRemoveBuffBJ( 'B01T', udg_Hero2[106] )
call UnitRemoveBuffBJ( 'B01S', udg_Hero2[106] )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call RemoveUnit( udg_Grimmjow[66] )
call UnitRemoveAbilityBJ( 'A01C', GetTriggerUnit() )
call SetUnitMoveSpeed( GetTriggerUnit(), GetUnitDefaultMoveSpeed(GetTriggerUnit()) )
call UnitRemoveBuffBJ( 'B01T', udg_Hero2[106] )
call UnitRemoveBuffBJ( 'B01S', udg_Hero2[106] )
endfunction
//===========================================================================
function InitTrig_Gaara_Shield takes nothing returns nothing
set gg_trg_Gaara_Shield = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Gaara_Shield, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Gaara_Shield, Condition( function Trig_Gaara_Shield_Conditions ) )
call TriggerAddAction( gg_trg_Gaara_Shield, function Trig_Gaara_Shield_Actions )
endfunction
function Trig_burrow_Conditions takes nothing returns boolean
if ( not ( GetIssuedOrderIdBJ() == String2OrderIdBJ("burrow") ) ) then
return false
endif
return true
endfunction
function Trig_burrow_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( GetTriggerUnit(), 58.00, 58.00, 58.00, 0 )
endfunction
//===========================================================================
function InitTrig_burrow takes nothing returns nothing
set gg_trg_burrow = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_burrow, EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddCondition( gg_trg_burrow, Condition( function Trig_burrow_Conditions ) )
call TriggerAddAction( gg_trg_burrow, function Trig_burrow_Actions )
endfunction
function Trig_unburrow_Conditions takes nothing returns boolean
if ( not ( GetIssuedOrderIdBJ() == String2OrderIdBJ("unburrow") ) ) then
return false
endif
return true
endfunction
function Trig_unburrow_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitVertexColorBJ( GetTriggerUnit(), 58.00, 58.00, 58.00, 0 )
endfunction
//===========================================================================
function InitTrig_unburrow takes nothing returns nothing
set gg_trg_unburrow = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_unburrow, EVENT_PLAYER_UNIT_ISSUED_ORDER )
call TriggerAddCondition( gg_trg_unburrow, Condition( function Trig_unburrow_Conditions ) )
call TriggerAddAction( gg_trg_unburrow, function Trig_unburrow_Actions )
endfunction
function Trig_Teleport_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09K' ) ) then
return false
endif
return true
endfunction
function Trig_Teleport_Actions takes nothing returns nothing
set udg_Zpoint[75] = GetSpellTargetLoc()
set udg_Zpoint[76] = GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ( udg_Zpoint[76], "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetTriggerUnit()), udg_Zpoint[76], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.10, 'Brai', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A01X', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "thunderclap" )
call AddLightningLoc( "CLPB", udg_Zpoint[76], udg_Zpoint[75] )
call RemoveLocation( udg_Zpoint[75] )
set udg_Zpoint[75] = null
call RemoveLocation( udg_Zpoint[76] )
set udg_Zpoint[76] = null
call TriggerSleepAction( 0.07 )
call DestroyLightningBJ( GetLastCreatedLightningBJ() )
endfunction
//===========================================================================
function InitTrig_Teleport takes nothing returns nothing
set gg_trg_Teleport = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Teleport, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Teleport, Condition( function Trig_Teleport_Conditions ) )
call TriggerAddAction( gg_trg_Teleport, function Trig_Teleport_Actions )
endfunction
function Trig_Thunder_stomb_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09L' ) ) then
return false
endif
return true
endfunction
function Trig_Thunder_stomb_Func001Func032002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Thunder_stomb_Func001Func032002003002 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Raikage[0])) == true )
endfunction
function Trig_Thunder_stomb_Func001Func032002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Thunder_stomb_Func001Func032002003001(), Trig_Thunder_stomb_Func001Func032002003002() )
endfunction
function Trig_Thunder_stomb_Func001Func033Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09L', udg_Raikage[0]) == 1 )
endfunction
function Trig_Thunder_stomb_Func001Func033Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09L', udg_Raikage[0]) == 2 )
endfunction
function Trig_Thunder_stomb_Func001Func033Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09L', udg_Raikage[0]) == 3 )
endfunction
function Trig_Thunder_stomb_Func001Func033Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09L', udg_Raikage[0]) == 4 )
endfunction
function Trig_Thunder_stomb_Func001Func033A takes nothing returns nothing
if ( Trig_Thunder_stomb_Func001Func033Func001001() ) then
call UnitDamageTargetBJ( udg_Raikage[0], GetEnumUnit(), 260.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Thunder_stomb_Func001Func033Func002001() ) then
call UnitDamageTargetBJ( udg_Raikage[0], GetEnumUnit(), 320.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Thunder_stomb_Func001Func033Func003001() ) then
call UnitDamageTargetBJ( udg_Raikage[0], GetEnumUnit(), 390.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Thunder_stomb_Func001Func033Func004001() ) then
call UnitDamageTargetBJ( udg_Raikage[0], GetEnumUnit(), 495.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
endfunction
function Trig_Thunder_stomb_Func001Func075002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Thunder_stomb_Func001Func075002003002 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Raikage[0])) == true )
endfunction
function Trig_Thunder_stomb_Func001Func075002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Thunder_stomb_Func001Func075002003001(), Trig_Thunder_stomb_Func001Func075002003002() )
endfunction
function Trig_Thunder_stomb_Func001Func076Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09L', udg_Raikage[0]) == 1 )
endfunction
function Trig_Thunder_stomb_Func001Func076Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09L', udg_Raikage[0]) == 2 )
endfunction
function Trig_Thunder_stomb_Func001Func076Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09L', udg_Raikage[0]) == 3 )
endfunction
function Trig_Thunder_stomb_Func001Func076Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09L', udg_Raikage[0]) == 4 )
endfunction
function Trig_Thunder_stomb_Func001Func076A takes nothing returns nothing
if ( Trig_Thunder_stomb_Func001Func076Func001001() ) then
call UnitDamageTargetBJ( udg_Raikage[0], GetEnumUnit(), 180.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Thunder_stomb_Func001Func076Func002001() ) then
call UnitDamageTargetBJ( udg_Raikage[0], GetEnumUnit(), 260.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Thunder_stomb_Func001Func076Func003001() ) then
call UnitDamageTargetBJ( udg_Raikage[0], GetEnumUnit(), 340.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Thunder_stomb_Func001Func076Func004001() ) then
call UnitDamageTargetBJ( udg_Raikage[0], GetEnumUnit(), 390.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
endfunction
function Trig_Thunder_stomb_Func001C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetTriggerUnit(), 'B01R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Thunder_stomb_Actions takes nothing returns nothing
if ( Trig_Thunder_stomb_Func001C() ) then
set udg_Raikage[0] = GetSpellAbilityUnit()
call SetUnitInvulnerable( udg_Raikage[0], true )
set udg_Zpoint[66] = GetUnitLoc(GetTriggerUnit())
set udg_Zpoint[65] = GetSpellTargetLoc()
call TriggerSleepAction( 0.03 )
call PauseUnitBJ( true, udg_Raikage[0] )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Raikage[0]), udg_Zpoint[66], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.10, 'Brai', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A01X', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A09M', GetLastCreatedUnit() )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "fingerofdeath", udg_Raikage[0] )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "thunderclap" )
call AddSpecialEffectLocBJ( udg_Zpoint[66], "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[66], "Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitPositionLoc( udg_Raikage[0], udg_Zpoint[65] )
call UnitAddAbilityBJ( 'Amrf', udg_Raikage[0] )
call SetUnitFlyHeightBJ( GetTriggerUnit(), 400.00, 0.00 )
call SetUnitAnimation( udg_Raikage[0], "spell two" )
call RemoveLocation( udg_Zpoint[66] )
set udg_Zpoint[66] = null
call RemoveLocation( udg_Zpoint[65] )
set udg_Zpoint[65] = null
call TriggerSleepAction( 0.05 )
call SetUnitFlyHeightBJ( GetTriggerUnit(), 0.00, 7000.00 )
call TriggerSleepAction( 0.05 )
call UnitRemoveAbilityBJ( 'Amrf', udg_Raikage[0] )
call ResetUnitAnimation( udg_Raikage[0] )
set udg_Zpoint[65] = GetUnitLoc(udg_Raikage[0])
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[65], 150.00, ( I2R(GetForLoopIndexA()) * 60.00 )), "war3mapImported\\EarthSmash.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[65], 150.00, ( I2R(GetForLoopIndexA()) * 60.00 )), "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[65], 150.00, ( I2R(GetForLoopIndexA()) * 60.00 )), "Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[65], 250.00, ( I2R(GetForLoopIndexA()) * 60.00 )), "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_aGroups[22] = GetUnitsInRangeOfLocMatching(450.00, udg_Zpoint[65], Condition(function Trig_Thunder_stomb_Func001Func032002003))
call ForGroupBJ( udg_aGroups[22], function Trig_Thunder_stomb_Func001Func033A )
call DestroyGroup (udg_aGroups[22])
set udg_aGroups[22] = null
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Raikage[0]), udg_Zpoint[65], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.05, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A017', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
call PauseUnitBJ( false, udg_Raikage[0] )
call SetUnitInvulnerable( udg_Raikage[0], false )
call RemoveLocation( udg_Zpoint[65] )
set udg_Zpoint[65] = null
set udg_Raikage[0] = null
else
set udg_Raikage[0] = GetSpellAbilityUnit()
set udg_Zpoint[65] = GetUnitLoc(udg_Raikage[0])
set udg_Zpoint[66] = GetSpellTargetLoc()
set udg_Omnislashing[60] = true
call SetUnitInvulnerable( udg_Raikage[0], true )
call PauseUnitBJ( true, udg_Raikage[0] )
call TriggerSleepAction( 0.01 )
call ShowUnitHide( udg_Raikage[0] )
call CreateNUnitsAtLocFacingLocBJ( 1, 'h01J', GetOwningPlayer(udg_Raikage[0]), udg_Zpoint[65], udg_Zpoint[66] )
set udg_Raikage[1] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Raikage[1] )
call SetUnitAnimation( udg_Raikage[1], "spell two" )
call SetUnitTimeScalePercent( udg_Raikage[1], 60.00 )
call SetUnitFlyHeightBJ( udg_Raikage[1], 350.00, 2000.00 )
call SetUnitInvulnerable( udg_Raikage[1], true )
call EnableTrigger( gg_trg_Thunder_stomb_damage )
call TriggerSleepAction( 0.60 )
call SetUnitFlyHeightBJ( udg_Raikage[1], 0.00, 5000.00 )
call TriggerSleepAction( 0.10 )
call DisableTrigger( gg_trg_Thunder_stomb_damage )
call ShowUnitShow( udg_Raikage[0] )
call SetUnitPositionLocFacingBJ( udg_Raikage[0], GetUnitLoc(udg_Raikage[1]), AngleBetweenPoints(udg_Zpoint[65], udg_Zpoint[66]) )
call RemoveUnit( udg_Raikage[1] )
call SetUnitInvulnerable( udg_Raikage[0], false )
call PauseUnitBJ( false, udg_Raikage[0] )
set udg_Zpoint[69] = GetUnitLoc(udg_Raikage[1])
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[69], 150.00, ( I2R(GetForLoopIndexA()) * 120.00 )), "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Zpoint[69], 150.00, ( I2R(GetForLoopIndexA()) * 120.00 )), "war3mapImported\\EarthSmash.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call AddSpecialEffectLocBJ( udg_Zpoint[69], "war3mapImported\\EarthSmash.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_aGroups[22] = GetUnitsInRangeOfLocMatching(310.00, udg_Zpoint[69], Condition(function Trig_Thunder_stomb_Func001Func075002003))
call ForGroupBJ( udg_aGroups[22], function Trig_Thunder_stomb_Func001Func076A )
call DestroyGroup (udg_aGroups[22])
set udg_aGroups[22] = null
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Raikage[0]), udg_Zpoint[69], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.05, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A017', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
call RemoveLocation( udg_Zpoint[69] )
set udg_Zpoint[69] = null
call SetUnitTimeScalePercent( udg_Raikage[0], 100.00 )
call SelectUnitForPlayerSingle( udg_Raikage[0], GetOwningPlayer(udg_Raikage[0]) )
set udg_Omnislashing[60] = false
set udg_Raikage[0] = null
set udg_Raikage[1] = null
call RemoveLocation( udg_Zpoint[65] )
set udg_Zpoint[65] = null
call RemoveLocation( udg_Zpoint[66] )
set udg_Zpoint[66] = null
endif
endfunction
//===========================================================================
function InitTrig_Thunder_stomb takes nothing returns nothing
set gg_trg_Thunder_stomb = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Thunder_stomb, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Thunder_stomb, Condition( function Trig_Thunder_stomb_Conditions ) )
call TriggerAddAction( gg_trg_Thunder_stomb, function Trig_Thunder_stomb_Actions )
endfunction
function Trig_Thunder_stomb_damage_Conditions takes nothing returns boolean
if ( not ( IsUnitAliveBJ(udg_Raikage[0]) == true ) ) then
return false
endif
return true
endfunction
function Trig_Thunder_stomb_damage_Func002Func011001 takes nothing returns boolean
return ( udg_bDuel == false )
endfunction
function Trig_Thunder_stomb_damage_Func002C takes nothing returns boolean
if ( not ( udg_Omnislashing[60] == true ) ) then
return false
endif
return true
endfunction
function Trig_Thunder_stomb_damage_Actions takes nothing returns nothing
if ( Trig_Thunder_stomb_damage_Func002C() ) then
set udg_Zpoint[67] = GetUnitLoc(udg_Raikage[1])
set udg_Zpoint[68] = PolarProjectionBJ(udg_Zpoint[67], ( DistanceBetweenPoints(udg_Zpoint[65], udg_Zpoint[66]) / 50.00 ), GetUnitFacing(udg_Raikage[1]))
call SetUnitPositionLoc( udg_Raikage[1], udg_Zpoint[68] )
call RemoveLocation( udg_Zpoint[67] )
set udg_Zpoint[67] = null
call RemoveLocation( udg_Zpoint[68] )
set udg_Zpoint[68] = null
else
call DisableTrigger( GetTriggeringTrigger() )
set udg_Omnislashing[60] = false
call ShowUnitShow( udg_Raikage[0] )
call SetUnitPositionLocFacingBJ( udg_Raikage[0], GetUnitLoc(udg_Raikage[1]), AngleBetweenPoints(udg_Points[470], udg_Points[471]) )
call SetUnitInvulnerable( udg_Raikage[0], false )
call RemoveUnit( udg_Raikage[1] )
call PauseUnitBJ( false, udg_Raikage[0] )
call SetUnitTimeScalePercent( udg_Raikage[0], 100.00 )
call SetUnitInvulnerable( udg_Raikage[0], false )
call SelectUnitForPlayerSingle( udg_Raikage[0], GetOwningPlayer(udg_Raikage[0]) )
if ( Trig_Thunder_stomb_damage_Func002Func011001() ) then
call PanCameraToTimedLocForPlayer( GetOwningPlayer(udg_Raikage[0]), GetUnitLoc(udg_Raikage[0]), 0.00 )
else
call DoNothing( )
endif
set udg_Raikage[0] = null
set udg_Raikage[1] = null
call RemoveLocation( udg_Zpoint[65] )
set udg_Zpoint[65] = null
call RemoveLocation( udg_Zpoint[66] )
set udg_Zpoint[66] = null
endif
endfunction
//===========================================================================
function InitTrig_Thunder_stomb_damage takes nothing returns nothing
set gg_trg_Thunder_stomb_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Thunder_stomb_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Thunder_stomb_damage, 0.02 )
call TriggerAddCondition( gg_trg_Thunder_stomb_damage, Condition( function Trig_Thunder_stomb_damage_Conditions ) )
call TriggerAddAction( gg_trg_Thunder_stomb_damage, function Trig_Thunder_stomb_damage_Actions )
endfunction
function Trig_Lariat_Raikage_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09N' ) ) then
return false
endif
return true
endfunction
function Trig_Lariat_Raikage_Func012002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Lariat_Raikage_Func012002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Raikage[2])) == true )
endfunction
function Trig_Lariat_Raikage_Func012002003002002001 takes nothing returns boolean
return ( GetFilterUnit() != udg_Raikage[2] )
endfunction
function Trig_Lariat_Raikage_Func012002003002002002001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Lariat_Raikage_Func012002003002002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Lariat_Raikage_Func012002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_Func012002003002002002001(), Trig_Lariat_Raikage_Func012002003002002002002() )
endfunction
function Trig_Lariat_Raikage_Func012002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_Func012002003002002001(), Trig_Lariat_Raikage_Func012002003002002002() )
endfunction
function Trig_Lariat_Raikage_Func012002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_Func012002003002001(), Trig_Lariat_Raikage_Func012002003002002() )
endfunction
function Trig_Lariat_Raikage_Func012002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_Func012002003001(), Trig_Lariat_Raikage_Func012002003002() )
endfunction
function Trig_Lariat_Raikage_Func013Func002Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09N', udg_Raikage[2]) == 1 )
endfunction
function Trig_Lariat_Raikage_Func013Func002Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09N', udg_Raikage[2]) == 2 )
endfunction
function Trig_Lariat_Raikage_Func013Func002Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09N', udg_Raikage[2]) == 3 )
endfunction
function Trig_Lariat_Raikage_Func013Func002Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09N', udg_Raikage[2]) == 4 )
endfunction
function Trig_Lariat_Raikage_Func013Func002Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09N', udg_Raikage[2]) == 1 )
endfunction
function Trig_Lariat_Raikage_Func013Func002Func006001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09N', udg_Raikage[2]) == 2 )
endfunction
function Trig_Lariat_Raikage_Func013Func002Func007001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09N', udg_Raikage[2]) == 3 )
endfunction
function Trig_Lariat_Raikage_Func013Func002Func008001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09N', udg_Raikage[2]) == 4 )
endfunction
function Trig_Lariat_Raikage_Func013Func002C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Raikage[2], 'B01R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Lariat_Raikage_Func013A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(udg_Zpoint[73], GetRandomReal(300.00, 500.00), ( GetUnitFacing(udg_Raikage[2]) + GetRandomReal(-30.00, 30.00) )) )
if ( Trig_Lariat_Raikage_Func013Func002C() ) then
if ( Trig_Lariat_Raikage_Func013Func002Func001001() ) then
call UnitDamageTargetBJ( udg_Raikage[2], GetEnumUnit(), 220.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Lariat_Raikage_Func013Func002Func002001() ) then
call UnitDamageTargetBJ( udg_Raikage[2], GetEnumUnit(), 290.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Lariat_Raikage_Func013Func002Func003001() ) then
call UnitDamageTargetBJ( udg_Raikage[2], GetEnumUnit(), 350.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Lariat_Raikage_Func013Func002Func004001() ) then
call UnitDamageTargetBJ( udg_Raikage[2], GetEnumUnit(), 470.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
else
if ( Trig_Lariat_Raikage_Func013Func002Func005001() ) then
call UnitDamageTargetBJ( udg_Raikage[2], GetEnumUnit(), 160.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Lariat_Raikage_Func013Func002Func006001() ) then
call UnitDamageTargetBJ( udg_Raikage[2], GetEnumUnit(), 220.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Lariat_Raikage_Func013Func002Func007001() ) then
call UnitDamageTargetBJ( udg_Raikage[2], GetEnumUnit(), 280.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Lariat_Raikage_Func013Func002Func008001() ) then
call UnitDamageTargetBJ( udg_Raikage[2], GetEnumUnit(), 360.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
endif
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "war3mapImported\\EarthSmash.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(GetEnumUnit()), "war3mapImported\\explosion.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
function Trig_Lariat_Raikage_Actions takes nothing returns nothing
set udg_Raikage[2] = GetSpellAbilityUnit()
call TriggerSleepAction( 0.00 )
call UnitRemoveBuffsExBJ( bj_BUFF_POLARITY_NEGATIVE, bj_BUFF_RESIST_EITHER, udg_Raikage[2], true, true )
call SetUnitInvulnerable( udg_Raikage[2], true )
call PauseUnitBJ( true, udg_Raikage[2] )
call EnableTrigger( gg_trg_Lariat_Raikage_move )
call TriggerSleepAction( 0.10 )
call DisableTrigger( gg_trg_Lariat_Raikage_move )
call SetUnitAnimation( udg_Raikage[2], "attack" )
call TriggerSleepAction( 0.25 )
set udg_Zpoint[73] = GetUnitLoc(udg_Raikage[2])
set udg_aGroups[24] = GetUnitsInRangeOfLocMatching(240.00, udg_Zpoint[73], Condition(function Trig_Lariat_Raikage_Func012002003))
call ForGroupBJ( udg_aGroups[24], function Trig_Lariat_Raikage_Func013A )
call DestroyGroup (udg_aGroups[24])
set udg_aGroups[24] = null
call RemoveLocation( udg_Zpoint[73] )
set udg_Zpoint[73] = null
call PauseUnitBJ( false, udg_Raikage[2] )
call SetUnitInvulnerable( udg_Raikage[2], false )
set udg_Raikage[2] = null
endfunction
//===========================================================================
function InitTrig_Lariat_Raikage takes nothing returns nothing
set gg_trg_Lariat_Raikage = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lariat_Raikage, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Lariat_Raikage, Condition( function Trig_Lariat_Raikage_Conditions ) )
call TriggerAddAction( gg_trg_Lariat_Raikage, function Trig_Lariat_Raikage_Actions )
endfunction
function Trig_Lariat_Raikage_move_Func005A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Lariat_Raikage_move_Func006Func002002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Lariat_Raikage_move_Func006Func002002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Raikage[2])) == true )
endfunction
function Trig_Lariat_Raikage_move_Func006Func002002003002002001 takes nothing returns boolean
return ( GetFilterUnit() != udg_Raikage[2] )
endfunction
function Trig_Lariat_Raikage_move_Func006Func002002003002002002001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Lariat_Raikage_move_Func006Func002002003002002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Lariat_Raikage_move_Func006Func002002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_move_Func006Func002002003002002002001(), Trig_Lariat_Raikage_move_Func006Func002002003002002002002() )
endfunction
function Trig_Lariat_Raikage_move_Func006Func002002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_move_Func006Func002002003002002001(), Trig_Lariat_Raikage_move_Func006Func002002003002002002() )
endfunction
function Trig_Lariat_Raikage_move_Func006Func002002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_move_Func006Func002002003002001(), Trig_Lariat_Raikage_move_Func006Func002002003002002() )
endfunction
function Trig_Lariat_Raikage_move_Func006Func002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_move_Func006Func002002003001(), Trig_Lariat_Raikage_move_Func006Func002002003002() )
endfunction
function Trig_Lariat_Raikage_move_Func006Func003A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Raikage[2], GetEnumUnit(), 4.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
call SetUnitPositionLoc( GetEnumUnit(), udg_Zpoint[72] )
endfunction
function Trig_Lariat_Raikage_move_Func006Func013002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Lariat_Raikage_move_Func006Func013002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Raikage[2])) == true )
endfunction
function Trig_Lariat_Raikage_move_Func006Func013002003002002001 takes nothing returns boolean
return ( GetFilterUnit() != udg_Raikage[2] )
endfunction
function Trig_Lariat_Raikage_move_Func006Func013002003002002002001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Lariat_Raikage_move_Func006Func013002003002002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Lariat_Raikage_move_Func006Func013002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_move_Func006Func013002003002002002001(), Trig_Lariat_Raikage_move_Func006Func013002003002002002002() )
endfunction
function Trig_Lariat_Raikage_move_Func006Func013002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_move_Func006Func013002003002002001(), Trig_Lariat_Raikage_move_Func006Func013002003002002002() )
endfunction
function Trig_Lariat_Raikage_move_Func006Func013002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_move_Func006Func013002003002001(), Trig_Lariat_Raikage_move_Func006Func013002003002002() )
endfunction
function Trig_Lariat_Raikage_move_Func006Func013002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Lariat_Raikage_move_Func006Func013002003001(), Trig_Lariat_Raikage_move_Func006Func013002003002() )
endfunction
function Trig_Lariat_Raikage_move_Func006Func014A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Raikage[2], GetEnumUnit(), 8.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
call SetUnitPositionLoc( GetEnumUnit(), udg_Zpoint[72] )
endfunction
function Trig_Lariat_Raikage_move_Func006C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Raikage[2], 'B01R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Lariat_Raikage_move_Actions takes nothing returns nothing
set udg_Zpoint[72] = GetUnitLoc(udg_Raikage[2])
set udg_UnitPoint[66] = PolarProjectionBJ(udg_Zpoint[72], 48.00, GetUnitFacing(udg_Raikage[2]))
call SetUnitAnimation( udg_Raikage[2], "walk" )
call AddSpecialEffectLocBJ( udg_Zpoint[72], "war3mapImported\\EarthSmash.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call EnumDestructablesInCircleBJ( 200.00, udg_Zpoint[72], function Trig_Lariat_Raikage_move_Func005A )
if ( Trig_Lariat_Raikage_move_Func006C() ) then
call SetUnitPositionLoc( udg_Raikage[2], PolarProjectionBJ(udg_Zpoint[72], 80.00, GetUnitFacing(udg_Raikage[2])) )
call CreateNUnitsAtLoc( 1, 'h01L', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[72], ( GetUnitFacing(udg_Raikage[2]) + 180.00 ) )
call KillUnit( GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( udg_Zpoint[72], "Abilities\\Weapons\\Bolt\\BoltImpact.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Zpoint[72], "Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_aGroups[23] = GetUnitsInRangeOfLocMatching(240.00, udg_Zpoint[72], Condition(function Trig_Lariat_Raikage_move_Func006Func013002003))
call ForGroupBJ( udg_aGroups[23], function Trig_Lariat_Raikage_move_Func006Func014A )
call DestroyGroup (udg_aGroups[23])
set udg_aGroups[23] = null
else
call SetUnitPositionLoc( udg_Raikage[2], udg_UnitPoint[66] )
set udg_aGroups[23] = GetUnitsInRangeOfLocMatching(240.00, udg_Zpoint[72], Condition(function Trig_Lariat_Raikage_move_Func006Func002002003))
call ForGroupBJ( udg_aGroups[23], function Trig_Lariat_Raikage_move_Func006Func003A )
call DestroyGroup (udg_aGroups[23])
set udg_aGroups[23] = null
endif
call RemoveLocation( udg_Zpoint[72] )
set udg_Zpoint[72] = null
call RemoveLocation( udg_UnitPoint[66] )
set udg_UnitPoint[66] = null
endfunction
//===========================================================================
function InitTrig_Lariat_Raikage_move takes nothing returns nothing
set gg_trg_Lariat_Raikage_move = CreateTrigger( )
call DisableTrigger( gg_trg_Lariat_Raikage_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Lariat_Raikage_move, 0.03 )
call TriggerAddAction( gg_trg_Lariat_Raikage_move, function Trig_Lariat_Raikage_move_Actions )
endfunction
function Trig_LightingArmor_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09J' ) ) then
return false
endif
return true
endfunction
function Trig_LightingArmor_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "war3mapImported\\LighWave1.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetPlayerAbilityAvailableBJ( false, 'A02W', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A09K', GetOwningPlayer(GetTriggerUnit()) )
call TriggerSleepAction( 20.00 )
call SetPlayerAbilityAvailableBJ( false, 'A09K', GetOwningPlayer(GetTriggerUnit()) )
call SetPlayerAbilityAvailableBJ( true, 'A02W', GetOwningPlayer(GetTriggerUnit()) )
endfunction
//===========================================================================
function InitTrig_LightingArmor takes nothing returns nothing
set gg_trg_LightingArmor = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_LightingArmor, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_LightingArmor, Condition( function Trig_LightingArmor_Conditions ) )
call TriggerAddAction( gg_trg_LightingArmor, function Trig_LightingArmor_Actions )
endfunction
function Trig_Liger_bomb_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A09O' ) ) then
return false
endif
return true
endfunction
function Trig_Liger_bomb_Func001Func002C takes nothing returns boolean
if ( ( UnitHasBuffBJ(GetSpellTargetUnit(), 'B00N') == false ) ) then
return true
endif
if ( ( GetUnitTypeId(GetSpellTargetUnit()) != 'H00T' ) ) then
return true
endif
return false
endfunction
function Trig_Liger_bomb_Func001Func017A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Liger_bomb_Func001Func023Func001002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Liger_bomb_Func001Func023Func001002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Raikage[3])) == true )
endfunction
function Trig_Liger_bomb_Func001Func023Func001002003002002001 takes nothing returns boolean
return ( GetFilterUnit() != udg_Raikage[2] )
endfunction
function Trig_Liger_bomb_Func001Func023Func001002003002002002001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Liger_bomb_Func001Func023Func001002003002002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Liger_bomb_Func001Func023Func001002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Liger_bomb_Func001Func023Func001002003002002002001(), Trig_Liger_bomb_Func001Func023Func001002003002002002002() )
endfunction
function Trig_Liger_bomb_Func001Func023Func001002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Liger_bomb_Func001Func023Func001002003002002001(), Trig_Liger_bomb_Func001Func023Func001002003002002002() )
endfunction
function Trig_Liger_bomb_Func001Func023Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Liger_bomb_Func001Func023Func001002003002001(), Trig_Liger_bomb_Func001Func023Func001002003002002() )
endfunction
function Trig_Liger_bomb_Func001Func023Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Liger_bomb_Func001Func023Func001002003001(), Trig_Liger_bomb_Func001Func023Func001002003002() )
endfunction
function Trig_Liger_bomb_Func001Func023Func002Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09O', udg_Raikage[3]) == 1 )
endfunction
function Trig_Liger_bomb_Func001Func023Func002Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09O', udg_Raikage[3]) == 2 )
endfunction
function Trig_Liger_bomb_Func001Func023Func002Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09O', udg_Raikage[3]) == 3 )
endfunction
function Trig_Liger_bomb_Func001Func023Func002A takes nothing returns nothing
if ( Trig_Liger_bomb_Func001Func023Func002Func001001() ) then
call UnitDamageTargetBJ( udg_Raikage[3], GetEnumUnit(), 800.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Liger_bomb_Func001Func023Func002Func002001() ) then
call UnitDamageTargetBJ( udg_Raikage[3], GetEnumUnit(), 1000.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Liger_bomb_Func001Func023Func002Func003001() ) then
call UnitDamageTargetBJ( udg_Raikage[3], GetEnumUnit(), 1200.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
endfunction
function Trig_Liger_bomb_Func001Func023Func005002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Liger_bomb_Func001Func023Func005002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Raikage[3])) == true )
endfunction
function Trig_Liger_bomb_Func001Func023Func005002003002002001 takes nothing returns boolean
return ( GetFilterUnit() != udg_Raikage[2] )
endfunction
function Trig_Liger_bomb_Func001Func023Func005002003002002002001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Liger_bomb_Func001Func023Func005002003002002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Liger_bomb_Func001Func023Func005002003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Liger_bomb_Func001Func023Func005002003002002002001(), Trig_Liger_bomb_Func001Func023Func005002003002002002002() )
endfunction
function Trig_Liger_bomb_Func001Func023Func005002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Liger_bomb_Func001Func023Func005002003002002001(), Trig_Liger_bomb_Func001Func023Func005002003002002002() )
endfunction
function Trig_Liger_bomb_Func001Func023Func005002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Liger_bomb_Func001Func023Func005002003002001(), Trig_Liger_bomb_Func001Func023Func005002003002002() )
endfunction
function Trig_Liger_bomb_Func001Func023Func005002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Liger_bomb_Func001Func023Func005002003001(), Trig_Liger_bomb_Func001Func023Func005002003002() )
endfunction
function Trig_Liger_bomb_Func001Func023Func006Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09O', udg_Raikage[3]) == 1 )
endfunction
function Trig_Liger_bomb_Func001Func023Func006Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09O', udg_Raikage[3]) == 2 )
endfunction
function Trig_Liger_bomb_Func001Func023Func006Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A09O', udg_Raikage[3]) == 3 )
endfunction
function Trig_Liger_bomb_Func001Func023Func006A takes nothing returns nothing
if ( Trig_Liger_bomb_Func001Func023Func006Func001001() ) then
call UnitDamageTargetBJ( udg_Raikage[3], GetEnumUnit(), 900.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Liger_bomb_Func001Func023Func006Func002001() ) then
call UnitDamageTargetBJ( udg_Raikage[3], GetEnumUnit(), 1100.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
if ( Trig_Liger_bomb_Func001Func023Func006Func003001() ) then
call UnitDamageTargetBJ( udg_Raikage[3], GetEnumUnit(), 1300.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
else
call DoNothing( )
endif
endfunction
function Trig_Liger_bomb_Func001Func023C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Raikage[3], 'B01R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Liger_bomb_Func001C takes nothing returns boolean
if ( not Trig_Liger_bomb_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Liger_bomb_Actions takes nothing returns nothing
if ( Trig_Liger_bomb_Func001C() ) then
set udg_Raikage[3] = GetSpellAbilityUnit()
set udg_Raikage[4] = GetSpellTargetUnit()
set udg_Zpoint[74] = GetUnitLoc(udg_Raikage[4])
call SetUnitInvulnerable( udg_Raikage[3], true )
call PauseUnitBJ( true, udg_Raikage[3] )
call PauseUnitBJ( true, udg_Raikage[4] )
call SetUnitAnimation( udg_Raikage[3], "spell one" )
call UnitAddAbilityBJ( 'Amrf', udg_Raikage[4] )
call SetUnitFlyHeightBJ( udg_Raikage[4], 260.00, 600.00 )
call TriggerSleepAction( 0.40 )
call SetUnitFlyHeightBJ( udg_Raikage[4], 0.00, 4000.00 )
call CreateNUnitsAtLoc( 1, 'h01G', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[74], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'Brai', GetLastCreatedUnit() )
call TriggerSleepAction( 0.06 )
call EnumDestructablesInCircleBJ( 600.00, udg_Zpoint[74], function Trig_Liger_bomb_Func001Func017A )
call PauseUnitBJ( false, udg_Raikage[4] )
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Raikage[3]), udg_Zpoint[74], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 0.05, 'BTLF', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A017', GetLastCreatedUnit() )
call IssueImmediateOrderBJ( GetLastCreatedUnit(), "stomp" )
if ( Trig_Liger_bomb_Func001Func023C() ) then
set udg_aGroups[25] = GetUnitsInRangeOfLocMatching(600.00, udg_Zpoint[74], Condition(function Trig_Liger_bomb_Func001Func023Func005002003))
call ForGroupBJ( udg_aGroups[25], function Trig_Liger_bomb_Func001Func023Func006A )
call DestroyGroup (udg_aGroups[25])
set udg_aGroups[25] = null
call CreateNUnitsAtLoc( 1, 'u016', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[74], bj_UNIT_FACING )
call SetUnitScalePercent( GetLastCreatedUnit(), 240.00, 240.00, 240.00 )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 40.00 )
call UnitApplyTimedLifeBJ( 1.00, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u00B', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[74], bj_UNIT_FACING )
call SetUnitFlyHeightBJ( GetLastCreatedUnit(), 0.00, 30.00 )
call SetUnitScalePercent( GetLastCreatedUnit(), 1000.00, 1000.00, 1000.00 )
call KillUnit( GetLastCreatedUnit() )
else
set udg_aGroups[25] = GetUnitsInRangeOfLocMatching(600.00, udg_Zpoint[74], Condition(function Trig_Liger_bomb_Func001Func023Func001002003))
call ForGroupBJ( udg_aGroups[25], function Trig_Liger_bomb_Func001Func023Func002A )
call DestroyGroup (udg_aGroups[25])
set udg_aGroups[25] = null
endif
call CreateNUnitsAtLoc( 1, 'u008', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[74], bj_UNIT_FACING )
call SetUnitScalePercent( GetLastCreatedUnit(), 400.00, 400.00, 400.00 )
call UnitApplyTimedLifeBJ( 1.00, 'Brai', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[74], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'Brai', GetLastCreatedUnit() )
call UnitRemoveAbilityBJ( 'Amrf', udg_Raikage[4] )
call PauseUnitBJ( false, udg_Raikage[3] )
call SetUnitInvulnerable( udg_Raikage[3], false )
call RemoveLocation( udg_Zpoint[74] )
set udg_Zpoint[74] = null
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Liger_bomb takes nothing returns nothing
set gg_trg_Liger_bomb = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Liger_bomb, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Liger_bomb, Condition( function Trig_Liger_bomb_Conditions ) )
call TriggerAddAction( gg_trg_Liger_bomb, function Trig_Liger_bomb_Actions )
endfunction
function Trig_CM_Caster_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A04R' ) ) then
return false
endif
return true
endfunction
function Trig_CM_Caster_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h00W', GetOwningPlayer(GetTriggerUnit()), PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), 100.00, GetUnitFacing(GetTriggerUnit())), GetUnitFacing(GetTriggerUnit()) )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 60.00 )
call UnitApplyTimedLifeBJ( 1.25, 'Bapl', GetLastCreatedUnit() )
call TriggerRegisterUnitEvent( gg_trg_CM_Cast, GetLastCreatedUnit(), EVENT_UNIT_DEATH )
endfunction
//===========================================================================
function InitTrig_CM_Caster takes nothing returns nothing
set gg_trg_CM_Caster = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_CM_Caster, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_CM_Caster, Condition( function Trig_CM_Caster_Conditions ) )
call TriggerAddAction( gg_trg_CM_Caster, function Trig_CM_Caster_Actions )
endfunction
function Trig_CM_Cast_Func033C takes nothing returns boolean
if ( not ( udg_MUI1 == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CM_Cast_Actions takes nothing returns nothing
// ----------------------------------------------------------------------------------------
// Spell Initialization
// ----------------------------------------------------------------------------------------
// Getting unit along with locations needed
// ----------------------------------------------------------------------------------------
set udg_CM_Caster[udg_MUI1] = GetTriggerUnit()
set udg_CM_cPoint[udg_MUI1] = GetUnitLoc(udg_CM_Caster[udg_MUI1])
// ----------------------------------------------------------------------------------------
// Creating a dummy which will represent the meteor
// ----------------------------------------------------------------------------------------
call CreateNUnitsAtLoc( 1, 'h00V', GetOwningPlayer(udg_CM_Caster[udg_MUI1]), udg_CM_cPoint[udg_MUI1], GetUnitFacing(udg_CM_Caster[udg_MUI1]) )
set udg_CM_Dummy[udg_MUI1] = GetLastCreatedUnit()
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
// ----------------------------------------------------------------------------------------
// The ability for the afterwards damage
// Please note that it is not lethal and will not kill the target
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
// Settings for the spell
// ----------------------------------------------------------------------------------------
set udg_CM_Angle[udg_MUI1] = GetUnitFacing(udg_CM_Caster[udg_MUI1])
set udg_CM_Distance[udg_MUI1] = 0.00
set udg_CM_RollDamage[udg_MUI1] = ( 600.00 + ( 18.00 * I2R(GetHeroStatBJ(bj_HEROSTAT_STR, GetTriggerUnit(), false)) ) )
// ----------------------------------------------------------------------------------------
// Removing possible leaks
// ----------------------------------------------------------------------------------------
call RemoveLocation (udg_CM_cPoint[udg_MUI1])
call RemoveLocation (udg_CM_mPoint[udg_MUI1])
// ----------------------------------------------------------------------------------------
// Starting the loop trigger
// ----------------------------------------------------------------------------------------
if ( Trig_CM_Cast_Func033C() ) then
call EnableTrigger( gg_trg_CM_Loop )
else
endif
// ----------------------------------------------------------------------------------------
// Making space for a future instance of the spell
set udg_MUI1 = ( udg_MUI1 + 1 )
// ----------------------------------------------------------------------------------------
endfunction
//===========================================================================
function InitTrig_CM_Cast takes nothing returns nothing
set gg_trg_CM_Cast = CreateTrigger( )
call TriggerAddAction( gg_trg_CM_Cast, function Trig_CM_Cast_Actions )
endfunction
function Trig_CM_Loop_Func004Func015C takes nothing returns boolean
if ( not ( GetUnitFlyHeight(udg_CM_Dummy[udg_MUI2]) > 50.00 ) ) then
return false
endif
return true
endfunction
function Trig_CM_Loop_Func004Func021Func002002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_CM_Loop_Func004Func021Func002002003002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_CM_Loop_Func004Func021Func002002003002002 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_CM_Dummy[udg_MUI2])) == true )
endfunction
function Trig_CM_Loop_Func004Func021Func002002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_CM_Loop_Func004Func021Func002002003002001(), Trig_CM_Loop_Func004Func021Func002002003002002() )
endfunction
function Trig_CM_Loop_Func004Func021Func002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_CM_Loop_Func004Func021Func002002003001(), Trig_CM_Loop_Func004Func021Func002002003002() )
endfunction
function Trig_CM_Loop_Func004Func021Func003A takes nothing returns nothing
call UnitDamageTargetBJ( udg_CM_Caster[udg_MUI2], GetEnumUnit(), ( udg_CM_RollDamage[udg_MUI2] + 25.00 ), ATTACK_TYPE_MAGIC, DAMAGE_TYPE_DEMOLITION )
endfunction
function Trig_CM_Loop_Func004Func021C takes nothing returns boolean
if ( not ( udg_CM_DamageTimer[udg_MUI2] >= 12 ) ) then
return false
endif
return true
endfunction
function Trig_CM_Loop_Func004Func030Func009C takes nothing returns boolean
if ( not ( udg_MUI1 == 0 ) ) then
return false
endif
return true
endfunction
function Trig_CM_Loop_Func004Func030C takes nothing returns boolean
if ( not ( udg_CM_Distance[udg_MUI2] >= 800.00 ) ) then
return false
endif
return true
endfunction
function Trig_CM_Loop_Actions takes nothing returns nothing
// ----------------------------------------------------------------------------------------
// Looping through all active instances
// ----------------------------------------------------------------------------------------
set udg_MUI2 = 0
loop
exitwhen udg_MUI2 > ( udg_MUI1 - 1 )
// ----------------------------------------------------------------------------------------
// Getting dummy position and moving it
// ----------------------------------------------------------------------------------------
set udg_CM_dPoint[udg_MUI2] = GetUnitLoc(udg_CM_Dummy[udg_MUI2])
set udg_CM_mPoint[udg_MUI2] = PolarProjectionBJ(udg_CM_dPoint[udg_MUI2], 18.00, udg_CM_Angle[udg_MUI2])
call SetUnitPositionLoc( udg_CM_Dummy[udg_MUI2], udg_CM_mPoint[udg_MUI2] )
set udg_CM_Distance[udg_MUI2] = ( udg_CM_Distance[udg_MUI2] + 12.00 )
// ----------------------------------------------------------------------------------------
// Timer is used for the damage as it says
// ----------------------------------------------------------------------------------------
set udg_CM_DamageTimer[udg_MUI2] = ( udg_CM_DamageTimer[udg_MUI2] + 1 )
// ----------------------------------------------------------------------------------------
// Changing the meteor height so it will look like its falling from the sky
// ----------------------------------------------------------------------------------------
if ( Trig_CM_Loop_Func004Func015C() ) then
call SetUnitFlyHeightBJ( udg_CM_Dummy[udg_MUI2], ( GetUnitFlyHeight(udg_CM_Dummy[udg_MUI2]) - 30.00 ), 0.00 )
else
endif
// ----------------------------------------------------------------------------------------
// Dealing damage when the timer ends
// Damage is done every half a second
// Thus it is reduced by 50%
// ----------------------------------------------------------------------------------------
if ( Trig_CM_Loop_Func004Func021C() ) then
set udg_CM_DamageTimer[udg_MUI2] = 0
set udg_CM_Targets = GetUnitsInRangeOfLocMatching(200.00, udg_CM_mPoint[udg_MUI2], Condition(function Trig_CM_Loop_Func004Func021Func002002003))
call ForGroupBJ( udg_CM_Targets, function Trig_CM_Loop_Func004Func021Func003A )
call AddSpecialEffectLocBJ( udg_CM_mPoint[udg_MUI2], "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call DestroyGroup (udg_CM_Targets)
else
endif
// ----------------------------------------------------------------------------------------
// Removing possible leaks for the current instance
// ----------------------------------------------------------------------------------------
call RemoveLocation (udg_CM_dPoint[udg_MUI2])
call RemoveLocation (udg_CM_mPoint[udg_MUI2])
// ----------------------------------------------------------------------------------------
// Checking if the meteor has reached the maximum distance possible
// ----------------------------------------------------------------------------------------
if ( Trig_CM_Loop_Func004Func030C() ) then
// ----------------------------------------------------------------------------------------
// Reducing the instance number by 1
// ----------------------------------------------------------------------------------------
set udg_MUI1 = ( udg_MUI1 - 1 )
// ----------------------------------------------------------------------------------------
// Checking if there is any running instances
// If not, stopping the trigger to prevent lag and memory leaks
// ----------------------------------------------------------------------------------------
if ( Trig_CM_Loop_Func004Func030Func009C() ) then
call DisableTrigger( GetTriggeringTrigger() )
else
endif
// ----------------------------------------------------------------------------------------
// Clearing the current instance and re-mapping all others to the previous number
// This way if the last instance had finished, it won't bug the others left running
// ----------------------------------------------------------------------------------------
set udg_CM_Caster[udg_MUI2] = udg_CM_Caster[udg_MUI1]
call KillUnit( udg_CM_Dummy[udg_MUI2] )
set udg_CM_Dummy[udg_MUI2] = udg_CM_Dummy[udg_MUI1]
set udg_CM_Distance[udg_MUI2] = udg_CM_Distance[udg_MUI1]
set udg_CM_RollDamage[udg_MUI2] = udg_CM_RollDamage[udg_MUI1]
set udg_CM_Angle[udg_MUI2] = udg_CM_Angle[udg_MUI1]
// ----------------------------------------------------------------------------------------
// Reducing the loop number to match the instance that are currently running
// ----------------------------------------------------------------------------------------
set udg_MUI2 = ( udg_MUI2 - 1 )
else
endif
set udg_MUI2 = udg_MUI2 + 1
endloop
endfunction
//===========================================================================
function InitTrig_CM_Loop takes nothing returns nothing
set gg_trg_CM_Loop = CreateTrigger( )
call DisableTrigger( gg_trg_CM_Loop )
call TriggerRegisterTimerEventPeriodic( gg_trg_CM_Loop, 0.03 )
call TriggerAddAction( gg_trg_CM_Loop, function Trig_CM_Loop_Actions )
endfunction
function Trig_Veer_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01W' ) ) then
return false
endif
return true
endfunction
function Trig_Veer_Actions takes nothing returns nothing
set udg_Gintama = GetManipulatingUnit()
call EnableTrigger( gg_trg_Veer_2 )
endfunction
//===========================================================================
function InitTrig_Veer takes nothing returns nothing
set gg_trg_Veer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Veer, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Veer, Condition( function Trig_Veer_Conditions ) )
call TriggerAddAction( gg_trg_Veer, function Trig_Veer_Actions )
endfunction
function Trig_Veer_2_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Gintama ) ) then
return false
endif
return true
endfunction
function Trig_Veer_2_Func004C takes nothing returns boolean
if ( not ( udg_Ginsan == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Veer_2_Func005C takes nothing returns boolean
if ( not ( udg_Ginsan == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Veer_2_Func006C takes nothing returns boolean
if ( not ( udg_Ginsan == 12 ) ) then
return false
endif
return true
endfunction
function Trig_Veer_2_Func007C takes nothing returns boolean
if ( not ( udg_Ginsan == 19 ) ) then
return false
endif
return true
endfunction
function Trig_Veer_2_Func008C takes nothing returns boolean
if ( not ( udg_Ginsan == 21 ) ) then
return false
endif
return true
endfunction
function Trig_Veer_2_Actions takes nothing returns nothing
set udg_Ginsan = GetRandomInt(1, 22)
if ( Trig_Veer_2_Func004C() ) then
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetAttacker()), GetUnitLoc(GetAttacker()), GetUnitFacing(GetAttacker()) )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'ACcv', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(GetUnitLoc(GetAttacker()), 256, GetUnitFacing(GetAttacker())) )
else
endif
if ( Trig_Veer_2_Func005C() ) then
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetAttacker()), GetUnitLoc(GetAttacker()), GetUnitFacing(GetAttacker()) )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'ACbc', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "breathoffire", PolarProjectionBJ(GetUnitLoc(GetAttacker()), 116.00, GetUnitFacing(GetAttacker())) )
else
endif
if ( Trig_Veer_2_Func006C() ) then
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetAttacker()), GetUnitLoc(GetAttacker()), GetUnitFacing(GetAttacker()) )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A00K', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "carrionswarm", PolarProjectionBJ(GetUnitLoc(GetAttacker()), 256, GetUnitFacing(GetAttacker())) )
else
endif
if ( Trig_Veer_2_Func007C() ) then
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetAttacker()), GetUnitLoc(GetAttacker()), GetUnitFacing(GetAttacker()) )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'A090', GetLastCreatedUnit() )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "chainlightning", GetAttackedUnitBJ() )
else
endif
if ( Trig_Veer_2_Func008C() ) then
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(GetAttacker()), GetUnitLoc(GetAttacker()), GetUnitFacing(GetAttacker()) )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call UnitAddAbilityBJ( 'ACtb', GetLastCreatedUnit() )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "creepthunderbolt", GetAttackedUnitBJ() )
else
endif
endfunction
//===========================================================================
function InitTrig_Veer_2 takes nothing returns nothing
set gg_trg_Veer_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Veer_2 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Veer_2, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Veer_2, Condition( function Trig_Veer_2_Conditions ) )
call TriggerAddAction( gg_trg_Veer_2, function Trig_Veer_2_Actions )
endfunction
function Trig_Veer_3_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01W' ) ) then
return false
endif
return true
endfunction
function Trig_Veer_3_Actions takes nothing returns nothing
set udg_Gintama = null
call DisableTrigger( gg_trg_Veer_2 )
endfunction
//===========================================================================
function InitTrig_Veer_3 takes nothing returns nothing
set gg_trg_Veer_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Veer_3, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Veer_3, Condition( function Trig_Veer_3_Conditions ) )
call TriggerAddAction( gg_trg_Veer_3, function Trig_Veer_3_Actions )
endfunction
function Trig_Charge_ninetail_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08E' ) ) then
return false
endif
return true
endfunction
function Trig_Charge_ninetail_Actions takes nothing returns nothing
set udg_Bansho_Tenin[124] = GetSpellAbilityUnit()
set udg_Bansho_Tenin[125] = GetSpellTargetUnit()
call TriggerSleepAction( 0.03 )
call SetUnitPathing( udg_Bansho_Tenin[124], false )
call EnableTrigger( gg_trg_Charge_ninetail_move )
endfunction
//===========================================================================
function InitTrig_Charge_ninetail takes nothing returns nothing
set gg_trg_Charge_ninetail = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Charge_ninetail, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Charge_ninetail, Condition( function Trig_Charge_ninetail_Conditions ) )
call TriggerAddAction( gg_trg_Charge_ninetail, function Trig_Charge_ninetail_Actions )
endfunction
function Trig_Charge_ninetail_move_Func006C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Bansho_Tenin[124]), GetUnitLoc(udg_Bansho_Tenin[125])) <= 170.00 ) ) then
return false
endif
return true
endfunction
function Trig_Charge_ninetail_move_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_Bansho_Tenin[124], PolarProjectionBJ(GetUnitLoc(udg_Bansho_Tenin[124]), 70.00, AngleBetweenPoints(GetUnitLoc(udg_Bansho_Tenin[124]), GetUnitLoc(udg_Bansho_Tenin[125]))) )
call SetUnitFacingToFaceUnitTimed( udg_Bansho_Tenin[125], GetSpellTargetUnit(), 0 )
call SetUnitAnimation( udg_Bansho_Tenin[124], "stand" )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Bansho_Tenin[124]), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
if ( Trig_Charge_ninetail_move_Func006C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call SetUnitAnimation( udg_Bansho_Tenin[124], "attack" )
call SetUnitPathing( udg_Bansho_Tenin[124], true )
call UnitDamageTargetBJ( udg_Bansho_Tenin[124], udg_Bansho_Tenin[125], 2500.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Bansho_Tenin[125]), GetUnitFacing(udg_Bansho_Tenin[125]) )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01I', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Bansho_Tenin[125]), GetUnitFacing(udg_Bansho_Tenin[125]) )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
set udg_Bansho_Tenin[124] = null
set udg_Bansho_Tenin[125] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Charge_ninetail_move takes nothing returns nothing
set gg_trg_Charge_ninetail_move = CreateTrigger( )
call DisableTrigger( gg_trg_Charge_ninetail_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Charge_ninetail_move, 0.02 )
call TriggerAddAction( gg_trg_Charge_ninetail_move, function Trig_Charge_ninetail_move_Actions )
endfunction
function Trig_Bidju_stomba_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08D' ) ) then
return false
endif
return true
endfunction
function Trig_Bidju_stomba_Actions takes nothing returns nothing
set udg_Zpoint[91] = GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc( 1, 'u01E', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[91], bj_UNIT_FACING )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 100.00, 50.00, 40.00, 10.00 )
call KillUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01G', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[91], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h01H', Player(PLAYER_NEUTRAL_PASSIVE), udg_Zpoint[91], bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call RemoveLocation(udg_Zpoint[91])
set udg_Zpoint[91] = null
endfunction
//===========================================================================
function InitTrig_Bidju_stomba takes nothing returns nothing
set gg_trg_Bidju_stomba = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Bidju_stomba, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Bidju_stomba, Condition( function Trig_Bidju_stomba_Conditions ) )
call TriggerAddAction( gg_trg_Bidju_stomba, function Trig_Bidju_stomba_Actions )
endfunction
function Trig_Sacrifice_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A06Q' ) ) then
return false
endif
return true
endfunction
function Trig_Sacrifice_Actions takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetTriggerUnit(), bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_STR, GetTriggerUnit(), false) / R2I(2.00) ) )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetTriggerUnit(), bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_AGI, GetTriggerUnit(), false) / R2I(2.00) ) )
call ModifyHeroStat( bj_HEROSTAT_INT, GetTriggerUnit(), bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_INT, GetTriggerUnit(), false) * R2I(2.00) ) )
call TriggerSleepAction( 15.00 )
call ModifyHeroStat( bj_HEROSTAT_STR, GetTriggerUnit(), bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_STR, GetTriggerUnit(), false) * R2I(2.00) ) )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetTriggerUnit(), bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_AGI, GetTriggerUnit(), false) * R2I(2.00) ) )
call ModifyHeroStat( bj_HEROSTAT_INT, GetTriggerUnit(), bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_INT, GetTriggerUnit(), false) / R2I(2.00) ) )
endfunction
//===========================================================================
function InitTrig_Sacrifice takes nothing returns nothing
set gg_trg_Sacrifice = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Sacrifice, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Sacrifice, Condition( function Trig_Sacrifice_Conditions ) )
call TriggerAddAction( gg_trg_Sacrifice, function Trig_Sacrifice_Actions )
endfunction
function Trig_Global_hex_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A060' ) ) then
return false
endif
return true
endfunction
function Trig_Global_hex_Func001002003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true )
endfunction
function Trig_Global_hex_Func001002003002001001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Global_hex_Func001002003002001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Global_hex_Func001002003002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Global_hex_Func001002003002001001(), Trig_Global_hex_Func001002003002001002() )
endfunction
function Trig_Global_hex_Func001002003002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Global_hex_Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Global_hex_Func001002003002001(), Trig_Global_hex_Func001002003002002() )
endfunction
function Trig_Global_hex_Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Global_hex_Func001002003001(), Trig_Global_hex_Func001002003002() )
endfunction
function Trig_Global_hex_Func002A takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_u004_0538, "hex", GetEnumUnit() )
endfunction
function Trig_Global_hex_Actions takes nothing returns nothing
set udg_UnitGroups[846] = GetUnitsInRangeOfLocMatching(600.00, GetUnitLoc(GetTriggerUnit()), Condition(function Trig_Global_hex_Func001002003))
call ForGroupBJ( udg_UnitGroups[846], function Trig_Global_hex_Func002A )
call DestroyGroup (udg_UnitGroups[846])
set udg_UnitGroups[846] = null
endfunction
//===========================================================================
function InitTrig_Global_hex takes nothing returns nothing
set gg_trg_Global_hex = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Global_hex, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Global_hex, Condition( function Trig_Global_hex_Conditions ) )
call TriggerAddAction( gg_trg_Global_hex, function Trig_Global_hex_Actions )
endfunction
function Trig_bottle_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'Awfb' ) ) then
return false
endif
return true
endfunction
function Trig_bottle_Actions takes nothing returns nothing
call SetUnitLifePercentBJ( GetSpellAbilityUnit(), 100 )
endfunction
//===========================================================================
function InitTrig_bottle takes nothing returns nothing
set gg_trg_bottle = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_bottle, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_bottle, Condition( function Trig_bottle_Conditions ) )
call TriggerAddAction( gg_trg_bottle, function Trig_bottle_Actions )
endfunction
function Trig_Tail_Bomb_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A079' ) ) then
return false
endif
return true
endfunction
function Trig_Tail_Bomb_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u00I', Player(PLAYER_NEUTRAL_PASSIVE), PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), 200.00, AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()), GetSpellTargetLoc())), bj_UNIT_FACING )
call KillUnit( GetLastCreatedUnit() )
endfunction
//===========================================================================
function InitTrig_Tail_Bomb takes nothing returns nothing
set gg_trg_Tail_Bomb = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tail_Bomb, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
call TriggerAddCondition( gg_trg_Tail_Bomb, Condition( function Trig_Tail_Bomb_Conditions ) )
call TriggerAddAction( gg_trg_Tail_Bomb, function Trig_Tail_Bomb_Actions )
endfunction
function Trig_Tail_Bomb_two_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A079' ) ) then
return false
endif
return true
endfunction
function Trig_Tail_Bomb_two_Func001C takes nothing returns boolean
if ( not ( udg_TB_LoopIndex[1] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Tail_Bomb_two_Actions takes nothing returns nothing
if ( Trig_Tail_Bomb_two_Func001C() ) then
call EnableTrigger( gg_trg_Tail_Bomb_move )
else
endif
set udg_TB_LoopIndex[1] = ( udg_TB_LoopIndex[1] + 1 )
set udg_TB_LoopIndex[2] = ( udg_TB_LoopIndex[2] + 1 )
set udg_TB_Angle[udg_TB_LoopIndex[2]] = AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()), GetSpellTargetLoc())
// -----------------------------------------------------------------------------------------------
set udg_TB_Caster[udg_TB_LoopIndex[2]] = GetSpellAbilityUnit()
set udg_TB_LeakPoint[0] = PolarProjectionBJ(GetUnitLoc(udg_TB_Caster[udg_TB_LoopIndex[2]]), 100.00, GetUnitFacing(udg_TB_Caster[udg_TB_LoopIndex[2]]))
set udg_TB_LeakPoint[1] = PolarProjectionBJ(GetUnitLoc(udg_TB_Caster[udg_TB_LoopIndex[2]]), 500.00, GetUnitFacing(udg_TB_Caster[udg_TB_LoopIndex[2]]))
set udg_TB_LeakPoint[2] = PolarProjectionBJ(udg_TB_LeakPoint[0], 200.00, udg_TB_Angle[udg_TB_LoopIndex[2]])
set udg_TB_Speed[udg_TB_LoopIndex[2]] = 110.00
// Lenght of the Fire lane
set udg_TB_MaxDistance[udg_TB_LoopIndex[2]] = ( 1350.00 + ( 50.00 * I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(), udg_TB_Caster[udg_TB_LoopIndex[2]])) ) )
// begin Fire lane (do not touch)
set udg_TB_CurDistance[udg_TB_LoopIndex[2]] = 0.00
set udg_TB_Active[udg_TB_LoopIndex[2]] = true
call CreateNUnitsAtLoc( 1, 'u014', Player(PLAYER_NEUTRAL_PASSIVE), udg_TB_LeakPoint[0], udg_TB_Angle[udg_TB_LoopIndex[2]] )
set udg_TB_Dummy[udg_TB_LoopIndex[2]] = GetLastCreatedUnit()
call RemoveLocation (udg_TB_LeakPoint[0])
call RemoveLocation (udg_TB_LeakPoint[1])
call RemoveLocation (udg_TB_LeakPoint[2])
endfunction
//===========================================================================
function InitTrig_Tail_Bomb_two takes nothing returns nothing
set gg_trg_Tail_Bomb_two = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tail_Bomb_two, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Tail_Bomb_two, Condition( function Trig_Tail_Bomb_two_Conditions ) )
call TriggerAddAction( gg_trg_Tail_Bomb_two, function Trig_Tail_Bomb_two_Actions )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func014A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001001001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001001002 takes nothing returns boolean
return ( IsUnitAlly(GetFilterUnit(), GetOwningPlayer(udg_TB_Caster[udg_TB_LoopIndex[3]])) == false )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001001001(), Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001001002() )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001002001 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001002001(), Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001002002() )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001001(), Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001002() )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func019002003002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func019002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Tail_Bomb_move_Func003Func001Func001Func019002003001(), Trig_Tail_Bomb_move_Func003Func001Func001Func019002003002() )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001Func020A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), udg_TB_LeakPoint[0] )
call UnitDamageTargetBJ( udg_TB_Caster[udg_TB_LoopIndex[3]], GetEnumUnit(), 560.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
endfunction
function Trig_Tail_Bomb_move_Func003Func001Func001C takes nothing returns boolean
if ( not ( udg_TB_CurDistance[udg_TB_LoopIndex[3]] < udg_TB_MaxDistance[udg_TB_LoopIndex[3]] ) ) then
return false
endif
return true
endfunction
function Trig_Tail_Bomb_move_Func003Func001C takes nothing returns boolean
if ( not ( udg_TB_Active[udg_TB_LoopIndex[3]] == true ) ) then
return false
endif
return true
endfunction
function Trig_Tail_Bomb_move_Func004C takes nothing returns boolean
if ( not ( udg_TB_LoopIndex[1] == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Tail_Bomb_move_Actions takes nothing returns nothing
// DON'T CHANGE SOMETHING BELOW THIS LINE!
// ---------------------------------------------------------------------------------------------------------------------
set udg_TB_LoopIndex[3] = 1
loop
exitwhen udg_TB_LoopIndex[3] > udg_TB_LoopIndex[2]
if ( Trig_Tail_Bomb_move_Func003Func001C() ) then
if ( Trig_Tail_Bomb_move_Func003Func001Func001C() ) then
set udg_TB_LeakPoint[0] = GetUnitLoc(udg_TB_Dummy[udg_TB_LoopIndex[3]])
set udg_TB_LeakPoint[1] = PolarProjectionBJ(udg_TB_LeakPoint[0], udg_TB_Speed[udg_TB_LoopIndex[3]], udg_TB_Angle[udg_TB_LoopIndex[3]])
call CreateNUnitsAtLoc( 1, 'h00J', Player(PLAYER_NEUTRAL_PASSIVE), udg_TB_LeakPoint[0], udg_TB_Angle[udg_TB_LoopIndex[3]] )
call UnitApplyTimedLifeBJ( 0.60, 'Bapl', GetLastCreatedUnit() )
call EnumDestructablesInCircleBJ( 256, udg_TB_LeakPoint[0], function Trig_Tail_Bomb_move_Func003Func001Func001Func014A )
call AddSpecialEffectLocBJ( udg_TB_LeakPoint[0], "war3mapImported\\EarthSmash.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call SetUnitPositionLocFacingBJ( udg_TB_Dummy[udg_TB_LoopIndex[3]], udg_TB_LeakPoint[1], udg_TB_Angle[udg_TB_LoopIndex[3]] )
set udg_TB_CurDistance[udg_TB_LoopIndex[3]] = ( udg_TB_CurDistance[udg_TB_LoopIndex[3]] + udg_TB_Speed[udg_TB_LoopIndex[3]] )
set udg_TB_TempGroup = GetUnitsInRangeOfLocMatching(400.00, udg_TB_LeakPoint[1], Condition(function Trig_Tail_Bomb_move_Func003Func001Func001Func019002003))
call ForGroupBJ( udg_TB_TempGroup, function Trig_Tail_Bomb_move_Func003Func001Func001Func020A )
call DestroyGroup (udg_TB_TempGroup)
call RemoveLocation(udg_TB_LeakPoint[0])
call RemoveLocation(udg_TB_LeakPoint[1])
else
call CreateNUnitsAtLoc( 1, 'h01I', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_TB_Dummy[udg_TB_LoopIndex[3]]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u008', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_TB_Dummy[udg_TB_LoopIndex[3]]), bj_UNIT_FACING )
call SetUnitScalePercent( GetLastCreatedUnit(), 250.00, 250.00, 250.00 )
call UnitApplyTimedLifeBJ( 1.00, 'BTLF', GetLastCreatedUnit() )
call UnitApplyTimedLifeBJ( 0.01, 'BTLF', udg_TB_Dummy[udg_TB_LoopIndex[3]] )
call RemoveUnit( udg_TB_Dummy[udg_TB_LoopIndex[3]] )
set udg_TB_LoopIndex[1] = ( udg_TB_LoopIndex[1] - 1 )
set udg_TB_Active[udg_TB_LoopIndex[3]] = false
endif
else
endif
set udg_TB_LoopIndex[3] = udg_TB_LoopIndex[3] + 1
endloop
if ( Trig_Tail_Bomb_move_Func004C() ) then
set udg_TB_LoopIndex[2] = 0
call DisableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
//===========================================================================
function InitTrig_Tail_Bomb_move takes nothing returns nothing
set gg_trg_Tail_Bomb_move = CreateTrigger( )
call DisableTrigger( gg_trg_Tail_Bomb_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Tail_Bomb_move, 0.06 )
call TriggerAddAction( gg_trg_Tail_Bomb_move, function Trig_Tail_Bomb_move_Actions )
endfunction
function Trig_Tail_Bomb_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A077' ) ) then
return false
endif
return true
endfunction
function Trig_Tail_Bomb_2_Actions takes nothing returns nothing
set udg_Itachi[1612] = GetSpellAbilityUnit()
set udg_PointNew[1000] = GetSpellTargetLoc()
call CreateNUnitsAtLoc( 1, 'u014', GetOwningPlayer(udg_Itachi[1612]), GetUnitLoc(udg_Itachi[1612]), AngleBetweenPoints(GetUnitLoc(udg_Itachi[1612]), GetSpellTargetLoc()) )
set udg_Itachi[1613] = GetLastCreatedUnit()
call SetUnitScalePercent( udg_Itachi[1613], 650.00, 650.00, 650.00 )
call SetUnitPathing( udg_Itachi[1613], false )
call EnableTrigger( gg_trg_Tail_Bomb_2_move )
endfunction
//===========================================================================
function InitTrig_Tail_Bomb_2 takes nothing returns nothing
set gg_trg_Tail_Bomb_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Tail_Bomb_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Tail_Bomb_2, Condition( function Trig_Tail_Bomb_2_Conditions ) )
call TriggerAddAction( gg_trg_Tail_Bomb_2, function Trig_Tail_Bomb_2_Actions )
endfunction
function Trig_Tail_Bomb_2_move_Func007001003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Tail_Bomb_2_move_Func007001003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_Itachi[1612])) == true )
endfunction
function Trig_Tail_Bomb_2_move_Func007001003002002 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Tail_Bomb_2_move_Func007001003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Tail_Bomb_2_move_Func007001003002001(), Trig_Tail_Bomb_2_move_Func007001003002002() )
endfunction
function Trig_Tail_Bomb_2_move_Func007001003 takes nothing returns boolean
return GetBooleanAnd( Trig_Tail_Bomb_2_move_Func007001003001(), Trig_Tail_Bomb_2_move_Func007001003002() )
endfunction
function Trig_Tail_Bomb_2_move_Func007A takes nothing returns nothing
call UnitDamageTargetBJ( udg_Itachi[1612], GetEnumUnit(), 900.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
call SetUnitPositionLoc( GetEnumUnit(), GetUnitLoc(udg_Itachi[1613]) )
endfunction
function Trig_Tail_Bomb_2_move_Func008A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Tail_Bomb_2_move_Func009Func003A takes nothing returns nothing
call CameraSetEQNoiseForPlayer( GetEnumPlayer(), 60.00 )
endfunction
function Trig_Tail_Bomb_2_move_Func009Func013A takes nothing returns nothing
call CameraClearNoiseForPlayer( GetEnumPlayer() )
endfunction
function Trig_Tail_Bomb_2_move_Func009C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(udg_PointNew[1000], GetUnitLoc(udg_Itachi[1613])) <= 220.00 ) ) then
return false
endif
return true
endfunction
function Trig_Tail_Bomb_2_move_Actions takes nothing returns nothing
call SetUnitPathing( udg_Itachi[1613], false )
call SetUnitPositionLoc( udg_Itachi[1613], PolarProjectionBJ(GetUnitLoc(udg_Itachi[1613]), 210.00, AngleBetweenPoints(GetUnitLoc(udg_Itachi[1613]), udg_PointNew[1000])) )
call CreateNUnitsAtLoc( 1, 'h00J', GetOwningPlayer(udg_Itachi[1613]), GetUnitLoc(udg_Itachi[1613]), GetUnitFacing(udg_Itachi[1613]) )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Itachi[1613]), "war3mapImported\\EarthSmash.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(700.00, GetUnitLoc(udg_Itachi[1613]), Condition(function Trig_Tail_Bomb_2_move_Func007001003)), function Trig_Tail_Bomb_2_move_Func007A )
call EnumDestructablesInCircleBJ( 600.00, GetUnitLoc(udg_Itachi[1613]), function Trig_Tail_Bomb_2_move_Func008A )
if ( Trig_Tail_Bomb_2_move_Func009C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call ForForce( GetPlayersAll(), function Trig_Tail_Bomb_2_move_Func009Func003A )
call CreateNUnitsAtLoc( 1, 'h00D', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Itachi[1613]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h00X', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Itachi[1613]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 1.00, 'Bapl', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h00P', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_Itachi[1613]), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 5.00, 'Bapl', GetLastCreatedUnit() )
call UnitDamagePointLoc( udg_Itachi[1612], 0, 1600.00, GetUnitLoc(GetLastCreatedUnit()), 10000.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DEMOLITION )
call RemoveUnit( udg_Itachi[1613] )
call TriggerSleepAction( 5.00 )
call ForForce( GetPlayersAll(), function Trig_Tail_Bomb_2_move_Func009Func013A )
set udg_Itachi[1612] = null
set udg_Itachi[1613] = null
call RemoveLocation( udg_PointNew[1000] )
set udg_PointNew[1000] = null
else
endif
endfunction
//===========================================================================
function InitTrig_Tail_Bomb_2_move takes nothing returns nothing
set gg_trg_Tail_Bomb_2_move = CreateTrigger( )
call DisableTrigger( gg_trg_Tail_Bomb_2_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Tail_Bomb_2_move, 0.06 )
call TriggerAddAction( gg_trg_Tail_Bomb_2_move, function Trig_Tail_Bomb_2_move_Actions )
endfunction
function Trig_Lariat_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03H' ) ) then
return false
endif
return true
endfunction
function Trig_Lariat_Func006C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Bansho_Tenin[15], 'B00N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Lariat_Actions takes nothing returns nothing
set udg_Bansho_Tenin[15] = GetSpellTargetUnit()
call SetUnitTimeScalePercent( gg_unit_Ekgg_0225, 300.00 )
call TriggerSleepAction( 0.03 )
call SetUnitPositionLoc( gg_unit_Ekgg_0225, PolarProjectionBJ(GetUnitLoc(udg_Bansho_Tenin[15]), -100.00, GetUnitFacing(gg_unit_Ekgg_0225)) )
call SetUnitAnimation( gg_unit_Ekgg_0225, "attack" )
if ( Trig_Lariat_Func006C() ) then
call SetUnitTimeScalePercent( gg_unit_Ekgg_0225, 100.00 )
set udg_Bansho_Tenin[15] = null
else
call AddSpecialEffectTargetUnitBJ( "chest", udg_Bansho_Tenin[15], "Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Bansho_Tenin[15], "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "chest", udg_Bansho_Tenin[15], "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Bansho_Tenin[15], "Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call EnableTrigger( gg_trg_Lariat_move )
call TriggerSleepAction( 0.30 )
call DisableTrigger( gg_trg_Lariat_move )
call SetUnitTimeScalePercent( gg_unit_Ekgg_0225, 100.00 )
set udg_Bansho_Tenin[15] = null
endif
endfunction
//===========================================================================
function InitTrig_Lariat takes nothing returns nothing
set gg_trg_Lariat = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Lariat, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Lariat, Condition( function Trig_Lariat_Conditions ) )
call TriggerAddAction( gg_trg_Lariat, function Trig_Lariat_Actions )
endfunction
function Trig_Lariat_move_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_Bansho_Tenin[15], PolarProjectionBJ(GetUnitLoc(udg_Bansho_Tenin[15]), 50.00, AngleBetweenPoints(GetUnitLoc(gg_unit_Ekgg_0225), GetUnitLoc(udg_Bansho_Tenin[15]))) )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Bansho_Tenin[15]), "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Bansho_Tenin[15]), "Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Bansho_Tenin[15]), "Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Lariat_move takes nothing returns nothing
set gg_trg_Lariat_move = CreateTrigger( )
call DisableTrigger( gg_trg_Lariat_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Lariat_move, 0.03 )
call TriggerAddAction( gg_trg_Lariat_move, function Trig_Lariat_move_Actions )
endfunction
function Trig_Six_tail_chakra_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A088', GetTriggerUnit() )
call ModifyHeroStat( bj_HEROSTAT_STR, GetTriggerUnit(), bj_MODIFYMETHOD_ADD, 100 )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Six_tail_chakra takes nothing returns nothing
set gg_trg_Six_tail_chakra = CreateTrigger( )
call TriggerAddAction( gg_trg_Six_tail_chakra, function Trig_Six_tail_chakra_Actions )
endfunction
function Trig_tail_chakra_2_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A088', GetTriggerUnit() )
call ModifyHeroStat( bj_HEROSTAT_STR, GetTriggerUnit(), bj_MODIFYMETHOD_ADD, 100 )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_tail_chakra_2 takes nothing returns nothing
set gg_trg_tail_chakra_2 = CreateTrigger( )
call TriggerRegisterUnitLifeEvent( gg_trg_tail_chakra_2, gg_unit_Ewrd_0200, LESS_THAN, 400.00 )
call TriggerAddAction( gg_trg_tail_chakra_2, function Trig_tail_chakra_2_Actions )
endfunction
function Trig_tail_chakra_3_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A088', GetTriggerUnit() )
call ModifyHeroStat( bj_HEROSTAT_STR, GetTriggerUnit(), bj_MODIFYMETHOD_ADD, 100 )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_tail_chakra_3 takes nothing returns nothing
set gg_trg_tail_chakra_3 = CreateTrigger( )
call TriggerRegisterUnitLifeEvent( gg_trg_tail_chakra_3, gg_unit_Eevi_0201, LESS_THAN, 400.00 )
call TriggerAddAction( gg_trg_tail_chakra_3, function Trig_tail_chakra_3_Actions )
endfunction
function Trig_tail_chakra_4_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A088', GetTriggerUnit() )
call ModifyHeroStat( bj_HEROSTAT_STR, GetTriggerUnit(), bj_MODIFYMETHOD_ADD, 100 )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_tail_chakra_4 takes nothing returns nothing
set gg_trg_tail_chakra_4 = CreateTrigger( )
call TriggerRegisterUnitLifeEvent( gg_trg_tail_chakra_4, gg_unit_Emns_0226, LESS_THAN, 400.00 )
call TriggerAddAction( gg_trg_tail_chakra_4, function Trig_tail_chakra_4_Actions )
endfunction
function Trig_tail_chakra_5_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A088', GetTriggerUnit() )
call ModifyHeroStat( bj_HEROSTAT_STR, GetTriggerUnit(), bj_MODIFYMETHOD_ADD, 100 )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_tail_chakra_5 takes nothing returns nothing
set gg_trg_tail_chakra_5 = CreateTrigger( )
call TriggerRegisterUnitLifeEvent( gg_trg_tail_chakra_5, gg_unit_Ekgg_0225, LESS_THAN, 4000.00 )
call TriggerAddAction( gg_trg_tail_chakra_5, function Trig_tail_chakra_5_Actions )
endfunction
function Trig_tail_chakra_6_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call AddUnitAnimationPropertiesBJ( true, "alternate", GetTriggerUnit() )
call ModifyHeroStat( bj_HEROSTAT_STR, GetTriggerUnit(), bj_MODIFYMETHOD_ADD, 100 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetTriggerUnit(), bj_MODIFYMETHOD_ADD, 100 )
call SetUnitMoveSpeed( GetTriggerUnit(), 512.00 )
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_tail_chakra_6 takes nothing returns nothing
set gg_trg_tail_chakra_6 = CreateTrigger( )
call TriggerRegisterUnitLifeEvent( gg_trg_tail_chakra_6, gg_unit_Ekgg_0225, LESS_THAN, 1000.00 )
call TriggerAddAction( gg_trg_tail_chakra_6, function Trig_tail_chakra_6_Actions )
endfunction
function Trig_tail_dead_Func001C takes nothing returns boolean
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'u00Q' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'u00R' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'u00V' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'u00S' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'u00T' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'u00W' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'u00X' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'u01A' ) ) then
return true
endif
return false
endfunction
function Trig_tail_dead_Conditions takes nothing returns boolean
if ( not Trig_tail_dead_Func001C() ) then
return false
endif
return true
endfunction
function Trig_tail_dead_Func002Func001Func002Func003Func002Func002Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u01A' ) ) then
return false
endif
return true
endfunction
function Trig_tail_dead_Func002Func001Func002Func003Func002Func002Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u00X' ) ) then
return false
endif
return true
endfunction
function Trig_tail_dead_Func002Func001Func002Func003Func002Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u00W' ) ) then
return false
endif
return true
endfunction
function Trig_tail_dead_Func002Func001Func002Func003Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u00T' ) ) then
return false
endif
return true
endfunction
function Trig_tail_dead_Func002Func001Func002Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u00S' ) ) then
return false
endif
return true
endfunction
function Trig_tail_dead_Func002Func001Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u00V' ) ) then
return false
endif
return true
endfunction
function Trig_tail_dead_Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u00R' ) ) then
return false
endif
return true
endfunction
function Trig_tail_dead_Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u00Q' ) ) then
return false
endif
return true
endfunction
function Trig_tail_dead_Actions takes nothing returns nothing
if ( Trig_tail_dead_Func002C() ) then
call UnitAddItemByIdSwapped( 'I609', GetTriggerUnit() )
else
if ( Trig_tail_dead_Func002Func001C() ) then
call UnitAddItemByIdSwapped( 'I605', GetTriggerUnit() )
else
if ( Trig_tail_dead_Func002Func001Func002C() ) then
set udg_Bankai[1000] = true
call UnitAddItemByIdSwapped( 'I60C', GetTriggerUnit() )
else
if ( Trig_tail_dead_Func002Func001Func002Func003C() ) then
call UnitAddItemByIdSwapped( 'I60D', GetTriggerUnit() )
else
if ( Trig_tail_dead_Func002Func001Func002Func003Func002C() ) then
call UnitAddItemByIdSwapped( 'I60A', GetTriggerUnit() )
else
if ( Trig_tail_dead_Func002Func001Func002Func003Func002Func002C() ) then
call UnitAddItemByIdSwapped( 'I60E', GetTriggerUnit() )
else
if ( Trig_tail_dead_Func002Func001Func002Func003Func002Func002Func002C() ) then
call UnitAddItemByIdSwapped( 'I604', GetTriggerUnit() )
else
if ( Trig_tail_dead_Func002Func001Func002Func003Func002Func002Func002Func001C() ) then
call UnitAddItemByIdSwapped( 'I608', GetTriggerUnit() )
else
endif
endif
endif
endif
endif
endif
endif
endif
call RemoveUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_tail_dead takes nothing returns nothing
set gg_trg_tail_dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_tail_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_tail_dead, Condition( function Trig_tail_dead_Conditions ) )
call TriggerAddAction( gg_trg_tail_dead, function Trig_tail_dead_Actions )
endfunction
function Trig_Nine_tail_dead_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'u017' ) ) then
return false
endif
return true
endfunction
function Trig_Nine_tail_dead_Func004Func002002001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'u017' )
endfunction
function Trig_Nine_tail_dead_Func004Func005C takes nothing returns boolean
if ( ( GetOwningPlayer(GetKillingUnitBJ()) == Player(3) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetKillingUnitBJ()) == Player(5) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetKillingUnitBJ()) == Player(6) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetKillingUnitBJ()) == Player(7) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetKillingUnitBJ()) == Player(8) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetKillingUnitBJ()) == Player(9) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetKillingUnitBJ()) == Player(10) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetKillingUnitBJ()) == Player(11) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetKillingUnitBJ()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return true
endif
return false
endfunction
function Trig_Nine_tail_dead_Func004C takes nothing returns boolean
if ( not ( GetHeroLevel(gg_unit_Hpal_0018) == 30 ) ) then
return false
endif
if ( not Trig_Nine_tail_dead_Func004Func005C() ) then
return false
endif
return true
endfunction
function Trig_Nine_tail_dead_Actions takes nothing returns nothing
call RemoveUnit( GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'I606', GetTriggerUnit() )
if ( Trig_Nine_tail_dead_Func004C() ) then
call ShowUnitShow( gg_unit_Hpal_0018 )
call SetUnitPositionLoc( gg_unit_Hpal_0018, GetUnitLoc(GroupPickRandomUnit(GetUnitsInRectMatching(GetEntireMapRect(), Condition(function Trig_Nine_tail_dead_Func004Func002002001001002)))) )
call KillUnit( gg_unit_Hpal_0018 )
else
endif
endfunction
//===========================================================================
function InitTrig_Nine_tail_dead takes nothing returns nothing
set gg_trg_Nine_tail_dead = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Nine_tail_dead, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Nine_tail_dead, Condition( function Trig_Nine_tail_dead_Conditions ) )
call TriggerAddAction( gg_trg_Nine_tail_dead, function Trig_Nine_tail_dead_Actions )
endfunction
function Trig_Ruuysa_spell_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02L' ) ) then
return false
endif
return true
endfunction
function Trig_Ruuysa_spell_Actions takes nothing returns nothing
set udg_Kisame[90] = GetSpellAbilityUnit()
call CreateNUnitsAtLoc( 1, 'u004', GetOwningPlayer(udg_Kisame[90]), GetUnitLoc(udg_Kisame[90]), bj_UNIT_FACING )
set udg_Kisame[91] = GetLastCreatedUnit()
call SetUnitScalePercent( GetLastCreatedUnit(), 200.00, 200.00, 200.00 )
call UnitAddAbilityBJ( 'A02M', GetLastCreatedUnit() )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "stampede", GetSpellTargetLoc() )
set udg_Kisame[90] = null
endfunction
//===========================================================================
function InitTrig_Ruuysa_spell takes nothing returns nothing
set gg_trg_Ruuysa_spell = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ruuysa_spell, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Ruuysa_spell, Condition( function Trig_Ruuysa_spell_Conditions ) )
call TriggerAddAction( gg_trg_Ruuysa_spell, function Trig_Ruuysa_spell_Actions )
endfunction
function Trig_Ruuysa_spell_end_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02L' ) ) then
return false
endif
return true
endfunction
function Trig_Ruuysa_spell_end_Actions takes nothing returns nothing
call RemoveUnit( udg_Kisame[91] )
set udg_Kisame[91] = null
endfunction
//===========================================================================
function InitTrig_Ruuysa_spell_end takes nothing returns nothing
set gg_trg_Ruuysa_spell_end = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ruuysa_spell_end, EVENT_PLAYER_UNIT_SPELL_ENDCAST )
call TriggerAddCondition( gg_trg_Ruuysa_spell_end, Condition( function Trig_Ruuysa_spell_end_Conditions ) )
call TriggerAddAction( gg_trg_Ruuysa_spell_end, function Trig_Ruuysa_spell_end_Actions )
endfunction
function Trig_Rasengan_spell_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A020' ) ) then
return false
endif
return true
endfunction
function Trig_Rasengan_spell_Actions takes nothing returns nothing
set udg_Mo[40] = GetSpellAbilityUnit()
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "war3mapImported\\T_baqixiaoguo.mdx" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Rasengan_spell takes nothing returns nothing
set gg_trg_Rasengan_spell = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rasengan_spell, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Rasengan_spell, Condition( function Trig_Rasengan_spell_Conditions ) )
call TriggerAddAction( gg_trg_Rasengan_spell, function Trig_Rasengan_spell_Actions )
endfunction
function Trig_Rasengan_2_spell_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Mo[40] ) ) then
return false
endif
if ( not ( IsUnitType(GetAttackedUnitBJ(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( UnitHasBuffBJ(GetAttackedUnitBJ(), 'B00N') == false ) ) then
return false
endif
return true
endfunction
function Trig_Rasengan_2_spell_Func004C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Mo[40], 'B00L') == true ) ) then
return false
endif
return true
endfunction
function Trig_Rasengan_2_spell_Actions takes nothing returns nothing
if ( Trig_Rasengan_2_spell_Func004C() ) then
set udg_Mo[41] = GetAttackedUnitBJ()
call UnitDamageTargetBJ( udg_Mo[40], udg_Mo[41], 500.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
call EnableTrigger( gg_trg_Rasengan_move_spell )
call TriggerSleepAction( 0.10 )
call DisableTrigger( gg_trg_Rasengan_move_spell )
call AddSpecialEffectLocBJ( GetUnitLoc(udg_Mo[41]), "war3mapImported\\NewDirtEXNofire.mdx" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call UnitRemoveBuffBJ( 'B00L', udg_Mo[40] )
call RemoveLocation(udg_Ypoint[70])
set udg_Ypoint[70] = null
set udg_Mo[40] = null
set udg_Mo[41] = null
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Rasengan_2_spell takes nothing returns nothing
set gg_trg_Rasengan_2_spell = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Rasengan_2_spell, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Rasengan_2_spell, Condition( function Trig_Rasengan_2_spell_Conditions ) )
call TriggerAddAction( gg_trg_Rasengan_2_spell, function Trig_Rasengan_2_spell_Actions )
endfunction
function Trig_Rasengan_move_spell_Func003A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Rasengan_move_spell_Actions takes nothing returns nothing
set udg_Ypoint[70] = GetUnitLoc(udg_Mo[41])
call SetUnitPositionLoc( udg_Mo[41], PolarProjectionBJ(udg_Ypoint[70], 80.00, AngleBetweenPoints(GetUnitLoc(udg_Mo[40]), udg_Ypoint[70])) )
call EnumDestructablesInCircleBJ( 160.00, udg_Ypoint[70], function Trig_Rasengan_move_spell_Func003A )
call CreateNUnitsAtLoc( 1, 'h00Y', GetOwningPlayer(udg_Mo[40]), udg_Ypoint[70], AngleBetweenPoints(GetUnitLoc(udg_Mo[40]), udg_Ypoint[70]) )
call SetUnitVertexColorBJ( GetLastCreatedUnit(), 35.00, 51.00, 100.00, 0 )
call UnitApplyTimedLifeBJ( 0.90, 'Bapl', GetLastCreatedUnit() )
call AddSpecialEffectLocBJ( udg_Ypoint[70], "Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( udg_Ypoint[70], "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation(udg_Ypoint[70])
endfunction
//===========================================================================
function InitTrig_Rasengan_move_spell takes nothing returns nothing
set gg_trg_Rasengan_move_spell = CreateTrigger( )
call DisableTrigger( gg_trg_Rasengan_move_spell )
call TriggerRegisterTimerEventPeriodic( gg_trg_Rasengan_move_spell, 0.03 )
call TriggerAddAction( gg_trg_Rasengan_move_spell, function Trig_Rasengan_move_spell_Actions )
endfunction
function Trig_BM_Init_Func004002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_BM_Init_Func005A takes nothing returns nothing
call SaveIntegerBJ( 1, 5, GetHandleIdBJ(GetEnumUnit()), udg_BM_Hashtable )
call TriggerRegisterUnitEvent( gg_trg_BM_Damage, GetEnumUnit(), EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BM_Cast, GetEnumUnit(), EVENT_UNIT_SPELL_EFFECT )
endfunction
function Trig_BM_Init_Actions takes nothing returns nothing
call InitHashtableBJ( )
set udg_BM_Hashtable = GetLastCreatedHashtableBJ()
set udg_BM_Loop = 1
loop
exitwhen udg_BM_Loop > 13
call SetPlayerAbilityAvailableBJ( false, 'A06Z', ConvertedPlayer(udg_BM_Loop) )
set udg_BM_Loop = udg_BM_Loop + 1
endloop
set udg_Temp_Group = GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_BM_Init_Func004002002))
call ForGroupBJ( udg_Temp_Group, function Trig_BM_Init_Func005A )
call DestroyGroup(udg_Temp_Group)
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_BM_Init takes nothing returns nothing
set gg_trg_BM_Init = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_BM_Init, 0.00 )
call TriggerAddAction( gg_trg_BM_Init, function Trig_BM_Init_Actions )
endfunction
function Trig_BM_Enter_Func004001 takes nothing returns boolean
return ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_BM_Enter_Func004002 takes nothing returns boolean
return ( LoadIntegerBJ(5, GetHandleIdBJ(GetTriggerUnit()), udg_BM_Hashtable) == 0 )
endfunction
function Trig_BM_Enter_Conditions takes nothing returns boolean
if ( not GetBooleanAnd( Trig_BM_Enter_Func004001(), Trig_BM_Enter_Func004002() ) ) then
return false
endif
return true
endfunction
function Trig_BM_Enter_Func003C takes nothing returns boolean
if ( not ( udg_BM_Integer == 0 ) ) then
return false
endif
return true
endfunction
function Trig_BM_Enter_Actions takes nothing returns nothing
set udg_BM_Enter = GetTransportUnitBJ()
set udg_BM_Integer = LoadIntegerBJ(5, GetHandleIdBJ(GetTriggerUnit()), udg_BM_Hashtable)
if ( Trig_BM_Enter_Func003C() ) then
call SaveIntegerBJ( 1, 5, GetHandleIdBJ(GetTriggerUnit()), udg_BM_Hashtable )
call TriggerRegisterUnitEvent( gg_trg_BM_Damage, udg_BM_Enter, EVENT_UNIT_DAMAGED )
call TriggerRegisterUnitEvent( gg_trg_BM_Cast, udg_BM_Enter, EVENT_UNIT_SPELL_EFFECT )
set udg_BM_Enter = null
else
endif
endfunction
//===========================================================================
function InitTrig_BM_Enter takes nothing returns nothing
set gg_trg_BM_Enter = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_BM_Enter, GetPlayableMapRect() )
call TriggerAddCondition( gg_trg_BM_Enter, Condition( function Trig_BM_Enter_Conditions ) )
call TriggerAddAction( gg_trg_BM_Enter, function Trig_BM_Enter_Actions )
endfunction
function Trig_BM_Cast_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A08B' ) ) then
return false
endif
return true
endfunction
function Trig_BM_Cast_Actions takes nothing returns nothing
set udg_BM_Caster = GetTriggerUnit()
set udg_BM_Duration = 50
call UnitAddAbilityBJ( 'A06Z', udg_BM_Caster )
call GroupAddUnitSimple( udg_BM_Caster, udg_BM_Group )
call SaveIntegerBJ( udg_BM_Duration, StringHashBJ("BM"), GetHandleIdBJ(GetTriggerUnit()), udg_BM_Hashtable )
call EnableTrigger( gg_trg_Loop )
endfunction
//===========================================================================
function InitTrig_BM_Cast takes nothing returns nothing
set gg_trg_BM_Cast = CreateTrigger( )
call TriggerAddCondition( gg_trg_BM_Cast, Condition( function Trig_BM_Cast_Conditions ) )
call TriggerAddAction( gg_trg_BM_Cast, function Trig_BM_Cast_Actions )
endfunction
function Trig_Loop_Func001Func002Func005C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_BM_Group) <= 0 ) ) then
return false
endif
return true
endfunction
function Trig_Loop_Func001Func002C takes nothing returns boolean
if ( not ( udg_BM_Duration > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Loop_Func001A takes nothing returns nothing
set udg_BM_Duration = LoadIntegerBJ(StringHashBJ("BM"), GetHandleIdBJ(GetEnumUnit()), udg_BM_Hashtable)
if ( Trig_Loop_Func001Func002C() ) then
call SaveIntegerBJ( ( udg_BM_Duration - 1 ), StringHashBJ("BM"), GetHandleIdBJ(GetEnumUnit()), udg_BM_Hashtable )
else
call UnitRemoveAbilityBJ( 'A06Z', GetEnumUnit() )
call FlushChildHashtableBJ( GetHandleIdBJ(GetEnumUnit()), udg_BM_Hashtable )
call GroupRemoveUnitSimple( GetEnumUnit(), udg_BM_Group )
call UnitRemoveBuffBJ( 'B01N', GetEnumUnit() )
if ( Trig_Loop_Func001Func002Func005C() ) then
call DisableTrigger( GetTriggeringTrigger() )
else
endif
endif
endfunction
function Trig_Loop_Actions takes nothing returns nothing
call ForGroupBJ( udg_BM_Group, function Trig_Loop_Func001A )
endfunction
//===========================================================================
function InitTrig_Loop takes nothing returns nothing
set gg_trg_Loop = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Loop, 0.10 )
call TriggerAddAction( gg_trg_Loop, function Trig_Loop_Actions )
endfunction
function Trig_BM_Damage_Conditions takes nothing returns boolean
if ( not ( UnitHasBuffBJ(GetTriggerUnit(), 'B01N') == true ) ) then
return false
endif
return true
endfunction
function Trig_BM_Damage_Func003Func001C takes nothing returns boolean
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'Huth' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'H008' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetTriggerUnit()) == 'H01F' ) ) then
return true
endif
return false
endfunction
function Trig_BM_Damage_Func003C takes nothing returns boolean
if ( not Trig_BM_Damage_Func003Func001C() ) then
return false
endif
return true
endfunction
function Trig_BM_Damage_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventDamageSource(), GetEventDamage(), ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
if ( Trig_BM_Damage_Func003C() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetEventDamageSource(), 110.00, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC )
else
endif
call EnableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_BM_Damage takes nothing returns nothing
set gg_trg_BM_Damage = CreateTrigger( )
call TriggerAddCondition( gg_trg_BM_Damage, Condition( function Trig_BM_Damage_Conditions ) )
call TriggerAddAction( gg_trg_BM_Damage, function Trig_BM_Damage_Actions )
endfunction
function Trig_Creep_respawn_Func004C takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_SUMMONED) == false ) ) then
return false
endif
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( IsUnitIllusionBJ(GetDyingUnit()) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetDyingUnit()) != 'nzom' ) ) then
return false
endif
return true
endfunction
function Trig_Creep_respawn_Conditions takes nothing returns boolean
if ( not Trig_Creep_respawn_Func004C() ) then
return false
endif
return true
endfunction
function Trig_Creep_respawn_Actions takes nothing returns nothing
call TriggerSleepAction( 50.00 )
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetTriggerUnit()), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetTriggerUnit()), bj_UNIT_FACING )
call SetUnitManaPercentBJ( GetLastCreatedUnit(), 100 )
endfunction
//===========================================================================
function InitTrig_Creep_respawn takes nothing returns nothing
set gg_trg_Creep_respawn = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_respawn, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Creep_respawn, Condition( function Trig_Creep_respawn_Conditions ) )
call TriggerAddAction( gg_trg_Creep_respawn, function Trig_Creep_respawn_Actions )
endfunction
function Trig_Zombie_respawn_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'nzom' ) ) then
return false
endif
return true
endfunction
function Trig_Zombie_respawn_Actions takes nothing returns nothing
call TriggerSleepAction( 8.00 )
call CreateNUnitsAtLoc( 1, 'nzom', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRandomLocInRect(gg_rct_Training_Sasuke), bj_UNIT_FACING )
call RemoveUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Zombie_respawn takes nothing returns nothing
set gg_trg_Zombie_respawn = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Zombie_respawn, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Zombie_respawn, Condition( function Trig_Zombie_respawn_Conditions ) )
call TriggerAddAction( gg_trg_Zombie_respawn, function Trig_Zombie_respawn_Actions )
endfunction
function Trig_Hide_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00J' ) ) then
return false
endif
return true
endfunction
function Trig_Hide_Func003C takes nothing returns boolean
if ( not ( IsTriggerEnabled(gg_trg_UNHide) == true ) ) then
return false
endif
return true
endfunction
function Trig_Hide_Func001Func003C takes nothing returns boolean
if ( not ( GetHeroLevel(udg_Tobi[10]) == 30 ) ) then
return false
endif
return true
endfunction
function Trig_Hide_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(udg_Tobi[10]) == 'H008' ) ) then
return false
endif
return true
endfunction
function Trig_Hide_Actions takes nothing returns nothing
set udg_Tobi[10] = GetTriggerUnit()
call RemoveUnit( udg_Sexy[2] )
set udg_Sexy[2] = null
call SetUnitPathing( udg_Tobi[10], false )
call UnitAddAbilityBJ( 'A06Y', udg_Tobi[10] )
call SetPlayerAbilityAvailableBJ( false, 'A00P', GetOwningPlayer(udg_Tobi[10]) )
call SetPlayerAbilityAvailableBJ( false, 'ANch', GetOwningPlayer(udg_Tobi[10]) )
call SetPlayerAbilityAvailableBJ( false, 'A0A5', GetOwningPlayer(udg_Tobi[10]) )
call SetPlayerAbilityAvailableBJ( false, 'A0B3', GetOwningPlayer(udg_Tobi[10]) )
call UnitAddAbilityBJ( 'A06X', udg_Tobi[10] )
call UnitAddAbilityBJ( 'A06W', udg_Tobi[10] )
if ( Trig_Hide_Func001C() ) then
call DoNothing( )
else
if ( Trig_Hide_Func001Func003C() ) then
call UnitAddAbilityBJ( 'A035', udg_Tobi[10] )
else
call DoNothing( )
endif
endif
call TriggerRegisterUnitEvent( gg_trg_UNHide2, udg_Tobi[10], EVENT_UNIT_ACQUIRED_TARGET )
call EnableTrigger( gg_trg_UNHide )
call EnableTrigger( gg_trg_UNHide2 )
call EnableTrigger( gg_trg_UNHide3 )
call PolledWait( 11.00 )
if ( Trig_Hide_Func003C() ) then
call CreateNUnitsAtLoc( 1, 'ohun', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_AnozerWorld), bj_UNIT_FACING )
set udg_Sexy[2] = GetLastCreatedUnit()
else
call DoNothing( )
endif
call SetUnitPathing( udg_Tobi[10], true )
call UnitRemoveAbilityBJ( 'A06X', udg_Tobi[10] )
call UnitRemoveAbilityBJ( 'A06W', udg_Tobi[10] )
call UnitRemoveAbilityBJ( 'A035', udg_Tobi[10] )
call SetPlayerAbilityAvailableBJ( true, 'A00P', GetOwningPlayer(udg_Tobi[10]) )
call SetPlayerAbilityAvailableBJ( true, 'ANch', GetOwningPlayer(udg_Tobi[10]) )
call SetPlayerAbilityAvailableBJ( true, 'A0A5', GetOwningPlayer(udg_Tobi[10]) )
call SetPlayerAbilityAvailableBJ( true, 'A0B3', GetOwningPlayer(udg_Tobi[10]) )
call UnitRemoveAbilityBJ( 'A06Y', udg_Tobi[10] )
call DisableTrigger( gg_trg_UNHide )
call DisableTrigger( gg_trg_UNHide2 )
call DisableTrigger( gg_trg_UNHide3 )
endfunction
//===========================================================================
function InitTrig_Hide takes nothing returns nothing
set gg_trg_Hide = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hide, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Hide, Condition( function Trig_Hide_Conditions ) )
call TriggerAddAction( gg_trg_Hide, function Trig_Hide_Actions )
endfunction
function Trig_UNHide2_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( udg_Tobi[10], "holdposition" )
endfunction
//===========================================================================
function InitTrig_UNHide2 takes nothing returns nothing
set gg_trg_UNHide2 = CreateTrigger( )
call DisableTrigger( gg_trg_UNHide2 )
call TriggerAddAction( gg_trg_UNHide2, function Trig_UNHide2_Actions )
endfunction
function Trig_UNHide3_Func003C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Tobi[10], 'B016') == true ) ) then
return false
endif
return true
endfunction
function Trig_UNHide3_Func004C takes nothing returns boolean
if ( not ( UnitHasBuffBJ(udg_Tobi[10], 'B017') == true ) ) then
return false
endif
return true
endfunction
function Trig_UNHide3_Actions takes nothing returns nothing
call UnitRemoveBuffsExBJ( bj_BUFF_POLARITY_NEGATIVE, bj_BUFF_RESIST_EITHER, udg_Tobi[10], true, true )
if ( Trig_UNHide3_Func003C() ) then
call UnitRemoveBuffBJ( 'B016', udg_Tobi[10] )
else
endif
if ( Trig_UNHide3_Func004C() ) then
call UnitRemoveBuffBJ( 'B017', udg_Tobi[10] )
else
endif
endfunction
//===========================================================================
function InitTrig_UNHide3 takes nothing returns nothing
set gg_trg_UNHide3 = CreateTrigger( )
call DisableTrigger( gg_trg_UNHide3 )
call TriggerRegisterTimerEventPeriodic( gg_trg_UNHide3, 0.01 )
call TriggerAddAction( gg_trg_UNHide3, function Trig_UNHide3_Actions )
endfunction
function Trig_Arrow_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A03M' ) ) then
return false
endif
return true
endfunction
function Trig_Arrow_Func002002003001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) != MAP_CONTROL_USER )
endfunction
function Trig_Arrow_Func002002003002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) != MAP_CONTROL_COMPUTER )
endfunction
function Trig_Arrow_Func002002003002002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) != MAP_CONTROL_CREEP )
endfunction
function Trig_Arrow_Func002002003002002002 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) != MAP_CONTROL_NEUTRAL )
endfunction
function Trig_Arrow_Func002002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Arrow_Func002002003002002001(), Trig_Arrow_Func002002003002002002() )
endfunction
function Trig_Arrow_Func002002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Arrow_Func002002003002001(), Trig_Arrow_Func002002003002002() )
endfunction
function Trig_Arrow_Func002002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Arrow_Func002002003001(), Trig_Arrow_Func002002003002() )
endfunction
function Trig_Arrow_Actions takes nothing returns nothing
set udg_UnitPoint[45] = GetUnitLoc(gg_unit_Emoo_0317)
set udg_Arrow[0] = GetUnitsInRangeOfLocMatching(1.00, udg_UnitPoint[45], Condition(function Trig_Arrow_Func002002003))
call CreateNUnitsAtLoc( 1, 'n006', GetOwningPlayer(gg_unit_Emoo_0317), udg_UnitPoint[45], GetUnitFacing(gg_unit_Emoo_0317) )
call UnitApplyTimedLifeBJ( 0.90, 'Brai', GetLastCreatedUnit() )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Arrow[0] )
call CreateNUnitsAtLoc( 1, 'n006', GetOwningPlayer(gg_unit_Emoo_0317), udg_UnitPoint[45], ( GetUnitFacing(gg_unit_Emoo_0317) + 8.00 ) )
call UnitApplyTimedLifeBJ( 0.90, 'Brai', GetLastCreatedUnit() )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Arrow[0] )
call CreateNUnitsAtLoc( 1, 'n006', GetOwningPlayer(gg_unit_Emoo_0317), udg_UnitPoint[45], ( GetUnitFacing(gg_unit_Emoo_0317) - 8.00 ) )
call UnitApplyTimedLifeBJ( 0.90, 'Brai', GetLastCreatedUnit() )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Arrow[0] )
call CreateNUnitsAtLoc( 1, 'n006', GetOwningPlayer(gg_unit_Emoo_0317), udg_UnitPoint[45], ( GetUnitFacing(gg_unit_Emoo_0317) + 16.00 ) )
call UnitApplyTimedLifeBJ( 0.90, 'Brai', GetLastCreatedUnit() )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Arrow[0] )
call CreateNUnitsAtLoc( 1, 'n006', GetOwningPlayer(gg_unit_Emoo_0317), udg_UnitPoint[45], ( GetUnitFacing(gg_unit_Emoo_0317) - 16.00 ) )
call UnitApplyTimedLifeBJ( 0.90, 'Brai', GetLastCreatedUnit() )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_Arrow[0] )
call RemoveLocation( udg_UnitPoint[45] )
set udg_UnitPoint[45] = null
call EnableTrigger( gg_trg_Arrow2 )
call PolledWait( 0.76 )
call DisableTrigger( gg_trg_Arrow2 )
call DestroyGroup (udg_Arrow[0])
set udg_Arrow[0] = null
endfunction
//===========================================================================
function InitTrig_Arrow takes nothing returns nothing
set gg_trg_Arrow = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Arrow, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Arrow, Condition( function Trig_Arrow_Conditions ) )
call TriggerAddAction( gg_trg_Arrow, function Trig_Arrow_Actions )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003001001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Emoo_0317)) == true )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003001002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) == false )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003001 takes nothing returns boolean
return GetBooleanAnd( Trig_Arrow2_Func001Func004Func001Func001001001003001001(), Trig_Arrow2_Func001Func004Func001Func001001001003001002() )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003002002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003002002002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_FLYING) == false )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003002002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003002002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Arrow2_Func001Func004Func001Func001001001003002002002001(), Trig_Arrow2_Func001Func004Func001Func001001001003002002002002() )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Arrow2_Func001Func004Func001Func001001001003002002001(), Trig_Arrow2_Func001Func004Func001Func001001001003002002002() )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Arrow2_Func001Func004Func001Func001001001003002001(), Trig_Arrow2_Func001Func004Func001Func001001001003002002() )
endfunction
function Trig_Arrow2_Func001Func004Func001Func001001001003 takes nothing returns boolean
return GetBooleanAnd( Trig_Arrow2_Func001Func004Func001Func001001001003001(), Trig_Arrow2_Func001Func004Func001Func001001001003002() )
endfunction
function Trig_Arrow2_Func001Func004Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRangeOfLocMatching(60.00, udg_UnitPoint[46], Condition(function Trig_Arrow2_Func001Func004Func001Func001001001003))) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Arrow2_Func001Func004C takes nothing returns boolean
if ( not Trig_Arrow2_Func001Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Arrow2_Func001A takes nothing returns nothing
set udg_UnitPoint[46] = GetUnitLoc(GetEnumUnit())
set udg_UnitPoint[47] = PolarProjectionBJ(udg_UnitPoint[46], 32.00, GetUnitFacing(GetEnumUnit()))
call SetUnitPositionLoc( GetEnumUnit(), udg_UnitPoint[47] )
if ( Trig_Arrow2_Func001Func004C() ) then
call KillUnit( GetEnumUnit() )
else
call DoNothing( )
endif
call RemoveLocation( udg_UnitPoint[46] )
set udg_UnitPoint[46] = null
call RemoveLocation( udg_UnitPoint[47] )
set udg_UnitPoint[47] = null
endfunction
function Trig_Arrow2_Actions takes nothing returns nothing
call ForGroupBJ( udg_Arrow[0], function Trig_Arrow2_Func001A )
endfunction
//===========================================================================
function InitTrig_Arrow2 takes nothing returns nothing
set gg_trg_Arrow2 = CreateTrigger( )
call DisableTrigger( gg_trg_Arrow2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Arrow2, 0.02 )
call TriggerAddAction( gg_trg_Arrow2, function Trig_Arrow2_Actions )
endfunction
function Trig_Shuriken_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A07J' ) ) then
return false
endif
return true
endfunction
function Trig_Shuriken_Actions takes nothing returns nothing
set udg_UnitPoint[52] = GetUnitLoc(GetSpellAbilityUnit())
call CreateNUnitsAtLoc( 1, 'n008', GetOwningPlayer(GetSpellAbilityUnit()), udg_UnitPoint[52], ( GetUnitFacing(GetTriggerUnit()) - 5.00 ) )
call UnitApplyTimedLifeBJ( 0.80, 'BTLF', GetLastCreatedUnit() )
set udg_Beast[304] = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 1, 'n008', GetOwningPlayer(GetSpellAbilityUnit()), udg_UnitPoint[52], ( GetUnitFacing(GetTriggerUnit()) + 5.00 ) )
call UnitApplyTimedLifeBJ( 0.85, 'BTLF', GetLastCreatedUnit() )
set udg_Beast[305] = GetLastCreatedUnit()
call RemoveLocation( udg_UnitPoint[52] )
set udg_UnitPoint[52] = null
call EnableTrigger( gg_trg_Shuriken_damage )
call PolledWait( 0.52 )
call DisableTrigger( gg_trg_Shuriken_damage )
set udg_Beast[304] = null
set udg_Beast[305] = null
endfunction
//===========================================================================
function InitTrig_Shuriken takes nothing returns nothing
set gg_trg_Shuriken = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Shuriken, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Shuriken, Condition( function Trig_Shuriken_Conditions ) )
call TriggerAddAction( gg_trg_Shuriken, function Trig_Shuriken_Actions )
endfunction
function Trig_Shuriken_damage_Func002Func002001002001001003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Emoo_0317)) == true )
endfunction
function Trig_Shuriken_damage_Func002Func002001002001001003002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_FLYING) == false )
endfunction
function Trig_Shuriken_damage_Func002Func002001002001001003002002001 takes nothing returns boolean
return ( IsUnitDeadBJ(GetFilterUnit()) == false )
endfunction
function Trig_Shuriken_damage_Func002Func002001002001001003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Shuriken_damage_Func002Func002001002001001003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Shuriken_damage_Func002Func002001002001001003002002001(), Trig_Shuriken_damage_Func002Func002001002001001003002002002() )
endfunction
function Trig_Shuriken_damage_Func002Func002001002001001003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Shuriken_damage_Func002Func002001002001001003002001(), Trig_Shuriken_damage_Func002Func002001002001001003002002() )
endfunction
function Trig_Shuriken_damage_Func002Func002001002001001003 takes nothing returns boolean
return GetBooleanAnd( Trig_Shuriken_damage_Func002Func002001002001001003001(), Trig_Shuriken_damage_Func002Func002001002001001003002() )
endfunction
function Trig_Shuriken_damage_Func002C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Beast[304]), GetUnitLoc(GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(60.00, GetUnitLoc(udg_Beast[304]), Condition(function Trig_Shuriken_damage_Func002Func002001002001001003))))) <= 60.00 ) ) then
return false
endif
return true
endfunction
function Trig_Shuriken_damage_Func004Func002001002001001003001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Emoo_0317)) == true )
endfunction
function Trig_Shuriken_damage_Func004Func002001002001001003002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_FLYING) == false )
endfunction
function Trig_Shuriken_damage_Func004Func002001002001001003002002001 takes nothing returns boolean
return ( IsUnitDeadBJ(GetFilterUnit()) == false )
endfunction
function Trig_Shuriken_damage_Func004Func002001002001001003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Shuriken_damage_Func004Func002001002001001003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Shuriken_damage_Func004Func002001002001001003002002001(), Trig_Shuriken_damage_Func004Func002001002001001003002002002() )
endfunction
function Trig_Shuriken_damage_Func004Func002001002001001003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Shuriken_damage_Func004Func002001002001001003002001(), Trig_Shuriken_damage_Func004Func002001002001001003002002() )
endfunction
function Trig_Shuriken_damage_Func004Func002001002001001003 takes nothing returns boolean
return GetBooleanAnd( Trig_Shuriken_damage_Func004Func002001002001001003001(), Trig_Shuriken_damage_Func004Func002001002001001003002() )
endfunction
function Trig_Shuriken_damage_Func004C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(GetUnitLoc(udg_Beast[305]), GetUnitLoc(GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(60.00, GetUnitLoc(udg_Beast[305]), Condition(function Trig_Shuriken_damage_Func004Func002001002001001003))))) <= 60.00 ) ) then
return false
endif
return true
endfunction
function Trig_Shuriken_damage_Actions takes nothing returns nothing
set udg_UnitPoint[48] = GetUnitLoc(udg_Beast[304])
set udg_UnitPoint[49] = PolarProjectionBJ(udg_UnitPoint[48], 17.00, GetUnitFacing(udg_Beast[304]))
call SetUnitPositionLoc( udg_Beast[304], udg_UnitPoint[49] )
if ( Trig_Shuriken_damage_Func002C() ) then
call KillUnit( udg_Beast[304] )
else
endif
call RemoveLocation( udg_UnitPoint[48] )
set udg_UnitPoint[48] = null
call RemoveLocation( udg_UnitPoint[49] )
set udg_UnitPoint[49] = null
set udg_UnitPoint[50] = GetUnitLoc(udg_Beast[305])
set udg_UnitPoint[51] = PolarProjectionBJ(udg_UnitPoint[50], 17.00, GetUnitFacing(udg_Beast[305]))
call SetUnitPositionLoc( udg_Beast[305], udg_UnitPoint[51] )
if ( Trig_Shuriken_damage_Func004C() ) then
call KillUnit( udg_Beast[305] )
else
endif
call RemoveLocation( udg_UnitPoint[50] )
set udg_UnitPoint[50] = null
call RemoveLocation( udg_UnitPoint[51] )
set udg_UnitPoint[51] = null
endfunction
//===========================================================================
function InitTrig_Shuriken_damage takes nothing returns nothing
set gg_trg_Shuriken_damage = CreateTrigger( )
call DisableTrigger( gg_trg_Shuriken_damage )
call TriggerRegisterTimerEventPeriodic( gg_trg_Shuriken_damage, 0.01 )
call TriggerAddAction( gg_trg_Shuriken_damage, function Trig_Shuriken_damage_Actions )
endfunction
function Trig_Shuriken_Die_Func001Func001002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Shuriken_Die_Func001Func001002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(gg_unit_Emoo_0317)) == true )
endfunction
function Trig_Shuriken_Die_Func001Func001002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Shuriken_Die_Func001Func001002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Shuriken_Die_Func001Func001002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Shuriken_Die_Func001Func001002003002002001001(), Trig_Shuriken_Die_Func001Func001002003002002001002() )
endfunction
function Trig_Shuriken_Die_Func001Func001002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Shuriken_Die_Func001Func001002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Shuriken_Die_Func001Func001002003002002001(), Trig_Shuriken_Die_Func001Func001002003002002002() )
endfunction
function Trig_Shuriken_Die_Func001Func001002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Shuriken_Die_Func001Func001002003002001(), Trig_Shuriken_Die_Func001Func001002003002002() )
endfunction
function Trig_Shuriken_Die_Func001Func001002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Shuriken_Die_Func001Func001002003001(), Trig_Shuriken_Die_Func001Func001002003002() )
endfunction
function Trig_Shuriken_Die_Func001Func002C takes nothing returns boolean
if ( ( GetDyingUnit() == udg_Beast[304] ) ) then
return true
endif
if ( ( GetDyingUnit() == udg_Beast[305] ) ) then
return true
endif
return false
endfunction
function Trig_Shuriken_Die_Func001Func003Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07J', gg_unit_Emoo_0317) == 1 )
endfunction
function Trig_Shuriken_Die_Func001Func003Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07J', gg_unit_Emoo_0317) == 2 )
endfunction
function Trig_Shuriken_Die_Func001Func003Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07J', gg_unit_Emoo_0317) == 3 )
endfunction
function Trig_Shuriken_Die_Func001Func003Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A07J', gg_unit_Emoo_0317) == 4 )
endfunction
function Trig_Shuriken_Die_Func001Func003A takes nothing returns nothing
call IssueTargetOrderBJ( gg_unit_u004_0538, "slow", GetEnumUnit() )
if ( Trig_Shuriken_Die_Func001Func003Func002001() ) then
call UnitDamageTargetBJ( gg_unit_Emoo_0317, GetEnumUnit(), 80.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Shuriken_Die_Func001Func003Func003001() ) then
call UnitDamageTargetBJ( gg_unit_Emoo_0317, GetEnumUnit(), 100.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Shuriken_Die_Func001Func003Func004001() ) then
call UnitDamageTargetBJ( gg_unit_Emoo_0317, GetEnumUnit(), 120.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Shuriken_Die_Func001Func003Func005001() ) then
call UnitDamageTargetBJ( gg_unit_Emoo_0317, GetEnumUnit(), 140.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
call AddSpecialEffectTargetUnitBJ( "chest", GetEnumUnit(), "Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
endfunction
function Trig_Shuriken_Die_Func001C takes nothing returns boolean
if ( not Trig_Shuriken_Die_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Shuriken_Die_Actions takes nothing returns nothing
if ( Trig_Shuriken_Die_Func001C() ) then
set udg_aGroups[14] = GetUnitsInRangeOfLocMatching(60.00, GetUnitLoc(GetDyingUnit()), Condition(function Trig_Shuriken_Die_Func001Func001002003))
call ForGroupBJ( udg_aGroups[14], function Trig_Shuriken_Die_Func001Func003A )
call DestroyGroup (udg_aGroups[14])
set udg_aGroups[14] = null
call RemoveUnit( GetDyingUnit() )
else
endif
endfunction
//===========================================================================
function InitTrig_Shuriken_Die takes nothing returns nothing
set gg_trg_Shuriken_Die = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Shuriken_Die, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Shuriken_Die, function Trig_Shuriken_Die_Actions )
endfunction
function Trig_Konaha_leg_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02C' ) ) then
return false
endif
return true
endfunction
function Trig_Konaha_leg_Func009001 takes nothing returns boolean
return ( DistanceBetweenPoints(GetUnitLoc(udg_gai[364]), udg_Zpoint[7]) <= 140.00 )
endfunction
function Trig_Konaha_leg_Func015002003001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_STRUCTURE) == false )
endfunction
function Trig_Konaha_leg_Func015002003002001 takes nothing returns boolean
return ( IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(udg_gai[364])) == true )
endfunction
function Trig_Konaha_leg_Func015002003002002001001 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h00M_0196 )
endfunction
function Trig_Konaha_leg_Func015002003002002001002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Konaha_leg_Func015002003002002001 takes nothing returns boolean
return GetBooleanAnd( Trig_Konaha_leg_Func015002003002002001001(), Trig_Konaha_leg_Func015002003002002001002() )
endfunction
function Trig_Konaha_leg_Func015002003002002002 takes nothing returns boolean
return ( UnitHasBuffBJ(GetFilterUnit(), 'B00N') == false )
endfunction
function Trig_Konaha_leg_Func015002003002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Konaha_leg_Func015002003002002001(), Trig_Konaha_leg_Func015002003002002002() )
endfunction
function Trig_Konaha_leg_Func015002003002 takes nothing returns boolean
return GetBooleanAnd( Trig_Konaha_leg_Func015002003002001(), Trig_Konaha_leg_Func015002003002002() )
endfunction
function Trig_Konaha_leg_Func015002003 takes nothing returns boolean
return GetBooleanAnd( Trig_Konaha_leg_Func015002003001(), Trig_Konaha_leg_Func015002003002() )
endfunction
function Trig_Konaha_leg_Func016Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02C', udg_gai[364]) == 1 )
endfunction
function Trig_Konaha_leg_Func016Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02C', udg_gai[364]) == 2 )
endfunction
function Trig_Konaha_leg_Func016Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02C', udg_gai[364]) == 3 )
endfunction
function Trig_Konaha_leg_Func016Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A02C', udg_gai[364]) == 4 )
endfunction
function Trig_Konaha_leg_Func016A takes nothing returns nothing
if ( Trig_Konaha_leg_Func016Func001001() ) then
call UnitDamageTargetBJ( udg_gai[364], GetEnumUnit(), 140.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Konaha_leg_Func016Func002001() ) then
call UnitDamageTargetBJ( udg_gai[364], GetEnumUnit(), 230.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Konaha_leg_Func016Func003001() ) then
call UnitDamageTargetBJ( udg_gai[364], GetEnumUnit(), 290.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
if ( Trig_Konaha_leg_Func016Func004001() ) then
call UnitDamageTargetBJ( udg_gai[364], GetEnumUnit(), 399.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
else
call DoNothing( )
endif
endfunction
function Trig_Konaha_leg_Actions takes nothing returns nothing
set udg_gai[364] = GetSpellAbilityUnit()
set udg_gai[365] = GetSpellTargetUnit()
set udg_Zpoint[6] = GetUnitLoc(GetSpellAbilityUnit())
set udg_Zpoint[7] = GetUnitLoc(GetSpellTargetUnit())
call TriggerSleepAction( 0.02 )
call SetUnitAnimationByIndex(udg_gai[364],4)
call EnableTrigger( gg_trg_Konaha_leg_move )
call SetUnitPathing( udg_gai[364], false )
loop
exitwhen ( Trig_Konaha_leg_Func009001() )
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10))
endloop
call DisableTrigger( gg_trg_Konaha_leg_move )
call SetUnitPathing( udg_gai[364], true )
call SetUnitAnimation( udg_gai[364], "attack walk stand spin" )
call AddSpecialEffectLocBJ( udg_Zpoint[7], "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
set udg_aGroups[9] = GetUnitsInRangeOfLocMatching(400.00, udg_Zpoint[7], Condition(function Trig_Konaha_leg_Func015002003))
call ForGroupBJ( udg_aGroups[9], function Trig_Konaha_leg_Func016A )
call EnableTrigger( gg_trg_Konaha_leg_move_2 )
call TriggerSleepAction( 0.05 )
call DisableTrigger( gg_trg_Konaha_leg_move_2 )
call SetUnitAnimation( udg_gai[364], "stand" )
set udg_gai[364] = null
set udg_gai[365] = null
call DestroyGroup (udg_aGroups[9])
set udg_aGroups[9] = null
call RemoveLocation(udg_Zpoint[6])
set udg_Zpoint[6] = null
call RemoveLocation(udg_Zpoint[7])
set udg_Zpoint[7] = null
endfunction
//===========================================================================
function InitTrig_Konaha_leg takes nothing returns nothing
set gg_trg_Konaha_leg = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Konaha_leg, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Konaha_leg, Condition( function Trig_Konaha_leg_Conditions ) )
call TriggerAddAction( gg_trg_Konaha_leg, function Trig_Konaha_leg_Actions )
endfunction
function Trig_Konaha_leg_move_Actions takes nothing returns nothing
call SetUnitPositionLoc( udg_gai[364], PolarProjectionBJ(GetUnitLoc(udg_gai[364]), 20.00, AngleBetweenPoints(GetUnitLoc(udg_gai[364]), udg_Zpoint[7])) )
endfunction
//===========================================================================
function InitTrig_Konaha_leg_move takes nothing returns nothing
set gg_trg_Konaha_leg_move = CreateTrigger( )
call DisableTrigger( gg_trg_Konaha_leg_move )
call TriggerRegisterTimerEventPeriodic( gg_trg_Konaha_leg_move, 0.01 )
call TriggerAddAction( gg_trg_Konaha_leg_move, function Trig_Konaha_leg_move_Actions )
endfunction
function Trig_Konaha_leg_move_2_Func001A takes nothing returns nothing
set udg_UnitPoint[4] = GetUnitLoc(GetEnumUnit())
set udg_UnitPoint[5] = PolarProjectionBJ(udg_UnitPoint[4], -84.00, AngleBetweenPoints(udg_UnitPoint[4], udg_Zpoint[7]))
call SetUnitPositionLoc( GetEnumUnit(), udg_UnitPoint[5] )
call AddSpecialEffectLocBJ( udg_UnitPoint[4], "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call DestroyEffect( GetLastCreatedEffectBJ() )
call RemoveLocation( udg_UnitPoint[4] )
set udg_UnitPoint[4] = null
call RemoveLocation( udg_UnitPoint[5] )
set udg_UnitPoint[5] = null
endfunction
function Trig_Konaha_leg_move_2_Actions takes nothing returns nothing
call ForGroupBJ( udg_aGroups[9], function Trig_Konaha_leg_move_2_Func001A )
endfunction
//===========================================================================
function InitTrig_Konaha_leg_move_2 takes nothing returns nothing
set gg_trg_Konaha_leg_move_2 = CreateTrigger( )
call DisableTrigger( gg_trg_Konaha_leg_move_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Konaha_leg_move_2, 0.03 )
call TriggerAddAction( gg_trg_Konaha_leg_move_2, function Trig_Konaha_leg_move_2_Actions )
endfunction
function Trig_Amateras_3_Actions takes nothing returns nothing
call IssueTargetOrderBJ( GroupPickRandomUnit(GetUnitsOfTypeIdAll('u006')), "acidbomb", GroupPickRandomUnit(GetUnitsInRangeOfLocAll(150.00, GetUnitLoc(GroupPickRandomUnit(GetUnitsOfTypeIdAll('u006'))))) )
endfunction
//===========================================================================
function InitTrig_Amateras_3 takes nothing returns nothing
set gg_trg_Amateras_3 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Amateras_3, 0.10 )
call TriggerAddAction( gg_trg_Amateras_3, function Trig_Amateras_3_Actions )
endfunction
function Trig_Barah_DIe_Conditions takes nothing returns boolean
if ( not ( GetTriggerUnit() == udg_Hero2[86] ) ) then
return false
endif
return true
endfunction
function Trig_Barah_DIe_Func023001001 takes nothing returns boolean
return ( GetFilterPlayer() == GetOwningPlayer(GetKillingUnitBJ()) )
endfunction
function Trig_Barah_DIe_Actions takes nothing returns nothing
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call UnitAddItemByIdSwapped( 'gold', GetTriggerUnit() )
call RemoveUnit( GetTriggerUnit() )
set udg_Hero2[86] = null
call DestroyTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Barah_DIe takes nothing returns nothing
set gg_trg_Barah_DIe = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Barah_DIe, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Barah_DIe, Condition( function Trig_Barah_DIe_Conditions ) )
call TriggerAddAction( gg_trg_Barah_DIe, function Trig_Barah_DIe_Actions )
endfunction