Commit d90a1c46 authored by POLYMER's avatar POLYMER

fix

parent fac425cd
...@@ -44,7 +44,9 @@ function c10202929.nttg(e,c) ...@@ -44,7 +44,9 @@ function c10202929.nttg(e,c)
end end
--2 --2
function c10202929.chainop(e,tp,eg,ep,ev,re,r,rp) function c10202929.chainop(e,tp,eg,ep,ev,re,r,rp)
if aux.IsCodeListed(re:GetHandler(),22702055) and c:IsType(TYPE_MONSTER) and ep==tp then if aux.IsCodeListed(re:GetHandler(),22702055)
and re:GetHandler():IsType(TYPE_MONSTER)
and ep==tp then
Duel.SetChainLimit(c10202929.chainlm) Duel.SetChainLimit(c10202929.chainlm)
end end
end end
......
...@@ -14,6 +14,35 @@ function c121082833.initial_effect(c) ...@@ -14,6 +14,35 @@ function c121082833.initial_effect(c)
e2:SetType(EFFECT_TYPE_ACTIVATE) e2:SetType(EFFECT_TYPE_ACTIVATE)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if not c121082833.initcheck then
c121082833.initcheck=true
local st=Effect.SetTarget
Effect.SetTarget=function(e,tg)
if e:GetOwner():IsOriginalCodeRule(92746535) and e:GetCategory()==CATEGORY_TOHAND+CATEGORY_SEARCH then
return st(e,c121082833.thtg)
else
return st(e,tg)
end
end
local so=Effect.SetOperation
Effect.SetOperation=function(e,op)
if e:GetOwner():IsOriginalCodeRule(92746535) and e:GetCategory()==CATEGORY_TOHAND+CATEGORY_SEARCH then
return so(e,c121082833.thop)
else
return so(e,op)
end
end
local rg=Duel.GetMatchingGroup(Card.IsOriginalCodeRule,tp,0xff,0xff,nil,92746535)
for tc in aux.Next(rg) do
if tc.initial_effect then
local tinit=c121082833.initial_effect
c121082833.initial_effect=function() end
tc:ReplaceEffect(121082833,0)
c121082833.initial_effect=tinit
tc.initial_effect(tc)
end
end
end
end end
function c121082833.chcon(e,tp,eg,ep,ev,re,r,rp) function c121082833.chcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -16,8 +16,8 @@ function cm.initial_effect(c) ...@@ -16,8 +16,8 @@ function cm.initial_effect(c)
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_SUMMON) e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(s.smtg) e1:SetTarget(cm.smtg)
e1:SetOperation(s.smop) e1:SetOperation(cm.smop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
...@@ -28,26 +28,26 @@ function cm.initial_effect(c) ...@@ -28,26 +28,26 @@ function cm.initial_effect(c)
e2:SetTarget(cm.thtg) e2:SetTarget(cm.thtg)
e2:SetOperation(cm.thop) e2:SetOperation(cm.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if not s.global_check then if not cm.global_check then
s.global_check=true s.global_check=true
s[0]=0 s[0]=0
s[1]=0 s[1]=0
local ge1=Effect.CreateEffect(c) local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_SUMMON) ge1:SetCode(EVENT_SUMMON)
ge1:SetOperation(s.regop) ge1:SetOperation(cm.regop)
Duel.RegisterEffect(ge1,0) Duel.RegisterEffect(ge1,0)
end end
end end
function s.regop(e,tp,eg,ep,ev,re,r,rp) function cm.regop(e,tp,eg,ep,ev,re,r,rp)
local c=eg:GetFirst() local c=eg:GetFirst()
if s[ep]==0 and c:IsCode(m) then s[ep]=1 end if cm[ep]==0 and c:IsCode(m) then cm[ep]=1 end
end end
function cm.ntcon(e,c,minc) function cm.ntcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
return minc==0 and c:IsLevelAbove(5) and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 return minc==0 and c:IsLevelAbove(5) and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and s[c:GetControler()]==0 and cm[c:GetControler()]==0
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsSetCard(0x3356) and c:IsAbleToHand() return c:IsSetCard(0x3356) and c:IsAbleToHand()
......
...@@ -24,7 +24,7 @@ function s.initial_effect(c) ...@@ -24,7 +24,7 @@ function s.initial_effect(c)
e3:SetTarget(s.pctg) e3:SetTarget(s.pctg)
e3:SetOperation(s.pcop) e3:SetOperation(s.pcop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
elements={{"tama_elements",{{TAMA_ELEMENT_ORDER,1},{TAMA_ELEMENT_CHAOS,1}}} elements={{"tama_elements",{{TAMA_ELEMENT_ORDER,1},{TAMA_ELEMENT_CHAOS,1}}}}
s[c]=elements s[c]=elements
end end
......
...@@ -11,7 +11,7 @@ function c60150504.initial_effect(c) ...@@ -11,7 +11,7 @@ function c60150504.initial_effect(c)
--特招 --特招
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(60150504,1)) e1:SetDescription(aux.Stringid(60150504,1))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_HANDES+CATEGORY_DRAW) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1) e1:SetCountLimit(1)
......
--幻想曲 纯白的女骑士 --幻想曲 纯白的女骑士
function c60150507.initial_effect(c) function c60150507.initial_effect(c)
--summon with no tribute
local e0=Effect.CreateEffect(c)
e0:SetDescription(aux.Stringid(60150505,0))
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_SUMMON_PROC)
e0:SetCondition(c60150507.ntcon)
c:RegisterEffect(e0)
-- --
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(60150507,0)) e1:SetDescription(aux.Stringid(60150507,0))
...@@ -37,6 +45,10 @@ function c60150507.initial_effect(c) ...@@ -37,6 +45,10 @@ function c60150507.initial_effect(c)
c:RegisterEffect(e3)]] c:RegisterEffect(e3)]]
Duel.AddCustomActivityCounter(60150507,ACTIVITY_SPSUMMON,c60150507.counterfilter) Duel.AddCustomActivityCounter(60150507,ACTIVITY_SPSUMMON,c60150507.counterfilter)
end end
function c60150507.ntcon(e,c,minc)
if c==nil then return true end
return minc==0 and c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c60150507.counterfilter(c) function c60150507.counterfilter(c)
return (c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_FIEND)) return (c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_FIEND))
end end
......
...@@ -98,18 +98,16 @@ function c60150520.filter(c,e,tp) ...@@ -98,18 +98,16 @@ function c60150520.filter(c,e,tp)
return c:GetRank()<=10 and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_FIEND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetRank()<=10 and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_FIEND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c60150520.sumtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60150520.sumtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_EXTRA) and c60150520.filter(chkc,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c60150520.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
and Duel.IsExistingTarget(c60150520.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c60150520.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c60150520.sumop(e,tp,eg,ep,ev,re,r,rp) function c60150520.sumop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local c=e:GetHandler()
if tc:IsRelateToEffect(e) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) local g=Duel.SelectMatchingCard(tp,c60150520.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function c60150520.atkcon(e,tp,eg,ep,ev,re,r,rp) function c60150520.atkcon(e,tp,eg,ep,ev,re,r,rp)
......
--热砂大地 密斯提拉 --热砂大地 密斯提拉
function c75000019.initial_effect(c) function c75000019.initial_effect(c)
aux.AddCodeList(c,75000001)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......
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