Commit 659e725b authored by Nemo Ma's avatar Nemo Ma

fix

parent 8d141b1a
......@@ -93,7 +93,9 @@ function cm.erop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local tg=g:Filter(Card.IsRelateToEffect,nil,e)
if #tg>0 then
local ct=Duel.SendtoDeck(tg,nil,2,REASON_EFFECT)
Duel.SendtoDeck(tg,nil,2,REASON_EFFECT)
local og=Duel.GetOperatedGroup()
local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_HAND+LOCATION_EXTRA)
if ct>0 then
local rg=Duel.GetDecktopGroup(tp,ct)
Duel.DisableShuffleCheck()
......
......@@ -52,9 +52,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
reg(sc,se,bool)
end
for tc in aux.Next(g) do
if tc.initial_effect and tc:GetOriginalType()&TYPE_NORMAL==0 then
tc:ReplaceEffect(tc:GetOriginalCode(),0)
elseif tc.initial_effect then
if tc.initial_effect then
local ini=cm.initial_effect
cm.initial_effect=function() end
tc:ReplaceEffect(m,0)
......
......@@ -40,30 +40,30 @@ function cm.replace(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0xaa) and bit.band(sumtp,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end
function cm.check(c)
return c:GetFlagEffect(m)==0
return c:GetFlagEffect(m)==0 and c:IsSetCard(0xaa) and c:IsType(TYPE_PENDULUM)
end
function cm.con(e,tp)
return Duel.IsExistingMatchingCard(cm.check,tp,LOCATION_PZONE,0,1,nil) and Duel.IsPlayerAffectedByEffect(e:GetHandlerPlayer(),m)
return Duel.IsExistingMatchingCard(cm.check,tp,0x7f,0x7f,1,nil)
end
function cm.splimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0xaa)
end
function cm.op(e,tp)
local rg=Duel.GetMatchingGroup(cm.check,tp,LOCATION_PZONE,0,nil)
local rg=Duel.GetMatchingGroup(cm.check,tp,0x7f,0,nil)
for tc in aux.Next(rg) do
table_effect={}
clffunc=Card.RegisterEffect
Card.RegisterEffect=function(card,effect,flag)
if effect and effect:GetCode()~=EFFECT_CANNOT_SPECIAL_SUMMON then
if effect and (effect:GetCode()~=EFFECT_CANNOT_SPECIAL_SUMMON or effect:GetRange()&LOCATION_PZONE==0) then
local eff=effect:Clone()
table.insert(table_effect,eff)
end
return clffunc(card,effect,flag)
end
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,0,0)
tc:RegisterFlagEffect(m,0,0,0,0)
Duel.CreateToken(tp,tc:GetOriginalCode())
Card.RegisterEffect=clffunc
local cid2=tc:ReplaceEffect(m+1,RESET_EVENT+RESETS_STANDARD,1)
local cid2=tc:ReplaceEffect(m+1,0,1)
for key,eff in ipairs(table_effect) do
Card.RegisterEffect(tc,eff,true)
end
......
......@@ -2,8 +2,6 @@
local m=29065902
local cm=_G["c"..m]
function cm.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--splimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -14,7 +14,7 @@ function c33200057.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c33200057.tgcon)
e1:SetTarget(c33200057.tgtg)
......
......@@ -44,6 +44,7 @@ end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local zone=e:GetHandler():GetLinkedZone(tp)&0x1f
if zone==0 or not Duel.CheckLocation(tp,LOCATION_MZONE,math.log(zone,2)) then return end
if tp==1 then zone=((zone&0xffff)<<16)|((zone>>16)&0xffff) end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DISABLE_FIELD)
......
......@@ -22,7 +22,7 @@ function c79029527.filter1(c,e,tp)
return c:IsType(TYPE_LINK) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and rg:GetCount()>=lv and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,false,false)
end
function c79029527.filter3(c)
return c:IsAbleToDeck() and c:IsType(TYPE_MONSTER)
return c:IsAbleToDeck() and c:IsType(TYPE_MONSTER) and c:IsFaceup()
end
function c79029527.filter2(c)
return c:IsType(TYPE_LINK) and c:IsSetCard(0x11b)
......
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