Remove thief; transfer ore along with stolen silo/proc.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#region Copyright & License Information
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
|
||||
* This file is part of OpenRA.
|
||||
@@ -49,6 +49,9 @@ namespace OpenRA.Mods.RA.Activities
|
||||
w.Remove(target);
|
||||
target.Owner = self.Owner;
|
||||
w.Add(target);
|
||||
|
||||
foreach (var t in target.traits.WithInterface<INotifyCapture>())
|
||||
t.OnCapture(target, self);
|
||||
});
|
||||
|
||||
target.InflictDamage(self, target.Health - EngineerCapture.EngineerDamage, null);
|
||||
|
||||
Reference in New Issue
Block a user