Prevent Health: 100 from being added to actors.

This commit is contained in:
Paul Chote
2021-01-01 23:29:33 +00:00
committed by reaperrr
parent 6fed31717c
commit 60195e2842

View File

@@ -214,6 +214,10 @@ namespace OpenRA.Mods.Common.Traits
if (factionInit != null && factionInit.Value == Owner.Faction)
return false;
var healthInit = init as HealthInit;
if (healthInit != null && healthInit.Value == 100)
return false;
// TODO: Other default values will need to be filtered
// here after we have built a properties panel
return true;