private static bool DisallowSurpriseTrade(PKM pk) { // Anti-spam if (IsSpammyString(pk.OT_Name)) { return(true); } // Surprise Trade currently bans Mythicals and Legendaries, not Sub-Legendaries. if (Legal.Legends.Contains(pk.Species)) { return(true); } // Can't surprise trade fused stuff. if (AltFormInfo.IsFusedForm(pk.Species, pk.AltForm, pk.Format)) { return(true); } return(false); }
public static bool CanBeTraded(this PKM pkm) { return(!AltFormInfo.IsFusedForm(pkm.Species, pkm.AltForm, pkm.Format)); }