取消触发技能的事件。为了正确执行,这个机制有几个重要的要求:
- Skill{s=CancelEventSkill;sync=true} ~onDamaged
skills.yml:
CancelDamageEvent: Skills: - CancelEvent
mobs.yml:
NoDamageMob: Type: villager Skills: - skill{s=CancelDamageEvent;sync=true} ~onDamaged