tjc12821

Untitled

Aug 6th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. struct deadwind_harvester_t : public buff_t
  2. {
  3.   deadwind_harvester_t( warlock_t* p ) :
  4.     buff_t( buff_creator_t( p, "deadwind_harvester", p -> find_spell( 216708 ) ) )
  5.   {
  6.   }
  7.  
  8.   void execute( int a, double b, timespan_t t ) override
  9.   {
  10.     warlock_t* p = debug_cast<warlock_t*>( player );
  11.  
  12.     buff_t::execute( a, b, t );
  13.  
  14.     p -> reap_souls_modifier = 2.0;
  15.   }
  16.  
  17.   void expire_override( int expiration_stacks, timespan_t remaining_duration ) override
  18.   {
  19.     buff_t::expire_override( expiration_stacks, remaining_duration );
  20.     warlock_t* p = static_cast<warlock_t*>( player );
  21.  
  22.     p -> reap_souls_modifier = 1.0;
  23.   }
  24. };
Advertisement
Add Comment
Please, Sign In to add comment