Fixbug (#104)
修了觉醒技图标显示反的bug 修了流离报错bug --------- Co-authored-by: RalphRad <121930519+RalphRad@users.noreply.github.com>
This commit is contained in:
parent
6d88556bae
commit
c962f71c8f
|
@ -997,6 +997,7 @@ function Room:askForChooseCardAndPlayers(player, targets, minNum, maxNum, patter
|
||||||
if maxNum < 1 then
|
if maxNum < 1 then
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
|
pattern = pattern or ".",
|
||||||
|
|
||||||
local pcards = table.filter(player:getCardIds({ Player.Hand, Player.Equip }), function(id)
|
local pcards = table.filter(player:getCardIds({ Player.Hand, Player.Equip }), function(id)
|
||||||
local c = Fk:getCardById(id)
|
local c = Fk:getCardById(id)
|
||||||
|
@ -1008,7 +1009,7 @@ function Room:askForChooseCardAndPlayers(player, targets, minNum, maxNum, patter
|
||||||
targets = targets,
|
targets = targets,
|
||||||
num = maxNum,
|
num = maxNum,
|
||||||
min_num = minNum,
|
min_num = minNum,
|
||||||
pattern = pattern or ".",
|
pattern = pattern,
|
||||||
skillName = skillName
|
skillName = skillName
|
||||||
}
|
}
|
||||||
local _, ret = self:askForUseActiveSkill(player, "choose_players_skill", prompt or "", true, data)
|
local _, ret = self:askForUseActiveSkill(player, "choose_players_skill", prompt or "", true, data)
|
||||||
|
|
|
@ -50,7 +50,7 @@ Item {
|
||||||
onUsedtimesChanged: {
|
onUsedtimesChanged: {
|
||||||
x.visible = false;
|
x.visible = false;
|
||||||
if (skilltype === "wake") {
|
if (skilltype === "wake") {
|
||||||
visible = (usedtimes < 1);
|
visible = (usedtimes > 0);
|
||||||
} else if (skilltype === "limit") {
|
} else if (skilltype === "limit") {
|
||||||
visible = true;
|
visible = true;
|
||||||
if (usedtimes >= 1) {
|
if (usedtimes >= 1) {
|
||||||
|
|
Loading…
Reference in New Issue