Commit f7c3dacf authored by GuGu's avatar GuGu

Update c24136.lua

parent aa44b244
Pipeline #34716 passed with stage
in 8 seconds
...@@ -93,8 +93,14 @@ function c24136.thop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,8 +93,14 @@ function c24136.thop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c24136.thfilter1,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c24136.thfilter1,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) if Duel.SendtoHand(g,nil,REASON_EFFECT)>0 then
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
local tg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,1,nil)
if tg:GetCount()>0 then
Duel.BreakEffect()
Duel.SendtoDeck(tg,nil,SEQ_DECKBOTTOM,REASON_EFFECT)
end
end
end end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
...@@ -104,12 +110,7 @@ function c24136.thop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,12 +110,7 @@ function c24136.thop1(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(c24136.splimit) e1:SetTarget(c24136.splimit)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local tg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,1,nil)
if tg:GetCount()>0 then
Duel.BreakEffect()
Duel.SendtoDeck(tg,nil,1,REASON_EFFECT)
end
end end
function c24136.splimit(e,c) function c24136.splimit(e,c)
return c:IsLocation(LOCATION_EXTRA) and not c:IsAttribute(0x5) return c:IsLocation(LOCATION_EXTRA) and not c:IsAttribute(ATTRIBUTE_FIRE+ATTRIBUTE_EARTH)
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