… | |
… | |
1185 | if (op->type != PLAYER) |
1185 | if (op->type != PLAYER) |
1186 | return 0; |
1186 | return 0; |
1187 | |
1187 | |
1188 | if ((mflags & P_NO_CLERIC) && spell_ob->stats.grace) |
1188 | if ((mflags & P_NO_CLERIC) && spell_ob->stats.grace) |
1189 | new_draw_info_format (NDI_UNIQUE, 0, op, "This ground is unholy! %s ignores you.", godname); |
1189 | new_draw_info_format (NDI_UNIQUE, 0, op, "This ground is unholy! %s ignores you.", godname); |
|
|
1190 | else if (object *item = op->contr->ranged_ob) |
|
|
1191 | { |
|
|
1192 | if (item->type == SPELL) |
|
|
1193 | new_draw_info (NDI_UNIQUE, 0, op, "Something blocks your spellcasting."); |
|
|
1194 | else if (item->type == SCROLL) |
|
|
1195 | new_draw_info (NDI_UNIQUE, 0, op, "Something blocks the magic of your scroll."); |
|
|
1196 | else |
|
|
1197 | new_draw_info (NDI_UNIQUE, 0, op, "Something blocks the magic of your item."); |
|
|
1198 | } |
1190 | else |
1199 | else |
1191 | new_draw_info (NDI_UNIQUE, 0, op, "Something blocks the spell!"); |
1200 | new_draw_info (NDI_UNIQUE, 0, op, "Something blocks the spell!"); |
1192 | |
1201 | |
1193 | return 0; |
1202 | return 0; |
1194 | } |
1203 | } |