Commit 8a0e59d5 authored by Nemo Ma's avatar Nemo Ma

fix

parent b2b0e187
...@@ -57,7 +57,7 @@ function c11560308.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -57,7 +57,7 @@ function c11560308.target(e,tp,eg,ep,ev,re,r,rp,chk)
aux.RGCheckAdditional=nil aux.RGCheckAdditional=nil
return res return res
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
end end
function c11560308.activate(e,tp,eg,ep,ev,re,r,rp) function c11560308.activate(e,tp,eg,ep,ev,re,r,rp)
local m=Duel.GetRitualMaterial(tp) local m=Duel.GetRitualMaterial(tp)
......
...@@ -58,7 +58,7 @@ function c11560320.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,7 +58,7 @@ function c11560320.target(e,tp,eg,ep,ev,re,r,rp,chk)
aux.RGCheckAdditional=nil aux.RGCheckAdditional=nil
return res return res
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_REMOVED)
end end
function c11560320.activate(e,tp,eg,ep,ev,re,r,rp) function c11560320.activate(e,tp,eg,ep,ev,re,r,rp)
local m=Duel.GetRitualMaterial(tp) local m=Duel.GetRitualMaterial(tp)
......
...@@ -79,7 +79,7 @@ end ...@@ -79,7 +79,7 @@ end
function cm.remop(e,tp,eg,ep,ev,re,r,rp) function cm.remop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(cm.rmfilter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(cm.rmfilter,tp,0,LOCATION_MZONE,nil)
local x=Duel.Remove(g,POS_DEFENSE,REASON_EFFECT) local x=Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
if e:GetHandler():GetOverlayGroup():IsExists(Card.IsCode,1,nil,57707471) and x>0 then if e:GetHandler():GetOverlayGroup():IsExists(Card.IsCode,1,nil,57707471) and x>0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Damage(1-tp,800,REASON_EFFECT) Duel.Damage(1-tp,800,REASON_EFFECT)
......
...@@ -17,7 +17,7 @@ function cm.initial_effect(c) ...@@ -17,7 +17,7 @@ function cm.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1)) e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_FIELD)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
......
...@@ -25,9 +25,11 @@ function s.initial_effect(c) ...@@ -25,9 +25,11 @@ function s.initial_effect(c)
e2:SetOperation(s.op) e2:SetOperation(s.op)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.cfilter(c)
return c:IsRace(RACE_WYRM) and c:IsFaceup()
end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 or Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
or Duel.IsExistingMatchingCard(aux.FilterFaceupFunction(Card.IsRace,RACE_WYRM),tp,LOCATION_MZONE,0,1,nil)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -5,7 +5,7 @@ function cm.initial_effect(c) ...@@ -5,7 +5,7 @@ function cm.initial_effect(c)
aux.AddCodeList(c,43990016) aux.AddCodeList(c,43990016)
--draw --draw
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW+CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_DRAW+CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,43990019) e1:SetCountLimit(1,43990019)
......
...@@ -5,7 +5,7 @@ function cm.initial_effect(c) ...@@ -5,7 +5,7 @@ function cm.initial_effect(c)
aux.AddCodeList(c,43990016) aux.AddCodeList(c,43990016)
--draw --draw
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW+CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_DRAW+CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,43990020) e1:SetCountLimit(1,43990020)
......
...@@ -57,7 +57,7 @@ end ...@@ -57,7 +57,7 @@ end
function cm.incon(e) function cm.incon(e)
return Card.GetCounter(e:GetHandler(),0x624)>=1 return Card.GetCounter(e:GetHandler(),0x624)>=1
end end
function cm.spcon(e,c) function cm.spcon(e,c,tp)
if c==nil then return true end if c==nil then return true end
return Duel.GetFlagEffect(tp,60002148)>=6 return Duel.GetFlagEffect(tp,60002148)>=6
and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
......
--逆元构造 绯耀 --逆元构造 绯耀
function c79029819.initial_effect(c) function c79029819.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,nil,3,3,c79029819.ovfilter,aux.Stringid(79029819,0),99,c79029819.xyzop) aux.AddXyzProcedure(c,function(c) return c:IsRace(RACE_MACHINE) end,3,3,c79029819.ovfilter,aux.Stringid(79029819,0),99,c79029819.xyzop)
c:EnableReviveLimit() c:EnableReviveLimit()
--search --search
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
function c79029821.initial_effect(c) function c79029821.initial_effect(c)
--synchro summon --synchro summon
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddSynchroMixProcedure(c,c79029821.matfilter1,nil,nil,aux.NonTuner(nil),1,99) aux.AddSynchroMixProcedure(c,c79029821.matfilter1,nil,nil,aux.NonTuner(Card.IsRace,RACE_MACHINE),1,99)
--Remove and lv --Remove and lv
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE) e1:SetCategory(CATEGORY_REMOVE)
......
...@@ -52,11 +52,11 @@ end ...@@ -52,11 +52,11 @@ end
function c98910021.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c98910021.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and c98910021.xyzfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and c98910021.xyzfilter(chkc,e,tp) end
if chk==0 then return Duel.IsExistingTarget(c98910021.xyzfilter,tp,LOCATION_MZONE,0,1,nil,e,tp) if chk==0 then return Duel.IsExistingTarget(c98910021.xyzfilter,tp,LOCATION_MZONE,0,1,nil,e,tp)
and Duel.IsExistingTarget(c98910021.mafilter,tp,0,LOCATION_ONFIELD,1,nil) end and Duel.IsExistingTarget(c98910021.matfilter,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g1=Duel.SelectTarget(tp,c98910021.xyzfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp) local g1=Duel.SelectTarget(tp,c98910021.xyzfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(37564025,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(37564025,0))
local g2=Duel.SelectTarget(tp,c98910021.mafilter,tp,0,LOCATION_MZONE,1,1,nil) local g2=Duel.SelectTarget(tp,c98910021.matfilter,tp,0,LOCATION_MZONE,1,1,nil)
e:SetLabelObject(g2:GetFirst()) e:SetLabelObject(g2:GetFirst())
end end
function c98910021.activate1(e,tp,eg,ep,ev,re,r,rp) function c98910021.activate1(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -28,7 +28,7 @@ function c98940002.cfilter(c) ...@@ -28,7 +28,7 @@ function c98940002.cfilter(c)
end end
function c98940002.spcon1(e,tp,eg,ep,ev,re,r,rp) function c98940002.spcon1(e,tp,eg,ep,ev,re,r,rp)
local ct1=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0) local ct1=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)
local ct2=Duel.GetMatchingGroupCount(c98940002.spfilter,tp,LOCATION_MZONE,0,nil) local ct2=Duel.GetMatchingGroupCount(c98940002.cfilter,tp,LOCATION_MZONE,0,nil)
local chk1=ct1==0 local chk1=ct1==0
local chk2=ct2>0 and ct1-ct2==0 local chk2=ct2>0 and ct1-ct2==0
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
......
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