Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void consume_resource() override
- {
- spell_t::consume_resource();
- if ( resource_current == RESOURCE_SOUL_SHARD )
- {
- if ( p() -> legendary.the_master_harvester )
- {
- timespan_t sh_duration = p() -> find_spell( 248113 ) -> effectN( 4 ).time_value() * 1000;
- double sh_proc_chance;
- switch ( p() -> specialization() )
- {
- case WARLOCK_AFFLICTION:
- sh_proc_chance = p() -> find_spell( 248113 ) -> effectN( 1 ).percent();
- break;
- case WARLOCK_DEMONOLOGY:
- sh_proc_chance = p() -> find_spell( 248113 ) -> effectN( 2 ).percent();
- break;
- case WARLOCK_DESTRUCTION:
- sh_proc_chance = p() -> find_spell( 248113 ) -> effectN( 3 ).percent();
- break;
- }
- for ( int i = 0; i < last_resource_cost; i++ )
- {
- if ( p() -> rng().roll( sh_proc_chance ) )
- {
- p() -> buffs.soul_harvest -> trigger( 1, buff_t::DEFAULT_VALUE(), -1.0, sh_duration );
- p() -> procs.the_master_harvester -> occur();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment