Fix #4350 - Spy not disappearing

Spy now calls .Destroy() and is removed from minnimap upon infiltration
This commit is contained in:
Mknsri
2014-03-08 16:18:31 +02:00
parent 6190b7794b
commit 2ea184e89e

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA.Activities
foreach (var t in target.Actor.TraitsImplementing<IAcceptInfiltrator>())
t.OnInfiltrate(target.Actor, self);
self.World.AddFrameEndTask(w => { if (!self.Destroyed) w.Remove(self); });
self.Destroy();
if (target.Actor.HasTrait<Building>())
Sound.PlayToPlayer(self.Owner, "bldginf1.aud");