Commit 197c362b authored by Nemo Ma's avatar Nemo Ma

fix

parent 9d5eee93
......@@ -85,15 +85,15 @@ function c40009219.datg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c40009219.daop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.Remove(c,POS_FACEUP,REASON_EFFECT)~=0 and Duel.GetTurnPlayer()~=tp then
Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1)
if c:IsRelateToEffect(e) and Duel.Remove(c,POS_FACEUP,REASON_EFFECT)~=0 then
c:RegisterFlagEffect(40009219,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,0)
if Duel.GetTurnPlayer()==tp then return end
Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1)
end
end
function c40009219.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:GetFlagEffect(40009219)>0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
if chk==0 then return c:GetFlagEffect(40009219)>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c40009219.sumop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -111,6 +111,9 @@ function cm.discon(e,tp,eg,ep,ev,re,r,rp)
return (re:IsHasType(EFFECT_TYPE_ACTIVATE) or re:IsActiveType(TYPE_MONSTER))
and re:GetHandler()~=e:GetHandler() and Duel.IsExistingMatchingCard(cm.filter1,tp,LOCATION_EXTRA,0,10,nil)
end
function cm.filter1(c)
return c:IsFaceup() and c:IsType(TYPE_PENDULUM)
end
function cm.costfilter(c)
return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and c:IsAbleToDeckAsCost()
end
......
......@@ -86,7 +86,7 @@ end
function c40010132.spfilter(c,tp)
return c:IsCode(40009623) and (c:IsAbleToHand() or c:GetActivateEffect():IsActivatable(tp,true,true))
end
function c40010132.target(e,tp,eg,ep,ev,re,r,rp,chk)
function c40010132.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c40010132.spfilter,tp,LOCATION_DECK,0,1,nil,tp) end
if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
......
......@@ -8,6 +8,7 @@ function c65020218.initial_effect(c)
e1:SetCode(EVENT_CUSTOM+65020218)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,65020218)
e1:SetCondition(c65020218.spcon)
e1:SetTarget(c65020218.sptg)
e1:SetOperation(c65020218.spop)
......
......@@ -91,14 +91,12 @@ function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
end
function cm.aclimit1(e,tp,eg,ep,ev,re,r,rp)
local n=0
if ep~=tp then n=100000 end
if re:IsActiveType(TYPE_SPELL) then n=n+10000 end
if re:IsActiveType(TYPE_TRAP) then n=n+20000 end
Duel.RegisterFlagEffect(tp,m+n,RESET_PHASE+PHASE_END,0,2)
end
function cm.elimit(e,te,tp)
local n=0
if e:GetHandlerPlayer()~=tp then n=100000 end
if te:IsActiveType(TYPE_SPELL) then n=n+10000 end
if te:IsActiveType(TYPE_TRAP) then n=n+20000 end
return Duel.GetFlagEffect(tp,m+n)>0
......
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