Commit aaf28153 authored by VanillaSalt's avatar VanillaSalt

fix

parent a9a00e9b
...@@ -33,7 +33,7 @@ function c24658418.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,7 @@ function c24658418.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c24658418.operation(e,tp,eg,ep,ev,re,r,rp) function c24658418.operation(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
Duel.SpecialSummon(e:GetHandler(),1,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(e:GetHandler(),1,tp,tp,false,false,POS_FACEUP_DEFENCE)
end end
end end
function c24658418.spcon(e,tp,eg,ep,ev,re,r,rp) function c24658418.spcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -13,7 +13,7 @@ function c33746252.initial_effect(c) ...@@ -13,7 +13,7 @@ function c33746252.initial_effect(c)
e2:SetCode(EFFECT_CANNOT_ACTIVATE) e2:SetCode(EFFECT_CANNOT_ACTIVATE)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,1) e2:SetTargetRange(1,1)
e2:SetTarget(c33746252.aclimit) e2:SetValue(c33746252.aclimit)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c33746252.aclimit(e,re,tp) function c33746252.aclimit(e,re,tp)
......
...@@ -25,7 +25,8 @@ function c46871387.initial_effect(c) ...@@ -25,7 +25,8 @@ function c46871387.initial_effect(c)
end end
c46871387.xyz_number=55 c46871387.xyz_number=55
function c46871387.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c46871387.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,46871387)==0 end if chk==0 then return Duel.GetFlagEffect(tp,46871387)==0 and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
Duel.RegisterFlagEffect(tp,46871387,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,46871387,RESET_PHASE+PHASE_END,0,1)
end end
function c46871387.filter(c) function c46871387.filter(c)
......
...@@ -20,8 +20,7 @@ function c49838105.initial_effect(c) ...@@ -20,8 +20,7 @@ function c49838105.initial_effect(c)
e3:SetDescription(aux.Stringid(49838105,1)) e3:SetDescription(aux.Stringid(49838105,1))
e3:SetCategory(CATEGORY_TOHAND) e3:SetCategory(CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_PHASE+PHASE_DRAW) e3:SetCode(EVENT_PREDRAW)
e3:SetCountLimit(1)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCondition(c49838105.cfcon) e3:SetCondition(c49838105.cfcon)
e3:SetTarget(c49838105.cftg) e3:SetTarget(c49838105.cftg)
......
...@@ -4,9 +4,9 @@ function c73136204.initial_effect(c) ...@@ -4,9 +4,9 @@ function c73136204.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(73136204,0)) e1:SetDescription(aux.Stringid(73136204,0))
e1:SetCategory(CATEGORY_TOGRAVE) e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCountLimit(1)
e1:SetTarget(c73136204.target) e1:SetTarget(c73136204.target)
e1:SetOperation(c73136204.operation) e1:SetOperation(c73136204.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -32,7 +32,7 @@ function c8038143.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,7 +32,7 @@ function c8038143.target(e,tp,eg,ep,ev,re,r,rp,chk)
if tgp~=tp then if tgp~=tp then
local tc=te:GetHandler() local tc=te:GetHandler()
ng:AddCard(tc) ng:AddCard(tc)
if tc:IsOnField() and tc:IsRelateToEffect(te) and tc:IsAbleToDeck() then if tc:IsOnField() and tc:IsRelateToEffect(te) then
dg:AddCard(tc) dg:AddCard(tc)
end end
end end
...@@ -48,7 +48,7 @@ function c8038143.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c8038143.activate(e,tp,eg,ep,ev,re,r,rp)
if tgp~=tp then if tgp~=tp then
Duel.NegateActivation(i) Duel.NegateActivation(i)
local tc=te:GetHandler() local tc=te:GetHandler()
if tc:IsRelateToEffect(e) and tc:IsRelateToEffect(te) and tc:IsAbleToDeck() then if tc:IsRelateToEffect(e) and tc:IsRelateToEffect(te) then
tc:CancelToGrave() tc:CancelToGrave()
dg:AddCard(tc) dg:AddCard(tc)
end end
......
...@@ -46,7 +46,7 @@ end ...@@ -46,7 +46,7 @@ end
function c81994591.indop(e,tp,eg,ep,ev,re,r,rp) function c81994591.indop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_INDESTRUCTABLE) e1:SetCode(EFFECT_DESTROY_SUBSTITUTE)
e1:SetTargetRange(LOCATION_MZONE,0) e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1d)) e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1d))
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
......
...@@ -28,16 +28,17 @@ function c9260791.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,16 +28,17 @@ function c9260791.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c9260791.spfilter(c,e,tp) function c9260791.spfilter(c,e,tp)
return c:IsSetCard(0x107b) and not c:IsCode(9260791) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x107b) and not c:IsCode(9260791) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
end end
function c9260791.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c9260791.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c9260791.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c9260791.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end end
function c9260791.spop(e,tp,eg,ep,ev,re,r,rp) function c9260791.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c9260791.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c9260791.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
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