Skip to content

Commit

Permalink
[Gear] check for valid target at end of siphoning stilleto delay
Browse files Browse the repository at this point in the history
  • Loading branch information
gastank committed Sep 25, 2024
1 parent 54c345a commit b9a5c91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/player/unique_gear_thewarwithin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,8 @@ void siphoning_stilleto( special_effect_t& effect )
self->execute_on_target( listener );
// TODO: implement range check if it ever matters for specilizations that can use this.
make_event( *listener->sim, duration, [ this ] {
damage->execute_on_target( rng().range( listener->sim->target_non_sleeping_list ) );
if ( !listener->sim->target_non_sleeping_list.empty() )
damage->execute_on_target( rng().range( listener->sim->target_non_sleeping_list ) );
} );
}
};
Expand Down

0 comments on commit b9a5c91

Please sign in to comment.