fixed #2001: passengers shooting while in transports

This commit is contained in:
Chris Forbes
2012-04-07 11:05:59 +12:00
parent 25fb2a7be3
commit 87e9a69ae0

View File

@@ -79,6 +79,7 @@ namespace OpenRA.Mods.RA
protected virtual bool CanAttack(Actor self, Target target)
{
if (!self.IsInWorld) return false;
if (!target.IsValid) return false;
if (Weapons.All(w => w.IsReloading)) return false;
if (self.IsDisabled()) return false;