Add a WarnCrush method to ICrushable which is called when a crusher begins to enter the cell.
This commit is contained in:
@@ -40,6 +40,8 @@ namespace OpenRA.Mods.RA
|
||||
this.location = init.Get<LocationInit,int2>();
|
||||
}
|
||||
|
||||
public void WarnCrush(Actor crusher) {}
|
||||
|
||||
public void OnCrush(Actor crusher)
|
||||
{
|
||||
if (crusher.HasTrait<MineImmune>() || self.Owner.Stances[crusher.Owner] == Stance.Ally)
|
||||
|
||||
Reference in New Issue
Block a user