fix chain bug

This commit is contained in:
notify 2023-03-20 20:28:25 +08:00
parent 16b6800811
commit 44c932981b
4 changed files with 5 additions and 7 deletions

View File

@ -167,6 +167,8 @@ local luoyi = fk.CreateTriggerSkill{
return
end
if data.chain then return end
local c = data.card
return c and c.trueName == "slash" or c.name == "duel"
end,

View File

@ -789,7 +789,7 @@ local iceSwordSkill = fk.CreateTriggerSkill{
attached_equip = "ice_sword",
events = {fk.DamageCaused},
can_trigger = function(self, event, target, player, data)
return target == player and player:hasSkill(self.name) and
return target == player and player:hasSkill(self.name) and (not data.chain) and
data.card and data.card.trueName == "slash" and not data.to:isNude()
end,
on_use = function(self, event, target, player, data)
@ -989,7 +989,7 @@ local kylinBowSkill = fk.CreateTriggerSkill{
events = {fk.DamageCaused},
can_trigger = function(self, event, target, player, data)
local ret = target == player and player:hasSkill(self.name) and
data.card and data.card.trueName == "slash"
data.card and data.card.trueName == "slash" and (not data.chain)
if ret then
---@type ServerPlayer
local to = data.to

View File

@ -622,7 +622,6 @@ Item {
let item = specialCardSkills.itemAt(i);
if (item.checked) {
let ret = item.orig_text;
console.log(ret);
return ret;
}
}

View File

@ -148,15 +148,12 @@ Rectangle {
PropertyAction { target: splash; property: "loading"; value: false }
}
/*
Text {
text: qsTr("Powered by Mogara")
color: "#f39292"
text: "FK联机交流群531553435"
font.pixelSize: 20
anchors.bottom: parent.bottom
anchors.right: parent.right
}
*/
//--------------------Disappear--------------
Behavior on opacity {