Commit 9592348d34bb0d1012b3129d7b355347033e7897
Merge branch 'cn/develop' into cn/publish/release
Showing
1 changed file
with
10 additions
and
3 deletions
Show diff stats
src/models/RolePlugin.lua
... | ... | @@ -2847,11 +2847,18 @@ function RolePlugin.bind(Role) |
2847 | 2847 | return towerBnous[SystemBnousType.HangTime] or 0 + tmptime |
2848 | 2848 | end |
2849 | 2849 | |
2850 | - function Role:getBnousPvpTicket() | |
2851 | - local towerBnous = self:getTowerBnousActive() | |
2850 | + function Role:sendLevelBnousPvpTicketMail() | |
2852 | 2851 | local levelBnous = self:getLevelBnous() |
2853 | 2852 | local pvpTicket = levelBnous[SystemBnousType.PvpTicket] or {} |
2854 | - return appendTableBnous(towerBnous[SystemBnousType.PvpTicket], pvpTicket) | |
2853 | + if next(pvpTicket) then | |
2854 | + self:sendMail(380, nil, pvpTicket) | |
2855 | + end | |
2856 | + end | |
2857 | + | |
2858 | + function Role:getBnousPvpTicket() | |
2859 | + self:sendLevelBnousPvpTicketMail() | |
2860 | + local towerBnous = self:getTowerBnousActive() | |
2861 | + return towerBnous[SystemBnousType.PvpTicket] or {} | |
2855 | 2862 | end |
2856 | 2863 | |
2857 | 2864 | function Role:getBnousSweep() | ... | ... |