//===========================================================================
//Trigger:itemhealthgain
//===========================================================================
function Trig_itemhealthgain_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(GetItemName(UnitItemInSlotBJ(udg_units01[bj_forLoopAIndex],1))=="Dark Elven Blood Forged Guantlets")then
call SetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE,GetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE) * 1.005)
endif
if(GetItemName(UnitItemInSlotBJ(udg_units01[bj_forLoopAIndex],2))=="Dark Elven Blood Forged Guantlets")then
call SetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE,GetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE) * 1.005)
endif
if(GetItemName(UnitItemInSlotBJ(udg_units01[bj_forLoopAIndex],3))=="Dark Elven Blood Forged Guantlets")then
call SetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE,GetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE) * 1.005)
endif
if(GetItemName(UnitItemInSlotBJ(udg_units01[bj_forLoopAIndex],4))=="Dark Elven Blood Forged Guantlets")then
call SetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE,GetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE) * 1.005)
endif
if(GetItemName(UnitItemInSlotBJ(udg_units01[bj_forLoopAIndex],5))=="Dark Elven Blood Forged Guantlets")then
call SetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE,GetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE) * 1.005)
endif
if(GetItemName(UnitItemInSlotBJ(udg_units01[bj_forLoopAIndex],6))=="Dark Elven Blood Forged Guantlets")then
call SetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE,GetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE) * 1.005)
endif
// if(GetItemName(UnitItemInSlotBJ(udg_units01[bj_forLoopAIndex],0))=="Dark Elven Blood Forged Guantlets")then
// call SetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE,GetUnitState(udg_units01[bj_forLoopAIndex],UNIT_STATE_LIFE) * 1.005)
// endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
//===========================================================================