Commit c75936f9 authored by DailyShana's avatar DailyShana

fix Fluorohydride/ygopro#1808

parent 9ef3238a
......@@ -3,23 +3,19 @@ function c17601919.initial_effect(c)
c:EnableCounterPermit(0x2f,LOCATION_SZONE)
--send replace
local e1=Effect.CreateEffect(c)
e1:SetCode(EFFECT_SEND_REPLACE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c17601919.reptg)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_TO_GRAVE_REDIRECT_CB)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCondition(c17601919.repcon)
e1:SetOperation(c17601919.repop)
c:RegisterEffect(e1)
end
function c17601919.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
function c17601919.repcon(e)
local c=e:GetHandler()
if chk==0 then return c:GetDestination()==LOCATION_GRAVE and c:IsReason(REASON_DESTROY) end
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return false end
return Duel.SelectYesNo(tp,aux.Stringid(17601919,0))
return c:IsFaceup() and c:IsLocation(LOCATION_MZONE) and c:IsReason(REASON_DESTROY)
end
function c17601919.repop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local e1=Effect.CreateEffect(c)
e1:SetCode(EFFECT_CHANGE_TYPE)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -2,25 +2,22 @@
function c80549379.initial_effect(c)
--send replace
local e1=Effect.CreateEffect(c)
e1:SetCode(EFFECT_SEND_REPLACE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c80549379.reptg)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_TO_GRAVE_REDIRECT_CB)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCondition(c80549379.repcon)
e1:SetOperation(c80549379.repop)
c:RegisterEffect(e1)
end
function c80549379.filter(c)
return c:IsFaceup() and c:IsSetCard(0x29) and c:IsRace(RACE_WINDBEAST)
end
function c80549379.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
function c80549379.repcon(e)
local c=e:GetHandler()
if chk==0 then return c:IsFaceup() and c:GetDestination()==LOCATION_GRAVE and c:IsReason(REASON_DESTROY) end
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0
or not Duel.IsExistingMatchingCard(c80549379.filter,tp,LOCATION_MZONE,0,1,e:GetHandler()) then return false end
return Duel.SelectEffectYesNo(tp,c)
return c:IsFaceup() and c:IsReason(REASON_DESTROY)
and Duel.IsExistingMatchingCard(c80549379.filter,tp,LOCATION_MZONE,0,1,e:GetHandler())
end
function c80549379.repop(e,tp,eg,ep,ev,re,r,rp,chk)
function c80549379.repop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectMatchingCard(tp,c80549379.filter,tp,LOCATION_MZONE,0,1,1,e:GetHandler())
......
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