Repository navigation
fix: 补全缘起 SELF/TARGET 宏指令与充能、日月条件校验 - #124
Merged
Merged
Conversation
yefansky
approved these changes
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
缘起官方已支持
castself、fcastself、casttarget、fcasttarget、skill_energy:技能名=max、moon~=sun和sun~=moon,但插件的云端宏校验会将这些写法拒绝为未知指令或未知条件。本次仅在
X.IS_CLASSIC下补齐这七项:四个新动作继续使用原有 SKILL 校验;=max匹配后继续检查技能名称;日月不等式采用完整字符串匹配。保留原有空格要求、其他条件处理和非缘起行为,不改宏正文或施放逻辑。修改文件:
MY_!Base/src/lib/Game.Macro.lua:新增 11 行、修改 1 行。!src-dist/tests/macro_validation.lua:新增 Lua 5.1 回归脚本,可独立运行;可选传入官方 macro.lua 和原版校验器以执行模拟及差分验证。验证:
独立回归命令:
lua !src-dist/tests/macro_validation.lua