--附体
if Lua_IsPossession(m_CurrentSelectPet) then
msg = string.format("#H%s处于附体状态,无法进行幻灵操作。",strName2)
PushDebugMessage(msg)
return
end
函数定义:
\Interface\Pet\Pet.lua
function Lua_IsPossession(nIndex)
if nIndex == nil or nIndex == -1 then
return false
end
local _,lid = Pet:GetGUID(nIndex);
local Heti_Guid = DataPool:GetPlayerMission_DataRound(275)
if lid == Heti_Guid then
return true
else
return false
end
end