Skip to main content

wowlab_engine_content/hooks/items/
house_of_cards.rs

1use wowlab_engine_combat::{AuraOps as _, HookCtx};
2
3use crate::generated::items::house_of_cards::AURA;
4
5const MAX_STACKS: i32 = 10;
6
7/// Advances the counter; per-stat rolling is unsupported.
8pub(crate) fn on_cast_use(ctx: &mut HookCtx<'_>) {
9    let current = ctx.aura_stacks_id(AURA::EQUIP);
10
11    if current >= MAX_STACKS {
12        return;
13    }
14
15    ctx.apply_aura_id(AURA::EQUIP);
16}