function Trig_Go_to_Base_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetEnteringUnit())==Player(0))and(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))!=null
endfunction
改成
function Trig_Go_to_Base_Conditions takes nothing returns boolean
local integer i=0
loop
exitwhen i==2
return((GetOwningPlayer(GetEnteringUnit())==Player(0))and(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))!=null
set i=i+1
endloop
endfunction
return((GetOwningPlayer(GetEnteringUnit())==Player(0))and(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))!=null
endfunction
改成
function Trig_Go_to_Base_Conditions takes nothing returns boolean
local integer i=0
loop
exitwhen i==2
return((GetOwningPlayer(GetEnteringUnit())==Player(0))and(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))!=null
set i=i+1
endloop
endfunction
