Cloak trait now implements IRenderModifier, so we can compose cloaking with pretty much anything.

This commit is contained in:
Chris Forbes
2009-12-17 16:31:22 +13:00
parent 997ddecc03
commit 605f8aa960
7 changed files with 59 additions and 59 deletions

View File

@@ -56,7 +56,7 @@ namespace OpenRa.Game
{
var projectile = Rules.ProjectileInfo[weapon.Projectile];
if (projectile.ASW && target.traits.Contains<RenderSubmarine>()) return true;
if (projectile.ASW && target.traits.Contains<Cloak>()) return true;
if (projectile.AA && target.traits.Contains<Helicopter>()) return true;
if (projectile.UnderWater && !target.Info.WaterBound) return false;
return projectile.AG;