Skip to content

Commit

Permalink
Merge pull request #15 from FrazzIe/master
Browse files Browse the repository at this point in the history
fix being able to double down with a split hand
  • Loading branch information
Xinerki authored Mar 1, 2020
2 parents 7caa706 + 0dbd397 commit 4d7dab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ AddEventHandler("BLACKJACK:RequestMove", function(_timeLeft)
ScaleformMovieMethodAddParamPlayerNameString("Stand")
EndScaleformMovieMethod()

if #hand < 3 then
if #hand < 3 and #splitHand == 0 then
BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT")
ScaleformMovieMethodAddParamInt(3)
ScaleformMovieMethodAddParamPlayerNameString(GetControlInstructionalButton(1, 192, 0))
Expand Down Expand Up @@ -1014,7 +1014,7 @@ AddEventHandler("BLACKJACK:RequestMove", function(_timeLeft)

return
end
if IsControlJustPressed(1, 192) and #hand == 2 then
if IsControlJustPressed(1, 192) and #hand == 2 and #splitHand == 0 then
if leavingBlackjack == true then leaveBlackjack() return end

TriggerServerEvent("BLACKJACK:CheckPlayerBet", g_seat, bet)
Expand Down

0 comments on commit 4d7dab3

Please sign in to comment.