服务器列表

This commit is contained in:
xiekaidong 2023-05-05 16:17:13 +08:00
parent 7de12f99e5
commit bee5e556bf
3 changed files with 4 additions and 5 deletions

View File

@ -339,7 +339,7 @@ end
function SDKManager:getServerList(callback) function SDKManager:getServerList(callback)
local postData = { local postData = {
project_id = "b5", project_id = "b6",
bundle_id = Platform:getIdentifier(), bundle_id = Platform:getIdentifier(),
version = Platform:getClientVersion(), version = Platform:getClientVersion(),
device_id = DeviceHelper:getDeviceId(), device_id = DeviceHelper:getDeviceId(),

View File

@ -1231,7 +1231,9 @@ function BattleController:generateInstructions(skillEntity, elementType, lineCou
end end
function BattleController:exeInstructions(callback) function BattleController:exeInstructions(callback)
if EDITOR_MODE then
Logger.logHighlight("--------exeInstructions----------") Logger.logHighlight("--------exeInstructions----------")
end
if not self.instructions or #self.instructions <= 0 then if not self.instructions or #self.instructions <= 0 then
callback() callback()
return return

View File

@ -195,17 +195,14 @@ function BattleTeam:handleShield(reduceShield, unit)
end end
local needReedRefreshBuff = false local needReedRefreshBuff = false
local shieldNum = 0
local currShieldBuff = self.shieldBuffList[1] local currShieldBuff = self.shieldBuffList[1]
while currShieldBuff do while currShieldBuff do
reduceShield = reduceShield + currShieldBuff.result reduceShield = reduceShield + currShieldBuff.result
if reduceShield > 0 then if reduceShield > 0 then
shieldNum = shieldNum + reduceShield - currShieldBuff.result
currShieldBuff.result = reduceShield currShieldBuff.result = reduceShield
reduceShield = 0 reduceShield = 0
break break
else else
shieldNum = shieldNum - currShieldBuff.result
currShieldBuff.result = 0 currShieldBuff.result = 0
for k, v in ipairs(self.buffList) do for k, v in ipairs(self.buffList) do
if v == currShieldBuff then if v == currShieldBuff then