JASS:
function Trig_useapple_Actions takes nothing returns nothing
call PlaySoundBJ( gg_snd_bite2 )
if GetItemCharges(GetManipulatedItem()) == 0 then
call UnitRemoveItemSwapped( GetManipulatedItem(), GetManipulatingUnit() )
call RemoveItem( GetManipulatedItem() )
endif
endfunction