Guest User

Untitled

a guest
Jan 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. engine/class_modules/sc_mage.cpp | 9 +++++++++
  2. 1 file changed, 9 insertions(+)
  3.  
  4. diff --git a/engine/class_modules/sc_mage.cpp b/engine/class_modules/sc_mage.cpp
  5. index bb59a99..d067fe2 100755
  6. --- a/engine/class_modules/sc_mage.cpp
  7. +++ b/engine/class_modules/sc_mage.cpp
  8. @@ -342,6 +342,7 @@ public:
  9. timespan_t firestarter_time;
  10. int blessing_of_wisdom_count;
  11. bool allow_shimmer_lance;
  12. + timespan_t inferno_time;
  13.  
  14. // Data collection
  15. auto_dispose<std::vector<cooldown_waste_data_t*> > cooldown_waste_data_list;
  16. @@ -6838,6 +6839,7 @@ mage_t::mage_t( sim_t* sim, const std::string& name, race_e r ) :
  17. distance_from_rune( 0.0 ),
  18. global_cinder_count( 0.0 ),
  19. firestarter_time( timespan_t::zero() ),
  20. + inferno_time( timespan_t::zero() ),
  21. blessing_of_wisdom_count( 0 ),
  22. allow_shimmer_lance( false ),
  23. action( actions_t() ),
  24. @@ -7085,6 +7087,7 @@ void mage_t::create_options()
  25. add_option( opt_timespan( "firestarter_time", firestarter_time ) );
  26. add_option( opt_int( "blessing_of_wisdom_count", blessing_of_wisdom_count ) );
  27. add_option( opt_bool( "allow_shimmer_lance", allow_shimmer_lance ) );
  28. + add_option( opt_timespan( "inferno_time", inferno_time ) );
  29. player_t::create_options();
  30. }
  31.  
  32. @@ -7117,6 +7120,7 @@ void mage_t::copy_from( player_t* source )
  33. firestarter_time = p -> firestarter_time;
  34. blessing_of_wisdom_count = p -> blessing_of_wisdom_count;
  35. allow_shimmer_lance = p -> allow_shimmer_lance;
  36. + inferno_time = p -> inferno_time;
  37. }
  38.  
  39. // mage_t::merge =========================================================
  40. @@ -8627,6 +8631,11 @@ void mage_t::combat_begin()
  41. uptime.burn_phase -> update( false, sim -> current_time() );
  42. uptime.conserve_phase -> update( true, sim -> current_time() );
  43. }
  44. +
  45. + if ( inferno_time > timespan_t::zero() ) {
  46. + buffs.inferno -> buff_duration = inferno_time;
  47. + buffs.inferno -> trigger();
  48. + }
  49. }
  50.  
  51. void mage_t::combat_end()
Add Comment
Please, Sign In to add comment