Explicitly declare dependency on Attack* from AutoTarget/AutoHeal.

This commit is contained in:
Paul Chote
2011-03-22 21:36:06 +13:00
parent 1ceede4322
commit c7e2619a98
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ using OpenRA.Traits.Activities;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.RA
{ {
class AutoHealInfo : TraitInfo<AutoHeal> { } class AutoHealInfo : TraitInfo<AutoHeal>, ITraitPrerequisite<AttackBaseInfo> { }
class AutoHeal : INotifyIdle class AutoHeal : INotifyIdle
{ {

View File

@@ -14,7 +14,7 @@ using System.Drawing;
namespace OpenRA.Mods.RA namespace OpenRA.Mods.RA
{ {
class AutoTargetInfo : TraitInfo<AutoTarget> class AutoTargetInfo : TraitInfo<AutoTarget>, ITraitPrerequisite<AttackBaseInfo>
{ {
public readonly bool AllowMovement = true; public readonly bool AllowMovement = true;
} }