限定法术施放目标

实现目标
  • 法术只对特定 creature | gameobject 施放,否则无法施放
实现方法

conditions

  • SourceTypeOrReferenceId:13(CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET)
  • SourceGroup:受条件影响的法术效果掩码,取值如下
    • 1:EFFECT_0
    • 2:EFFECT_1
    • 4:EFFECT_2
  • SourceEntry:受条件影响的法术ID,取值链接 Spell.db2
  • ConditionTypeOrReference:31(CONDITION_OBJECT_ENTRY_GUID)
  • ConditionValue1:
    • 3 : TYPEID_UNIT
    • 4 : TYPEID_PLAYER
    • 5 : TYPEID_GAMEOBJECT
    • 7 : TYPEID_CORPSE
  • ConditionValue2:
    • 0:给定 TypeID 的任何对象
    • Creature_template.entry(TYPEID_UNIT)
    • Gameobject_template.entry(TYPEID_GAMEOBJECT)
  • ConditionValue3:
    • 0:任何给定类型的对象
    • 1 - 500000:creature / gameobject GUID

举例

cpp 复制代码
INSERT INTO `world`.`conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES 
(13, 1, 73448, 0, 1, 31, 0, 3, 41742, 0, '', 0, 0, 0, '', 'On Creature \'War Kodo\' - Spell Implicit Target Available'),
(13, 1, 73449, 0, 1, 31, 0, 3, 41742, 0, '', 0, 0, 0, '', 'On Creature \'War Kodo\' - Spell Implicit Target Available');
相关推荐
狂师9 小时前
比 Playwright 更给力,推荐一个AI Agent的浏览器自动化开源项目!
前端·开源·测试
AI袋鼠帝11 小时前
开源「仓颉.Skill」2.0,你现在可以蒸馏任何视频!
开源·aigc
冬奇Lab1 天前
每日一个开源项目(第146篇):openpilot - 开源自动驾驶辅助系统,曾在 Consumer Reports 评测中超过特斯拉 Autopilot
人工智能·开源·自动驾驶
她的男孩1 天前
后台接口加密别只会 HTTPS,ForgeAdmin 的 RSA + SM4/AES 源码拆解
后端·面试·开源
fthux1 天前
如果你用 Mac,那你可能需要 Noti Shift
macos·开源·github
冬奇Lab2 天前
每日一个开源项目(第145篇):Trellis - 把项目记忆、规范和任务上下文持久化进代码仓库
人工智能·开源·资讯
小爷毛毛_卓寿杰2 天前
我把一个 3B 模型塞进了 Xinference,然后它干掉了 DeepSeek V3.2
人工智能·开源·github
饼干哥哥2 天前
扣子3.0测评:我让 Codex 和 Claude Code 住同一个桌面,结果它们打架了!
人工智能·开源·代码规范
HelloGitHub2 天前
《HelloGitHub》第 123 期
开源·github