Code
function Trig_Finished_Conditions takes nothing returns boolean
return GetSpellAbilityId()=='A002'
endfunction
function Trig_Finished_Actions takes nothing returns nothing
local unit t=GetSpellTargetUnit()
local real dmg=GetUnitState(t,UNIT_STATE_LIFE)-GetWidgetLife(t)
call UnitDamageTarget(GetTriggerUnit(),t,dmg,true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_AXE_MEDIUM_CHOP)
call TextTag(R2I(dmg),t)
set t=null
endfunction
Добавлено (20-03-2011, 11:44)
---------------------------------------------
Всегда выдает 0