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

null

parent fb861c07
Pipeline #26199 passed with stages
in 21 minutes and 10 seconds
...@@ -44,7 +44,7 @@ function s.initial_effect(c) ...@@ -44,7 +44,7 @@ function s.initial_effect(c)
c:RegisterEffect(e7) c:RegisterEffect(e7)
end end
function s.filter(c) function s.filter(c)
return c:IsFaceup() and c:GetBaseAttack(35) return c:IsFaceup() and c:GetBaseAttack()==35
end end
function s.handcon(e) function s.handcon(e)
return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
......
...@@ -24,30 +24,28 @@ function cm.initial_effect(c) ...@@ -24,30 +24,28 @@ function cm.initial_effect(c)
e3:SetOperation(cm.spop) e3:SetOperation(cm.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.rfilter(c,tp)
return c:IsLevelAbove(1) and Duel.IsPlayerCanDiscardDeck(tp,c:GetLevel())
end
function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100) if chk==0 then return Duel.CheckReleaseGroup(tp,cm.rfilter,1,nil,tp) end
return true local g=Duel.SelectReleaseGroup(tp,cm.rfilter,1,1,nil,tp)
e:SetLabel(g:GetFirst():GetLevel())
Duel.Release(g,REASON_COST)
end end
function cm.rfilter(c,tp) function cm.rfilter(c,tp)
return c:IsLevelAbove(1) and Duel.IsPlayerCanDiscardDeck(tp,c:GetLevel()) return c:IsLevelAbove(1) and Duel.IsPlayerCanDiscardDeck(tp,c:GetLevel())
end end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then local ct=e:GetLabel()
if e:GetLabel()~=100 then e:SetLabel(0) return false end if chk==0 then return ct>0 and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=ct and Duel.IsPlayerCanDiscardDeck(tp,ct) end
e:SetLabel(0) Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,ct)
return Duel.CheckReleaseGroup(REASON_COST,tp,cm.rfilter,1,nil,tp)
end
e:SetLabel(0)
e:SetValue(0)
local tc=Duel.SelectReleaseGroup(REASON_COST,tp,cm.rfilter,1,1,nil,tp):GetFirst()
local lv=tc:GetLevel()
e:SetValue(lv)
Duel.Release(tc,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,lv)
end end
function cm.disop(e,tp,eg,ep,ev,re,r,rp) function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local lv=e:GetValue() local ct=e:GetLabel()
Duel.DiscardDeck(tp,lv,REASON_EFFECT) if ct>0 then
Duel.DiscardDeck(tp,ct,REASON_EFFECT)
end
end end
function cm.spfilter(c,e,tp) function cm.spfilter(c,e,tp)
return c:IsSetCard(0x344c) and c:IsType(TYPE_MONSTER) and not c:IsCode(m) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x344c) and c:IsType(TYPE_MONSTER) and not c:IsCode(m) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
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