Skip to main content

wowlab_engine_content/hooks/items/
gaze_of_the_alnseer.rs

1use wowlab_engine_combat::{AuraOps as _, HookCtx, ImpactEvent, ProcOps as _};
2
3use crate::generated::items::gaze_of_the_alnseer::{AURA, ITEM_ID};
4
5pub(crate) fn on_player_impact(ctx: &mut HookCtx<'_>, _impact: ImpactEvent) {
6    if ctx.roll_item_rppm(ITEM_ID) {
7        ctx.apply_aura_id(AURA::ALNSIGHT);
8    }
9
10    if ctx.is_aura_active_id(AURA::ALNSIGHT) && ctx.proc_category_ready(AURA::ALNSIGHT) {
11        ctx.start_proc_category_cooldown(AURA::ALNSIGHT);
12        ctx.apply_aura_id(AURA::ESSENCE);
13    }
14}