tjc12821

Untitled

Aug 11th, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. struct reap_souls_t: public warlock_spell_t
  2. {
  3.   timespan_t base_duration;
  4.   timespan_t total_duration;
  5.   int souls;
  6.     reap_souls_t( warlock_t* p ) :
  7.         warlock_spell_t( "reap_souls", p, p -> artifact.reap_souls ), souls(0)
  8.     {
  9.       harmful = may_crit = false;
  10.       ignore_false_positive = true;
  11.  
  12.       base_duration = p -> buffs.deadwind_harvester -> buff_duration;
  13.     }
  14.  
  15.     virtual void execute() override
  16.     {
  17.       warlock_spell_t::execute();
  18.  
  19.       total_duration = base_duration * p() -> buffs.tormented_souls -> current_stack;
  20.       p() -> buffs.deadwind_harvester -> trigger( 1, buff_t::DEFAULT_VALUE(), -1.0, total_duration );
  21.       for ( int i = 0; i < p() -> buffs.tormented_souls -> current_stack; ++i )
  22.       {
  23.         p() -> procs.souls_consumed -> occur();
  24.       }
  25.       p() -> buffs.tormented_souls -> expire();
  26.     }
  27. };
Advertisement
Add Comment
Please, Sign In to add comment