Commit d5afd7f2 authored by POLYMER's avatar POLYMER

fix

parent b7676a72
...@@ -59,22 +59,35 @@ function cm.initial_effect(c) ...@@ -59,22 +59,35 @@ function cm.initial_effect(c)
e7:SetCode(EVENT_CHAINING) e7:SetCode(EVENT_CHAINING)
e7:SetRange(LOCATION_EXTRA) e7:SetRange(LOCATION_EXTRA)
e7:SetCountLimit(1,11513094) e7:SetCountLimit(1,11513094)
e7:SetCondition(c11513094.fscon1) e7:SetCondition(c11513094.fscon11)
e7:SetTarget(c11513094.fstg1) e7:SetTarget(c11513094.fstg1)
e7:SetOperation(c11513094.fsop1) e7:SetOperation(c11513094.fsop1)
c:RegisterEffect(e7) c:RegisterEffect(e7)
local e8=e7:Clone() local e8=e7:Clone()
e8:SetCountLimit(1,11514094) e8:SetCountLimit(1,11513094)
e8:SetCondition(c11513094.fscon2) e8:SetCondition(c11513094.fscon12)
e8:SetTarget(c11513094.fstg2) e8:SetTarget(c11513094.fstg2)
e8:SetOperation(c11513094.fsop2) e8:SetOperation(c11513094.fsop2)
c:RegisterEffect(e8) c:RegisterEffect(e8)
local e9=e7:Clone() local e9=e7:Clone()
e9:SetCountLimit(1,11515094) e9:SetCountLimit(1,11513094)
e9:SetCondition(c11513094.fscon3) e9:SetCondition(c11513094.fscon13)
e9:SetTarget(c11513094.fstg3) e9:SetTarget(c11513094.fstg3)
e9:SetOperation(c11513094.fsop3) e9:SetOperation(c11513094.fsop3)
c:RegisterEffect(e9) c:RegisterEffect(e9)
local ee7=e7:Clone()
ee7:SetCountLimit(1,11514094)
ee7:SetCondition(c11513094.fscon21)
c:RegisterEffect(ee7)
local ee8=e7:Clone()
ee8:SetCountLimit(1,11514094)
ee8:SetCondition(c11513094.fscon22)
c:RegisterEffect(ee8)
local ee9=e7:Clone()
ee9:SetCountLimit(1,11514094)
ee9:SetCondition(c11513094.fscon23)
c:RegisterEffect(ee9)
--mo --mo
local e10=Effect.CreateEffect(c) local e10=Effect.CreateEffect(c)
e10:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e10:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
...@@ -183,17 +196,29 @@ function c11513094.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -183,17 +196,29 @@ function c11513094.effop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c11513094.fscon1(e,tp,eg,ep,ev,re,r,rp) function c11513094.fscon11(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return (re:IsHasCategory(CATEGORY_DRAW) or re:IsHasCategory(CATEGORY_TOHAND)) and c:IsFaceup() and rp==tp
end
function c11513094.fscon21(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return (re:IsHasCategory(CATEGORY_DRAW) or re:IsHasCategory(CATEGORY_TOHAND)) and c:IsFaceup() and rp==1-tp
end
function c11513094.fscon12(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return re:IsHasCategory(CATEGORY_TOGRAVE) and c:IsFaceup() and rp==tp
end
function c11513094.fscon22(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return (re:IsHasCategory(CATEGORY_DRAW) or re:IsHasCategory(CATEGORY_TOHAND)) and c:IsFaceup() return re:IsHasCategory(CATEGORY_TOGRAVE) and c:IsFaceup() and rp==1-tp
end end
function c11513094.fscon2(e,tp,eg,ep,ev,re,r,rp) function c11513094.fscon13(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return re:IsHasCategory(CATEGORY_TOGRAVE) and c:IsFaceup() return re:IsHasCategory(CATEGORY_REMOVE) and c:IsFaceup() and rp==tp
end end
function c11513094.fscon3(e,tp,eg,ep,ev,re,r,rp) function c11513094.fscon23(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return re:IsHasCategory(CATEGORY_REMOVE) and c:IsFaceup() return re:IsHasCategory(CATEGORY_REMOVE) and c:IsFaceup() and rp==1-tp
end end
function c11513094.filter0(c) function c11513094.filter0(c)
return c:IsType(TYPE_MONSTER) and c:IsCanBeFusionMaterial() and c:IsAbleToDeck() return c:IsType(TYPE_MONSTER) and c:IsCanBeFusionMaterial() and c:IsAbleToDeck()
......
...@@ -15,7 +15,7 @@ function s.initial_effect(c) ...@@ -15,7 +15,7 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_DAMAGE) e1:SetCode(EVENT_DAMAGE)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,id)
e1:SetCondition(s.fuscon) e1:SetCondition(s.fuscon)
e1:SetTarget(s.fustg) e1:SetTarget(s.fustg)
e1:SetOperation(s.fusop) e1:SetOperation(s.fusop)
......
...@@ -69,7 +69,7 @@ function s.mfilter(c) ...@@ -69,7 +69,7 @@ function s.mfilter(c)
return s.ForceFighter(c) and c:IsFaceup() and c:GetLevel()>0 return s.ForceFighter(c) and c:IsFaceup() and c:GetLevel()>0
end end
function s.synchk_manual(sc,c,tc) function s.synchk_manual(sc,e,c,tc)
if not (s.ForceFighter(sc) and sc:IsType(TYPE_SYNCHRO)) then return false end if not (s.ForceFighter(sc) and sc:IsType(TYPE_SYNCHRO)) then return false end
...@@ -77,7 +77,8 @@ function s.synchk_manual(sc,c,tc) ...@@ -77,7 +77,8 @@ function s.synchk_manual(sc,c,tc)
if tc:IsType(TYPE_TUNER) then return false end if tc:IsType(TYPE_TUNER) then return false end
return sc:IsCanBeSpecialSummoned(nil,SUMMON_TYPE_SYNCHRO,c:GetControler(),false,false)
return sc:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,c:GetControler(),false,false)
end end
function s.sctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.sctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...@@ -90,7 +91,8 @@ function s.sctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -90,7 +91,8 @@ function s.sctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local mg=Duel.GetMatchingGroup(s.mfilter,tp,LOCATION_MZONE,0,nil) local mg=Duel.GetMatchingGroup(s.mfilter,tp,LOCATION_MZONE,0,nil)
for tc in aux.Next(mg) do for tc in aux.Next(mg) do
if Duel.IsExistingMatchingCard(s.synchk_manual,tp,LOCATION_EXTRA,0,1,nil,c,tc) then
if Duel.IsExistingMatchingCard(s.synchk_manual,tp,LOCATION_EXTRA,0,1,nil,e,c,tc) then
return true return true
end end
end end
...@@ -110,6 +112,7 @@ function s.sctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -110,6 +112,7 @@ function s.sctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
end end
function s.scop(e,tp,eg,ep,ev,re,r,rp) function s.scop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
...@@ -138,7 +141,6 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp) ...@@ -138,7 +141,6 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
-- 5. 进行同调召唤
Duel.SynchroSummon(tp,sc,nil,mg) Duel.SynchroSummon(tp,sc,nil,mg)
end end
end 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