fix(core): use for-loop copy in _make_result to avoid Array.duplicate type loss

This commit is contained in:
xiaji
2026-06-02 21:22:33 +08:00
parent deeb2088d1
commit 15fbe7ee08

View File

@@ -50,7 +50,10 @@ static func _make_result(type: int, primary_rank: int, is_pure: bool, cards1: Ar
var r := EvaluatedPlay.new()
r.type = type
r.primary_rank = primary_rank
r.cards = cards1.duplicate(false)
var duped: Array[Card] = []
for c in cards1:
duped.append(c)
r.cards = duped
r.is_pure_bomb = is_pure
return r