服务器列表
This commit is contained in:
parent
7de12f99e5
commit
bee5e556bf
@ -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(),
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user