Spellcasting change broke recast hint, fix it

This commit is contained in:
2025-05-16 12:27:18 -05:00
parent 04ff2cd903
commit b83cf3762c

View File

@@ -693,7 +693,7 @@ std::pair<std::string, std::string> text_bar_text() {
hint_out << hint_prefix << ": ";
if(current_pc.last_cast[type] != eSpell::NONE){
const cSpell& spell = (*current_pc.last_cast[type]);
if(pc_can_cast_spell(current_pc,type) && spell.cost <= current_pc.get_magic()) {
if(pc_can_cast_spell(current_pc,type) == CAST_OK && spell.cost <= current_pc.get_magic()) {
hint_out << "Recast " << spell.name();
}else{
hint_out << "Cannot recast";