Skip to content

Commit

Permalink
fix dots dealing damage to all bpts even without bodyparts affected
Browse files Browse the repository at this point in the history
  • Loading branch information
GuardianDll committed Nov 8, 2024
1 parent 02306cf commit f10f747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/magic_spell_effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ static void damage_targets( const spell &sp, Creature &caster,
damage_over_time_data dot_data = sp.damage_over_time( target_bdpts, caster );
dot_data.amount /= target_bdpts.size();
cr->add_damage_over_time( dot_data );
} else if( !target_bdpts.empty() ) {
} else if( sp.bps_affected() > 0 ) {
cr->add_damage_over_time( sp.damage_over_time( target_bdpts, caster ) );
} else {
cr->add_damage_over_time( sp.damage_over_time( { cr->get_random_body_part() }, caster ) );
Expand Down

0 comments on commit f10f747

Please sign in to comment.