bug修复

This commit is contained in:
xiekaidong 2023-04-21 20:50:52 +08:00
parent ac9bea5776
commit 70058e8cc6
2 changed files with 4 additions and 1 deletions

View File

@ -901,7 +901,7 @@ function BattleController:generateInstructions(skillEntity, elementType, lineCou
---- 技能
if skillEntity then
if elementType == skillEntity:getMatchType() then
if elementType == skillEntity:getPosition() then
table.insert(self.instructions, {
name = BattleConst.INSTRUCTION_NAME.PLAY_SKILL,
skillMatch = elementType,

View File

@ -155,6 +155,9 @@ function BattleControllerStage:controllBattleEnd()
}
}
}
if not self.victory then
self.combatReport.wave = self.combatReport.wave - 1
end
ModuleManager.ChapterManager:endFight(self.chapterId, self.combatReport)
end