Skip to content

Commit

Permalink
[Shadow] Fix bug i added
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeldur committed Jan 13, 2025
1 parent 2885ca8 commit 2558bed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions engine/class_modules/priest/sc_priest_shadow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,8 @@ struct dark_ascension_t final : public priest_spell_t
{
if ( p().is_ptr() && p().sets->has_set_bonus( PRIEST_SHADOW, TWW2, B2 ) )
{
void_bolt_damage_action->execute_on_target( rng().range( sim->target_non_sleeping_list ) );
if ( !sim->target_non_sleeping_list.empty() )
void_bolt_damage_action->execute_on_target( rng().range( sim->target_non_sleeping_list ) );
}

priest_spell_t::execute();
Expand Down Expand Up @@ -1461,8 +1462,8 @@ struct void_eruption_t final : public priest_spell_t
{
if ( p().is_ptr() && p().sets->has_set_bonus( PRIEST_SHADOW, TWW2, B2 ) )
{
if ( !sim->target_non_sleeping_list.empty() )
void_bolt_damage_action->execute_on_target( target );
if ( pre_execute_state )
void_bolt_damage_action->execute_on_target( pre_execute_state->target );
}

priest_spell_t::execute();
Expand Down

0 comments on commit 2558bed

Please sign in to comment.