From be5d79b12372e30f7e5577f6f9dbd95985f5dd44 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Wed, 9 Oct 2019 17:09:25 +0200 Subject: [PATCH] fix: all enemies start with lvl 1 hp --- server/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/lib.rs b/server/src/lib.rs index 7153beb21a..ded947b722 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -597,6 +597,9 @@ impl Server { } stats.update_max_hp(); + stats + .health + .set_to(stats.health.maximum(), comp::HealthSource::Revive); self.create_npc(comp::Pos(npc.pos), stats, body) .with(comp::Agent::enemy()) .with(comp::Scale(scale))