Require IOccupySpace for DamagedByTerrain
This commit is contained in:
committed by
Matthias Mailänder
parent
46b3b01b89
commit
83ea65d4ff
@@ -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.")]
|
||||||
|
|||||||
Reference in New Issue
Block a user