I try to catch event on a custom weapon.lua file for my staff, detect the stance of owner with the staff to active the effect but it's not working:
function update(dt, fireMode, shiftHeld) self.weapon:update(dt, fireMode, shiftHeld) sb.logWarn(tostring(animator.hasSound("charge_spell1"))) f(self.stance.armRotation == -45)then status.addEphemeralEffect("glow",5) end end
