Skip to main content

wowlab_engine_content/hooks/items/
foul_behemoth_chelicera.rs

1use wowlab_engine_combat::{AuraOps as _, HookCtx, ProcOps as _};
2
3use crate::{
4    generated::items::foul_behemoth_chelicera::{AURA_BINDING, RPPM_BINDING},
5    hooks::items::{bound_aura, bound_rppm},
6};
7
8/// Approximates the on-damage-taken trigger as 2.5 RPPM on player casts.
9pub(crate) fn on_player_cast(ctx: &mut HookCtx<'_>) {
10    if bound_rppm(ctx, RPPM_BINDING).is_some_and(|rppm| ctx.roll_rppm(rppm))
11        && let Some(aura) = bound_aura(ctx, AURA_BINDING::DIGESTIVE_VENOM)
12    {
13        ctx.apply_aura(aura);
14    }
15}