Commit 1338b9e3 authored by VanillaSalt's avatar VanillaSalt

fix

parent b9b16259
...@@ -15,37 +15,39 @@ function c11662742.initial_effect(c) ...@@ -15,37 +15,39 @@ function c11662742.initial_effect(c)
--selfdes --selfdes
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_AUXILIARY)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCode(EVENT_DAMAGE) e3:SetCode(EVENT_DAMAGE)
e3:SetOperation(c11662742.dmop); e3:SetOperation(c11662742.dmop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(11662742,0)) e4:SetDescription(aux.Stringid(11662742,0))
e4:SetCategory(CATEGORY_DESTROY)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_BATTLED) e4:SetCode(EVENT_BATTLED)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCondition(c11662742.descon); e4:SetCondition(c11662742.descon)
e4:SetTarget(c11662742.destg); e4:SetTarget(c11662742.destg)
e4:SetOperation(c11662742.desop); e4:SetOperation(c11662742.desop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(11662742,0)) e5:SetDescription(aux.Stringid(11662742,0))
e5:SetCategory(CATEGORY_DESTROY)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e5:SetCode(EVENT_BATTLED) e5:SetCode(EVENT_BATTLED)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetCondition(c11662742.descon2); e5:SetCondition(c11662742.descon2)
e5:SetTarget(c11662742.destg); e5:SetTarget(c11662742.destg)
e5:SetOperation(c11662742.desop); e5:SetOperation(c11662742.desop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
local e6=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(11662742,0)) e6:SetDescription(aux.Stringid(11662742,0))
e6:SetCategory(CATEGORY_DESTROY)
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e6:SetRange(LOCATION_MZONE) e6:SetRange(LOCATION_MZONE)
e6:SetCode(EVENT_DAMAGE) e6:SetCode(EVENT_DAMAGE)
e6:SetCondition(c11662742.descon3); e6:SetCondition(c11662742.descon3)
e6:SetTarget(c11662742.destg); e6:SetTarget(c11662742.destg)
e6:SetOperation(c11662742.desop); e6:SetOperation(c11662742.desop)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c11662742.dtcon(e,c) function c11662742.dtcon(e,c)
......
...@@ -22,12 +22,12 @@ function c2407234.initial_effect(c) ...@@ -22,12 +22,12 @@ function c2407234.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c2407234.xyz_number=69 c2407234.xyz_number=69
function c2407234.filter(c) function c2407234.negfilter(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and not c:IsDisabled() return c:IsFaceup() and c:IsType(TYPE_XYZ) and not c:IsDisabled()
end end
function c2407234.negop(e,tp,eg,ep,ev,re,r,rp) function c2407234.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c2407234.filter,tp,LOCATION_MZONE,LOCATION_MZONE,c) local g=Duel.GetMatchingGroup(c2407234.negfilter,tp,LOCATION_MZONE,LOCATION_MZONE,c)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -43,6 +43,9 @@ function c2407234.negop(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,6 +43,9 @@ function c2407234.negop(e,tp,eg,ep,ev,re,r,rp)
tc=g:GetNext() tc=g:GetNext()
end end
end end
function c2407234.filter(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ)
end
function c2407234.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c2407234.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c2407234.filter(chkc) and chkc~=e:GetHandler() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c2407234.filter(chkc) and chkc~=e:GetHandler() end
if chk==0 then return Duel.IsExistingTarget(c2407234.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingTarget(c2407234.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler()) end
......
...@@ -3,6 +3,7 @@ function c44811425.initial_effect(c) ...@@ -3,6 +3,7 @@ function c44811425.initial_effect(c)
--flip --flip
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_FLIP)
e1:SetOperation(c44811425.flipop) e1:SetOperation(c44811425.flipop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--draw --draw
......
...@@ -37,10 +37,11 @@ function c46232525.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,10 +37,11 @@ function c46232525.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc and not tc:IsImmuneToEffect(e) then if tc and not tc:IsImmuneToEffect(e) then
if tc:IsFacedown() then Duel.ConfirmCards(1-tp,tc) end if tc:IsFacedown() then Duel.ConfirmCards(1-tp,tc) end
local race=tc:GetRace()
Duel.SendtoGrave(tc,REASON_EFFECT) Duel.SendtoGrave(tc,REASON_EFFECT)
if not tc:IsLocation(LOCATION_GRAVE) then return end if not tc:IsLocation(LOCATION_GRAVE) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c46232525.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc:GetRace()) local sg=Duel.SelectMatchingCard(tp,c46232525.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,race)
local sc=sg:GetFirst() local sc=sg:GetFirst()
if sc then if sc then
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -45,7 +45,7 @@ function c57707471.xyzcon(e,c,og) ...@@ -45,7 +45,7 @@ function c57707471.xyzcon(e,c,og)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ct=-ft local ct=-ft
if 2<=ct then return false end if 2<=ct then return false end
if ct<1 and Duel.IsExistingMatchingCard(c57707471.ovfilter,tp,LOCATION_MZONE,0,1,nil,tp,c) then if ct<1 and not og and Duel.IsExistingMatchingCard(c57707471.ovfilter,tp,LOCATION_MZONE,0,1,nil,tp,c) then
return true return true
end end
return Duel.CheckXyzMaterial(c,nil,6,2,2,og) return Duel.CheckXyzMaterial(c,nil,6,2,2,og)
......
...@@ -3,6 +3,7 @@ function c58551308.initial_effect(c) ...@@ -3,6 +3,7 @@ function c58551308.initial_effect(c)
--flip effect --flip effect
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_FLIP)
e1:SetOperation(c58551308.flipop) e1:SetOperation(c58551308.flipop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--special summon --special summon
......
...@@ -3,6 +3,7 @@ function c84932271.initial_effect(c) ...@@ -3,6 +3,7 @@ function c84932271.initial_effect(c)
--flip effect --flip effect
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_FLIP)
e1:SetOperation(c84932271.flipop) e1:SetOperation(c84932271.flipop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--special summon --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