Skip to content

Commit

Permalink
[Hunter] Each secondary Withering Fire projectile can be multiplied b…
Browse files Browse the repository at this point in the history
…y effects such as Hunter's Prey
  • Loading branch information
Pewtro committed Nov 16, 2024
1 parent 7226934 commit 2f3dd0f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions engine/class_modules/sc_hunter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4551,6 +4551,18 @@ struct black_arrow_withering_fire_secondary_t final : black_arrow_base_t
aoe = as<int>( p->talents.withering_fire->effectN( 3 ).base_value() );
}

//Each secondary Withering Fire projectile can be multiplied by effects such as Hunter's Prey
int n_targets() const override
{
int n = black_arrow_base_t::n_targets();

if ( p()->talents.hunters_prey.ok() )
{
return n * aoe;
}
return n;
}

size_t available_targets( std::vector<player_t*>& tl ) const override
{
black_arrow_base_t::available_targets( tl );
Expand Down

0 comments on commit 2f3dd0f

Please sign in to comment.