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 = timespan_t::from_seconds( -3 ); //FIXME find spelldata
- if ( p() -> active.pet )
- p() -> active.pet -> active.flanking_strike -> execute();
- if ( p() -> talents.animal_instincts -> ok() )
- {
- if ( !p() -> cooldowns.flanking_strike -> up() )
- p() -> animal_instincts_cds.push_back( p() -> cooldowns.flanking_strike );
- if ( !p() -> cooldowns.mongoose_bite -> up() )
- p() -> animal_instincts_cds.push_back( p() -> cooldowns.mongoose_bite );
- if ( !p() -> cooldowns.aspect_of_the_eagle -> up() )
- p() -> animal_instincts_cds.push_back( p() -> cooldowns.aspect_of_the_eagle );
- if ( !p() -> cooldowns.harpoon -> up() )
- p() -> animal_instincts_cds.push_back( p() -> cooldowns.harpoon );
- unsigned roll =
- as<unsigned>( p() -> rng().range( 0, p() -> animal_instincts_cds.size() ) );
- p() -> animal_instincts_cds[roll] -> adjust( animal_instincts );
- p() -> procs.animal_instincts -> occur();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment