ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/spell_util.C
(Generate patch)

Comparing deliantra/server/server/spell_util.C (file contents):
Revision 1.34 by pippijn, Mon Jan 15 21:06:20 2007 UTC vs.
Revision 1.35 by root, Thu Jan 18 22:20:00 2007 UTC

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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines