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.52 by root, Tue Jun 5 13:05:03 2007 UTC vs.
Revision 1.53 by root, Tue Jun 26 01:47:59 2007 UTC

1136 /* player/monster is trying to cast the spell. might fumble it */ 1136 /* player/monster is trying to cast the spell. might fumble it */
1137 if (spell_ob->stats.grace && random_roll (0, 99, op, PREFER_HIGH) < 1137 if (spell_ob->stats.grace && random_roll (0, 99, op, PREFER_HIGH) <
1138 (spell_ob->level / (float) MAX (1, op->level) * cleric_chance[op->stats.Wis])) 1138 (spell_ob->level / (float) MAX (1, op->level) * cleric_chance[op->stats.Wis]))
1139 { 1139 {
1140 play_sound_player_only (op->contr, SOUND_FUMBLE_SPELL, 0, 0); 1140 play_sound_player_only (op->contr, SOUND_FUMBLE_SPELL, 0, 0);
1141 new_draw_info (NDI_UNIQUE, 0, op, "You fumble the spell."); 1141 new_draw_info (NDI_UNIQUE, 0, op, "You fumble the prayer.");
1142 1142
1143 op->stats.grace -= random_roll (1, SP_level_spellpoint_cost (caster, spell_ob, SPELL_GRACE), op, PREFER_LOW); 1143 op->stats.grace -= random_roll (1, SP_level_spellpoint_cost (caster, spell_ob, SPELL_GRACE), op, PREFER_LOW);
1144 return 0; 1144 return 0;
1145 } 1145 }
1146 else if (spell_ob->stats.sp) 1146 else if (spell_ob->stats.sp)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines