Commit 3883c4f2 authored by REIKAI's avatar REIKAI 💬

repo 10.05

parent 6c7a1446
Pipeline #17071 passed with stages
in 25 minutes and 43 seconds
......@@ -2,6 +2,7 @@
local m=33502918
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddCodeList(c,33502900)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......
......@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,60152017+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c60152017.con)
e1:SetTarget(c60152017.target)
e1:SetOperation(c60152017.activate)
c:RegisterEffect(e1)
......@@ -24,6 +25,9 @@ function cm.initial_effect(c)
e2:SetOperation(c60152017.activate2)
c:RegisterEffect(e2)
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)
return ((c:IsSetCard(0x6b25) and c:IsType(TYPE_MONSTER))
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)
Duel.SetOperationInfo(0,CATEGORY_RELEASE,sg,sg:GetCount(),0,0)
end
function c60152017.filter2(c)
if c:IsPreviousPosition(POS_FACEUP) then
if c:IsPosition(POS_FACEUP) then
return c:GetAttack()
else return 0 end
end
......
......@@ -46,12 +46,12 @@ function cm.mfilter(c)
return c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT)
end
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
function cm.xfilter(c)
return c:IsCanOverlay()
end
function cm.xfilter(c)
function cm.xfilter2(c)
return c:IsCanOverlay() and c:IsSetCard(0x374) and c:IsType(TYPE_SPELL+TYPE_TRAP)
end
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