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

null

parent fb861c07
......@@ -44,7 +44,7 @@ function s.initial_effect(c)
c:RegisterEffect(e7)
end
function s.filter(c)
return c:IsFaceup() and c:GetBaseAttack(35)
return c:IsFaceup() and c:GetBaseAttack()==35
end
function s.handcon(e)
return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
......
......@@ -24,30 +24,28 @@ function cm.initial_effect(c)
e3:SetOperation(cm.spop)
c:RegisterEffect(e3)
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)
e:SetLabel(100)
return true
if chk==0 then return Duel.CheckReleaseGroup(tp,cm.rfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,cm.rfilter,1,1,nil,tp)
e:SetLabel(g:GetFirst():GetLevel())
Duel.Release(g,REASON_COST)
end
function cm.rfilter(c,tp)
return c:IsLevelAbove(1) and Duel.IsPlayerCanDiscardDeck(tp,c:GetLevel())
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if e:GetLabel()~=100 then e:SetLabel(0) return false end
e:SetLabel(0)
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)
local ct=e:GetLabel()
if chk==0 then return ct>0 and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=ct and Duel.IsPlayerCanDiscardDeck(tp,ct) end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,ct)
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local lv=e:GetValue()
Duel.DiscardDeck(tp,lv,REASON_EFFECT)
local ct=e:GetLabel()
if ct>0 then
Duel.DiscardDeck(tp,ct,REASON_EFFECT)
end
end
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)
......
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