@ -246,4 +246,11 @@ bool dodge (Character *character, enemy* enemy) {
return true;
}
return false;
void rest(Character *character) {
setCharacterHealthPoints(character, getCharacterMaxHealthPoints(character));
setCharacterManaPoints(character, 10);
setCharacterStatus(character, SPELL_EFFECT_NONE);
setCharacterStatusDuration(character, 0);
@ -24,6 +24,7 @@ bool enemyChoosesHeal(enemy* enemy);
int switchTurns(int currentTurn);
int fight(Character *character, enemy* enemy);
bool dodge (Character *character, enemy* enemy);
void rest(Character *character);