听说是a and b or c 再百度了一下说是a返回的不是false(假)值下一步就进行b否则就进行c
那么我要写一个技能描述是场上有手牌的角色弃置全部手牌,没有手牌的角色摸两张牌是不是可以
for _, p in sgs.qlist(room:getAlivePlayers()) do
p:isKongcheng() and p:drawCards(2) or p:throwAllHandCards()
end
来实现呢,求解
那么我要写一个技能描述是场上有手牌的角色弃置全部手牌,没有手牌的角色摸两张牌是不是可以
for _, p in sgs.qlist(room:getAlivePlayers()) do
p:isKongcheng() and p:drawCards(2) or p:throwAllHandCards()
end
来实现呢,求解
