… | |
… | |
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. |