jiexian_yicongyx = sgs.CreateTriggerSkill{
name = "#jiexian_yicong",
events = {sgs.HpChanged},
on_trigger = function(self, event, player, data)
local room = player:getRoom()
local hp = player:getHp()
if (hp > 2) then
room:broadcastSkillInvoke("jiexian_yicong1")
end
if (hp <= 2) then
room:broadcastSkillInvoke("jiexian_yicong2")
end
}
jiexian_gongsunzan:addSkill(jiexian_qiaomeng)
jiexian_gongsunzan:addSkill(jiexian_yicong)
jiexian_gongsunzan:addSkill(jiexian_yicongyx)
extension:insertRelatedSkills("jiexian_yicong", "#jiexian_yicong")
name = "#jiexian_yicong",
events = {sgs.HpChanged},
on_trigger = function(self, event, player, data)
local room = player:getRoom()
local hp = player:getHp()
if (hp > 2) then
room:broadcastSkillInvoke("jiexian_yicong1")
end
if (hp <= 2) then
room:broadcastSkillInvoke("jiexian_yicong2")
end
}
jiexian_gongsunzan:addSkill(jiexian_qiaomeng)
jiexian_gongsunzan:addSkill(jiexian_yicong)
jiexian_gongsunzan:addSkill(jiexian_yicongyx)
extension:insertRelatedSkills("jiexian_yicong", "#jiexian_yicong")