Commit 8fee3bc8 authored by VanillaSalt's avatar VanillaSalt

fix

parent b39228cc
...@@ -35,7 +35,6 @@ function c24096228.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -35,7 +35,6 @@ function c24096228.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
e:SetProperty(EFFECT_FLAG_CARD_TARGET) e:SetProperty(EFFECT_FLAG_CARD_TARGET)
e:SetCategory(0) e:SetCategory(0)
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
if Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then if Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
Duel.SelectTarget(tp,c24096228.filter1,tp,0,LOCATION_GRAVE,1,1,nil) Duel.SelectTarget(tp,c24096228.filter1,tp,0,LOCATION_GRAVE,1,1,nil)
...@@ -54,7 +53,7 @@ function c24096228.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +53,7 @@ function c24096228.operation(e,tp,eg,ep,ev,re,r,rp)
e:SetCategory(te:GetCategory()) e:SetCategory(te:GetCategory())
e:SetProperty(te:GetProperty()) e:SetProperty(te:GetProperty())
Duel.ClearTargetCard() Duel.ClearTargetCard()
if bit.band(tpe,TYPE_EQUIP+TYPE_CONTINUOUS)~=0 then if bit.band(tpe,TYPE_EQUIP+TYPE_CONTINUOUS)~=0 or tc:IsHasEffect(EFFECT_REMAIN_FIELD) then
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
tc:CreateEffectRelation(te) tc:CreateEffectRelation(te)
......
...@@ -18,8 +18,6 @@ function c58775978.initial_effect(c) ...@@ -18,8 +18,6 @@ function c58775978.initial_effect(c)
--remain field --remain field
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_SZONE)
e3:SetCode(EFFECT_REMAIN_FIELD) e3:SetCode(EFFECT_REMAIN_FIELD)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
......
...@@ -10,6 +10,7 @@ function c65824822.initial_effect(c) ...@@ -10,6 +10,7 @@ function c65824822.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c65824822.repop(e,tp,eg,ep,ev,re,r,rp) function c65824822.repop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():CancelToGrave(false)
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND) local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
if g:GetCount()>0 then if g:GetCount()>0 then
local sg=g:RandomSelect(1-tp,1,nil) local sg=g:RandomSelect(1-tp,1,nil)
......
...@@ -18,8 +18,6 @@ function c72302403.initial_effect(c) ...@@ -18,8 +18,6 @@ function c72302403.initial_effect(c)
--remain field --remain field
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_SZONE)
e3:SetCode(EFFECT_REMAIN_FIELD) e3:SetCode(EFFECT_REMAIN_FIELD)
c:RegisterEffect(e3) c:RegisterEffect(e3)
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