don't notify players a Harvester is under attack when it's actually healing

Co-authored-by: Gustas <37534529+PunkPun@users.noreply.github.com>
This commit is contained in:
Shrooblord
2022-09-16 11:05:37 +02:00
committed by Matthias Mailänder
parent 49ac9079a2
commit 70771da45a

View File

@@ -57,6 +57,10 @@ namespace OpenRA.Mods.Common.Traits
if (e.Attacker != null && e.Attacker.Owner == self.Owner)
return;
// Don't track healing
if (e.Damage.Value < 0)
return;
// Only track last hit against our harvesters
if (!self.Info.HasTraitInfo<HarvesterInfo>())
return;