Cloak trait now implements IRenderModifier, so we can compose cloaking with pretty much anything.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user