Commit 641240b7 authored by Nemo Ma's avatar Nemo Ma

fix

parent 2b231c2f
......@@ -55,6 +55,22 @@ function cm.initial_effect(c)
e6:SetCondition(cm.descon)
e6:SetOperation(cm.desop)
c:RegisterEffect(e6)
if not cm.global_check then
cm.global_check=true
local _IsActiveType=Effect.IsActiveType
local _GetActiveType=Effect.GetActiveType
function Effect.GetActiveType(e)
local cost=e:GetCost()
if cost and cost==cm.cost then
return TYPE_SPELL+TYPE_PENDULUM
end
return _GetActiveType(e)
end
function Effect.IsActiveType(e,typ)
local typ2=e:GetActiveType()
return typ&typ2~=0
end
end
end
local KOISHI_CHECK=false
if Card.SetCardData then KOISHI_CHECK=true end
......
......@@ -64,6 +64,22 @@ function cm.initial_effect(c)
e6:SetCondition(cm.descon)
e6:SetOperation(cm.desop)
c:RegisterEffect(e6)
if not cm.global_check then
cm.global_check=true
local _IsActiveType=Effect.IsActiveType
local _GetActiveType=Effect.GetActiveType
function Effect.GetActiveType(e)
local cost=e:GetCost()
if cost and cost==cm.cost then
return TYPE_TRAP
end
return _GetActiveType(e)
end
function Effect.IsActiveType(e,typ)
local typ2=e:GetActiveType()
return typ&typ2~=0
end
end
end
local KOISHI_CHECK=false
if Card.SetCardData then KOISHI_CHECK=true end
......
......@@ -54,6 +54,22 @@ function cm.initial_effect(c)
e6:SetCondition(cm.descon)
e6:SetOperation(cm.desop)
c:RegisterEffect(e6)
if not cm.global_check then
cm.global_check=true
local _IsActiveType=Effect.IsActiveType
local _GetActiveType=Effect.GetActiveType
function Effect.GetActiveType(e)
local cost=e:GetCost()
if cost and cost==cm.cost then
return TYPE_TRAP
end
return _GetActiveType(e)
end
function Effect.IsActiveType(e,typ)
local typ2=e:GetActiveType()
return typ&typ2~=0
end
end
end
local KOISHI_CHECK=false
if Card.SetCardData then KOISHI_CHECK=true end
......
......@@ -56,6 +56,22 @@ function cm.initial_effect(c)
e6:SetCondition(cm.descon)
e6:SetOperation(cm.desop)
c:RegisterEffect(e6)
if not cm.global_check then
cm.global_check=true
local _IsActiveType=Effect.IsActiveType
local _GetActiveType=Effect.GetActiveType
function Effect.GetActiveType(e)
local cost=e:GetCost()
if cost and cost==cm.cost then
return TYPE_TRAP
end
return _GetActiveType(e)
end
function Effect.IsActiveType(e,typ)
local typ2=e:GetActiveType()
return typ&typ2~=0
end
end
end
local KOISHI_CHECK=false
if Card.SetCardData then KOISHI_CHECK=true end
......
......@@ -53,6 +53,19 @@ function cm.initial_effect(c)
ge1:SetCondition(cm.regcon)
ge1:SetOperation(cm.regop)
--Duel.RegisterEffect(ge1,0)
local _IsActiveType=Effect.IsActiveType
local _GetActiveType=Effect.GetActiveType
function Effect.GetActiveType(e)
local cost=e:GetCost()
if cost and cost==cm.cost then
return TYPE_TRAP
end
return _GetActiveType(e)
end
function Effect.IsActiveType(e,typ)
local typ2=e:GetActiveType()
return typ&typ2~=0
end
end
end
local KOISHI_CHECK=false
......
......@@ -10,6 +10,15 @@ function c67200608.initial_effect(c)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.ritlimit)
c:RegisterEffect(e1)
--hyper pendulum splimit
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetRange(LOCATION_PZONE)
e0:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e0:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE)
e0:SetTargetRange(1,0)
e0:SetTarget(c67200608.splimit)
c:RegisterEffect(e0)
--token
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(67200608,1))
......@@ -37,6 +46,10 @@ function c67200608.initial_effect(c)
c:RegisterEffect(e4)
end
--
function c67200608.splimit(e,c,tp,sumtp,sumpos)
return bit.band(sumtp,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end
--
function c67200608.cfilter2(c,tp)
return c:GetSummonPlayer()==tp and c:IsSetCard(0x677) and c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_RITUAL)
end
......
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