API rejects spell cast if not enough mana

Fix #3493 “API does not validate if user has enough mana”
Update spell cast test to ensure user has mana
Merge pull request #3535 from OverloadUT/fix-spells-mana-check

API rejects spell cast if not enough mana