Commit 396a4612 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 9d26f20e
......@@ -50,8 +50,9 @@ function c33703020.sprop(e,tp,eg,ep,ev,re,r,rp,c)
c:RegisterEffect(e2)
end
function c33703020.costfilter(c)
return c:IsSetCard(0x442) and c:IsDiscardable() and
return c:IsSetCard(0x442) and c:IsDiscardable()
end
function c33703020.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.IsExistingMatchingCard(c33703020.costfilter,tp,LOCATION_HAND,0,1)<=0 then return end
......
......@@ -28,7 +28,7 @@ function c33703021.tgfilter(c,tp)
end
function c33703021.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return re and re:IsActiveType(TYPE_MONSTER) and eg:IsExists(c33703021.tgfilter,1,nil,tp) end
local g=eg:Filter(c33703021.nil,tp)
local g=eg:Filter(nil,tp)
local tc=g:GetFirst()
while tc do
num=tc:GetAttack()
......
......@@ -85,7 +85,7 @@ function c33703030.damop(e,tp,eg,ep,ev,re,r,rp)
end
function c33703030.ctcon(e,tp,eg,ep,ev,re,r,rp)
return aux.dscon(e,tp,eg,ep,ev,re,r,rp) and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)
ned
end
function c33703030.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end
......
......@@ -45,7 +45,7 @@ function c47500012.imcon(e,tp,eg,ep,ev,re,r,rp)
end
function c47500012.efilter(e,te)
local c=e:GetHandler()
return te:GetOwner()~=e:GetOwner()
return te:GetOwner()~=e:GetOwner() and
c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(47500012,0))
end
function c47500012.sdcon(e,tp,eg,ep,ev,re,r,rp)
......@@ -81,7 +81,7 @@ function c47500012.wzop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc then
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
local op=tc:GetActivateEffect:GetOperation()
local op=tc:GetActivateEffect():GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end
end
end
\ No newline at end of file
......@@ -23,7 +23,7 @@ function c47501201.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
local c=e:GetHandler()
if g:GetCount()>0 then
local e:SetLabel(0)
e:SetLabel(0)
local sc=g:GetFirst()
while sc do
local e1=Effect.CreateEffect(e:GetHandler())
......@@ -32,16 +32,16 @@ function c47501201.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e1:SetValue(-500)
sc:RegisterEffect(e1)
e:SetLabel(e:GetLabel+500)
e:SetLabel(e:GetLabel()+500)
sc=g:GetNext()
end
if c:GetCode==47501201 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
if c:GetCode()==47501201 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c47501201.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c47501201.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end
if c:GetCode==47500012 then
if c:GetCode()==47500012 then
local g=Duel.GetMatchingGroup(c47501201.bkfilter,tp,0,LOCATION_MZONE,aux.ExceptThisCard(e),c:GetAttack())
local tc=g:GetFirst()
while tc do
......
......@@ -39,6 +39,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local tc=g:GetFirst()
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_TUNER_MATERIAL_LIMIT)
......
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