|
|
|
@ -219,7 +219,8 @@ export const createBattleRole = (player: Player, monster: Monster, commit) => {
@@ -219,7 +219,8 @@ export const createBattleRole = (player: Player, monster: Monster, commit) => {
|
|
|
|
|
monster = deepCopy(monster); |
|
|
|
|
monster.curHp = monster.hp; |
|
|
|
|
const monsterRole = new BattleRole(monster, commit, monster.type); |
|
|
|
|
|
|
|
|
|
playerRole.onStartBattle(monsterRole); |
|
|
|
|
monsterRole.onStartBattle(playerRole); |
|
|
|
|
return { player: playerRole, monster: monsterRole }; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|