Bug Closed · Resolved

onDamaged Aura can't detect damage tag conditions when onHit skill triggers

#10022 opened by 1941565808 2 weeks ago

1941565808reported this bug

I wrote a test item: 1. onSwing deals 2 damage to myself, and the damage carries the fire damage tag 2. While holding the item, if I take damage tagged with fire, will receive a message 3. onUse grants an Aura with an onDamaged component; while the Aura is active, any damage that does NOT carry the fire tag should trigger a title message

However, the test results tell me that the onDamaged component did not successfully recognize the damagetag condition, because while the Aura was active, taking fire-tagged damage to myself still triggered the title message.




1941565808commented

oDTest: Material: DIAMOND Skills:

  • d{a=2;pk=true;rtag=fire} @self ~onSwing
  • m{m="FIRE"} @self ~onDamaged ?damagetag{t=fire}

  • aura{auraName=oDTest;d=1200;rd=true;i=1;bt=true; components=[ - onDamaged{oD=[ - title{t="&a<skill.var.damage-tags>";st="";fi=5;d=10;fo=5} @self ?!damagetag{t=fire} ]} ]} @self ~onUse
Sign in to join the discussion.