public override bool Test(Sim actor, Sim target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback) { try { if (mOption == null) { return(true); } return(mOption.Test(new GameHitParameters <GameObject>(actor, target, GameObjectHit.NoHit))); } catch (Exception e) { Common.Exception(actor, target, e); return(false); } }
protected override bool Allow(GameHitParameters <GameObject> parameters) { return(mOption.Test(parameters)); }