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:
committed by
Matthias Mailänder
parent
49ac9079a2
commit
70771da45a
@@ -57,6 +57,10 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (e.Attacker != null && e.Attacker.Owner == self.Owner)
|
if (e.Attacker != null && e.Attacker.Owner == self.Owner)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Don't track healing
|
||||||
|
if (e.Damage.Value < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
// Only track last hit against our harvesters
|
// Only track last hit against our harvesters
|
||||||
if (!self.Info.HasTraitInfo<HarvesterInfo>())
|
if (!self.Info.HasTraitInfo<HarvesterInfo>())
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user