Commit dcdc5121 authored by gg123gg's avatar gg123gg Committed by GitHub

Add files via upload

parent fb5758e4
...@@ -62,13 +62,13 @@ function c4210035.spcon(e,c) ...@@ -62,13 +62,13 @@ function c4210035.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local mg1=Duel.GetMatchingGroup(c4210035.relfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,e:GetHandler()) local mg1=Duel.GetMatchingGroup(c4210035.relfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,e:GetHandler())
local mg2=Duel.GetMatchingGroup(c4210035.repfilter,tp,LOCATION_REMOVED,0,nil) local mg2=Duel.GetMatchingGroup(c4210035.repfilter,tp,LOCATION_REMOVED,0,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return Duel.IsExistingMatchingCard(c4210035.filter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil,e,tp,mg1,mg2,ft) return Duel.IsExistingMatchingCard(c4210035.filter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil,e,tp,mg1,mg2,ft)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210028) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210028)
and (e:GetHandler():IsLocation(LOCATION_HAND) or (e:GetHandler():IsLocation(LOCATION_GRAVE) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210024))) and (e:GetHandler():IsLocation(LOCATION_HAND) or (e:GetHandler():IsLocation(LOCATION_GRAVE) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210024)))
end end
function c4210035.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c4210035.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==1 then return true end if chk==1 then return true end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,e:GetHandler():GetLocation()) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,e:GetHandler():GetLocation())
end end
function c4210035.spop(e,tp,eg,ep,ev,re,r,rp) function c4210035.spop(e,tp,eg,ep,ev,re,r,rp)
...@@ -103,7 +103,7 @@ function c4210035.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,7 +103,7 @@ function c4210035.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local mat2=mg:SelectWithSumEqual(tp,Card.GetLevel,6,0,99,tc) local mat2=mg:SelectWithSumEqual(tp,Card.GetLevel,6,0,99,tc)
mat:Merge(mat2) mat:Merge(mat2)
end end
local rm= mat:Filter(Card.IsLocation,tp,LOCATION_REMOVED) local rm= mat:Filter(Card.IsLocation,tp,LOCATION_REMOVED)
Duel.SendtoDeck(rm,nil,0,REASON_COST) Duel.SendtoDeck(rm,nil,0,REASON_COST)
Duel.Release(mat,REASON_COST+REASON_RELEASE) Duel.Release(mat,REASON_COST+REASON_RELEASE)
...@@ -135,7 +135,7 @@ function c4210035.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -135,7 +135,7 @@ function c4210035.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c4210035.operation(e,tp,eg,ep,ev,re,r,rp) function c4210035.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=Duel.SelectMatchingCard(tp,c4210035.tgfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst() local tc=Duel.SelectMatchingCard(tp,c4210035.tgfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst()
if Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 and if Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 and
Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210024) then Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210024) then
tc:RegisterFlagEffect(0,RESET_EVENT+0xcff0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(4210010,1)) tc:RegisterFlagEffect(0,RESET_EVENT+0xcff0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(4210010,1))
...@@ -148,9 +148,9 @@ function c4210035.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -148,9 +148,9 @@ function c4210035.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseEvent(showcard,0x1420042a,e,REASON_COST,tp,0,0) Duel.RaiseEvent(showcard,0x1420042a,e,REASON_COST,tp,0,0)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local cd = Duel.SelectMatchingCard(tp,c4210035.cdfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local cd = Duel.SelectMatchingCard(tp,c4210035.cdfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
Duel.ConfirmCards(1-tp,cd) Duel.SendtoHand(cd,nil,REASON_EFFECT)
Duel.SendtoHand(cd,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,cd)
end end
end end
end end
...@@ -169,7 +169,7 @@ function c4210035.rtcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -169,7 +169,7 @@ function c4210035.rtcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
else else
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
end end
function c4210035.rttg(e,tp,eg,ep,ev,re,r,rp,chk) function c4210035.rttg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -180,5 +180,6 @@ function c4210035.rtop(e,tp,eg,ep,ev,re,r,rp) ...@@ -180,5 +180,6 @@ function c4210035.rtop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.SelectMatchingCard(tp,c4210035.cdcfilter,tp,LOCATION_DECK,0,1,1,nil) local sg=Duel.SelectMatchingCard(tp,c4210035.cdcfilter,tp,LOCATION_DECK,0,1,1,nil)
if sg:GetCount()>0 then if sg:GetCount()>0 then
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end end
end end
\ No newline at end of file
...@@ -62,13 +62,13 @@ function c4210036.spcon(e,c) ...@@ -62,13 +62,13 @@ function c4210036.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local mg1=Duel.GetMatchingGroup(c4210036.relfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,e:GetHandler()) local mg1=Duel.GetMatchingGroup(c4210036.relfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,e:GetHandler())
local mg2=Duel.GetMatchingGroup(c4210036.repfilter,tp,LOCATION_REMOVED,0,nil) local mg2=Duel.GetMatchingGroup(c4210036.repfilter,tp,LOCATION_REMOVED,0,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return Duel.IsExistingMatchingCard(c4210036.filter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil,e,tp,mg1,mg2,ft) return Duel.IsExistingMatchingCard(c4210036.filter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil,e,tp,mg1,mg2,ft)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210028) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210028)
and (e:GetHandler():IsLocation(LOCATION_HAND) or (e:GetHandler():IsLocation(LOCATION_GRAVE) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210024))) and (e:GetHandler():IsLocation(LOCATION_HAND) or (e:GetHandler():IsLocation(LOCATION_GRAVE) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,4210024)))
end end
function c4210036.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c4210036.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==1 then return true end if chk==1 then return true end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,e:GetHandler():GetLocation()) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,e:GetHandler():GetLocation())
end end
function c4210036.spop(e,tp,eg,ep,ev,re,r,rp) function c4210036.spop(e,tp,eg,ep,ev,re,r,rp)
...@@ -103,7 +103,7 @@ function c4210036.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,7 +103,7 @@ function c4210036.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local mat2=mg:SelectWithSumEqual(tp,Card.GetLevel,6,0,99,tc) local mat2=mg:SelectWithSumEqual(tp,Card.GetLevel,6,0,99,tc)
mat:Merge(mat2) mat:Merge(mat2)
end end
local rm= mat:Filter(Card.IsLocation,tp,LOCATION_REMOVED) local rm= mat:Filter(Card.IsLocation,tp,LOCATION_REMOVED)
Duel.SendtoDeck(rm,nil,0,REASON_COST) Duel.SendtoDeck(rm,nil,0,REASON_COST)
Duel.Release(mat,REASON_COST+REASON_RELEASE) Duel.Release(mat,REASON_COST+REASON_RELEASE)
...@@ -149,9 +149,9 @@ function c4210036.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -149,9 +149,9 @@ function c4210036.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseEvent(showcard,0x1420042a,e,REASON_COST,tp,0,0) Duel.RaiseEvent(showcard,0x1420042a,e,REASON_COST,tp,0,0)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local cd = Duel.SelectMatchingCard(tp,c4210036.cdrmfilter,tp,LOCATION_REMOVED,0,1,1,nil,e,tp) local cd = Duel.SelectMatchingCard(tp,c4210036.cdrmfilter,tp,LOCATION_REMOVED,0,1,1,nil,e,tp)
Duel.ConfirmCards(1-tp,cd)
Duel.SendtoHand(cd,nil,REASON_EFFECT) Duel.SendtoHand(cd,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,cd)
end end
end end
end end
...@@ -170,7 +170,7 @@ function c4210036.rtcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -170,7 +170,7 @@ function c4210036.rtcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
else else
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
end end
function c4210036.rttg(e,tp,eg,ep,ev,re,r,rp,chk) function c4210036.rttg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -181,5 +181,6 @@ function c4210036.rtop(e,tp,eg,ep,ev,re,r,rp) ...@@ -181,5 +181,6 @@ function c4210036.rtop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.SelectMatchingCard(tp,c4210036.cdfilter,tp,LOCATION_DECK,0,1,1,nil) local sg=Duel.SelectMatchingCard(tp,c4210036.cdfilter,tp,LOCATION_DECK,0,1,1,nil)
if sg:GetCount()>0 then if sg:GetCount()>0 then
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end end
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