Commit 3883c4f2 authored by REIKAI's avatar REIKAI 💬

repo 10.05

parent 6c7a1446
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
local m=33502918 local m=33502918
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
aux.AddCodeList(c,33502900)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
......
...@@ -8,6 +8,7 @@ function cm.initial_effect(c) ...@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,60152017+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,60152017+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c60152017.con)
e1:SetTarget(c60152017.target) e1:SetTarget(c60152017.target)
e1:SetOperation(c60152017.activate) e1:SetOperation(c60152017.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -24,6 +25,9 @@ function cm.initial_effect(c) ...@@ -24,6 +25,9 @@ function cm.initial_effect(c)
e2:SetOperation(c60152017.activate2) e2:SetOperation(c60152017.activate2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c60152017.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(Card.IsFacedown,tp,LOCATION_EXTRA,0,nil)==0
end
function c60152017.filter(c) function c60152017.filter(c)
return ((c:IsSetCard(0x6b25) and c:IsType(TYPE_MONSTER)) return ((c:IsSetCard(0x6b25) and c:IsType(TYPE_MONSTER))
or (c:IsType(TYPE_TOKEN) and c:IsAttribute(ATTRIBUTE_FIRE))) and c:IsReleasable() or (c:IsType(TYPE_TOKEN) and c:IsAttribute(ATTRIBUTE_FIRE))) and c:IsReleasable()
...@@ -39,7 +43,7 @@ function c60152017.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,7 +43,7 @@ function c60152017.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_RELEASE,sg,sg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_RELEASE,sg,sg:GetCount(),0,0)
end end
function c60152017.filter2(c) function c60152017.filter2(c)
if c:IsPreviousPosition(POS_FACEUP) then if c:IsPosition(POS_FACEUP) then
return c:GetAttack() return c:GetAttack()
else return 0 end else return 0 end
end end
......
...@@ -46,12 +46,12 @@ function cm.mfilter(c) ...@@ -46,12 +46,12 @@ function cm.mfilter(c)
return c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT) return c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT)
end end
function cm.ovfilter(c) function cm.ovfilter(c)
return c:IsFaceup() and c:IsOriginalCodeRule(m-3) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsCode(m-3) and c:IsType(TYPE_XYZ)
end end
function cm.xfilter(c) function cm.xfilter(c)
return c:IsCanOverlay() return c:IsCanOverlay()
end end
function cm.xfilter(c) function cm.xfilter2(c)
return c:IsCanOverlay() and c:IsSetCard(0x374) and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsCanOverlay() and c:IsSetCard(0x374) and c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function cm.tffilter(c,tp) function cm.tffilter(c,tp)
......
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