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.76 by root, Sun Dec 28 08:09:49 2008 UTC vs.
Revision 1.77 by root, Wed Dec 31 17:35:38 2008 UTC

1111 * interesting spell. 1111 * interesting spell.
1112 * if it is a cleric spell, you need a god, and the creature 1112 * if it is a cleric spell, you need a god, and the creature
1113 * can't be friendly to your god. 1113 * can't be friendly to your god.
1114 */ 1114 */
1115 1115
1116 if (!target || QUERY_FLAG (target, FLAG_REFL_SPELL) 1116 if (!target
1117 || target->flag [FLAG_REFL_SPELL]
1117 || (!god && spell->stats.grace) 1118 || (!god && spell->stats.grace)
1118 || (target->title && god && !strcmp (target->title, god->name)) || (target->race && god && strstr (target->race, god->race))) 1119 || (target->title && god && target->title == god->name)
1120 || (target->race && god && strstr (target->race, god->race)))
1119 { 1121 {
1120 new_draw_info (NDI_UNIQUE, 0, op, "Your request is unheeded."); 1122 new_draw_info (NDI_UNIQUE, 0, op, "Your request is unheeded.");
1121 return 0; 1123 return 0;
1122 } 1124 }
1123 1125
1130 effect->level = casting_level (caster, spell); 1132 effect->level = casting_level (caster, spell);
1131 effect->attacktype = spell->attacktype; 1133 effect->attacktype = spell->attacktype;
1132 if (effect->attacktype & (AT_HOLYWORD | AT_GODPOWER)) 1134 if (effect->attacktype & (AT_HOLYWORD | AT_GODPOWER))
1133 { 1135 {
1134 if (tailor_god_spell (effect, op)) 1136 if (tailor_god_spell (effect, op))
1135 new_draw_info_format (NDI_UNIQUE, 0, op, "%s answers your call!", determine_god (op)); 1137 new_draw_info_format (NDI_UNIQUE, 0, op, "%s answers your call!", (const char *)determine_god (op));
1136 else 1138 else
1137 { 1139 {
1138 new_draw_info (NDI_UNIQUE, 0, op, "Your request is ignored."); 1140 new_draw_info (NDI_UNIQUE, 0, op, "Your request is ignored.");
1139 return 0; 1141 return 0;
1140 } 1142 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines