Commit 61543623616388aa3cffe44bfd86e460e80a6ebc

Authored by zhouhaihai
2 parents 8ccecbf9 d284e3ee

Merge branch 'develop' into qa

src/actions/EmailAction.lua
@@ -43,7 +43,7 @@ function _M.listRpc(agent, data) @@ -43,7 +43,7 @@ function _M.listRpc(agent, data)
43 if tonum(email.createtime) > role:getProperty("ctime") 43 if tonum(email.createtime) > role:getProperty("ctime")
44 and ( not email.mid or tonum(email.mid) == mid ) 44 and ( not email.mid or tonum(email.mid) == mid )
45 and ( not email.endtime or tonum(email.endtime) > now )then 45 and ( not email.endtime or tonum(email.endtime) > now )then
46 - local time = email.timestamp and tonum(email.timestamp) or email.createtime 46 + local time = math.max(tonum(email.timestamp, 0) or email.createtime)
47 redisproxy:insertEmail({ 47 redisproxy:insertEmail({
48 roleId = roleId, 48 roleId = roleId,
49 emailId = 0, 49 emailId = 0,
src/actions/StoreAction.lua
@@ -228,7 +228,7 @@ function _M.dinerBuyRpc(agent , data) @@ -228,7 +228,7 @@ function _M.dinerBuyRpc(agent , data)
228 local dinerS = role:getProperty("dinerS") 228 local dinerS = role:getProperty("dinerS")
229 if math.illegalNum(count, 1, (dataSet.limit == 0 and math.huge or dataSet.limit - (dinerS[id] or 0))) then return 1 end 229 if math.illegalNum(count, 1, (dataSet.limit == 0 and math.huge or dataSet.limit - (dinerS[id] or 0))) then return 1 end
230 230
231 - local cost = {[ItemId.DinerCoin] = dataSet.cost} 231 + local cost = {[ItemId.DinerCoin] = dataSet.cost * count}
232 if not role:checkItemEnough(cost) then return end 232 if not role:checkItemEnough(cost) then return end
233 233
234 if dataSet.limit ~= 0 then 234 if dataSet.limit ~= 0 then
src/adv/AdvPassive.lua
@@ -300,7 +300,8 @@ function Passive:canEffect(effType, effValue) @@ -300,7 +300,8 @@ function Passive:canEffect(effType, effValue)
300 return 300 return
301 end 301 end
302 --禁用被动技 302 --禁用被动技
303 - if self.owner:getDisablePassiveCount() == 0 or self.owner:getPassiveIdx(self) <= self.owner:getDisablePassiveCount() then 303 + local count, bc = self.owner:getDisablePassiveCount()
  304 + if bc > 0 and (count == 0 or self.owner:getPassiveIdx(self) <= count) then
304 return 305 return
305 end 306 end
306 return true 307 return true
src/adv/AdvPlayer.lua
@@ -114,13 +114,14 @@ function BaseObject:getPassiveIdx(passive) @@ -114,13 +114,14 @@ function BaseObject:getPassiveIdx(passive)
114 end 114 end
115 115
116 function BaseObject:getDisablePassiveCount() 116 function BaseObject:getDisablePassiveCount()
117 - local count = 0 117 + local count, bc = 0, 0
118 for _, buff in ipairs(self.buffs) do 118 for _, buff in ipairs(self.buffs) do
119 if not buff.isDel and buff:getType() == Buff.DISABLE_BUFF then 119 if not buff.isDel and buff:getType() == Buff.DISABLE_BUFF then
120 count = count + buff:effect() 120 count = count + buff:effect()
  121 + bc = bc + 1
121 end 122 end
122 end 123 end
123 - return count 124 + return count, bc
124 end 125 end
125 126
126 function BaseObject:addBuff(buffId, releaser) 127 function BaseObject:addBuff(buffId, releaser)
src/models/Diner.lua
@@ -72,7 +72,7 @@ function Diner:refreshDailyData(notify) @@ -72,7 +72,7 @@ function Diner:refreshDailyData(notify)
72 72
73 local guide = self.owner:getProperty("newerGuide") 73 local guide = self.owner:getProperty("newerGuide")
74 local master, slave = string.match(guide,"(%d+)=(%d+)") 74 local master, slave = string.match(guide,"(%d+)=(%d+)")
75 - if tonumber(master) <= 26 then 75 + if self.owner:getProperty("funcGuide"):getv(51,0) == 0 or tonumber(master) <= 26 then
76 entrust[1] = 1001 76 entrust[1] = 1001
77 entrust[2] = 1 77 entrust[2] = 1
78 elseif tonumber(master) <= 29 then 78 elseif tonumber(master) <= 29 then