Skip to content

Commit 3794ef3

Browse files
committed
[Hunter] Hydra's Bite should not hit primary target ever as Serpentstalker's Trickery does that
1 parent 5016381 commit 3794ef3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

engine/class_modules/sc_hunter.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5084,16 +5084,15 @@ struct aimed_shot_base_t : public hunter_ranged_attack_t
50845084
{
50855085
serpent_sting_t::available_targets( tl );
50865086

5087+
// Remove the cast target as it will get hit by Serpentstalker's Trickery
5088+
range::erase_remove( tl, target );
5089+
50875090
if ( is_aoe() && tl.size() > 1 )
50885091
{
50895092
// Prefer targets without Serpent Sting ticking.
50905093
auto start = tl.begin();
50915094
std::partition( *start == target ? std::next( start ) : start, tl.end(),
50925095
[ this ]( player_t* t ) { return !( this->td( t )->dots.serpent_sting->is_ticking() ); } );
5093-
5094-
// Remove the cast target if it is already ticking, otherwise it remains as the first target.
5095-
if ( p()->get_target_data( target )->dots.serpent_sting->is_ticking() )
5096-
range::erase_remove( tl, target );
50975096
}
50985097

50995098
return tl.size();

0 commit comments

Comments
 (0)