Simplify and increase robustness of Shroud et al. Fixes #3440.
This commit is contained in:
@@ -20,7 +20,8 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
public void OnInfiltrate(Actor self, Actor infiltrator)
|
||||
{
|
||||
infiltrator.Owner.Shroud.MergeShroud(self.Owner.Shroud);
|
||||
// Steal and reset the owners exploration
|
||||
infiltrator.Owner.Shroud.Explore(self.Owner.Shroud);
|
||||
if (!self.Owner.HasFogVisibility())
|
||||
self.Owner.Shroud.ResetExploration();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user