Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct reap_souls_t: public warlock_spell_t
- {
- timespan_t base_duration;
- timespan_t total_duration;
- int souls;
- reap_souls_t( warlock_t* p ) :
- warlock_spell_t( "reap_souls", p, p -> artifact.reap_souls ), souls(0)
- {
- harmful = may_crit = false;
- ignore_false_positive = true;
- base_duration = p -> buffs.deadwind_harvester -> buff_duration;
- }
- virtual void execute() override
- {
- warlock_spell_t::execute();
- total_duration = base_duration * p() -> buffs.tormented_souls -> current_stack;
- p() -> buffs.deadwind_harvester -> trigger( 1, buff_t::DEFAULT_VALUE(), -1.0, total_duration );
- for ( int i = 0; i < p() -> buffs.tormented_souls -> current_stack; ++i )
- {
- p() -> procs.souls_consumed -> occur();
- }
- p() -> buffs.tormented_souls -> expire();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment