Commit ca0f5232 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent a204149a
......@@ -47,7 +47,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1)
end
function cm.reccon(e,tp,eg,ep,ev,re,r,rp)
return re and re:IsActiveType(TYPE_QUICKPLAY) and rp==tp and e:GetHandler():GetFlagEffect(1)>0 and Duel.IsPlayerCanDiscardDeck(tp,1)
return re and re:IsActiveType(TYPE_QUICKPLAY) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and rp==tp and e:GetHandler():GetFlagEffect(1)>0 and Duel.IsPlayerCanDiscardDeck(tp,1)
end
function cm.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.DiscardDeck(tp,1,REASON_EFFECT)
......
......@@ -58,7 +58,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.discon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsChainNegatable(ev)
return Duel.IsChainNegatable(ev) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,12042000)
end
function cm.fselect(g,mc)
return g:IsContains(mc)
......
......@@ -25,10 +25,14 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1,m+100)
e2:SetCondition(cm.tdcon)
e2:SetTarget(cm.tdtg)
e2:SetOperation(cm.tdop)
c:RegisterEffect(e2)
end
function cm.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,12042000)
end
function cm.mfilter(c)
return c:IsSummonType(SUMMON_TYPE_NORMAL) and c:IsRace(RACE_INSECT)
end
......
......@@ -92,7 +92,7 @@ end
function c65010072.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local tc=Duel.SelectMatchingCard(tp,c65010072.filter,tp,LOCATION_MZONE,0,1,1,nil,e:GetHandler(),tp)
local tc=Duel.SelectMatchingCard(tp,c65010072.filter,tp,LOCATION_MZONE,0,1,1,nil,e:GetHandler(),tp):GetFirst()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then
c:RegisterFlagEffect(65010072,0,0,1)
local e1=Effect.CreateEffect(c)
......
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