Bug Verified

Targeters behave incorrectly in metaskills called from randomskill

#6228 opened by Unknown 1 year ago

Unknownreported this bug

Summary

The 'message' skill causes the message to be visible to everyone on the server, including those in creative mode or spectator mode (which are set to be ignored in config.yml).

Steps to reproduce

draw_lots:
  Skills:
  - message{m="&f&l你口中唸唸有詞..向神靈祈求一支籤&a&l(溫馨提示:開啟音效會更有氛圍感)"} @self
  - delay 70
  - randomskill{skills=大吉,吉,小吉,中平,小凶,凶,大凶} @self
大吉:
  Skills:
  - message{m="&f玩家 &e<caster.name>&f 抽到了&6&l大吉&f恭喜他!"} @PlayersInRadius{r=10}
  - message{m="恭喜你抽到了&6&l大吉!"} @self

### @PlayersInRadius{r=10}
This section causes it to be visible to everyone on the server. However, when I put 'message' under the 'draw_lots' skill, it functions normally.
I use MMOItems to invoke this skill. I think it's related to the recent update regarding the 'message' skill.

paper 1.21.1 MythicMobsPremium-5.8.2-SNAPSHOT

Unknowncommented

Closing due to incomplete information and old versions used. Update, and if issue is still present, re-open this report with a recent-version server log (from startup until issue is present), the config being used to test and step-by-step how to reproduce the issue.

Unknowncommented

As mentioned in the text, the skill is as follows. This can be verified: even if the player is not within the 10-block trigger range, they will still see the message.

Version 5.9.0 still has this problem. There are no error codes.

draw_lots:
  Skills:
  - message{m="&f&l你口中唸唸有詞..向神靈祈求一支籤&a&l(溫馨提示:開啟音效會更有氛圍感)"} @self
  - delay 70
  - randomskill{skills=大吉} @self
大吉:
  Skills:
  - message{m="&f玩家 &e<caster.name>&f 抽到了&6&l大吉&f恭喜他!"} @PlayersInRadius{r=10}
  - message{m="恭喜你抽到了&6&l大吉!"} @self

Unknowncommented

@tygh78071388 A complete modern-version server startup log is required - upload using a service such as pastebin from server start to this issue occurring, as well as config info such as how the draw_lots metaskill is being called.

Unknowncommented

Got some weird behavior when testing the below configs. I've also attached a small 30 second clip of my testing.

It seems as if after the Randomskill is called, that the trigger becomes the caster location. But not the actual caster, because the @self message does NOT go to me.

https://youtu.be/QN1xX5xmiLw

#Mob Skill
  - skill:test_cast @self ~onInteract

#Meta Skills
test_cast:
  Skills:
  - message{m="Testing scope"} @self
  - message{m="Prepare for radius test"} @PlayersInRadius{r=10}
  - delay 70
  - randomskill{skills=tryme} @self
tryme:
  Skills:
  - message{m="only to the radius"} @PlayersInRadius{r=10}
  - message{m="nearby players heard that"} @self
Unknowncommented

I am also having issues with @PlayersInRadius sending messages to players far from the issuing mob, far out of the range. Players on the far side of the server map see messages from mobs spawning. The mobs are random spawns, if that matters.

The mobs I am testing with: https://pastebin.com/QKcdf8hh

Startup log: https://pastebin.com/zkPK17NF On Paper version 1.21.4-224-main@0cf7315 and MythicMobs version 5.9.0-SNAPSHOT-7a08b23b

Unknowncommented

Fixed recently!

Sign in to join the discussion.