… | |
… | |
820 | |
820 | |
821 | /* Need to know what the movetype of the object we are about |
821 | /* Need to know what the movetype of the object we are about |
822 | * to create is, so we can know if the space we are about to |
822 | * to create is, so we can know if the space we are about to |
823 | * insert it into is blocked. |
823 | * insert it into is blocked. |
824 | */ |
824 | */ |
825 | movetype = spell->other_arch->clone.move_type; |
825 | movetype = spell->other_arch->move_type; |
826 | |
826 | |
827 | for (i = range_min; i <= range_max; i++) |
827 | for (i = range_min; i <= range_max; i++) |
828 | { |
828 | { |
829 | sint16 x, y, d; |
829 | sint16 x, y, d; |
830 | |
830 | |
… | |
… | |
909 | else |
909 | else |
910 | tmp->duration += caster->level / 3; |
910 | tmp->duration += caster->level / 3; |
911 | } |
911 | } |
912 | |
912 | |
913 | if (!(tmp->move_type & MOVE_FLY_LOW)) |
913 | if (!(tmp->move_type & MOVE_FLY_LOW)) |
914 | LOG (llevDebug, "cast_cone(): arch %s doesn't have flying 1\n", &spell->other_arch->name); |
914 | LOG (llevDebug, "cast_cone(): arch %s doesn't have flying 1\n", &spell->other_arch->archname); |
915 | |
915 | |
916 | if (!tmp->move_on && tmp->stats.dam) |
916 | if (!tmp->move_on && tmp->stats.dam) |
917 | LOG (llevDebug, "cast_cone(): arch %s doesn't have move_on set\n", &spell->other_arch->name); |
917 | LOG (llevDebug, "cast_cone(): arch %s doesn't have move_on set\n", &spell->other_arch->archname); |
918 | |
918 | |
919 | m->insert (tmp, sx, sy, op); |
919 | m->insert (tmp, sx, sy, op); |
920 | |
920 | |
921 | /* This is used for tracking spells so that one effect doesn't hit |
921 | /* This is used for tracking spells so that one effect doesn't hit |
922 | * a single space too many times. |
922 | * a single space too many times. |
… | |
… | |
2099 | if (infect_object (walk, disease, 1)) |
2099 | if (infect_object (walk, disease, 1)) |
2100 | { |
2100 | { |
2101 | new_draw_info_format (NDI_UNIQUE, 0, op, "You inflict %s on %s!", &disease->name, &walk->name); |
2101 | new_draw_info_format (NDI_UNIQUE, 0, op, "You inflict %s on %s!", &disease->name, &walk->name); |
2102 | |
2102 | |
2103 | disease->destroy (); /* don't need this one anymore */ |
2103 | disease->destroy (); /* don't need this one anymore */ |
2104 | walk->map->insert (get_archetype (ARCH_DETECT_MAGIC), x, y, op); |
2104 | walk->map->insert (get_archetype ("detect_magic"), x, y, op); |
2105 | return 1; |
2105 | return 1; |
2106 | } |
2106 | } |
2107 | |
2107 | |
2108 | disease->destroy (); |
2108 | disease->destroy (); |
2109 | } |
2109 | } |