ai.lua文件里把这一段修改成这样
修改前
function GetMyEnemy (myid)
local result = 0
local type = GetV (V_HOMUNTYPE,myid)
if (type == LIF or type == LIF_H or type == AMISTR or type == AMISTR_H) then
result = GetMyEnemyA (myid)
elseif (type == FILIR or type == FILIR_H or type == VANILMIRTH or type == VANILMIRTH_H) then
result = GetMyEnemyB (myid)
end
return result
end
修改后
function GetMyEnemy (myid)
local result = 0
local type = GetV (V_HOMUNTYPE,myid)
if (type == FILIR or type == FILIR_H or type == LIF or type == LIF_H or type == AMISTR or type == AMISTR_H) then
result = GetMyEnemyA (myid)
elseif (type == VANILMIRTH or type == VANILMIRTH_H) then
result = GetMyEnemyB (myid)
end
return result
end作者: AIR 时间: 2006-5-20 09:56