Commit 8cec27ced3c408373a2425d04ee44aa9b89ad276
1 parent
04c7448f
战斗开始
Showing
3 changed files
with
6 additions
and
0 deletions
Show diff stats
src/GlobalVar.lua
src/adv/Adv.lua
... | ... | @@ -1096,6 +1096,10 @@ function Adv:backTurnEnd() |
1096 | 1096 | self:pushBackEvent(AdvBackEventType.TurnEnd, {}) |
1097 | 1097 | end |
1098 | 1098 | |
1099 | +function Adv:backBattleBegin() | |
1100 | + self:pushBackEvent(AdvBackEventType.BattleBegin, {}) | |
1101 | +end | |
1102 | + | |
1099 | 1103 | |
1100 | 1104 | function Adv:scoreChange(scoreType, pms) |
1101 | 1105 | local cutTypes = {} | ... | ... |
src/adv/AdvBattle.lua
... | ... | @@ -120,6 +120,7 @@ function Battle:battleBegin(roomId, blockId, isQuick) |
120 | 120 | end |
121 | 121 | local enemy = self:getEnemy(roomId, blockId) |
122 | 122 | if enemy then |
123 | + self.adv:backBattleBegin() | |
123 | 124 | self.enemy = enemy |
124 | 125 | self.player:battleBegin() |
125 | 126 | self.enemy:battleBegin() | ... | ... |