A quick fix for the dungeon combat.

This commit is contained in:
Zed A. Shaw 2025-12-18 11:01:40 -05:00
parent 6e35ff3d6d
commit 4958f24c1d
3 changed files with 5 additions and 3 deletions

View file

@ -22,6 +22,7 @@
using std::string;
using namespace fmt;
using namespace combat;
using namespace components;
using namespace DinkyECS;
using lighting::LightSource;
@ -261,6 +262,7 @@ void System::combat(int attack_id) {
while(auto act = battle.next()) {
auto [enemy, enemy_action, cost, host_state] = *act;
if(host_state != BattleHostState::not_host) continue;
components::CombatResult result {
player_combat.attack(*enemy.combat), 0