function Trig_EHunter02_Conditions takes nothing returns boolean
if ( not ( GetAttacker() == udg_Character ) ) then
return false
endif
return true
endfunction
function HunterT01_Conditions takes nothing returns boolean
if ( not GetBooleanAnd( GetEventDamage() > 0.00, GetEventDamageSource() == udg_Character ) ) then
return false
endif
return true
endfunction
function HunterT01_Actions takes nothing returns nothing
local location Cha = GetUnitLoc(udg_Character)
call DisableTrigger( gg_trg_EHunter03 )
if ( not ( GetRandomInt(1, 100) <= 25 ) ) then
call UnitDamageTargetBJ( udg_DamageDummy01, GetTriggerUnit(), ( 30.00 * I2R(GetUnitAbilityLevelSwapped('A003', udg_Character)) ), ATTACK_TYPE_HERO, DAMAGE_TYPE_NORMAL )
call AddSpecialEffectTargetUnitBJ( "chest", GetTriggerUnit(), "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call CreateNUnitsAtLoc( 1, 'h005', GetOwningPlayer(udg_Character), Cha, bj_UNIT_FACING )
call SetUnitAbilityLevelSwapped( 'A004', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A003', udg_Character) )
call IssueTargetOrderBJ( GetLastCreatedUnit(), "acidbomb", GetTriggerUnit() )
call UnitApplyTimedLifeBJ( 0.30, 'BTLF', GetLastCreatedUnit() )
call SetUnitLifeBJ( udg_Character, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_Character) + ( 10.00 + ( 7.00 * I2R(GetUnitAbilityLevelSwapped('A003', udg_Character)) ) ) ) )
call AddSpecialEffectTargetUnitBJ( "origin", udg_Character, "Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
call RemoveLocation(Cha)
set Cha = null
call TriggerClearActions( GetTriggeringTrigger() )
call TriggerClearConditions( GetTriggeringTrigger() )
call DestroyTrigger( GetTriggeringTrigger() )
set udg_HunterT01 = null
endfunction
function Trig_EHunter02_Actions takes nothing returns nothing
set udg_HunterT01 = CreateTrigger()
set udg_HunterT02 = CreateTrigger()
call EnableTrigger( gg_trg_EHunter03 )
call TriggerRegisterUnitEvent( udg_HunterT01, GetTriggerUnit(), EVENT_UNIT_DAMAGED )
call TriggerAddCondition( udg_HunterT01, Condition( function HunterT01_Conditions ) )
call TriggerAddAction( udg_HunterT01, function HunterT01_Actions )
endfunction
//===========================================================================
function InitTrig_EHunter02 takes nothing returns nothing
set gg_trg_EHunter02 = CreateTrigger( )
call DisableTrigger( gg_trg_EHunter02 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_EHunter02, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_EHunter02, Condition( function Trig_EHunter02_Conditions ) )
call TriggerAddAction( gg_trg_EHunter02, function Trig_EHunter02_Actions )
endfunction
버그가 있으면 시원한데 없어서 찝찝한 그런 느낌?
뭔가 당연히 버그가 있을거같은데 아무이상없으면 아주 찝찝한 느낌인데
그런 느낌이 느껴지는데...
롤잼
평캔임평캔 ㅎ;
스킬 기반 전부 오브잭트 스킬이니 그 명령어들 다 조건에 넣었음헤헿