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

byd

parent 5de51961
Pipeline #30132 passed with stages
in 35 minutes and 15 seconds
No preview for this file type
......@@ -75,20 +75,20 @@ end
function c29969185.ovfilter(c)
local g=Duel.GetMatchingGroup(c29969185.grfilter,c:GetControler(),LOCATION_GRAVE,0,nil)
local ct=g:GetClassCount(Card.GetCode)
return ct>3 and c:IsFaceup() and c:GetBaseAttack()==1800 and c:GetBaseDefense()==0
return ct>=4 and c:IsFaceup() and c:GetBaseAttack()==1800 and c:GetBaseDefense()==0
and c:IsRace(RACE_DRAGON) and c:IsAttribute(ATTRIBUTE_DARK)
and c:IsLevel(4)
end
function c29969185.descondition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.GetAttackTarget()==nil
end
function c29969185.xyzop(e,tp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,29969185)==0 end
Duel.RegisterFlagEffect(tp,29969185,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end
function c29969185.descondition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.GetAttackTarget()==nil
end
function c29969185.descost(e,tp,eg,ep,ev,re,r,rp,chk)
local og=Duel:GetOverlayGroup(tp,1,0)
if chk==0 then return og:GetCount()>4 and og:IsExists(Card.IsRace,4,nil,RACE_MACHINE) end
if chk==0 then return og:GetCount()>=4 and og:IsExists(Card.IsRace,4,nil,RACE_MACHINE) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVEXYZ)
local g=og:FilterSelect(tp,Card.IsRace,4,4,nil,RACE_MACHINE)
Duel.SendtoGrave(g,REASON_COST)
......
......@@ -71,11 +71,14 @@ end
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(1-tp,1) end
end
function s.tgfilter(c)
return c:IsLevel(1) and c:IsAbleToGrave() and c:IsRace(RACE_ROCK)
end
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,0,LOCATION_DECK)
if g:GetCount()<1 then return end
Duel.ConfirmCards(tp,g)
local sg=g:Filter(s.tgfilter,nil)
local sg=Duel.GetMatchingGroup(s.tgfilter,tp,0,LOCATION_DECK,nil)
local ct=Duel.SendtoGrave(sg,REASON_EFFECT)
if ct==0 then return end
Duel.BreakEffect()
......
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