Moligaloo/QSanguosha — comment on commit cb1fe4b9e6b8db58d3325045671b5488f7f05305
File: lua/ai/smart-ai.lua line 200
By clarkcyt:

我看了一下，总觉得你的target系统似乎并未生效。
我在SmartAI:filterEvent(event, player, data)函数最后打了个断言
elseif event == sgs.CardUsed or event == sgs.CardEffect or event == sgs.GameStart or event == sgs.Death or event == sgs.PhaseChange then
self:updatePlayers()
self:updateRoleTarget()
[b]local target = sgs.target[self.player:getRole()]
if event == sgs.CardUsed then
global_room:writeToConsole(self.player:getGeneralName() .. "" .. " :target is " .. target:getGeneralName())[/b] end

结果发现，在刘禅出杀前的target如下
@jijiang-slash:sgs10
liushan :target is sp_diaochan
fazheng :target is sp_diaochan
zhurong :target is liushan
taishici :target is liushan
yujin :target is sp_diaochan
machao :target is sp_diaochan
shuangxiong :target is liushan
caiwenji :target is liushan
sp_pangde :target is liushan
然而在实际出杀时，刘禅选择的目标是sp_pangde