Commit c2435343 authored by VanillaSalt's avatar VanillaSalt

fix

parent 32ad8a72
--Confronting the "C" --対峙するG
function c15721123.initial_effect(c) function c15721123.initial_effect(c)
--special summon --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -44,7 +44,7 @@ end ...@@ -44,7 +44,7 @@ end
function c32559361.operation(e,tp,eg,ep,ev,re,r,rp) function c32559361.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=c:GetBattleTarget() local tc=c:GetBattleTarget()
if c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then if c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToBattle() and not tc:IsImmuneToEffect(e) then
local og=tc:GetOverlayGroup() local og=tc:GetOverlayGroup()
if og:GetCount()>0 then if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE) Duel.SendtoGrave(og,REASON_RULE)
......
...@@ -19,13 +19,16 @@ function c34620088.initial_effect(c) ...@@ -19,13 +19,16 @@ function c34620088.initial_effect(c)
e2:SetTarget(c34620088.sptg) e2:SetTarget(c34620088.sptg)
e2:SetOperation(c34620088.spop) e2:SetOperation(c34620088.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--redirect if not c34620088.global_check then
local e3=Effect.CreateEffect(c) c34620088.global_check=true
e3:SetType(EFFECT_TYPE_SINGLE) local ge1=Effect.GlobalEffect()
e3:SetCode(EFFECT_TO_GRAVE_REDIRECT) ge1:SetType(EFFECT_TYPE_FIELD)
e3:SetCondition(c34620088.rmcon) ge1:SetCode(EFFECT_TO_GRAVE_REDIRECT)
e3:SetValue(LOCATION_REMOVED) ge1:SetTargetRange(LOCATION_OVERLAY,LOCATION_OVERLAY)
c:RegisterEffect(e3) ge1:SetTarget(aux.TargetBoolFunction(Card.IsCode,34620088))
ge1:SetValue(LOCATION_REMOVED)
Duel.RegisterEffect(ge1,0)
end
end end
function c34620088.spcon(e,tp,eg,ep,ev,re,r,rp) function c34620088.spcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and eg:GetFirst():IsControler(1-tp) and Duel.GetAttackTarget()==nil return ep==tp and eg:GetFirst():IsControler(1-tp) and Duel.GetAttackTarget()==nil
...@@ -46,6 +49,3 @@ function c34620088.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,6 +49,3 @@ function c34620088.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(tp,1000,REASON_EFFECT) Duel.Damage(tp,1000,REASON_EFFECT)
end end
end end
function c34620088.rmcon(e)
return e:GetHandler():IsLocation(LOCATION_OVERLAY)
end
...@@ -4,4 +4,8 @@ function c4081094.initial_effect(c) ...@@ -4,4 +4,8 @@ function c4081094.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SSET) e1:SetCode(EFFECT_CANNOT_SSET)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e2)
end end
...@@ -35,9 +35,8 @@ function c60992105.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,9 +35,8 @@ function c60992105.operation(e,tp,eg,ep,ev,re,r,rp)
for i=1,ct do t[i]=i end for i=1,ct do t[i]=i end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(60992105,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(60992105,1))
local ac=Duel.AnnounceNumber(tp,table.unpack(t)) local ac=Duel.AnnounceNumber(tp,table.unpack(t))
local g=Duel.GetDecktopGroup(tp,ac) Duel.DiscardDeck(tp,ac,REASON_EFFECT)
Duel.DisableShuffleCheck() local g=Duel.GetOperatedGroup()
Duel.SendtoGrave(g,REASON_EFFECT)
if g:IsExists(c60992105.filter,1,nil) and c:IsFaceup() and c:IsRelateToEffect(e) then if g:IsExists(c60992105.filter,1,nil) and c:IsFaceup() and c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -8,7 +8,7 @@ function c69170557.initial_effect(c) ...@@ -8,7 +8,7 @@ function c69170557.initial_effect(c)
e1:SetDescription(aux.Stringid(69170557,0)) e1:SetDescription(aux.Stringid(69170557,0))
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DRAW) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetTarget(c69170557.destg) e1:SetTarget(c69170557.destg)
e1:SetOperation(c69170557.desop) e1:SetOperation(c69170557.desop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -4,4 +4,8 @@ function c78697395.initial_effect(c) ...@@ -4,4 +4,8 @@ function c78697395.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SSET) e1:SetCode(EFFECT_CANNOT_SSET)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e2)
end end
...@@ -26,11 +26,11 @@ end ...@@ -26,11 +26,11 @@ end
function c94220427.filter1(c,e,tp) function c94220427.filter1(c,e,tp)
local rk=c:GetRank() local rk=c:GetRank()
return rk>4 and c:IsFaceup() return rk>4 and c:IsFaceup()
and Duel.IsExistingMatchingCard(c94220427.filter2,tp,LOCATION_EXTRA,0,1,nil,rk+1,c:GetRace(),c:GetCode(),e,tp) and Duel.IsExistingMatchingCard(c94220427.filter2,tp,LOCATION_EXTRA,0,1,nil,rk+1,c:GetCode(),e,tp)
end end
function c94220427.filter2(c,rk,rc,code,e,tp) function c94220427.filter2(c,rk,code,e,tp)
if c:IsCode(6165656) and code~=48995978 then return false end if c:IsCode(6165656) and code~=48995978 then return false end
return c:GetRank()==rk and c:IsRace(rc) and (c:IsSetCard(0x1048) or c:IsSetCard(0x1073)) return c:GetRank()==rk and (c:IsSetCard(0x1048) or c:IsSetCard(0x1073))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false)
end end
function c94220427.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c94220427.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...@@ -46,7 +46,7 @@ function c94220427.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c94220427.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFacedown() or not tc:IsRelateToEffect(e) or tc:IsControler(1-tp) or tc:IsImmuneToEffect(e) then return end if tc:IsFacedown() or not tc:IsRelateToEffect(e) or tc:IsControler(1-tp) or tc:IsImmuneToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c94220427.filter2,tp,LOCATION_EXTRA,0,1,1,nil,tc:GetRank()+1,tc:GetRace(),tc:GetCode(),e,tp) local g=Duel.SelectMatchingCard(tp,c94220427.filter2,tp,LOCATION_EXTRA,0,1,1,nil,tc:GetRank()+1,tc:GetCode(),e,tp)
local sc=g:GetFirst() local sc=g:GetFirst()
if sc then if sc then
local mg=tc:GetOverlayGroup() local mg=tc:GetOverlayGroup()
......
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