//Define the function
function damageTargetCustom takes unit attacker, unit target, real damage, integer damageType returns nothing
if damageType == 1 then
call UnitDamageTarget(attacker,target,damage,true,false,ATTACK_TYPE_CHAOS,damageType,null)
endif
endfunction
//Doing damage by using the customed function
function run takes nothing returns nothing
call damageTargetCustom(att,TARGET,100.,DAMAGE_TYPE_FIRE)
endfunction
//Modified the damage
function a takes nothing returns nothing
if damageType == 1 then
//increase damage
endif
endfunction
function InitTrig_test takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterUnitEvent( t, TARGET, EVENT_UNIT_DAMAGED )
call TriggerAddCondition(t,Condition(function a))
set t = null
endfunction