Lmfaocj
Active Member
- Reaction score
- 1
I am using Chainlightning by Lyncor for some reason it cashes randomly.
JASS:
function Trig_MoonKey_Effect_Conditions takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEventDamageSource(), 039;kymn039;) == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 10 ) ) then
return false
endif
return true
endfunction
function Trig_MoonKey_Effect_Actions takes nothing returns nothing
call ChainLightning(GetEventDamageSource(),GetEventDamageSource(),GetTriggerUnit(), "FORK",120.00,3)
call ChainLightning_ColorLast(1,0,1)
endfunction
//===========================================================================
function InitTrig_MoonKey_Effect takes nothing returns nothing
local trigger t= CreateTrigger()
call TriggerAddCondition( t, Condition( function Trig_MoonKey_Effect_Conditions ) )
call TriggerAddAction( t, function Trig_MoonKey_Effect_Actions )
call Damage_RegisterEvent(t)
endfunction