|
地图出现了联机不同步而出错,经过分析,锁定在以下部分:
[jass]local location flyloc=GetUnitLoc(gg_unit_Udre_0186)
local group batgroup=CreateGroup()
local integer i=0
if GetUnitState(gg_unit_Udre_0186,UNIT_STATE_MANA)<100 then
if GetLocalPlayer()==udg_EvilPlayer then
call ClearTextMessages()
call PlaySoundBJ( error )
endif
call DestroyGroup(batgroup)
call RemoveLocation(flyloc)
call DisplayTextToPlayer( udg_EvilPlayer, 0.70, -0.10, "|cffcccc00浣??榄???间?瓒宠?浣??????????r" )
set flyloc=null
set batgroup=null
return
endif
//==================以下是可疑部分==========
call DisableTrigger(GetTriggeringTrigger())
set udg_Boolean7=true
call SetUnitOwner(gg_unit_Udre_0186,Player(PLAYER_NEUTRAL_PASSIVE),false)
loop
exitwhen i>(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_Udre_0186)/190)
call GroupAddUnit(batgroup,CreateUnitAtLoc(Player(10),'ugar',flyloc,GetRandomDirectionDeg()))
set i=i+1
endloop
call KillUnit(gg_unit_Udre_0186)
call SelectGroupForPlayerBJ(batgroup,udg_EvilPlayer)
call DestroyGroup(batgroup)
call RemoveLocation(flyloc)
//=======================================================
call TriggerSleepAction(4.00)
call SetUnitOwner(gg_unit_Udre_0186,Player(10),true)
call TriggerSleepAction(4.00)
call EnableTrigger(gg_trg_BatToDraculaform)
set flyloc=null
set batgroup=null[/jass]
[ 本帖最后由 kook 于 2006-5-27 13:33 编辑 ] |
|