限定法术施放目标

实现目标
  • 法术只对特定 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');
相关推荐
聪明努力的积极向上20 小时前
【MYSQL】字符串拼接和参数化sql语句区别
数据库·sql·mysql
2301_7683502320 小时前
MySQL为什么选择InnoDB作为存储引擎
java·数据库·mysql
哥哥还在IT中20 小时前
MySQL order by 如何优化
数据库·mysql
逻极21 小时前
Python MySQL防SQL注入实战:从字符串拼接的坑到参数化查询的救赎
python·mysql·安全·sql注入
帅大大的架构之路21 小时前
mysql批量插入数据如何更快
数据库·mysql
Amber_371 天前
mysql 死锁场景 INSERT ... ON DUPLICATE KEY UPDATE
数据库·mysql
思成不止于此1 天前
【MySQL 零基础入门】MySQL 约束精讲(一):基础约束篇
数据库·笔记·sql·学习·mysql
逐梦吧!旅行者1 天前
Linux MySQL 5.7用户管理与用户密码的设置问题
linux·mysql
DisonTangor1 天前
【小米拥抱开源】小米MiMo团队开源309B专家混合模型——MiMo-V2-Flash
人工智能·开源·aigc
NaiLuo_451 天前
MySQL基本查询
数据库·mysql