tjc12821

Untitled

Jun 5th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1.     virtual void execute() override
  2.     {
  3.       warlock_spell_t::execute();
  4.  
  5.       if ( p() -> artifact.reap_souls.rank() && p() -> buffs.tormented_souls -> check() )
  6.       {
  7.         base_time = base_duration + reap_and_sow_bonus;
  8.         souls_consumed = p() -> buffs.tormented_souls -> stack();
  9.         total_duration = base_time * souls_consumed;
  10.         max_extension = base_time * 12 - p() -> buffs.deadwind_harvester -> remains();
  11.  
  12.         p() -> buffs.deadwind_harvester -> trigger( 1, buff_t::DEFAULT_VALUE(), -1.0, std::min( max_extension, total_duration ) );
  13.  
  14.         for ( int i = 0; i < souls_consumed; ++i )
  15.         {
  16.           p() -> procs.souls_consumed -> occur();
  17.         }
  18.         p() -> buffs.tormented_souls -> decrement( souls_consumed );
  19.       }
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment