Casting Magic
I have now added the ability for the user to cast magic for battle. Instead of attacking they can click on their equipped magic they wish to cast and it will be executed. If they player does not have enough mana to cast it will display a message to the player of “Not enough mana to cast” and they will need to chose a different spell.
There are many different elements that will affect the magic. First of which is a condition. If they character is under any condition which pertains to magic such as “Render Magic” which disables all you magics, you will not be able to cast.
If the player does cast a spell then the proper mana is subtracted and the spell is cast. Depending on the type of magic it is and the element of the creature depends on how much damage it will do. If you cast fire against a fire element, it will deal less damage. If you cast water against a fire element the damage dealt is increased.
Up next I need to program the ability for the player to set conditions on an enemy.




