tjc12821

Untitled

Oct 7th, 2018
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1.     if ( warlock.specialization() == WARLOCK_AFFLICTION )
  2.     {
  3.       for ( auto& current_ua : dots_unstable_affliction )
  4.       {
  5.         if ( current_ua->is_ticking() )
  6.         {
  7.           warlock.sim->print_log( "Player {} demised. Warlock {} gains a shard from unstable affliction.", target->name(), warlock.name() );
  8.  
  9.           warlock.resource_gain( RESOURCE_SOUL_SHARD, 1, warlock.gains.unstable_affliction_refund );
  10.  
  11.           // you can only get one soul shard per death from UA refunds
  12.           break;
  13.         }
  14.       }
  15.  
  16.       if ( dots_drain_soul->is_ticking() )
  17.       {
  18.         warlock.sim->print_log( "Player {} demised. Warlock {} gains a shard from drain soul.", target->name(), warlock.name() );
  19.  
  20.         warlock.resource_gain( RESOURCE_SOUL_SHARD, 1, warlock.gains.drain_soul );
  21.       }
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment