version 1.42 | | version 1.43 |
---|
| | |
/* | | /* |
* static char *rcsid_gods_c = | | * static char *rcsid_gods_c = |
* "$Id: gods.c,v 1.42 2004/04/18 09:32:30 ryo_saeba Exp $"; | | * "$Id: gods.c,v 1.43 2004/05/20 05:50:00 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
if (caster->type==SPELL_EFFECT || caster->type == SPELL) caster_is_spell=1; | | if (caster->type==SPELL_EFFECT || caster->type == SPELL) caster_is_spell=1; |
| | |
| | /* if caster is a rune or the like, it doesn't worship anything. However, |
| | * if this object is owned by someone, then the god that they worship |
| | * is relevant, so use that. |
| | */ |
| | if (!god && get_owner(caster)) god=find_god(determine_god(get_owner(caster))); |
| | |
if ( ! god || (spellop->attacktype & AT_HOLYWORD && !god->race)) { | | if ( ! god || (spellop->attacktype & AT_HOLYWORD && !god->race)) { |
if ( ! caster_is_spell) | | if ( ! caster_is_spell) |
new_draw_info(NDI_UNIQUE, 0, caster, | | new_draw_info(NDI_UNIQUE, 0, caster, |