If you cast a spell this turn, you can't attack with creatures.
If you attacked with creatures this turn, you can't cast spells.