public override bool BackwardAction(TimeMachine timeMachine, GameState state) { if (EventSuccess) { ICombatable source = state.GetCombatableById(GetEventData().SourceId); source.GetShieldManager().ToggleShield(); } return(EventSuccess); }
public override bool ForwardAction(TimeMachine timeMachine, GameState state) { ICombatable source = state.GetCombatableById(GetEventData().SourceId); if (source != null) { source.GetShieldManager().ToggleShield(); EventSuccess = true; } else { EventSuccess = false; } return(EventSuccess); }