function Trig_Amani_Punisher_Loot_Conditions takes nothing returns boolean
return GetItemTypeId(GetManipulatedItem()) == 'I000'
endfunction
function Trig_Amani_Punisher_Loot_Actions takes nothing returns nothing
local unit owner = GetTriggerUnit()
set udg_Spellpower[GetConvertedPlayerId(GetOwningPlayer(owner))] = ( udg_Spellpower[GetConvertedPlayerId(GetOwningPlayer(owner))] + 217.00 )
endfunction
//===========================================================================
function InitTrig_Amani_Punisher_Loot takes nothing returns nothing
set gg_trg_Amani_Punisher_Loot = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Amani_Punisher_Loot, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Amani_Punisher_Loot, Condition( function Trig_Amani_Punisher_Loot_Conditions ) )
call TriggerAddAction( gg_trg_Amani_Punisher_Loot, function Trig_Amani_Punisher_Loot_Actions )
endfunction