@@ -950,7 +950,7 @@ class demon_hunter_t : public parse_player_effects_t
950950 double wounded_quarry_chance_havoc = 0.10 ;
951951 // How many seconds that Vengeful Retreat locks out Felblade
952952 double felblade_lockout_from_vengeful_retreat = 0.6 ;
953- bool enable_dungeon_slice = false ;
953+ bool enable_dungeon_slice = false ;
954954 } options;
955955
956956 demon_hunter_t ( sim_t * sim, util::string_view name, race_e r );
@@ -8390,8 +8390,7 @@ void demon_hunter_t::create_options()
83908390 add_option ( opt_float ( " wounded_quarry_chance_havoc" , options.wounded_quarry_chance_havoc , 0 , 1 ) );
83918391 add_option (
83928392 opt_float ( " felblade_lockout_from_vengeful_retreat" , options.felblade_lockout_from_vengeful_retreat , 0 , 1 ) );
8393- add_option (
8394- opt_bool ( " enable_dungeon_slice" , options.enable_dungeon_slice ) );
8393+ add_option ( opt_bool ( " enable_dungeon_slice" , options.enable_dungeon_slice ) );
83958394}
83968395
83978396// demon_hunter_t::create_pet ===============================================
@@ -9277,23 +9276,27 @@ void demon_hunter_t::init_finished()
92779276
92789277bool demon_hunter_t::validate_fight_style ( fight_style_e style ) const
92799278{
9280- switch (style)
9279+ #ifdef NDEBUG
9280+ if ( style == FIGHT_STYLE_DUNGEON_SLICE && !options.enable_dungeon_slice )
92819281 {
9282- case FIGHT_STYLE_DUNGEON_SLICE:
9283- if (options.enable_dungeon_slice )
9284- {
9285- break ;
9286- }
9287- sim->error ( " Dungeon Slice is disabled for Demon Hunter. To force enable, use enable_dungeon_slice=1 option." );
9288- sim->cancel ();
9282+ sim->error ( " Dungeon Slice is disabled for Demon Hunter. To force enable, use enable_dungeon_slice=1 option." );
9283+ sim->cancel ();
9284+ }
9285+ #endif
9286+
9287+ // TODO: MIDNIGHT - ADD DEVOURER
9288+ switch ( specialization () )
9289+ {
9290+ case DEMON_HUNTER_HAVOC:
92899291 break ;
9290- case FIGHT_STYLE_DUNGEON_ROUTE :
9291- if (specialization () == DEMON_HUNTER_VENGEANCE )
9292+ case DEMON_HUNTER_VENGEANCE :
9293+ if ( style == FIGHT_STYLE_DUNGEON_ROUTE )
92929294 return false ;
92939295 break ;
92949296 default :
92959297 break ;
92969298 }
9299+
92979300 return true ;
92989301}
92999302
0 commit comments