Commit d0d4dd8f authored by Nemo Ma's avatar Nemo Ma

fix

parent 7deabf82
......@@ -69,7 +69,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e1:SetLabel(ev+1)
e1:SetCondition(cm.rscon)
e1:SetOperation(cm.rsop)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetReset(RESET_CHAIN)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EVENT_CHAIN_NEGATED)
......
......@@ -59,7 +59,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetLabel(ev+1)
e1:SetCondition(cm.rscon)
e1:SetOperation(cm.rsop)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetReset(RESET_CHAIN)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EVENT_CHAIN_NEGATED)
......
......@@ -58,7 +58,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetLabel(ev+1)
e1:SetCondition(cm.rscon)
e1:SetOperation(cm.rsop)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetReset(RESET_CHAIN)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EVENT_CHAIN_NEGATED)
......
......@@ -51,7 +51,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetLabel(ev+1)
e1:SetCondition(cm.rscon)
e1:SetOperation(cm.rsop)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetReset(RESET_CHAIN)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EVENT_CHAIN_NEGATED)
......
......@@ -80,6 +80,16 @@ function cm.slop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.SelectMatchingCard(tp,cm.filter2,tp,LOCATION_EXTRA,0,1,1,nil,mg)
if #sg>0 then
local tc=sg:GetFirst()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1)
e1:SetOperation(cm.handop)
e1:SetReset(RESET_CHAIN)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EVENT_SPSUMMON_NEGATED)
Duel.RegisterEffect(e2,tp)
if tc:IsSynchroSummonable(nil,mg) then
Duel.SynchroSummon(tp,tc,nil,mg)
else
......@@ -89,6 +99,9 @@ function cm.slop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function cm.handop(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleHand(tp)
end
function cm.etarget(e,c)
return c:IsFaceup() and c:IsSetCard(0x10)
end
......
......@@ -40,8 +40,12 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetFirstTarget()
local c=e:GetHandler()
if tc:IsRelateToEffect(e) and cm.pofilter(tc,c) then
if tc:IsFaceup() then Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE) end
if tc:IsFacedown() then Duel.ChangePosition(tc,POS_FACEUP_ATTACK) end
local x=0
if tc:IsFaceup() then
Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE)
x=1
end
if tc:IsFacedown() and x==0 then Duel.ChangePosition(tc,POS_FACEUP_ATTACK) end
end
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -45,7 +45,7 @@ function c67200300.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c67200300.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if not c:IsRelateToEffect(e) or not Duel.IsExistingMatchingCard(c67200300.penfilter,tp,LOCATION_DECK,0,1,nil) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,c67200300.penfilter,tp,LOCATION_DECK,0,1,1,nil)
......
......@@ -61,7 +61,7 @@ function c9310055.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetLabelObject(e)
e1:SetCondition(c9310055.rscon)
e1:SetOperation(c9310055.rsop)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetReset(RESET_CHAIN)
Duel.RegisterEffect(e1,tp)
end
function c9310055.activate(e,tp,eg,ep,ev,re,r,rp)
......
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