Commit 35034ba6 authored by TanakaKotoha's avatar TanakaKotoha

iidx gooooooooooooooooooold

parent daeacfb0
...@@ -28,7 +28,7 @@ function c24300005.initial_effect(c) ...@@ -28,7 +28,7 @@ function c24300005.initial_effect(c)
e4:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE) e4:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetTargetRange(LOCATION_MZONE,0) e4:SetTargetRange(LOCATION_MZONE,0)
e4:SetTarget(c300005.tglimit) e4:SetTarget(c24300005.tglimit)
e4:SetValue(aux.tgoval) e4:SetValue(aux.tgoval)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
......
...@@ -29,7 +29,7 @@ function c24300035.initial_effect(c) ...@@ -29,7 +29,7 @@ function c24300035.initial_effect(c)
end end
function c24300035.cfilter(c) function c24300035.cfilter(c)
return aux.IsCodeListed(c,300021) return aux.IsCodeListed(c,24300021)
end end
function c24300035.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c24300035.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -73,14 +73,16 @@ function c24300035.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -73,14 +73,16 @@ function c24300035.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=3 end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=3 end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_DECK)
end end
function c24300035.thfilter(c)
return aux.IsCodeListed(c,24300021) and c:IsAbleToHand()
end
function c24300035.spop1(e,tp,eg,ep,ev,re,r,rp) function c24300035.spop1(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmDecktop(tp,3) Duel.ConfirmDecktop(tp,3)
local g=Duel.GetDecktopGroup(tp,3) local g=Duel.GetDecktopGroup(tp,3)
if g:GetCount()>0 then if g:GetCount()>0 then
if g:IsExists(c24300035.cfilter,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(24300035,0)) then if g:IsExists(c24300035.thfilter,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(24300035,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:FilterSelect(tp,c24300035.cfilter,1,1,nil) local sg=g:FilterSelect(tp,c24300035.thfilter,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)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
......
...@@ -105,6 +105,6 @@ end ...@@ -105,6 +105,6 @@ end
function cm.filter1(c) function cm.filter1(c)
return c:IsFaceup() and c:IsSetCard(0xa84) and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsSetCard(0xa84) and c:IsType(TYPE_MONSTER)
end end
function cm.spcon(e,tp) function cm.spcon(e)
return Duel.IsExistingMatchingCard(cm.filter1,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(cm.filter1,e:GetOwnerPlayer(),LOCATION_ONFIELD,0,1,nil)
end end
\ No newline at end of file
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