Commit c52bc582 authored by VanillaSalt's avatar VanillaSalt

Merge pull request #811 from Steeldarkeagel/patch-4

Update c18205590.lua
parents 30577bcb e2953c9e
...@@ -30,12 +30,10 @@ end ...@@ -30,12 +30,10 @@ end
function c18205590.operation(e,tp,eg,ep,ev,re,r,rp) function c18205590.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
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) or tc:IsFacedown() then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c18205590.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,tc:GetCode()) local g=Duel.SelectMatchingCard(tp,c18205590.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,tc:GetCode())
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)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
...@@ -45,6 +43,8 @@ function c18205590.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,6 +43,8 @@ function c18205590.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(c18205590.splimit) e1:SetTarget(c18205590.splimit)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
g:GetFirst():RegisterEffect(e1) g:GetFirst():RegisterEffect(e1)
if not tc:IsRelateToEffect(e) or tc:IsFacedown() then return end
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end end
end end
function c18205590.splimit(e,c) function c18205590.splimit(e,c)
......
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