```lua skills = { { name = "锁定技", skill_type = "锁定技", frequency = "锁定", on_use = function(self, event, target, cards) if event == "card_use" and cards then for _, card in ipairs(cards) do if card.suit == "heart" or card.suit == "diamond" then card.nature = "fire" end end end end }, { name = "火杀增伤", skill_type = "锁定技", frequency = "锁定", on_damage = function(self, event, damage, source, target, card) if event == "damage" and card and card.nature == "fire" then damage.damage = damage.damage + 1 end end }, { name = "黑杀必中", skill_type = "锁定技", frequency = "锁定", on_use = function(self, event, target, cards) if event == "card_use" and cards then for _, card in ipairs(cards) do if card.suit == "spade" or card.suit == "club" then card.unavoidable = true end end end end } } ``` 我在以往的开发过程中,碰到过以下几点需要格外小心处理的地方: - 确保属性修改在卡牌使用阶段正确处理,避免影响其他卡牌逻辑。 - 伤害增加效果需准确触发,防止多次计算或遗漏。 - 不可被闪避属性设置需谨慎,避免与其他技能冲突导致意外行为。 [2025-08-31 14:24:57 | AI写代码神器 | 372点数解答]