Commit 84273237 authored by Satty's avatar Satty

fix

parent 25c76969
Pipeline #35634 passed with stages
in 49 minutes and 56 seconds
......@@ -54,12 +54,11 @@ function c12847015.initial_effect(c)
)
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local tg1=Duel.GetFieldGroup(tp,0xff,0)
if tg1:IsExists(Card.IsCode,1,nil,4202048) then
if tg1:IsExists(Card.IsCode,1,nil,4202048,13700047) then
Duel.Remove(tg1,POS_FACEDOWN,REASON_RULE)
end
local tg2=Duel.GetFieldGroup(tp,0,0xff)
if tg2:IsExists(Card.IsCode,1,nil,4202048) then
if tg2:IsExists(Card.IsCode,1,nil,4202048,13700047) then
Duel.Remove(tg2,POS_FACEDOWN,REASON_RULE)
end
end
......@@ -83,9 +82,14 @@ function c12847015.initial_effect(c)
tc:ReplaceEffect(12847015,0,0)
tc:RegisterEffect(e1)
end
if c13700047 and getmetatable(tc)==c13700047 then
tc:ReplaceEffect(12847015,0,0)
tc:RegisterEffect(e1)
end
tc=g:GetNext()
end
c4202048=c12847015
c13700047=c12847015
end
function c12847015.cfilter(c)
return c:IsFaceup() and c:IsDisabled() and c:IsType(TYPE_EFFECT) and c:IsReleasable()
......
......@@ -26,7 +26,7 @@ function s.thfilter(c)
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil)
if chk==0 then return return g:GetClassCount(Card.GetAttribute)>2 end
if chk==0 then return g:GetClassCount(Card.GetAttribute)>2 end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -149,21 +149,20 @@ end
function cm.eftg(e,c)
return c:IsSetCard(0x82b)
end
function cm.linkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE
end
function cm.matfilter(c)
return c:IsFaceup()
end
function cm.linkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE
end
function cm.lktg(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,1,nil,mg) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function cm.lkop(e,tp,eg,ep,ev,re,r,rp)
local mg=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local mg=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil)
local g=Duel.SelectMatchingCard(tp,Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,1,1,nil,mg)
local tc=g:GetFirst()
if tc then
......
......@@ -49,7 +49,7 @@ function cm.damop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.matfilter(c)
return c:IsSetCard(0x82b) and c:IsType(TYPE_MONSTER)
return c:IsSetCard(0x82b) and c:IsLinkType(TYPE_MONSTER)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -44,7 +44,7 @@ function cm.initial_effect(c)
end
function cm.matfilter(c)
return c:IsSetCard(0x82b) and c:IsType(TYPE_MONSTER)
return c:IsSetCard(0x82b) and c:IsLinkType(TYPE_MONSTER)
end
function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsRelateToBattle()
......
......@@ -28,7 +28,7 @@ function cm.initial_effect(c)
end
function cm.ovfilter(c)
return c:IsFaceup() and not c:IsCode(m) and c:GetOverlayCount()==0
return c:IsFaceup() and not c:IsCode(m) and c:GetOverlayCount()==0 and c:IsType(TYPE_XYZ)
end
function cm.atkval(e,c)
return c:GetOverlayCount()*500
......
......@@ -8,7 +8,7 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCountLimit(99,id+1)
e1:SetCountLimit(99,id)
e1:SetTarget(s.thtg)
e1:SetOperation(s.thop)
c:RegisterEffect(e1)
......@@ -30,7 +30,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
end
function s.thfilter(c)
return c:IsSetCard(0x75f) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
return c:IsSetCard(0x9751) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
......@@ -47,7 +47,7 @@ end
-----1jiansuo-baisernlindefuer
function s.cfilter(c,tp,rp)
return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp) and bit.band(c:GetPreviousTypeOnField(),TYPE_LINK)~=0
and c:IsPreviousSetCard(0x75f) and (c:IsReason(REASON_BATTLE) or (rp==1-tp and c:IsReason(REASON_EFFECT)))
and c:IsPreviousSetCard(0x9751) and (c:IsReason(REASON_BATTLE) or (rp==1-tp and c:IsReason(REASON_EFFECT)))
end
function s.spcon2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp,rp) and not eg:IsContains(e:GetHandler())
......
......@@ -24,7 +24,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x75f)
return c:IsFaceup() and c:IsSetCard(0x9751)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
......@@ -45,7 +45,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
-----1 jiansuo--modan
function s.thfilter(c)
return c:IsSetCard(0x75f) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0x9751) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function s.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -27,7 +27,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.cfilter1(c)
return c:IsFaceup() and c:IsSetCard(0x75f)
return c:IsFaceup() and c:IsSetCard(0x9751)
end
function s.cfilter2(c)
return c:IsFaceup() and c:IsCode(75027001)
......
......@@ -29,7 +29,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.spfilter(c,e,tp)
return c:IsFaceupEx() and c:IsSetCard(0x75f)
return c:IsFaceupEx() and c:IsSetCard(0x9751)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -32,12 +32,12 @@ function s.initial_effect(c)
e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x75f))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x9751))
c:RegisterEffect(e1)
--destroy
end
function s.mfilter(c)
return c:IsLevelBelow(4) and c:IsLinkSetCard(0x75f)
return c:IsLevelBelow(4) and c:IsLinkSetCard(0x9751)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
......
......@@ -34,7 +34,7 @@ function s.initial_effect(c)
c:RegisterEffect(e4)
end
function s.lcheck(g)
return g:IsExists(Card.IsLinkSetCard,1,nil,0x75f)
return g:IsExists(Card.IsLinkSetCard,2,nil,0x9751)
end
function s.thfilter(c)
return c:IsCode(75027004) and c:IsAbleToHand()
......
......@@ -3,7 +3,7 @@ local s,id,o=GetID()
function s.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x75f),2,2)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x9751),2,2)
--code
aux.EnableChangeCode(c,75027001,LOCATION_MZONE+LOCATION_GRAVE)
local e1=Effect.CreateEffect(c)
......
......@@ -79,7 +79,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.tdfilter(c)
return (c:IsSetCard(0x75f) or c:IsCode(75027004)) and c:IsAbleToDeck()
return (c:IsSetCard(0x9751) or c:IsCode(75027004)) and c:IsAbleToDeck()
and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
end
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -6,7 +6,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,id+0)
e1:SetCountLimit(1,id)
e1:SetCost(s.spcost)
e1:SetTarget(s.sptg)
e1:SetOperation(s.spop)
......@@ -25,7 +25,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.cfilter(c)
return c:IsSetCard(0x75f) and c:IsType(TYPE_MONSTER) and not c:IsCode(75027020) and c:IsAbleToGraveAsCost()
return c:IsSetCard(0x9751) and c:IsType(TYPE_MONSTER) and not c:IsCode(75027020) and c:IsAbleToGraveAsCost()
end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -37,7 +37,7 @@ function s.initial_effect(c)
----3
end
function s.cfilter(c)
return c:IsSetCard(0x75f) and c:IsFaceup()
return c:IsSetCard(0x9751) and c:IsFaceup()
end
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
......@@ -91,7 +91,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end
-------2
function s.costfilter(c)
return (c:IsCode(75027004) or c:IsSetCard(0x75f) and c:IsType(TYPE_SPELL+TYPE_TRAP)) and c:IsAbleToGraveAsCost()
return (c:IsCode(75027004) or c:IsSetCard(0x9751) and c:IsType(TYPE_SPELL+TYPE_TRAP)) and c:IsAbleToGraveAsCost()
end
function s.target1(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -26,7 +26,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.filter(c)
return c:IsSetCard(0x75f) and c:IsFaceup()
return c:IsSetCard(0x9751) and c:IsFaceup()
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end
......
......@@ -26,7 +26,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.spfilter(c,e,tp)
return c:IsSetCard(0x75f) and c:IsType(TYPE_MONSTER)
return c:IsSetCard(0x9751) and c:IsType(TYPE_MONSTER)
and (c:IsAbleToHand() or (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
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