mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix npcs without a faction not respawning
This commit is contained in:
parent
0bb6fa7946
commit
2d83a8a1e4
@ -59,7 +59,7 @@ fn on_death(ctx: EventCtx<SimulateNpcs, OnDeath>) {
|
||||
.iter()
|
||||
.filter(|(id, site)| {
|
||||
Some(*id) != npc.home
|
||||
&& site.faction == npc.faction
|
||||
&& (npc.faction.is_none() || site.faction == npc.faction)
|
||||
&& site.world_site.map_or(false, |s| {
|
||||
matches!(ctx.index.sites.get(s).kind, SiteKind::Refactor(_)
|
||||
| SiteKind::CliffTown(_)
|
||||
|
Loading…
Reference in New Issue
Block a user