Remove Actor.HasTrait<T>()
This commit is contained in:
@@ -50,7 +50,7 @@ namespace OpenRA.Mods.RA.Activities
|
||||
|
||||
self.Dispose();
|
||||
|
||||
if (target.HasTrait<Building>())
|
||||
if (target.Info.Traits.Contains<BuildingInfo>())
|
||||
Sound.PlayToPlayer(self.Owner, "bldginf1.aud");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user