remove DeathWeapon; IExplodeModifier implemented for resource actors (and for V2, which was the original purpose)
This commit is contained in:
@@ -44,7 +44,7 @@ namespace OpenRA.Traits
|
||||
public virtual object Create(ActorInitializer init) { return new AttackBase(init.self); }
|
||||
}
|
||||
|
||||
public class AttackBase : IIssueOrder, IResolveOrder, ITick
|
||||
public class AttackBase : IIssueOrder, IResolveOrder, ITick, IExplodeModifier
|
||||
{
|
||||
[Sync] public Actor target;
|
||||
|
||||
@@ -77,6 +77,8 @@ namespace OpenRA.Traits
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool ShouldExplode(Actor self) { return !IsReloading(); }
|
||||
|
||||
public bool IsReloading()
|
||||
{
|
||||
return (primaryFireDelay > 0) || (secondaryFireDelay > 0);
|
||||
|
||||
Reference in New Issue
Block a user