Bug Closed · Resolved

[Bug] onDamaged aura + onHit skill + cancelevent removes aura

#4640 opened by Unknown 2 years ago

Unknownreported this bug

Summary

The onDamaged aura has a bug, when using onHit + cancelevent

Steps to reproduce

  • onDamaged{d=1000;i=1;onHit=HITSKILL} @EIR{r=10}

HITSKILL: Skills:

  • cancelevent

Current behavior

The cancelevent removes the aura from the mob/player that has the aura

Intended correct behavior

Cancelevent should cancel the damage event that triggered the aura

Proposed fixes

Revise functionality -- Additional note, using ce=true does cancel the event, but it makes it impossible to do it conditionally. What I'm trying to do is have the damage amount be modified or canceled based on the triggering unit having (or not having) an aura. Using ce=true prevents 1) Retaining the damage amount through the use of the damage placeholder, and 2) having the damage be dealt in some cases, and not dealt in others

Unknowncommented

Closing due to inactivity and major version changes since posting. If this issue is still present, re-open this issue with a modern-version server log, configs used to test and steps to reproduce.

Sign in to join the discussion.