Commit 3a61046b authored by Clara Grace Paulsen's avatar Clara Grace Paulsen Committed by GitHub

fix cards (#2094)

`Nazuki the Vaylantz Ninja`
`TGX3-DX2`
`Dyna Mondo`
parent e5c5653a
...@@ -11,7 +11,7 @@ function c3868277.initial_effect(c) ...@@ -11,7 +11,7 @@ function c3868277.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c3868277.filter(c) function c3868277.filter(c)
return c:IsSetCard(0x27) and c:IsAbleToDeck() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x27) and c:IsAbleToDeck()
end end
function c3868277.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c3868277.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c3868277.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c3868277.filter(chkc) end
......
...@@ -72,11 +72,12 @@ function c41525660.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,11 +72,12 @@ function c41525660.seqop(e,tp,eg,ep,ev,re,r,rp)
local seq=tc:GetSequence() local seq=tc:GetSequence()
if seq>4 then return end if seq>4 then return end
local flag=0 local flag=0
if seq>0 and Duel.CheckLocation(tp,LOCATION_MZONE,seq-1) then flag=flag|(1<<(seq-1)) end local p=tc:GetControler()
if seq<4 and Duel.CheckLocation(tp,LOCATION_MZONE,seq+1) then flag=flag|(1<<(seq+1)) end if seq>0 and Duel.CheckLocation(p,LOCATION_MZONE,seq-1) then flag=flag|(1<<(seq-1)) end
if seq<4 and Duel.CheckLocation(p,LOCATION_MZONE,seq+1) then flag=flag|(1<<(seq+1)) end
if flag==0 then return end if flag==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
local s=Duel.SelectField(tp,1,LOCATION_MZONE,0,~flag) local s=Duel.SelectField(tp,1,LOCATION_MZONE,LOCATION_MZONE,~flag)
local nseq=math.log(s,2) local nseq=math.log(s,2)
Duel.MoveSequence(tc,nseq) Duel.MoveSequence(tc,nseq)
end end
......
...@@ -16,7 +16,7 @@ function c73898890.initial_effect(c) ...@@ -16,7 +16,7 @@ function c73898890.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon --spsummon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(897409,1)) e2:SetDescription(aux.Stringid(73898890,1))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
......
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