public static PhaseType Invert(this PhaseType st) { if (st.IsSpell()) { return(PhaseType.NONSPELL); } if (st == PhaseType.NONSPELL) { return(PhaseType.SPELL); } return(st); }
public static float?HPBarLength(this PhaseType st) { if (st.IsSpell()) { return(1f); } if (st == PhaseType.NONSPELL) { return(0.5f); } return(null); }
public static bool IsCard(this PhaseType st) => st == PhaseType.NONSPELL || st.IsSpell();