Commit a44c0955 authored by 未闻皂名's avatar 未闻皂名

2023/1/1 优化选择效果

parent 4d46d416
...@@ -188,34 +188,30 @@ end ...@@ -188,34 +188,30 @@ end
-- 创建效果: 选择效果 -- 创建效果: 选择效果
function RushDuel.CreateMultiChooseEffect(card, condition, cost, hint1, target1, operation1, hint2, target2, operation2, category1, category2) function RushDuel.CreateMultiChooseEffect(card, condition, cost, hint1, target1, operation1, hint2, target2, operation2, category1, category2)
local e1 = Effect.CreateEffect(card) local e1 = Effect.CreateEffect(card)
e1:SetDescription(hint1)
if category1 ~= nil then
e1:SetCategory(category1)
end
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
local e2 = e1:Clone()
e1:SetDescription(hint1)
e2:SetDescription(hint2)
e1:SetCategory(category1 or 0)
e2:SetCategory(category2 or 0)
if condition ~= nil then if condition ~= nil then
e1:SetCondition(condition) e1:SetCondition(condition)
e2:SetCondition(condition)
end end
if cost ~= nil then if cost ~= nil then
e1:SetCost(cost) e1:SetCost(cost)
e2:SetCost(cost)
end end
if target1 ~= nil then if target1 ~= nil then
e1:SetTarget(target1) e1:SetTarget(target1)
end end
e1:SetOperation(operation1)
card:RegisterEffect(e1)
local e2 = e1:Clone()
e2:SetDescription(hint2)
if category2 ~= nil then
e2:SetCategory(category2)
else
e2:SetCategory(0)
end
if target2 ~= nil then if target2 ~= nil then
e2:SetTarget(target2) e2:SetTarget(target2)
end end
e1:SetOperation(operation1)
e2:SetOperation(operation2) e2:SetOperation(operation2)
card:RegisterEffect(e1)
card:RegisterEffect(e2) card:RegisterEffect(e2)
return e1, e2 return e1, e2
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment