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