bool isValidStunTimer(string busterID) { if (StunEvents.Exists(s => s.BusterID == busterID)) { int latestRound = StunEvents.Where(s => s.BusterID == busterID).OrderByDescending(s => s.Round).First().Round; if ((Round - latestRound) < LimBustStunTimer) { return(false); } } return(true); }
bool isValidStunTimer(string busterID) { if (StunEvents.Exists(s => s.BusterID == busterID)) { int latestRound = StunEvents.Where(s => s.BusterID == busterID).OrderByDescending(s => s.Round).First().Round; if ((Round - latestRound) < LimBustStunTimer) { return(false); } } Console.Error.WriteLine("StunEvents Dump"); foreach (StunEvent e in StunEvents) { Console.Error.WriteLine("" + e.Round + " " + e.BusterID + " " + e.StunnedBusterID); } return(true); }