[jass]
function Actions takes nothing returns nothing
local integer i=1
if GetPlayerSlotState(GetEnumPlayer()) == PLAYER_SLOT_STATE_LEFT then
call UnitRemoveAbility(udg_Hero[GetConvertedPlayerId(ConvertedPlayer(udg_Sorted))],'A001')
set i=i+1
endif
endfunction
[/jass]