Commit 1ef8a18c authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent 4a87f066
Pipeline #2436 passed with stages
in 48 minutes and 46 seconds
......@@ -124,8 +124,8 @@ function c21520157.feop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
local hg=Duel.GetMatchingGroup(c21520157.pfilter,p,LOCATION_HAND,0,nil)
if hg:GetCount()>0 and Duel.SelectYesNo(p,aux.Stringid(21520157,2)) then
Duel.Hint(HINT_CARD,1-tp,21520157)
Duel.Hint(HINT_SELECTMSG,player,HINTMSG_CONFIRM)
Duel.Hint(HINT_CARD,1-p,21520157)
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_CONFIRM)
local sg=hg:Select(p,1,1,nil)
Duel.ConfirmCards(1-p,sg)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -25,6 +25,7 @@ function c21520160.initial_effect(c)
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCondition(c21520160.fecon)
e1:SetTarget(c21520160.fetg)
......@@ -120,12 +121,12 @@ function c21520160.fetg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c21520160.feop(e,tp,eg,ep,ev,re,r,rp,c)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
local hg=Duel.GetMatchingGroup(c21520160.pfilter,p,LOCATION_HAND,0,nil)
if hg:GetCount()>0 and Duel.SelectYesNo(p,aux.Stringid(21520160,2)) then
Duel.Hint(HINT_CARD,1-tp,21520160)
Duel.Hint(HINT_SELECTMSG,player,HINTMSG_CONFIRM)
local sg=hg:Select(p,1,1,nil)
Duel.ConfirmCards(1-p,sg)
local hg=Duel.GetMatchingGroup(c21520160.pfilter,1-p,LOCATION_HAND,0,nil)
if hg:GetCount()>0 and Duel.SelectYesNo(1-p,aux.Stringid(21520160,2)) then
Duel.Hint(HINT_CARD,p,21520160)
Duel.Hint(HINT_SELECTMSG,1-p,HINTMSG_CONFIRM)
local sg=hg:Select(1-p,1,1,nil)
Duel.ConfirmCards(p,sg)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_PUBLIC)
......
......@@ -14,7 +14,7 @@ function c33401305.filter(c,e,tp)
end
function c33401305.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)+Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c33401305.filter,tp,LOCATION_HAND+LOCATION_REMOVED,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(c33401305.filter,tp,LOCATION_HAND+LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
function c33401305.activate(e,tp,eg,ep,ev,re,r,rp)
......
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