Commit 9e5f3617 authored by POLYMER's avatar POLYMER

fix

parent 19ada131
......@@ -55,6 +55,13 @@ function cm.setop(e,tp,eg,ep,ev,re,r,rp)
local token=Duel.CreateToken(tp,m+10)
Duel.SendtoDeck(token,nil,2,REASON_EFFECT)
Duel.ConfirmCards(1-tp,token)
--change code
local e3=Effect.CreateEffect(token)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CHANGE_CODE)
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SET_AVAILABLE)
e3:SetValue(m+10)
token:RegisterEffect(e3)
end
end
end
......
......@@ -55,6 +55,13 @@ function cm.setop(e,tp,eg,ep,ev,re,r,rp)
local token=Duel.CreateToken(tp,m+10)
Duel.SendtoDeck(token,nil,2,REASON_EFFECT)
Duel.ConfirmCards(1-tp,token)
--change code
local e3=Effect.CreateEffect(token)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CHANGE_CODE)
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SET_AVAILABLE)
e3:SetValue(m+10)
token:RegisterEffect(e3)
end
end
end
\ No newline at end of file
......@@ -55,6 +55,13 @@ function cm.setop(e,tp,eg,ep,ev,re,r,rp)
local token=Duel.CreateToken(tp,m+10)
Duel.SendtoDeck(token,nil,2,REASON_EFFECT)
Duel.ConfirmCards(1-tp,token)
--change code
local e3=Effect.CreateEffect(token)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CHANGE_CODE)
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SET_AVAILABLE)
e3:SetValue(m+10)
token:RegisterEffect(e3)
end
end
end
\ No newline at end of file
......@@ -55,6 +55,13 @@ function cm.setop(e,tp,eg,ep,ev,re,r,rp)
local token=Duel.CreateToken(tp,m+10)
Duel.SendtoDeck(token,nil,2,REASON_EFFECT)
Duel.ConfirmCards(1-tp,token)
--change code
local e3=Effect.CreateEffect(token)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CHANGE_CODE)
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SET_AVAILABLE)
e3:SetValue(m+10)
token:RegisterEffect(e3)
end
end
end
\ No newline at end of file
......@@ -61,7 +61,7 @@ function c11526303.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end
function c11526303.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end
if chk==0 then return e:GetHandler():IsReleasable(REASON_COST) end
Duel.Release(e:GetHandler(),REASON_COST)
end
function c11526303.spfilter(c,e,tp)
......
......@@ -62,7 +62,7 @@ function c11526305.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end
function c11526305.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end
if chk==0 then return e:GetHandler():IsReleasable(REASON_COST) end
Duel.Release(e:GetHandler(),REASON_COST)
end
function c11526305.spfilter(c,e,tp)
......
......@@ -105,7 +105,7 @@ function c67200160.pencon(e,tp,eg,ep,ev,re,r,rp)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsFaceup()
end
function c67200160.pentg(e,tp,eg,ep,ev,re,r,rp,chk)
local eeg=Duel.GetMatchingGroupCount(Card.IsReleasable,tp,LOCATION_PZONE,LOCATION_PZONE,nil)
local eeg=Duel.GetMatchingGroupCount(Card.IsReleasable,tp,LOCATION_PZONE,LOCATION_PZONE,nil,REASON_EFFECT)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_PZONE,LOCATION_PZONE)>0 and eeg>0 end
local g=Duel.GetFieldGroup(tp,LOCATION_PZONE,LOCATION_PZONE)
Duel.SetOperationInfo(0,CATEGORY_RELEASE,g,g:GetCount(),0,0)
......
......@@ -42,8 +42,8 @@ function c67200251.initial_effect(c)
c:RegisterEffect(e5)
end
function c67200251.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x674) end
local sg=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x674)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x674) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x674)
Duel.Release(sg,REASON_COST)
end
function c67200251.thfilter(c)
......
......@@ -41,8 +41,8 @@ function c67200254.spfilter1(c,tp)
return c:IsFaceup() and c:IsSetCard(0x674) and c:IsReleasable()
end
function c67200254.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c67200254.spfilter1,1,nil) end
local sg=Duel.SelectReleaseGroup(tp,c67200254.spfilter1,1,1,nil)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c67200254.spfilter1,1,nil) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c67200254.spfilter1,1,1,nil)
Duel.Release(sg,REASON_COST)
end
function c67200254.thfilter(c)
......
......@@ -39,8 +39,8 @@ function c67200259.spfilter1(c,tp)
return c:IsFaceup() and c:IsSetCard(0x674) and c:IsReleasable()
end
function c67200259.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c67200259.spfilter1,1,nil) end
local sg=Duel.SelectReleaseGroup(tp,c67200259.spfilter1,1,1,nil)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c67200259.spfilter1,1,nil) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c67200259.spfilter1,1,1,nil)
Duel.Release(sg,REASON_COST)
end
function c67200259.thfilter(c)
......
......@@ -94,10 +94,10 @@ function c67200280.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if e:GetLabel()~=100 then return false end
e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x674) and dg:GetCount()>0
return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x674) and dg:GetCount()>0
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local cg=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,dg:GetCount(),nil,0x674)
local cg=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,dg:GetCount(),nil,0x674)
local tc=cg:GetFirst()
e:SetLabel(0,cg:GetCount())
Duel.Release(cg,REASON_COST)
......
......@@ -12,8 +12,8 @@ function c67200294.initial_effect(c)
c:RegisterEffect(e1)
end
function c67200294.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x674) end
local sg=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x674)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x674) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x674)
Duel.Release(sg,REASON_COST)
end
function c67200294.thfilter(c)
......
......@@ -24,7 +24,7 @@ end
function c67200299.link_mat_filter(c,lc)
local con=c:IsSetCard(0x674) and c:IsCanBeLinkMaterial(lc)
local con_mzone=c:IsLocation(LOCATION_MZONE) and c:IsFaceup()
local con_remove=c:IsLocation(LOCATION_SZONE) and c:IsReleasable() and c:IsType(TYPE_PENDULUM)
local con_remove=c:IsLocation(LOCATION_SZONE) and c:IsReleasable(REASON_MATERIAL) and c:IsType(TYPE_PENDULUM)
local con_extra=false
local tp=lc:GetControler()
local le={c:IsHasEffect(EFFECT_EXTRA_LINK_MATERIAL,tp)}
......
......@@ -34,7 +34,7 @@ function c67200307.sccost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoExtraP(tc,tp,REASON_COST)
end
function c67200307.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end
if chk==0 then return e:GetHandler():IsReleasable(REASON_EFFECT) end
Duel.SetOperationInfo(0,CATEGORY_RELEASE,e:GetHandler(),1,tp,nil)
end
function c67200307.scop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -4,14 +4,14 @@ function c67200664.initial_effect(c)
aux.EnablePendulumAttribute(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(67200644,1))
e1:SetDescription(aux.Stringid(67200664,1))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_PZONE)
e1:SetCountLimit(1)
e1:SetTarget(c67200644.seqtg)
e1:SetOperation(c67200644.seqop)
e1:SetTarget(c67200664.seqtg)
e1:SetOperation(c67200664.seqop)
c:RegisterEffect(e1)
--extra material
local e2=Effect.CreateEffect(c)
......@@ -19,8 +19,8 @@ function c67200664.initial_effect(c)
e2:SetCode(EFFECT_EXTRA_LINK_MATERIAL)
e2:SetRange(LOCATION_SZONE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetCountLimit(2,67200644)
e2:SetValue(c67200644.matval)
e2:SetCountLimit(2,67200664)
e2:SetValue(c67200664.matval)
c:RegisterEffect(e2)
--Attribute Water
local e3=Effect.CreateEffect(c)
......@@ -32,29 +32,29 @@ function c67200664.initial_effect(c)
c:RegisterEffect(e3)
end
--
function c67200644.filter(c,e,tp)
function c67200664.filter(c,e,tp)
return c:IsSetCard(0x667b) and c:IsLevel(3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)
end
function c67200644.seqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c67200644.filter(chkc,e,tp) end
function c67200664.seqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c67200664.filter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c67200644.filter,tp,LOCATION_SZONE,0,1,e:GetHandler(),e,tp) end
and Duel.IsExistingTarget(c67200664.filter,tp,LOCATION_SZONE,0,1,e:GetHandler(),e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c67200644.filter,tp,LOCATION_SZONE,0,1,1,e:GetHandler(),e,tp)
local g=Duel.SelectTarget(tp,c67200664.filter,tp,LOCATION_SZONE,0,1,1,e:GetHandler(),e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c67200644.seqop(e,tp,eg,ep,ev,re,r,rp)
function c67200664.seqop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
---
function c67200644.exmfilter(c)
return c:IsLocation(LOCATION_SZONE) and c:IsCode(67200644)
function c67200664.exmfilter(c)
return c:IsLocation(LOCATION_SZONE) and c:IsCode(67200664)
end
function c67200644.matval(e,lc,mg,c,tp)
function c67200664.matval(e,lc,mg,c,tp)
if not (lc:IsSetCard(0x667b) and (lc:IsAttribute(ATTRIBUTE_LIGHT) or lc:IsAttribute(ATTRIBUTE_WATER))) then return false,nil end
return true,not mg or not mg:IsExists(c67200644.exmfilter,1,nil)
return true,not mg or not mg:IsExists(c67200664.exmfilter,1,nil)
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