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_BINDING, hooks::items::bound_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 Some(aura) = bound_aura(ctx, AURA_BINDING::EQUIP) else {
10 return;
11 };
12 let current = ctx.aura_stacks(aura);
13
14 if current >= MAX_STACKS {
15 return;
16 }
17
18 ctx.apply_aura(aura);
19}