用了on_use,无法选择角色
LuaWanhuaCard = sgs.CreateSkillCard{
name = "LuaWanhuaCard" ,
target_fixed = true,
will_throw = true,
on_use = function(self, room, source, targets)
local dest = targets[1]
local choice = room:askForChoice(source, self:objectName(), "xvzuo+tianzhao+yuedu")
if choice == "xvzuo" then
if not dest:hasSkill("#LuaXvzuo") then
room:acquireSkill(dest, "#LuaTianzhao")
end
dest:gainMark("@tianzhao", 7)
room:loseHp(source, 1)
end
if choice == "tianzhao" then
if not dest:hasSkill("#LuaTianzhao") then
room:acquireSkill(dest, "#LuaTianzhao")
end
dest:gainMark("@tianzhao", 7)
room:loseHp(source, 1)
end
if choice == "yuedu" then
if not dest:hasSkill("#LuaYuedu") then
room:acquireSkill(dest, "#LuaYuedu")
end
dest:gainMark("@yuedu", 7)
room:loseHp(source, 1)
end
end
}
LuaWanhuaCard = sgs.CreateSkillCard{
name = "LuaWanhuaCard" ,
target_fixed = true,
will_throw = true,
on_use = function(self, room, source, targets)
local dest = targets[1]
local choice = room:askForChoice(source, self:objectName(), "xvzuo+tianzhao+yuedu")
if choice == "xvzuo" then
if not dest:hasSkill("#LuaXvzuo") then
room:acquireSkill(dest, "#LuaTianzhao")
end
dest:gainMark("@tianzhao", 7)
room:loseHp(source, 1)
end
if choice == "tianzhao" then
if not dest:hasSkill("#LuaTianzhao") then
room:acquireSkill(dest, "#LuaTianzhao")
end
dest:gainMark("@tianzhao", 7)
room:loseHp(source, 1)
end
if choice == "yuedu" then
if not dest:hasSkill("#LuaYuedu") then
room:acquireSkill(dest, "#LuaYuedu")
end
dest:gainMark("@yuedu", 7)
room:loseHp(source, 1)
end
end
}