mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 03:32:34 +08:00
Update pindian.lua (#269)
This commit is contained in:
parent
30b363ef77
commit
3c33bcff77
|
@ -47,7 +47,23 @@ GameEvent.functions[GameEvent.Pindian] = function(self)
|
|||
})
|
||||
end
|
||||
for _, to in ipairs(pindianData.tos) do
|
||||
if not (pindianData.results[to.id] and pindianData.results[to.id].toCard) then
|
||||
if pindianData.results[to.id] and pindianData.results[to.id].toCard then
|
||||
local _pindianCard = pindianData.results[to.id].toCard
|
||||
local pindianCard = _pindianCard:clone(_pindianCard.suit, _pindianCard.number)
|
||||
pindianCard:addSubcard(_pindianCard.id)
|
||||
|
||||
pindianData.results[to.id].toCard = pindianCard
|
||||
|
||||
table.insert(moveInfos, {
|
||||
ids = { _pindianCard.id },
|
||||
from = to.id,
|
||||
fromArea = room:getCardArea(_pindianCard.id),
|
||||
toArea = Card.Processing,
|
||||
moveReason = fk.ReasonPut,
|
||||
skillName = pindianData.reason,
|
||||
moveVisible = true,
|
||||
})
|
||||
else
|
||||
table.insert(targets, to)
|
||||
to.request_data = json.encode(data)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user