Skip to content

Commit

Permalink
Fix line pass to not be cblink (11228)
Browse files Browse the repository at this point in the history
This was broken in 44a4606, by
replacing ZAP_EXPLOSIVE_BOLT with ZAP_DEBUGGING_RAY for
targeter_monster_sequence.  Z_D_R does not have can_beam set, and so
therefore leads to beam paths not being calculated in the way that
targeter_monster_sequence needs for its aiming functions.
  • Loading branch information
rawlins committed Sep 17, 2017
1 parent 0785366 commit c1afaeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crawl-ref/source/target.cc
Expand Up @@ -1371,6 +1371,9 @@ aff_type targeter_shotgun::is_affected(coord_def loc)
targeter_monster_sequence::targeter_monster_sequence(const actor *act, int pow, int r) :
targeter_beam(act, r, ZAP_DEBUGGING_RAY, pow, 0, 0)
{
// for `path_taken` to be set properly, the beam needs to be piercing, and
// ZAP_DEBUGGING_RAY is not.
beam.pierce = true;
}

bool targeter_monster_sequence::set_aim(coord_def a)
Expand Down

0 comments on commit c1afaeb

Please sign in to comment.