mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
parent
59c638fa47
commit
4d94ee8a93
|
@ -442,10 +442,12 @@ Item {
|
|||
// id: saveme
|
||||
visible: (root.dead && !root.rest) || root.dying || root.surrendered
|
||||
source: {
|
||||
if (root.dead) {
|
||||
if (root.surrendered) {
|
||||
return SkinBank.DEATH_DIR + "surrender";
|
||||
} else if (root.dead) {
|
||||
return SkinBank.getRoleDeathPic(root.role);
|
||||
}
|
||||
return SkinBank.DEATH_DIR + (root.surrendered ? "surrender" : "saveme")
|
||||
return SkinBank.DEATH_DIR + "saveme";
|
||||
}
|
||||
anchors.centerIn: photoMask
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ end
|
|||
---@param victim ServerPlayer @ 死者
|
||||
---@return string @ 胜者阵营
|
||||
function GameMode:getWinner(victim)
|
||||
if victim.rest > 0 then
|
||||
if not victim.surrendered and victim.rest > 0 then
|
||||
return ""
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user