修正可吃牌为空的情况下, 机器人依然觉得可以吃牌的bug
This commit is contained in:
parent
ffe4d17057
commit
c6ed918d5b
@ -209,7 +209,10 @@ let assistantUtil = {
|
|||||||
cardPoints.sort((a, b) => a - b)
|
cardPoints.sort((a, b) => a - b)
|
||||||
|
|
||||||
let eatPairs = seekPairWithSpecial(pointMap, eatCard)
|
let eatPairs = seekPairWithSpecial(pointMap, eatCard)
|
||||||
let eatSecs = seekSeq(pointMap, cardPoints, eatCard)
|
let eatSecs: Card[] = []
|
||||||
|
if (eatCard) {
|
||||||
|
eatSecs = seekSeq(pointMap, cardPoints, eatCard)
|
||||||
|
}
|
||||||
const selfEat = normalPairs.length > 0 || normalSecs.length > 0
|
const selfEat = normalPairs.length > 0 || normalSecs.length > 0
|
||||||
const otherEat = eatPairs.length > 0 || eatSecs.length > 0
|
const otherEat = eatPairs.length > 0 || eatSecs.length > 0
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user