782 fixed -- friendly units no longer trigger mines

This commit is contained in:
Chris Forbes
2011-05-11 08:22:46 +12:00
parent 4c36403b75
commit 0807f4ca8d

View File

@@ -41,7 +41,7 @@ namespace OpenRA.Mods.RA
public void OnCrush(Actor crusher) public void OnCrush(Actor crusher)
{ {
if (crusher.HasTrait<MineImmune>() && crusher.Owner == self.Owner) if (crusher.HasTrait<MineImmune>() || self.Owner.Stances[crusher.Owner] == Stance.Ally)
return; return;
var info = self.Info.Traits.Get<MineInfo>(); var info = self.Info.Traits.Get<MineInfo>();