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

2023/1/1 优化选择效果

parent 4d46d416
Pipeline #18985 passed with stages
in 5 minutes and 14 seconds
......@@ -188,34 +188,30 @@ end
-- 创建效果: 选择效果
function RushDuel.CreateMultiChooseEffect(card, condition, cost, hint1, target1, operation1, hint2, target2, operation2, category1, category2)
local e1 = Effect.CreateEffect(card)
e1:SetDescription(hint1)
if category1 ~= nil then
e1:SetCategory(category1)
end
e1:SetType(EFFECT_TYPE_IGNITION)
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
e1:SetCondition(condition)
e2:SetCondition(condition)
end
if cost ~= nil then
e1:SetCost(cost)
e2:SetCost(cost)
end
if target1 ~= nil then
e1:SetTarget(target1)
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
e2:SetTarget(target2)
end
e1:SetOperation(operation1)
e2:SetOperation(operation2)
card:RegisterEffect(e1)
card:RegisterEffect(e2)
return e1, e2
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