… | |
… | |
1168 | if (spell_ob->stats.grace && random_roll (0, 99, op, PREFER_HIGH) < |
1168 | if (spell_ob->stats.grace && random_roll (0, 99, op, PREFER_HIGH) < |
1169 | (spell_ob->level / (float) MAX (1, op->level) * cleric_chance[op->stats.Wis])) |
1169 | (spell_ob->level / (float) MAX (1, op->level) * cleric_chance[op->stats.Wis])) |
1170 | { |
1170 | { |
1171 | play_sound_player_only (op->contr, SOUND_FUMBLE_SPELL, 0, 0); |
1171 | play_sound_player_only (op->contr, SOUND_FUMBLE_SPELL, 0, 0); |
1172 | new_draw_info (NDI_UNIQUE, 0, op, "You fumble the spell."); |
1172 | new_draw_info (NDI_UNIQUE, 0, op, "You fumble the spell."); |
|
|
1173 | |
1173 | if (settings.casting_time == TRUE) |
1174 | if (settings.casting_time == TRUE) |
1174 | { |
|
|
1175 | op->casting_time = -1; |
1175 | op->casting_time = -1; |
1176 | } |
1176 | |
1177 | op->stats.grace -= random_roll (1, SP_level_spellpoint_cost (caster, spell_ob, SPELL_GRACE), op, PREFER_LOW); |
1177 | op->stats.grace -= random_roll (1, SP_level_spellpoint_cost (caster, spell_ob, SPELL_GRACE), op, PREFER_LOW); |
1178 | return 0; |
1178 | return 0; |
1179 | } |
1179 | } |
1180 | else if (spell_ob->stats.sp) |
1180 | else if (spell_ob->stats.sp) |
1181 | { |
1181 | { |