Commit 5b9bab7e authored by VanillaSalt's avatar VanillaSalt

fix

parent ad4b4a3f
......@@ -7,7 +7,8 @@ function c10060427.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c10060427.ccost)
e1:SetCondition(c10060427.mtcon)
e1:SetOperation(c10060427.mtop)
c:RegisterEffect(e1)
--summon with 1 tribute
local e2=Effect.CreateEffect(c)
......@@ -34,14 +35,16 @@ function c10060427.initial_effect(c)
e3:SetOperation(c10060427.desop)
c:RegisterEffect(e3)
end
function c10060427.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c10060427.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c10060427.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_WARRIOR) and not c:IsPublic()
end
function c10060427.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c10060427.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c10060427.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c10060427.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c12435193.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c12435193.ccost)
e1:SetCondition(c12435193.mtcon)
e1:SetOperation(c12435193.mtop)
c:RegisterEffect(e1)
--disable spsummon
local e2=Effect.CreateEffect(c)
......@@ -19,14 +20,16 @@ function c12435193.initial_effect(c)
e2:SetTarget(c12435193.disspsum)
c:RegisterEffect(e2)
end
function c12435193.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c12435193.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c12435193.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_DRAGON) and not c:IsPublic()
end
function c12435193.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c12435193.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c12435193.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c12435193.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c19642889.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c19642889.ccost)
e1:SetCondition(c19642889.mtcon)
e1:SetOperation(c19642889.mtop)
c:RegisterEffect(e1)
--negate
local e2=Effect.CreateEffect(c)
......@@ -21,14 +22,16 @@ function c19642889.initial_effect(c)
e3:SetOperation(c19642889.negop2)
c:RegisterEffect(e3)
end
function c19642889.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c19642889.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c19642889.cfilter2(c)
return c:GetType()==TYPE_TRAP and not c:IsPublic()
end
function c19642889.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c19642889.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c19642889.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c19642889.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c30936186.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c30936186.ccost)
e1:SetCondition(c30936186.mtcon)
e1:SetOperation(c30936186.mtop)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
......@@ -21,14 +22,16 @@ function c30936186.initial_effect(c)
e2:SetOperation(c30936186.spop)
c:RegisterEffect(e2)
end
function c30936186.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c30936186.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c30936186.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_BEASTWARRIOR) and not c:IsPublic()
end
function c30936186.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c30936186.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c30936186.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c30936186.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c32314730.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c32314730.ccost)
e1:SetCondition(c32314730.mtcon)
e1:SetOperation(c32314730.mtop)
c:RegisterEffect(e1)
--salvage
local e2=Effect.CreateEffect(c)
......@@ -21,14 +22,16 @@ function c32314730.initial_effect(c)
e2:SetOperation(c32314730.thop)
c:RegisterEffect(e2)
end
function c32314730.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c32314730.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c32314730.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_BEASTWARRIOR) and not c:IsPublic()
end
function c32314730.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c32314730.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c32314730.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c32314730.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c39037517.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c39037517.ccost)
e1:SetCondition(c39037517.mtcon)
e1:SetOperation(c39037517.mtop)
c:RegisterEffect(e1)
--poschange
local e2=Effect.CreateEffect(c)
......@@ -20,14 +21,16 @@ function c39037517.initial_effect(c)
e2:SetOperation(c39037517.operation)
c:RegisterEffect(e2)
end
function c39037517.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c39037517.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c39037517.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_INSECT) and not c:IsPublic()
end
function c39037517.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c39037517.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c39037517.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c39037517.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c41201555.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c41201555.ccost)
e1:SetCondition(c41201555.mtcon)
e1:SetOperation(c41201555.mtop)
c:RegisterEffect(e1)
--send to grave
local e2=Effect.CreateEffect(c)
......@@ -22,14 +23,16 @@ function c41201555.initial_effect(c)
e2:SetOperation(c41201555.operation)
c:RegisterEffect(e2)
end
function c41201555.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c41201555.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c41201555.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_PLANT) and not c:IsPublic()
end
function c41201555.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c41201555.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c41201555.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c41201555.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c45041488.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c45041488.ccost)
e1:SetCondition(c45041488.mtcon)
e1:SetOperation(c45041488.mtop)
c:RegisterEffect(e1)
--Negate
local e2=Effect.CreateEffect(c)
......@@ -23,14 +24,16 @@ function c45041488.initial_effect(c)
e2:SetOperation(c45041488.operation)
c:RegisterEffect(e2)
end
function c45041488.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c45041488.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c45041488.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_ROCK) and not c:IsPublic()
end
function c45041488.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c45041488.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c45041488.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c45041488.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c49680980.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c49680980.ccost)
e1:SetCondition(c49680980.mtcon)
e1:SetOperation(c49680980.mtop)
c:RegisterEffect(e1)
--Negate
local e2=Effect.CreateEffect(c)
......@@ -23,14 +24,16 @@ function c49680980.initial_effect(c)
e2:SetOperation(c49680980.operation)
c:RegisterEffect(e2)
end
function c49680980.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c49680980.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c49680980.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_ROCK) and not c:IsPublic()
end
function c49680980.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c49680980.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c49680980.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c49680980.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c54520292.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c54520292.ccost)
e1:SetCondition(c54520292.mtcon)
e1:SetOperation(c54520292.mtop)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
......@@ -21,14 +22,16 @@ function c54520292.initial_effect(c)
e2:SetOperation(c54520292.desop)
c:RegisterEffect(e2)
end
function c54520292.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c54520292.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c54520292.cfilter2(c)
return c:GetType()==TYPE_SPELL+TYPE_CONTINUOUS and not c:IsPublic()
end
function c54520292.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c54520292.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c54520292.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c54520292.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c5817857.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c5817857.ccost)
e1:SetCondition(c5817857.mtcon)
e1:SetOperation(c5817857.mtop)
c:RegisterEffect(e1)
--destroy replace
local e2=Effect.CreateEffect(c)
......@@ -19,14 +20,16 @@ function c5817857.initial_effect(c)
e2:SetOperation(c5817857.desop)
c:RegisterEffect(e2)
end
function c5817857.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c5817857.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c5817857.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_ZOMBIE) and not c:IsPublic()
end
function c5817857.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c5817857.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c5817857.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c5817857.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -40,7 +40,7 @@ function c65025250.filter(c,tp)
and c:IsSetCard(0xb3) and not c:IsReason(REASON_REPLACE)
end
function c65025250.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not eg:IsContains(e:GetHandler()) and eg:IsExists(c65025250.filter,1,nil,tp) end
if chk==0 then return eg:IsExists(c65025250.filter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(65025250,0))
end
function c65025250.repval(e,c)
......
......@@ -8,7 +8,8 @@ function c65026212.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c65026212.ccost)
e1:SetCondition(c65026212.mtcon)
e1:SetOperation(c65026212.mtop)
c:RegisterEffect(e1)
--spsummon proc
local e2=Effect.CreateEffect(c)
......@@ -31,14 +32,16 @@ function c65026212.initial_effect(c)
e3:SetOperation(c65026212.desop)
c:RegisterEffect(e3)
end
function c65026212.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c65026212.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c65026212.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x1d) and c:IsAbleToGraveAsCost()
end
function c65026212.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c65026212.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c65026212.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c65026212.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -27,7 +27,7 @@ function c65685470.initial_effect(c)
e3:SetValue(500)
e3:SetCondition(c65685470.uncon)
c:RegisterEffect(e3)
--Atk up
--Def up
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_EQUIP)
e4:SetCode(EFFECT_UPDATE_DEFENCE)
......@@ -100,7 +100,7 @@ end
function c65685470.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)
end
end
function c65685470.drcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -7,7 +7,8 @@ function c66816282.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c66816282.ccost)
e1:SetCondition(c66816282.mtcon)
e1:SetOperation(c66816282.mtop)
c:RegisterEffect(e1)
--Negate
local e2=Effect.CreateEffect(c)
......@@ -23,14 +24,16 @@ function c66816282.initial_effect(c)
e2:SetOperation(c66816282.operation)
c:RegisterEffect(e2)
end
function c66816282.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c66816282.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c66816282.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_ROCK) and not c:IsPublic()
end
function c66816282.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c66816282.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c66816282.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c66816282.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c68809475.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c68809475.ccost)
e1:SetCondition(c68809475.mtcon)
e1:SetOperation(c68809475.mtop)
c:RegisterEffect(e1)
--draw
local e2=Effect.CreateEffect(c)
......@@ -22,14 +23,16 @@ function c68809475.initial_effect(c)
e2:SetOperation(c68809475.drop)
c:RegisterEffect(e2)
end
function c68809475.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c68809475.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c68809475.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_MACHINE) and not c:IsPublic()
end
function c68809475.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c68809475.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c68809475.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c68809475.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c72258771.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c72258771.ccost)
e1:SetCondition(c72258771.mtcon)
e1:SetOperation(c72258771.mtop)
c:RegisterEffect(e1)
--summon with 1 tribute
local e2=Effect.CreateEffect(c)
......@@ -33,11 +34,13 @@ function c72258771.initial_effect(c)
e4:SetValue(c72258771.efilter)
c:RegisterEffect(e4)
end
function c72258771.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c72258771.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c72258771.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c72258771.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c72258771.cfilter1,tp,LOCATION_HAND,0,nil)
local select=1
if g1:GetCount()>0 then
......
......@@ -7,7 +7,8 @@ function c74576482.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c74576482.ccost)
e1:SetCondition(c74576482.mtcon)
e1:SetOperation(c74576482.mtop)
c:RegisterEffect(e1)
--to deck
local e2=Effect.CreateEffect(c)
......@@ -22,14 +23,16 @@ function c74576482.initial_effect(c)
e2:SetOperation(c74576482.tdop)
c:RegisterEffect(e2)
end
function c74576482.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c74576482.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c74576482.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsAttribute(ATTRIBUTE_WATER) and not c:IsPublic()
end
function c74576482.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c74576482.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c74576482.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c74576482.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c80367387.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c80367387.ccost)
e1:SetCondition(c80367387.mtcon)
e1:SetOperation(c80367387.mtop)
c:RegisterEffect(e1)
--chain attack
local e2=Effect.CreateEffect(c)
......@@ -18,14 +19,16 @@ function c80367387.initial_effect(c)
e2:SetOperation(c80367387.atop)
c:RegisterEffect(e2)
end
function c80367387.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c80367387.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c80367387.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_WARRIOR) and not c:IsPublic()
end
function c80367387.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c80367387.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c80367387.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c80367387.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c80925836.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c80925836.ccost)
e1:SetCondition(c80925836.mtcon)
e1:SetOperation(c80925836.mtop)
c:RegisterEffect(e1)
--disable
local e2=Effect.CreateEffect(c)
......@@ -17,14 +18,16 @@ function c80925836.initial_effect(c)
e2:SetOperation(c80925836.disop)
c:RegisterEffect(e2)
end
function c80925836.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c80925836.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c80925836.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_FIEND) and not c:IsPublic()
end
function c80925836.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c80925836.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c80925836.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c80925836.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
......@@ -7,7 +7,8 @@ function c95090813.initial_effect(c)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c95090813.ccost)
e1:SetCondition(c95090813.mtcon)
e1:SetOperation(c95090813.mtop)
c:RegisterEffect(e1)
--equip
local e2=Effect.CreateEffect(c)
......@@ -21,14 +22,16 @@ function c95090813.initial_effect(c)
e2:SetOperation(c95090813.eqop)
c:RegisterEffect(e2)
end
function c95090813.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c95090813.cfilter1(c)
return c:IsCode(36623431) and c:IsAbleToGraveAsCost()
end
function c95090813.cfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_WARRIOR) and not c:IsPublic()
end
function c95090813.ccost(e,tp)
if tp~=Duel.GetTurnPlayer() then return end
function c95090813.mtop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(c95090813.cfilter1,tp,LOCATION_HAND,0,nil)
local g2=Duel.GetMatchingGroup(c95090813.cfilter2,tp,LOCATION_HAND,0,nil)
local select=2
......
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