Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- virtual void execute() override
- {
- hunter_melee_attack_t::execute();
- timespan_t animal_instincts = -p() -> find_spell( 232646 ) -> effectN( 1 ).time_value() * 1000;
- if ( p() -> active.pet )
- p() -> active.pet -> active.flanking_strike -> execute();
- if ( p() -> talents.animal_instincts -> ok() )
- {
- p() -> animal_instincts_cds.clear();
- if ( !p() -> cooldowns.flanking_strike -> up() )
- p() -> animal_instincts_cds.push_back( std::make_pair( p() -> cooldowns.flanking_strike, p() -> procs.animal_instincts_flanking ) );
- if ( !p() -> cooldowns.mongoose_bite -> up() )
- p() -> animal_instincts_cds.push_back( std::make_pair( p() -> cooldowns.mongoose_bite, p() -> procs.animal_instincts_mongoose ) );
- if ( !p() -> cooldowns.aspect_of_the_eagle -> up() )
- p() -> animal_instincts_cds.push_back( std::make_pair( p() -> cooldowns.aspect_of_the_eagle, p() -> procs.animal_instincts_aspect ) );
- if ( !p() -> cooldowns.harpoon -> up() )
- p() -> animal_instincts_cds.push_back( std::make_pair( p() -> cooldowns.harpoon, p() -> procs.animal_instincts_harpoon ) );
- if ( !p() -> animal_instincts_cds.empty() )
- {
- unsigned roll =
- as<unsigned>( p() -> rng().range( 0, p() -> animal_instincts_cds.size() ) );
- p() -> animal_instincts_cds[roll].first -> adjust( animal_instincts );
- p() -> animal_instincts_cds[roll].second -> occur();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment