From: <gi...@cr...> - 2025-07-22 03:00:17
|
via da159a28c5593fbeb62f542bf7ad74c60abf8768 (commit) from d36b845a409c0b4b6bab2859d4ba2eac18682136 (commit) ----------------------------------------------------------------------- commit da159a28c5593fbeb62f542bf7ad74c60abf8768 Author: hellmonk <nld...@gm...> Date: Mon Jul 21 21:51:32 2025 -0500 Allow default targeting harmless friends Don't check that the monster is threatening when deciding whether or not to target them with ally-targeting spells, since those spells can be assumed to be beneficial. As far as I can tell, this only affects Percussive Tempering at the moment. Closes #4434. Fixes #4343. ----------------------------------------------------------------------- Summary of changes: crawl-ref/source/directn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index cc7616244e..563af40107 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -2883,7 +2883,7 @@ static void _describe_oos_square(const coord_def& where) static bool _want_target_monster(const monster *mon, targ_mode_type mode, targeter* hitfunc) { - if (!mons_is_threatening(*mon)) + if (!mons_is_threatening(*mon) && mode != TARG_FRIEND) return false; if (hitfunc && !hitfunc->affects_monster(monster_info(mon))) -- Dungeon Crawl Stone Soup |