… | |
… | |
918 | */ |
918 | */ |
919 | int |
919 | int |
920 | cast_spell (object *op, object *caster, int dir, object *spell_ob, char *stringarg) |
920 | cast_spell (object *op, object *caster, int dir, object *spell_ob, char *stringarg) |
921 | { |
921 | { |
922 | const char *godname; |
922 | const char *godname; |
923 | int success = 0, cast_level = 0; |
923 | int success = 0; |
924 | object *skill = NULL; |
924 | object *skill = NULL; |
925 | |
925 | |
926 | if (!spell_ob) |
926 | if (!spell_ob) |
927 | { |
927 | { |
928 | LOG (llevError, "cast_spell: null spell object passed\n"); |
928 | LOG (llevError, "cast_spell: null spell object passed\n"); |
… | |
… | |
976 | |
976 | |
977 | int caster_level = skill->level; |
977 | int caster_level = skill->level; |
978 | |
978 | |
979 | if (op->path_attuned & spell_ob->path_attuned) |
979 | if (op->path_attuned & spell_ob->path_attuned) |
980 | { |
980 | { |
981 | caster_level += min (cast_level, ATTUNE_REPELL); |
981 | caster_level += min (caster_level, ATTUNE_REPELL); |
982 | msg = " (attuned)"; |
982 | msg = " (attuned)"; |
983 | } |
983 | } |
984 | |
984 | |
985 | if (op->path_repelled & spell_ob->path_attuned) |
985 | if (op->path_repelled & spell_ob->path_attuned) |
986 | { |
986 | { |