Commit cb592420 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 9ba10433
No preview for this file type
expansions/pics/50218133.jpg

81.6 KB | W: | H:

expansions/pics/50218133.jpg

110 KB | W: | H:

expansions/pics/50218133.jpg
expansions/pics/50218133.jpg
expansions/pics/50218133.jpg
expansions/pics/50218133.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -25,31 +25,31 @@ function c29990300.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,31 +25,31 @@ function c29990300.condition(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return ph==PHASE_MAIN1 or ph==PHASE_MAIN2 return ph==PHASE_MAIN1 or ph==PHASE_MAIN2
end end
function c29990300.filter(c,tp) function c29990300.filter(c,e,tp)
return c:IsSetCard(0x751) and c:IsLevel(2) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsSetCard(0x751) and c:IsLevel(2) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end end
function c29990300.filter1(c) function c29990300.filter1(c,e,tp)
return c:IsSetCard(0x751) and c:IsLevel(7) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsSetCard(0x751) and c:IsLevel(7) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
and Duel.IsExistingMatchingCard(c29990300.gfilter,tp,LOCATION_GRAVE,0,1,nil,c:GetRace()) and Duel.IsExistingMatchingCard(c29990300.gfilter,tp,LOCATION_GRAVE,0,1,nil,c:GetRace(),e,tp)
end end
function c29990300.filter2(c) function c29990300.filter2(c,e,tp)
return c:IsSetCard(0x751) and c:IsLevel(7) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsSetCard(0x751) and c:IsLevel(7) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
and Duel.IsExistingMatchingCard(c29990300.gfilter,tp,LOCATION_GRAVE,0,1,nil,c:GetRace()) and Duel.IsExistingMatchingCard(c29990300.gfilter,tp,LOCATION_GRAVE,0,1,nil,c:GetRace(),e,tp)
end end
function c29990300.gfilter(c,race) function c29990300.gfilter(c,race)
return c:IsRace(race) and (c:IsLevel(2) or c:IsSetCard(0x751)) return c:IsRace(race) and (c:IsLevel(2) or c:IsSetCard(0x751))
and (c:IsLocation(LOCATION_GRAVE)) and (c:IsLocation(LOCATION_GRAVE))
end end
function c29990300.xfilter(c) function c29990300.xfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x751) return c:IsFaceup() and c:IsSetCard(0x751)
end end
function c29990300.target(e,tp,eg,ep,ev,re,r,rp,chk) function c29990300.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c29990300.filter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c29990300.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1)
end end
function c29990300.activate(e,tp,eg,ep,ev,re,r,rp) function c29990300.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c29990300.filter,tp,LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(c29990300.filter,tp,LOCATION_HAND,0,nil,e,tp)
local x=Duel.GetMatchingGroup(c29990300.xfilter,tp,LOCATION_MZONE,0,nil) local x=Duel.GetMatchingGroup(c29990300.xfilter,tp,LOCATION_MZONE,0,nil,e,tp)
local c=g:GetClassCount(Card.GetCode) local c=g:GetClassCount(Card.GetCode)
if c>=1 then if c>=1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
...@@ -58,8 +58,8 @@ function c29990300.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,8 +58,8 @@ function c29990300.activate(e,tp,eg,ep,ev,re,r,rp)
aux.GCheckAdditional=nil aux.GCheckAdditional=nil
local ct=Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD) local ct=Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD)
if ct==0 then return end if ct==0 then return end
local g1=Duel.GetMatchingGroup(c29990300.filter1,tp,LOCATION_DECK,0,nil) local g1=Duel.GetMatchingGroup(c29990300.filter1,tp,LOCATION_DECK,0,nil,e,tp)
local g2=Duel.GetMatchingGroup(c29990300.filter2,tp,LOCATION_REMOVED,0,nil) local g2=Duel.GetMatchingGroup(c29990300.filter2,tp,LOCATION_REMOVED,0,nil,e,tp)
if ct>=1 and ct<=3 and #g1+#g2>0 and Duel.SelectYesNo(tp,aux.Stringid(29990300,0)) then if ct>=1 and ct<=3 and #g1+#g2>0 and Duel.SelectYesNo(tp,aux.Stringid(29990300,0)) then
Duel.BreakEffect() Duel.BreakEffect()
if #g1>0 and (#g2==0 or Duel.SelectOption(tp,aux.Stringid(29990300,1),aux.Stringid(29990300,2))==0) then if #g1>0 and (#g2==0 or Duel.SelectOption(tp,aux.Stringid(29990300,1),aux.Stringid(29990300,2))==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