protected virtual void Cast(int spellButton) { if (spellButton == 0) { spellA = new Immobolise(); toBeAdded.Add(spellA.Cast(loc, new Vector2((int)facing, 0), this)); } if (spellButton == 1) { spellB = new Fireball(); toBeAdded.Add(spellB.Cast(loc, new Vector2((int)facing, 0), this)); } SetCurrentAnimation("cast"); }