add INotifyOtherCaptured, for reacting to other units changing ownership
This commit is contained in:
@@ -41,6 +41,9 @@ namespace OpenRA.Mods.RA.Activities
|
||||
foreach (var t in target.TraitsImplementing<INotifyCapture>())
|
||||
t.OnCapture(target, self, oldOwner, self.Owner);
|
||||
|
||||
foreach (var t in self.World.Queries.WithTrait<INotifyOtherCaptured>())
|
||||
t.Trait.OnActorCaptured(t.Actor, target, self, oldOwner, self.Owner);
|
||||
|
||||
self.Destroy();
|
||||
});
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user