`local maxcount = 1` `if string.find(chess,'11') ~= nil and (string.find(chess,'tp') ~= nil or string.find(chess,'eh') ~= nil) then` `chess = string.sub(chess,1,-2)` `maxcount = 4` `end` `if string.find(chess,'1') ~= nil and (string.find(chess,'tp') ~= nil or string.find(chess,'eh') ~= nil) then` `chess = string.sub(chess,1,-2)` `maxcount = 2` `end` `if string.find(chess,'11') ~= nil then` `chess = string.sub(chess,1,-2)` `maxcount = 9` `end` `if string.find(chess,'1') ~= nil then` `chess = string.sub(chess,1,-2)` `maxcount = 3` `end` `for count = 1,maxcount do` `if GameRules:GetGameModeEntity().chess_2_mana[chess] ~= nil then` `local cost = GameRules:GetGameModeEntity().chess_2_mana[chess]` `table.insert(GameRules:GetGameModeEntity().chess_pool[cost],chess)` `end` `end`
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more