Skip to content

Commit a5e1a5e

Browse files
committed
[DH] specify supported fight styles
1 parent 4fdef9e commit a5e1a5e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

engine/class_modules/sc_demon_hunter.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9279,7 +9279,7 @@ bool demon_hunter_t::validate_fight_style( fight_style_e style ) const
92799279
#ifdef NDEBUG
92809280
if ( style == FIGHT_STYLE_DUNGEON_SLICE && !options.enable_dungeon_slice )
92819281
{
9282-
sim->error( "Dungeon Slice is disabled for Demon Hunter. To force enable, use enable_dungeon_slice=1 option." );
9282+
sim->error( SEVERE, "Dungeon Slice is disabled for Demon Hunter. To force enable, use enable_dungeon_slice=1 option." );
92839283
sim->cancel();
92849284
}
92859285
#endif
@@ -9288,16 +9288,12 @@ bool demon_hunter_t::validate_fight_style( fight_style_e style ) const
92889288
switch ( specialization() )
92899289
{
92909290
case DEMON_HUNTER_HAVOC:
9291-
break;
9291+
return style == FIGHT_STYLE_PATCHWERK || style == FIGHT_STYLE_DUNGEON_ROUTE || style == FIGHT_STYLE_CASTING_PATCHWERK || style == FIGHT_STYLE_HECTIC_ADD_CLEAVE;
92929292
case DEMON_HUNTER_VENGEANCE:
9293-
if ( style == FIGHT_STYLE_DUNGEON_ROUTE )
9294-
return false;
9295-
break;
9293+
return style == FIGHT_STYLE_PATCHWERK || style == FIGHT_STYLE_CASTING_PATCHWERK || style == FIGHT_STYLE_HECTIC_ADD_CLEAVE;
92969294
default:
9297-
break;
9295+
return false;
92989296
}
9299-
9300-
return true;
93019297
}
93029298

93039299
// demon_hunter_t::invalidate_cache =========================================

0 commit comments

Comments
 (0)