Commit 5cb718dd authored by DailyShana's avatar DailyShana

fix

parent a54cee1c
......@@ -20,6 +20,7 @@ function c28369508.initial_effect(c)
--change pos
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(28369508,0))
e3:SetCategory(CATEGORY_POSITION)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_GRAVE)
......@@ -35,7 +36,7 @@ function c28369508.cfilter(c)
end
function c28369508.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c28369508.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c28369508.cfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
......
......@@ -28,7 +28,8 @@ function c66698383.initial_effect(c)
c:RegisterEffect(e2)
end
function c66698383.cfilter(c,tp)
return c:IsType(TYPE_TUNER) and c:IsAbleToRemoveAsCost()
return (c:IsLocation(LOCATION_HAND+LOCATION_GRAVE) or c:IsFaceup())
and c:IsType(TYPE_TUNER) and c:IsAbleToRemoveAsCost()
and Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end
function c66698383.descost(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -46,7 +47,7 @@ function c66698383.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c66698383.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
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