Commit dd0d556a authored by VanillaSalt's avatar VanillaSalt

fix

parent bf517793
......@@ -35,11 +35,12 @@ function c11082056.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc and not tc:IsImmuneToEffect(e) then
if tc:IsFacedown() then Duel.ConfirmCards(1-tp,tc) end
Duel.SendtoGrave(tc,REASON_EFFECT)
if not tc:IsLocation(LOCATION_GRAVE) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c11082056.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc:GetCode())
local sc=sg:GetFirst()
if sc then
Duel.SendtoGrave(tc,REASON_EFFECT)
Duel.BreakEffect()
Duel.SpecialSummon(sc,0,tp,tp,true,false,POS_FACEUP)
sc:CompleteProcedure()
......
......@@ -37,11 +37,12 @@ function c46232525.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc and not tc:IsImmuneToEffect(e) then
if tc:IsFacedown() then Duel.ConfirmCards(1-tp,tc) end
Duel.SendtoGrave(tc,REASON_EFFECT)
if not tc:IsLocation(LOCATION_GRAVE) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c46232525.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc:GetRace())
local sc=sg:GetFirst()
if sc then
Duel.SendtoGrave(tc,REASON_EFFECT)
Duel.BreakEffect()
Duel.SpecialSummon(sc,0,tp,tp,true,false,POS_FACEUP)
sc:CompleteProcedure()
......
......@@ -46,7 +46,7 @@ function c53315891.initial_effect(c)
c:RegisterEffect(e5)
end
function c53315891.sprfilter(c,code)
return c:IsCode(code) and c:IsAbleToGraveAsCost()
return c:IsCode(code) and c:IsAbleToGraveAsCost()
end
function c53315891.sprcon(e,c)
if c==nil then return true end
......@@ -98,7 +98,6 @@ function c53315891.atkop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENCE_FINAL)
e2:SetValue(atk)
c:RegisterEffect(e2)
end
end
......@@ -113,9 +112,10 @@ function c53315891.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c53315891.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<3 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c53315891.spfilter,tp,0x13,0,3,3,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,true,true,POS_FACEUP)
local g=Duel.GetMatchingGroup(c53315891.spfilter,tp,0x13,0,nil,e,tp)
if g:GetCount()>2 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,3,3,nil)
Duel.SpecialSummon(sg,0,tp,tp,true,true,POS_FACEUP)
end
end
......@@ -20,14 +20,18 @@ function c5832914.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_TOON)
end
function c5832914.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.IsExistingMatchingCard(c5832914.cfilter,tp,LOCATION_MZONE,0,1,nil)
return Duel.IsExistingMatchingCard(c5832914.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c5832914.filter(c,tp)
return c:GetSummonPlayer()==tp and c:IsAbleToDeck()
end
function c5832914.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(Card.IsAbleToDeck,1,nil) end
local g=eg:Filter(Card.IsAbleToDeck,nil)
if chk==0 then return eg:IsExists(c5832914.filter,1,nil,1-tp) end
local g=eg:Filter(c5832914.filter,nil,1-tp)
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
end
function c5832914.activate(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(Card.IsAbleToDeck,nil)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end
......@@ -38,6 +38,7 @@ function c79447365.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND)
end
function c79447365.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) or tc:IsFacedown() then return end
local lv=0
......
......@@ -57,7 +57,8 @@ function c83743222.eqlimit(e,c)
return c==e:GetLabelObject()
end
function c83743222.negcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipTarget() and Duel.GetCurrentPhase()==PHASE_BATTLE and ep~=tp
local ph=Duel.GetCurrentPhase()
return e:GetHandler():GetEquipTarget() and (ph>PHASE_MAIN1 and ph<PHASE_MAIN2) and ep~=tp
end
function c83743222.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -44,7 +44,7 @@ function c84565800.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c84565800.cpfilter(c)
return c:IsType(TYPE_EFFECT) and not c:IsCode(84565800)
return c:IsType(TYPE_EFFECT)
end
function c84565800.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c84565800.cpfilter(chkc) end
......@@ -55,7 +55,7 @@ end
function c84565800.cpop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
if tc:IsRelateToEffect(e) and c:IsFaceup() and c:IsRelateToEffect(e) then
local code=tc:GetCode()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
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