function Trig_Kawazu_Kumite_Conditions takes nothing returns boolean
return GetUnitAbilityLevel(GetAttacker(), 'B00G') > 0
endfunction
return GetUnitAbilityLevel(GetAttacker(), 'B00G') > 0
endfunction
function Trig_Kawazu_Kumite_Func001C takes nothing returns boolean
return GetRandomInt(1, 10) <= 3
endfunction
return GetRandomInt(1, 10) <= 3
endfunction
function one takes nothing returns boolean выдает что тут пропустил return
endfunction
endfunction
function Trig_Kawazu_Kumite_Actions takes nothing returns nothing
if ( Trig_Kawazu_Kumite_Func001C() ) then
local unit a = GetAttacker()
local unit b = GetTriggerUnit()
local timer t = CreateTimer()
call AddSpecialEffectTarget("Abilities\\Spells\\Items\\SpellShieldAmulet\\SpellShieldCaster.mdl", b, "body")
call SaveUnitHandle(hash,GetHandleId(t),14,a)
call SaveUnitHandle(hash,GetHandleId(t),15,b)
call TimerStart(t,0.04,true,function one)
call TriggerSleepAction(0.50)
call PauseTimer(t)
call DestroyTimer(t)
call UnitDamageTarget(a,b,150.00 + I2R(GetHeroLevel(a)),false,false,ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS )
call FlushChildHashtable(hash,GetHandleId(t))
set a = null
set b = null
if ( Trig_Kawazu_Kumite_Func001C() ) then
local unit a = GetAttacker()
local unit b = GetTriggerUnit()
local timer t = CreateTimer()
call AddSpecialEffectTarget("Abilities\\Spells\\Items\\SpellShieldAmulet\\SpellShieldCaster.mdl", b, "body")
call SaveUnitHandle(hash,GetHandleId(t),14,a)
call SaveUnitHandle(hash,GetHandleId(t),15,b)
call TimerStart(t,0.04,true,function one)
call TriggerSleepAction(0.50)
call PauseTimer(t)
call DestroyTimer(t)
call UnitDamageTarget(a,b,150.00 + I2R(GetHeroLevel(a)),false,false,ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS )
call FlushChildHashtable(hash,GetHandleId(t))
set a = null
set b = null
else
endif
endfunction
===========================================================================
function InitTrig_Kawazu_Kumite takes nothing returns nothing
local trigger t = CreateTrigger( )
local integer index
endfunction
===========================================================================
function InitTrig_Kawazu_Kumite takes nothing returns nothing
local trigger t = CreateTrigger( )
local integer index
set index = 0
loop
call TriggerRegisterPlayerUnitEvent(t, Player(index), EVENT_PLAYER_UNIT_ATTACKED, null)
loop
call TriggerRegisterPlayerUnitEvent(t, Player(index), EVENT_PLAYER_UNIT_ATTACKED, null)
set index = index + 1
exitwhen index == 14
endloop
call TriggerAddCondition(t, Condition( function Trig_Kawazu_Kumite_Conditions ) )
call TriggerAddAction( t, function Trig_Kawazu_Kumite_Actions )
set t = null
endfunction
exitwhen index == 14
endloop
call TriggerAddCondition(t, Condition( function Trig_Kawazu_Kumite_Conditions ) )
call TriggerAddAction( t, function Trig_Kawazu_Kumite_Actions )
set t = null
endfunction
`
ОЖИДАНИЕ РЕКЛАМЫ...
Чтобы оставить комментарий, пожалуйста, войдите на сайт.
Отредактирован deleted_108535
function one takes nothing returns boolean выдает что тут пропустил return
endfunction