wowlab_engine_content/hooks/frost_death_knight/
config.rs1use wowlab_engine_ports::HandlerParams;
2
3use crate::generated::specs::frost_death_knight::SET_BONUS;
4
5#[derive(Clone, Copy, Debug, Default)]
6pub(super) struct FrostDkConfig {
7 pub(super) mid1_2pc: bool,
8 pub(super) mid1_4pc: bool,
9}
10
11pub(super) fn frost_dk_config(params: &HandlerParams<'_>) -> FrostDkConfig {
12 FrostDkConfig {
13 mid1_2pc: params
14 .set_bonus_auras
15 .contains(&SET_BONUS::MID1_FROST_2PC),
16 mid1_4pc: params
17 .set_bonus_auras
18 .contains(&SET_BONUS::MID1_FROST_4PC),
19 }
20}