Commit 866075d0 authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent b6298a93
...@@ -17,7 +17,7 @@ function c112316.initial_effect(c) ...@@ -17,7 +17,7 @@ function c112316.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCost(c112316.cost) e2:SetCost(c112316.cost)
e2:SetTarget(c112316.target) e2:SetTarget(c112316.target)
e:SetOperation(c112316.operation) e2:SetOperation(c112316.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c112316.thfilter(c) function c112316.thfilter(c)
...@@ -26,9 +26,9 @@ end ...@@ -26,9 +26,9 @@ end
function c112316.activate(e,tp,eg,ep,ev,re,r,rp) function c112316.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(c112316.thfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(c112316.thfilter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(112316,0)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(112316,0)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
end end
end end
...@@ -46,7 +46,7 @@ function c112316.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c112316.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) if Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c112316.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c112316.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -126,5 +126,4 @@ function c21520238.igop(e,tp,eg,ep,ev,re,r,rp) ...@@ -126,5 +126,4 @@ function c21520238.igop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(tp,2000,REASON_RULE) Duel.Damage(tp,2000,REASON_RULE)
end end
end end
end
end end
...@@ -70,7 +70,7 @@ function c29065502.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +70,7 @@ function c29065502.spop(e,tp,eg,ep,ev,re,r,rp)
local cs=0 local cs=0
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if not Duel.IsExistingMatchingCard(c29065502.cfilter,tp,LOCATION_MZONE,0,1,nil) or Duel.IsCanRemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT) or Duel.IsPlayerAffectedByEffect(tp,29065592) then return end if not Duel.IsExistingMatchingCard(c29065502.cfilter,tp,LOCATION_MZONE,0,1,nil) or Duel.IsCanRemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT) or Duel.IsPlayerAffectedByEffect(tp,29065592) then return end
if Duel.IsPlayerAffectedByEffect(tp,29065592) and Duel.SelectYesNo(tp,aux.Stringid(29065592,0) then if Duel.IsPlayerAffectedByEffect(tp,29065592) and Duel.SelectYesNo(tp,aux.Stringid(29065592,0)) then
cs=1 cs=1
end end
if cs==0 then if cs==0 then
......
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