Fix the RA shellmap.

This commit is contained in:
Paul Chote
2010-11-23 22:53:14 +13:00
parent 3a2279f378
commit 8b0255e2f7
4 changed files with 61 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ namespace OpenRA.Mods.RA
// Todo: Allow enemy units to be chronoshifted into bad terrain to kill them
return self.HasTrait<ITeleportable>() &&
self.Trait<ITeleportable>().CanEnterCell(targetLocation) &&
self.World.LocalPlayer.Shroud.IsExplored(targetLocation);
(self.World.LocalPlayer == null || self.World.LocalPlayer.Shroud.IsExplored(targetLocation));
}
public virtual bool Teleport(Actor self, int2 targetLocation, int duration, bool killCargo, Actor chronosphere)