Added: condition statement to castSpells()