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

Comparing deliantra/server/server/spell_attack.C (file contents):
Revision 1.103 by root, Sun Apr 11 04:20:57 2010 UTC vs.
Revision 1.104 by root, Sun Apr 11 04:41:44 2010 UTC

1129 || target->flag [FLAG_REFL_SPELL] 1129 || target->flag [FLAG_REFL_SPELL]
1130 || (!god && spell->stats.grace) 1130 || (!god && spell->stats.grace)
1131 || (god && target->title == god->name) 1131 || (god && target->title == god->name)
1132 || (god && target->race.contains (god->race))) 1132 || (god && target->race.contains (god->race)))
1133 { 1133 {
1134 new_draw_info (NDI_UNIQUE, 0, op, "Your request is unheeded."); 1134 op->failmsg ("Your request is unheeded.");
1135 return 0; 1135 return 0;
1136 } 1136 }
1137 1137
1138 if (spell->other_arch) 1138 if (spell->other_arch)
1139 effect = spell->other_arch->instance (); 1139 effect = spell->other_arch->instance ();
1147 { 1147 {
1148 if (tailor_god_spell (effect, op)) 1148 if (tailor_god_spell (effect, op))
1149 new_draw_info_format (NDI_UNIQUE, 0, op, "%s answers your call!", (const char *)determine_god (op)); 1149 new_draw_info_format (NDI_UNIQUE, 0, op, "%s answers your call!", (const char *)determine_god (op));
1150 else 1150 else
1151 { 1151 {
1152 new_draw_info (NDI_UNIQUE, 0, op, "Your request is ignored."); 1152 op->failmsg ("Your request is ignored.");
1153 return 0; 1153 return 0;
1154 } 1154 }
1155 } 1155 }
1156 1156
1157 /* size of the area of destruction */ 1157 /* size of the area of destruction */
1337 object *tmp, *force; 1337 object *tmp, *force;
1338 1338
1339 tmp = get_pointed_target (op, (dir == 0) ? op->direction : dir, spell_ob->range, SPELL_GRACE); 1339 tmp = get_pointed_target (op, (dir == 0) ? op->direction : dir, spell_ob->range, SPELL_GRACE);
1340 if (!tmp) 1340 if (!tmp)
1341 { 1341 {
1342 new_draw_info (NDI_UNIQUE, 0, op, "There is no one in that direction to curse."); 1342 op->failmsg ("There is no one in that direction to curse.");
1343 return 0; 1343 return 0;
1344 } 1344 }
1345 1345
1346 tmp = tmp->head_ (); 1346 tmp = tmp->head_ ();
1347 1347

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines