Require IOccupySpace for DamagedByTerrain

This commit is contained in:
abcdefg30
2020-10-06 14:43:53 +02:00
committed by Matthias Mailänder
parent 46b3b01b89
commit 83ea65d4ff

View File

@@ -16,7 +16,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits namespace OpenRA.Mods.Common.Traits
{ {
[Desc("This actor receives damage from the given weapon when on the specified terrain type.")] [Desc("This actor receives damage from the given weapon when on the specified terrain type.")]
class DamagedByTerrainInfo : ConditionalTraitInfo, Requires<IHealthInfo> class DamagedByTerrainInfo : ConditionalTraitInfo, Requires<IHealthInfo>, Requires<IOccupySpaceInfo>
{ {
[FieldLoader.Require] [FieldLoader.Require]
[Desc("Amount of damage received per DamageInterval ticks.")] [Desc("Amount of damage received per DamageInterval ticks.")]