… | |
… | |
1164 | |
1164 | |
1165 | /* if caster is a rune or the like, it doesn't worship anything. However, |
1165 | /* if caster is a rune or the like, it doesn't worship anything. However, |
1166 | * if this object is owned by someone, then the god that they worship |
1166 | * if this object is owned by someone, then the god that they worship |
1167 | * is relevant, so use that. |
1167 | * is relevant, so use that. |
1168 | */ |
1168 | */ |
1169 | if (!god && get_owner (caster)) |
1169 | if (!god && caster->owner) |
1170 | god = find_god (determine_god (get_owner (caster))); |
1170 | god = find_god (determine_god (caster->owner)); |
1171 | |
1171 | |
1172 | if (!god || (spellop->attacktype & AT_HOLYWORD && !god->race)) |
1172 | if (!god || (spellop->attacktype & AT_HOLYWORD && !god->race)) |
1173 | { |
1173 | { |
1174 | if (!caster_is_spell) |
1174 | if (!caster_is_spell) |
1175 | new_draw_info (NDI_UNIQUE, 0, caster, "This prayer is useless unless you worship an appropriate god"); |
1175 | new_draw_info (NDI_UNIQUE, 0, caster, "This prayer is useless unless you worship an appropriate god"); |