YangyanCard = sgs.CreateSkillCard{
name = "YangyanCard",
target_fixed = false,
will_throw = false,
on_use = function(self, room, source, targets)
local fire = source:getPile("fire")
room:fillAG(fire, source)
local id = room:askForAG(source, fire, false, "LuaYangyan")
room:throwCard(id, source)
source:invoke("clearAG")
local card = sgs.Sanguosha:getCard(id)
local number = card:getNumber()
local list = room:getAlivePlayers()
local dest = room:askForPlayerChosen(source, list, "LuaYangyan")
local count = (number+1) / 2
local theDamage = sgs.DamageStruct()
theDamage.from = source
theDamage.to = dest
theDamage.damage_Fire = count
theDamage.nature = sgs.DamageStruct_Normal
room:damage(theDamage)
end
}
这个技能卡我到底写错了什么为何到了clearAG就失效
name = "YangyanCard",
target_fixed = false,
will_throw = false,
on_use = function(self, room, source, targets)
local fire = source:getPile("fire")
room:fillAG(fire, source)
local id = room:askForAG(source, fire, false, "LuaYangyan")
room:throwCard(id, source)
source:invoke("clearAG")
local card = sgs.Sanguosha:getCard(id)
local number = card:getNumber()
local list = room:getAlivePlayers()
local dest = room:askForPlayerChosen(source, list, "LuaYangyan")
local count = (number+1) / 2
local theDamage = sgs.DamageStruct()
theDamage.from = source
theDamage.to = dest
theDamage.damage_Fire = count
theDamage.nature = sgs.DamageStruct_Normal
room:damage(theDamage)
end
}
这个技能卡我到底写错了什么为何到了clearAG就失效