function TZD takes nothing returns boolean
local trigger t=GetTriggeringTrigger()
local integer S_4=GetHandleId(t)
local unit TD4=QT4(S_4,"Hero")
local real x=QL4(S_4,"x")
local real y=QL4(S_4,"y")
local integer RT4=Q64(S_4,"Level")
local group g=S84()
call UC4(GetOwningPlayer(TD4),4,x,y,400)
call DestroyEffect(QZ4(S_4,"FX1"))
call DestroyEffect(QZ4(S_4,"FX2"))
call DestroyEffect(QZ4(S_4,"FX3"))
call DestroyEffect(QZ4(S_4,"FX4"))
call DestroyEffect(QZ4(S_4,"FX5"))
call DestroyEffect(QZ4(S_4,"FX6"))
call P04(S_4)
call S94(t)
call DestroyEffect(AddSpecialEffect("Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl",x,y))
call DestroyEffect(AddSpecialEffect("effects\\TidalErruption.mdx",x,y))
set GC4=TD4
set Sl=RT4
call GroupEnumUnitsInRange(g,x,y,225,Condition(function WG4))
call ForGroup(g,function TYD)
call S74(g)
set t=null
set TD4=null
return false
endfunction
function TAD takes nothing returns nothing
local unit TD4=GetTriggerUnit()
local location l=GetSpellTargetLoc()
local real x=GetLocationX(l)
local real y=GetLocationY(l)
local trigger t=CreateTrigger()
local integer S_4=GetHandleId(t)
local integer RT4=GetUnitAbilityLevel(TD4,'A136')
local string s=""
local real a
if IsPlayerAlly(GetLocalPlayer(),GetOwningPlayer(TD4))==true then
set s="Objects\\Spawnmodels\\Other\\IllidanFootprint\\IllidanWaterSpawnFootPrint.mdl"
endif
call RemoveLocation(l)
call P54(S_4,"Level",RT4)
call Q74(S_4,"Hero",TD4)
call P24(S_4,"x",x)
call P24(S_4,"y",y)
call P54(S_4,"Level",RT4)
set a=0
call Q84(S_4,"FX1",AddSpecialEffect(s,x+40*Cos(a/ 6*360*bj_DEGTORAD),y+40*Sin(a/ 6*360*bj_DEGTORAD)))
set a=1
call Q84(S_4,"FX2",AddSpecialEffect(s,x+40*Cos(a/ 6*360*bj_DEGTORAD),y+40*Sin(a/ 6*360*bj_DEGTORAD)))
set a=2
call Q84(S_4,"FX3",AddSpecialEffect(s,x+40*Cos(a/ 6*360*bj_DEGTORAD),y+40*Sin(a/ 6*360*bj_DEGTORAD)))
set a=3
call Q84(S_4,"FX4",AddSpecialEffect(s,x+40*Cos(a/ 6*360*bj_DEGTORAD),y+40*Sin(a/ 6*360*bj_DEGTORAD)))
set a=4
call Q84(S_4,"FX5",AddSpecialEffect(s,x+40*Cos(a/ 6*360*bj_DEGTORAD),y+40*Sin(a/ 6*360*bj_DEGTORAD)))
set a=5
call Q84(S_4,"FX6",AddSpecialEffect(s,x+40*Cos(a/ 6*360*bj_DEGTORAD),y+40*Sin(a/ 6*360*bj_DEGTORAD)))
call TriggerRegisterTimerEvent(t,1.6,false)
call TriggerAddCondition(t,Condition(function TZD))
set TD4=null
set t=null
set l=null
endfunction
function TBD takes nothing returns boolean
if GetSpellAbilityId()=='A136' then
call TAD()
endif
return false
endfunction
function DK7 takes nothing returns nothing
local trigger t=CreateTrigger()
call UW4(t,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(t,Condition(function TBD))
set t=null
endfunction
问题就在这几段 - -。 A136是技能ID