public static void SayBattle(TasClient tas, Spring spring, string text, bool ingame) { tas.Say(TasClient.SayPlace.Battle, "", text, true); if (spring.IsRunning && ingame) spring.SayGame(text); }
public static void Respond(TasClient tas, Spring spring, TasSayEventArgs e, string text) { TasClient.SayPlace p = TasClient.SayPlace.User; bool emote = false; if (e.Place == TasSayEventArgs.Places.Battle) { p = TasClient.SayPlace.Battle; emote = true; } if (e.Place == TasSayEventArgs.Places.Game && spring.IsRunning) spring.SayGame(text); else tas.Say(p, e.UserName, text, emote); }