轻量级bugfix (#351)
- 修复了造成无来源伤害牌的bug - 修复了从处理区获得的牌仍然偏转的bug - 修复了甩不掉新手保护的bug - 优化了移动牌显示
This commit is contained in:
parent
955be51226
commit
b34343317f
|
@ -98,7 +98,7 @@ Item {
|
||||||
c.selectable = false;
|
c.selectable = false;
|
||||||
c.height = c.height / 0.8;
|
c.height = c.height / 0.8;
|
||||||
c.width = c.width / 0.8;
|
c.width = c.width / 0.8;
|
||||||
// c.rotation = 0;
|
c.rotation = 0;
|
||||||
});
|
});
|
||||||
const vanished = [];
|
const vanished = [];
|
||||||
if (result.length < outputs.length) {
|
if (result.length < outputs.length) {
|
||||||
|
|
|
@ -695,7 +695,7 @@ function SetPlayerGameData(pid, data)
|
||||||
local total, win, run = table.unpack(data)
|
local total, win, run = table.unpack(data)
|
||||||
p.player:setGameData(total, win, run)
|
p.player:setGameData(total, win, run)
|
||||||
table.insert(data, 1, pid)
|
table.insert(data, 1, pid)
|
||||||
ClientInstance:notifyUI("UpdateGameData", json.encode(data))
|
ClientInstance:notifyUI("UpdateGameData", data)
|
||||||
end
|
end
|
||||||
|
|
||||||
function FilterMyHandcards()
|
function FilterMyHandcards()
|
||||||
|
|
|
@ -116,7 +116,8 @@ GameEvent.functions[GameEvent.Damage] = function(self)
|
||||||
local damageStruct = table.unpack(self.data)
|
local damageStruct = table.unpack(self.data)
|
||||||
local room = self.room
|
local room = self.room
|
||||||
local logic = room.logic
|
local logic = room.logic
|
||||||
if not damageStruct.chain and logic:damageByCardEffect(true) then
|
|
||||||
|
if not damageStruct.chain and logic:damageByCardEffect(not not damageStruct.from) then
|
||||||
local cardEffectData = logic:getCurrentEvent():findParent(GameEvent.CardEffect)
|
local cardEffectData = logic:getCurrentEvent():findParent(GameEvent.CardEffect)
|
||||||
if cardEffectData then
|
if cardEffectData then
|
||||||
local cardEffectEvent = cardEffectData.data[1]
|
local cardEffectEvent = cardEffectData.data[1]
|
||||||
|
|
|
@ -926,7 +926,7 @@ function Room:notifyMoveCards(players, card_moves, forceVisible)
|
||||||
|
|
||||||
if not (move.moveVisible or forceVisible or containArea(move.toArea, move.to and p.isBuddy and p:isBuddy(move.to))) then
|
if not (move.moveVisible or forceVisible or containArea(move.toArea, move.to and p.isBuddy and p:isBuddy(move.to))) then
|
||||||
for _, info in ipairs(move.moveInfo) do
|
for _, info in ipairs(move.moveInfo) do
|
||||||
if not containArea(info.fromArea, move.from == p.id) then
|
if not containArea(info.fromArea, move.from and p.isBuddy and p:isBuddy(move.from)) then
|
||||||
info.cardId = -1
|
info.cardId = -1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -709,7 +709,7 @@ local lightningSkill = fk.CreateActiveSkill{
|
||||||
}
|
}
|
||||||
|
|
||||||
room:moveCards{
|
room:moveCards{
|
||||||
ids = { effect.cardId },
|
ids = Card:getIdList(effect.card),
|
||||||
toArea = Card.DiscardPile,
|
toArea = Card.DiscardPile,
|
||||||
moveReason = fk.ReasonUse
|
moveReason = fk.ReasonUse
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue