Commit 61543623616388aa3cffe44bfd86e460e80a6ebc
Merge branch 'develop' into qa
Showing
5 changed files
with
8 additions
and
6 deletions
Show diff stats
src/actions/EmailAction.lua
... | ... | @@ -43,7 +43,7 @@ function _M.listRpc(agent, data) |
43 | 43 | if tonum(email.createtime) > role:getProperty("ctime") |
44 | 44 | and ( not email.mid or tonum(email.mid) == mid ) |
45 | 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 | 47 | redisproxy:insertEmail({ |
48 | 48 | roleId = roleId, |
49 | 49 | emailId = 0, | ... | ... |
src/actions/StoreAction.lua
... | ... | @@ -228,7 +228,7 @@ function _M.dinerBuyRpc(agent , data) |
228 | 228 | local dinerS = role:getProperty("dinerS") |
229 | 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 | 232 | if not role:checkItemEnough(cost) then return end |
233 | 233 | |
234 | 234 | if dataSet.limit ~= 0 then | ... | ... |
src/adv/AdvPassive.lua
... | ... | @@ -300,7 +300,8 @@ function Passive:canEffect(effType, effValue) |
300 | 300 | return |
301 | 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 | 305 | return |
305 | 306 | end |
306 | 307 | return true | ... | ... |
src/adv/AdvPlayer.lua
... | ... | @@ -114,13 +114,14 @@ function BaseObject:getPassiveIdx(passive) |
114 | 114 | end |
115 | 115 | |
116 | 116 | function BaseObject:getDisablePassiveCount() |
117 | - local count = 0 | |
117 | + local count, bc = 0, 0 | |
118 | 118 | for _, buff in ipairs(self.buffs) do |
119 | 119 | if not buff.isDel and buff:getType() == Buff.DISABLE_BUFF then |
120 | 120 | count = count + buff:effect() |
121 | + bc = bc + 1 | |
121 | 122 | end |
122 | 123 | end |
123 | - return count | |
124 | + return count, bc | |
124 | 125 | end |
125 | 126 | |
126 | 127 | function BaseObject:addBuff(buffId, releaser) | ... | ... |
src/models/Diner.lua
... | ... | @@ -72,7 +72,7 @@ function Diner:refreshDailyData(notify) |
72 | 72 | |
73 | 73 | local guide = self.owner:getProperty("newerGuide") |
74 | 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 | 76 | entrust[1] = 1001 |
77 | 77 | entrust[2] = 1 |
78 | 78 | elseif tonumber(master) <= 29 then | ... | ... |