tjc12821

Untitled

Oct 16th, 2016
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1.   virtual void impact( action_state_t* s ) override
  2.   {
  3.     warlock_spell_t::impact( s );
  4.  
  5.     if ( result_is_hit( s -> result ) )
  6.     {
  7.       if( p() -> talents.hand_of_doom -> ok() )
  8.       {
  9.         doom -> target = s -> target;
  10.         doom -> execute();
  11.       }
  12.       if ( p() -> sets.set( WARLOCK_DEMONOLOGY, T17, B2 ) )
  13.       {
  14.         if ( rng().roll( p() -> sets.set( WARLOCK_DEMONOLOGY, T17, B2 ) -> proc_chance() ) )
  15.         {
  16.           shards_used *= 1.5;
  17.         }
  18.       }
  19.       if ( s -> chain_target == 0 )
  20.         imp_event =  make_event<trigger_imp_event_t>( *sim, p(), floor( shards_used ), true);
  21.     }
  22.   }
Advertisement
Add Comment
Please, Sign In to add comment