|
楼主 |
发表于 2010-2-4 21:49:15
|
显示全部楼层
function Trig_KAOROU_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A02D' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'h00E' ) ) then
return false
endif
return true
endfunction
function Trig_KAOROU_Actions takes nothing returns nothing
local location kaorouloc = GetUnitLoc(GetTriggerUnit())
call CreateItemLoc( 'I00N', kaorouloc )
call RemoveLocation(kaorouloc)
set kaorouloc = null
endfunction
//===========================================================================
function InitTrig_KAOROU takes nothing returns nothing
set gg_trg_KAOROU = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_KAOROU, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_KAOROU, Condition( function Trig_KAOROU_Conditions ) )
call TriggerAddAction( gg_trg_KAOROU, function Trig_KAOROU_Actions )
endfunction |
|