Commit d0fa0490 authored by mercury233's avatar mercury233

update

parent d73ffc6f
......@@ -29,7 +29,7 @@ function c10002346.val(e,c)
end
function c10002346.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
return Duel.SelectYesNo(tp,aux.Stringid(10002346,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c10002346.repop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
......
......@@ -57,7 +57,7 @@ function c1281505.eqlimit(e,c)
end
function c1281505.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
return Duel.SelectYesNo(tp,aux.Stringid(1281505,1))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c1281505.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE)
......
......@@ -41,7 +41,7 @@ function c12986807.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsReason(REASON_EFFECT)
and Duel.IsExistingMatchingCard(c12986807.repfilter,tp,LOCATION_GRAVE,0,1,nil) end
if Duel.SelectYesNo(tp,aux.Stringid(12986807,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c12986807.repfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST)
......
......@@ -25,7 +25,7 @@ end
function c14289852.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c14289852.dfilter,1,nil,tp)
and Duel.IsExistingMatchingCard(c14289852.repfilter,tp,LOCATION_DECK,0,1,nil) end
return Duel.SelectYesNo(tp,aux.Stringid(14289852,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c14289852.value(e,c)
return c:IsControler(e:GetHandlerPlayer()) and c:IsReason(REASON_BATTLE)
......
......@@ -28,7 +28,7 @@ function c1580833.filter(c,tp)
end
function c1580833.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c1580833.filter,1,e:GetHandler(),tp) and not e:GetHandler():IsStatus(STATUS_DESTROY_CONFIRMED) end
return Duel.SelectYesNo(tp,aux.Stringid(1580833,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c1580833.repval(e,c)
return c1580833.filter(c,e:GetHandlerPlayer())
......
......@@ -61,7 +61,7 @@ function c16259549.recop(e,tp,eg,ep,ev,re,r,rp)
end
function c16259549.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(16259549,2)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
return true
else return false end
......
......@@ -97,7 +97,7 @@ function c17228908.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=eg:FilterCount(c17228908.repfilter,nil,tp)
if chk==0 then return ct>0
and Duel.IsExistingMatchingCard(c17228908.desfilter,tp,LOCATION_HAND+LOCATION_DECK,0,ct,nil,tp) end
if Duel.SelectYesNo(tp,aux.Stringid(17228908,1)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local tg=Duel.SelectMatchingCard(tp,c17228908.desfilter,tp,LOCATION_HAND+LOCATION_DECK,0,ct,ct,nil,tp)
local g=e:GetLabelObject()
......
......@@ -29,7 +29,7 @@ function c176392.rfilter(c)
end
function c176392.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c176392.rfilter,1,e:GetHandler()) end
if Duel.SelectYesNo(tp,aux.Stringid(176392,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE)
return true
else return false end
......
......@@ -50,7 +50,7 @@ function c1855932.repfilter(c,tp)
end
function c1855932.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c1855932.repfilter,1,nil,tp) end
if e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) and Duel.SelectYesNo(tp,aux.Stringid(1855932,1)) then
if e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) and Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
local g=eg:Filter(c1855932.repfilter,nil,tp)
if g:GetCount()==1 then
......
......@@ -17,7 +17,7 @@ function c19505896.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE)
and Duel.IsExistingMatchingCard(c19505896.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(19505896,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c19505896.repfilter,tp,LOCATION_MZONE,0,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -69,7 +69,7 @@ function c19748583.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return bit.band(r,REASON_EFFECT)~=0 and c:GetEquipTarget():IsAttribute(ATTRIBUTE_LIGHT)
and not e:GetHandler():IsStatus(STATUS_DESTROY_CONFIRMED) end
return Duel.SelectYesNo(e:GetOwnerPlayer(),aux.Stringid(19748583,1))
return Duel.SelectEffectYesNo(e:GetOwnerPlayer(),e:GetHandler(),96)
end
function c19748583.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE)
......
......@@ -66,7 +66,7 @@ function c20457551.atkval(e,c)
end
function c20457551.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCurrentPhase()==PHASE_END end
if Duel.SelectYesNo(tp,aux.Stringid(20457551,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
return true
else return false end
......
......@@ -47,7 +47,7 @@ function c20470500.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE)
and Duel.IsExistingMatchingCard(c20470500.repfilter,tp,LOCATION_MZONE,0,1,c,e) end
if Duel.SelectYesNo(tp,aux.Stringid(20470500,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c20470500.repfilter,tp,LOCATION_MZONE,0,1,1,c,e)
e:SetLabelObject(g:GetFirst())
......
......@@ -56,7 +56,7 @@ function c20920083.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c20920083.repfilter,tp,LOCATION_SZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(20920083,0)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c20920083.repfilter,tp,LOCATION_SZONE,0,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -85,7 +85,7 @@ end
function c22842214.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and Duel.IsExistingMatchingCard(c22842214.eqfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil,c) end
if Duel.SelectYesNo(tp,aux.Stringid(22842214,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local tc=Duel.SelectMatchingCard(tp,c22842214.eqfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil,c):GetFirst()
e:SetLabelObject(tc)
......
......@@ -27,7 +27,7 @@ function c23232295.repfilter(c,tp)
end
function c23232295.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c23232295.repfilter,1,nil,tp) end
if e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) and Duel.SelectYesNo(tp,aux.Stringid(23232295,1)) then
if e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) and Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
local g=eg:Filter(c23232295.repfilter,nil,tp)
if g:GetCount()==1 then
......
......@@ -52,7 +52,7 @@ function c23998625.atkop(e,tp,eg,ep,ev,re,r,rp)
end
function c23998625.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(23998625,2)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
return true
else return false end
......
......@@ -50,7 +50,7 @@ function c2403771.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=c:GetEquipGroup()
return not c:IsReason(REASON_REPLACE) and g:IsExists(c2403771.repfilter,1,nil)
end
if Duel.SelectYesNo(tp,aux.Stringid(2403771,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
local g=c:GetEquipGroup()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:FilterSelect(tp,c2403771.repfilter,1,1,nil)
......
......@@ -49,7 +49,7 @@ function c25165047.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE)
and Duel.IsExistingMatchingCard(c25165047.repfilter,tp,LOCATION_GRAVE,0,1,nil) end
if Duel.SelectYesNo(tp,aux.Stringid(25165047,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c25165047.repfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST)
......
......@@ -57,7 +57,7 @@ end
function c25231813.reptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEquipTarget():IsReason(REASON_EFFECT)
and not e:GetHandler():IsStatus(STATUS_DESTROY_CONFIRMED) end
if Duel.SelectYesNo(tp,aux.Stringid(25231813,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
e:GetHandler():SetStatus(STATUS_DESTROY_CONFIRMED,true)
return true
else return false end
......
......@@ -40,7 +40,7 @@ function c2525268.destg(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(count)
return count>0 and Duel.IsCanRemoveCounter(tp,1,0,0x1,count,REASON_COST)
end
return Duel.SelectYesNo(tp,aux.Stringid(2525268,1))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c2525268.value(e,c)
return c:IsFaceup() and c:GetLocation()==LOCATION_MZONE and c:IsRace(RACE_SPELLCASTER)
......
......@@ -50,7 +50,7 @@ function c25341652.repfilter(c,tp)
end
function c25341652.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c25341652.repfilter,1,nil,tp) end
if Duel.SelectYesNo(tp,aux.Stringid(25341652,1)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
local g=eg:Filter(c25341652.repfilter,nil,tp)
Duel.SetTargetCard(g)
return true
......
......@@ -75,7 +75,7 @@ function c25494711.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c25494711.repfilter,tp,LOCATION_ONFIELD,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(25494711,0)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c25494711.repfilter,tp,LOCATION_ONFIELD,0,1,1,c)
Duel.SetTargetCard(g)
......
......@@ -39,7 +39,7 @@ function c25853045.atkval(e,c)
end
function c25853045.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(25853045,1)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
local g=e:GetHandler():GetOverlayGroup()
Duel.SendtoGrave(g,REASON_EFFECT)
return true
......
......@@ -45,7 +45,7 @@ function c27782503.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c27782503.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(27782503,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c27782503.repfilter,tp,LOCATION_MZONE,0,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -49,7 +49,7 @@ function c29981921.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c29981921.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(29981921,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c29981921.repfilter,tp,LOCATION_MZONE,0,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -46,7 +46,7 @@ end
function c30794966.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.CheckReleaseGroup(tp,c30794966.repfilter,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(30794966,0)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectReleaseGroup(tp,c30794966.repfilter,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -28,7 +28,7 @@ function c31766317.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:GetCount()==1 and dc~=e:GetHandler() and dc:IsFaceup() and dc:IsLocation(LOCATION_MZONE)
and dc:IsRace(RACE_FIEND) and dc:IsAttribute(ATTRIBUTE_DARK)
and Duel.IsExistingMatchingCard(c31766317.rfilter,tp,LOCATION_GRAVE,0,1,nil) end
if Duel.SelectYesNo(tp,aux.Stringid(31766317,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c31766317.rfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
......
......@@ -30,7 +30,7 @@ function c31904181.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c31904181.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(31904181,0)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c31904181.repfilter,tp,LOCATION_MZONE,0,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -42,7 +42,7 @@ function c33537328.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsReason(REASON_BATTLE) and c:GetBattlePosition()~=POS_FACEUP_DEFENSE
and Duel.CheckReleaseGroup(tp,Card.IsReleasableByEffect,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(33537328,0)) then
if Duel.SelectEffectYesNo(tp,c,96) then
local g=Duel.SelectReleaseGroup(tp,Card.IsReleasableByEffect,1,1,c)
Duel.Release(g,REASON_EFFECT)
Duel.SetLP(1-tp,Duel.GetLP(1-tp)/2)
......
......@@ -26,7 +26,7 @@ function c34379489.filter(c,tp)
end
function c34379489.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c34379489.filter,1,nil,tp) and not e:GetHandler():IsStatus(STATUS_DESTROY_CONFIRMED) end
return Duel.SelectYesNo(tp,aux.Stringid(34379489,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c34379489.repval(e,c)
return c34379489.filter(c,e:GetHandlerPlayer())
......
......@@ -26,7 +26,7 @@ function c37752990.filter(c,tp)
end
function c37752990.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c37752990.filter,1,e:GetHandler(),tp) and not e:GetHandler():IsStatus(STATUS_DESTROY_CONFIRMED) end
return Duel.SelectYesNo(tp,aux.Stringid(37752990,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c37752990.repval(e,c)
return c37752990.filter(c,e:GetHandlerPlayer())
......
......@@ -52,7 +52,7 @@ function c3825890.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE)
and Duel.IsExistingMatchingCard(c3825890.filter,tp,LOCATION_HAND,0,1,nil) end
if Duel.SelectYesNo(tp,aux.Stringid(3825890,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local g=Duel.SelectMatchingCard(tp,c3825890.filter,tp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REPLACE)
......
......@@ -28,7 +28,7 @@ end
function c38981606.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not eg:IsContains(e:GetHandler())
and eg:IsExists(c38981606.dfilter,1,nil,tp) end
if Duel.SelectYesNo(tp,aux.Stringid(38981606,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
return true
else return false end
end
......
......@@ -118,7 +118,7 @@ function c39373426.repfilter(c,tp)
end
function c39373426.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c39373426.repfilter,1,nil,tp) end
if Duel.SelectYesNo(tp,aux.Stringid(39373426,2)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
local g=eg:Filter(c39373426.repfilter,nil,tp)
if g:GetCount()==1 then
e:SetLabelObject(g:GetFirst())
......
......@@ -56,7 +56,7 @@ end
function c39910367.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsReason(REASON_RULE)
and e:GetHandler():GetCounter(0x1)>0 end
return Duel.SelectYesNo(tp,aux.Stringid(39910367,1))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c39910367.desrepop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(ep,0x1,1,REASON_EFFECT)
......
......@@ -75,7 +75,7 @@ function c39996157.repfilter(c,tp)
end
function c39996157.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c39996157.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(39996157,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c39996157.repval(e,c)
return c39996157.repfilter(c,e:GetHandlerPlayer())
......
......@@ -72,7 +72,7 @@ function c4252828.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ec=e:GetLabelObject():GetLabelObject()
if chk==0 then return ec and ec:IsHasCardTarget(c)
and not ec:IsStatus(STATUS_DESTROY_CONFIRMED) and ec:GetFlagEffect(4252828)~=0 end
return Duel.SelectYesNo(tp,aux.Stringid(4252828,1))
return Duel.SelectEffectYesNo(tp,c,96)
end
function c4252828.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetLabelObject():GetLabelObject(),REASON_EFFECT+REASON_REPLACE)
......
......@@ -57,7 +57,7 @@ function c43175858.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=eg:FilterCount(c43175858.repfilter,nil,tp)
local g=Duel.GetDecktopGroup(tp,ct)
if chk==0 then return g:IsExists(Card.IsAbleToRemove,ct,nil) end
if Duel.SelectYesNo(tp,aux.Stringid(43175858,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.DisableShuffleCheck()
Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT)
return true
......
......@@ -36,7 +36,7 @@ function c43266605.repfilter(c,tp)
end
function c43266605.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() and eg:IsExists(c43266605.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(43266605,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c43266605.repval(e,c)
return c43266605.repfilter(c,e:GetHandlerPlayer())
......
......@@ -76,7 +76,7 @@ function c43577607.repfilter(c,tp)
end
function c43577607.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c43577607.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(43577607,1))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c43577607.repval(e,c)
return c43577607.repfilter(c,e:GetHandlerPlayer())
......
......@@ -41,7 +41,7 @@ end
function c4545854.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsReason(REASON_RULE)
and Duel.CheckRemoveOverlayCard(tp,1,0,1,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(4545854,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.RemoveOverlayCard(tp,1,0,1,1,REASON_EFFECT)
return true
else return false end
......
......@@ -32,7 +32,7 @@ function c45778242.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsLocation(LOCATION_MZONE) and c:IsFaceup()
and Duel.IsExistingMatchingCard(c45778242.repfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(45778242,0)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c45778242.repfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,1,c)
Duel.SetTargetCard(g)
......
......@@ -66,7 +66,7 @@ end
function c47349116.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c47349116.repfilter,1,nil,tp)
and Duel.IsExistingMatchingCard(c47349116.tgfilter,tp,LOCATION_DECK,0,1,nil) end
if Duel.SelectYesNo(tp,aux.Stringid(47349116,1)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=Duel.SelectMatchingCard(tp,c47349116.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoGrave(sg,REASON_EFFECT)
......
......@@ -51,7 +51,7 @@ function c48739166.operation(e,tp,eg,ep,ev,re,r,rp)
end
function c48739166.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(48739166,1)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
return true
else return false end
......
......@@ -64,7 +64,7 @@ function c49678559.operation(e,tp,eg,ep,ev,re,r,rp)
end
function c49678559.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(49678559,1)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
local g=e:GetHandler():GetOverlayGroup()
Duel.SendtoGrave(g,REASON_EFFECT)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -36,7 +36,7 @@ function c50185950.filter(c,tp)
end
function c50185950.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c50185950.filter,1,nil,tp) and e:GetHandler():IsAbleToRemove() end
return Duel.SelectYesNo(tp,aux.Stringid(50185950,1))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c50185950.repval(e,c)
return c50185950.filter(c,e:GetHandlerPlayer())
......
......@@ -27,7 +27,7 @@ function c5067884.repfilter(c,tp)
end
function c5067884.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c5067884.repfilter,1,e:GetHandler(),tp) and not e:GetHandler():IsStatus(STATUS_DESTROY_CONFIRMED) end
return Duel.SelectYesNo(tp,aux.Stringid(5067884,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c5067884.repval(e,c)
return c5067884.repfilter(c,e:GetHandlerPlayer())
......
......@@ -48,7 +48,7 @@ function c51028231.filter(c,tp)
end
function c51028231.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c51028231.filter,1,nil,tp) and not e:GetHandler():IsStatus(STATUS_DESTROY_CONFIRMED) end
return Duel.SelectYesNo(tp,aux.Stringid(51028231,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c51028231.repval(e,c)
return c51028231.filter(c,e:GetHandlerPlayer())
......
......@@ -52,7 +52,7 @@ end
function c52518793.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsReason(REASON_RULE)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,52518793) end
return Duel.SelectYesNo(tp,aux.Stringid(52518793,1))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c52518793.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel.DiscardHand(tp,Card.IsCode,1,1,REASON_EFFECT+REASON_DISCARD,nil,52518793)
......
......@@ -85,7 +85,7 @@ function c52665542.destg(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(count)
return count>0 and Duel.IsCanRemoveCounter(tp,1,0,0x5,count*2,REASON_EFFECT)
end
return Duel.SelectYesNo(tp,aux.Stringid(52665542,1))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c52665542.value(e,c)
return c:IsFaceup() and c:IsLocation(LOCATION_ONFIELD)
......
......@@ -31,7 +31,7 @@ end
function c54320860.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0
and eg:IsExists(c54320860.filter,1,nil,tp) and e:GetHandler():IsAbleToRemove() end
return Duel.SelectYesNo(tp,aux.Stringid(54320860,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c54320860.repval(e,c)
return c54320860.filter(c,e:GetHandlerPlayer())
......
......@@ -65,7 +65,7 @@ end
function c56111151.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsReason(REASON_RULE)
and e:GetHandler():IsCanRemoveCounter(tp,0x37,1,REASON_EFFECT) end
return Duel.SelectYesNo(tp,aux.Stringid(56111151,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c56111151.desrepop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(tp,0x37,1,REASON_EFFECT)
......
......@@ -69,7 +69,7 @@ function c5817857.destg(e,tp,eg,ep,ev,re,r,rp,chk)
return tc:IsFaceup() and tc:IsLocation(LOCATION_MZONE) and tc:IsSetCard(0x1d) and tc:IsReason(REASON_BATTLE+REASON_EFFECT)
and Duel.IsExistingMatchingCard(c5817857.rfilter,tp,LOCATION_GRAVE,0,1,nil)
end
return Duel.SelectYesNo(tp,aux.Stringid(5817857,3))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c5817857.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......
......@@ -33,7 +33,7 @@ end
function c59496924.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c59496924.repfilter,1,nil,tp)
and Duel.IsExistingMatchingCard(c59496924.desfilter,tp,LOCATION_ONFIELD,0,1,nil,tp) end
if Duel.SelectYesNo(tp,aux.Stringid(59496924,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c59496924.desfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp)
e:SetLabelObject(g:GetFirst())
......
......@@ -53,7 +53,7 @@ end
function c59843383.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c59843383.repfilter,1,nil,tp)
and Duel.IsExistingMatchingCard(c59843383.rmfilter,tp,LOCATION_GRAVE,0,1,nil) end
if Duel.SelectYesNo(tp,aux.Stringid(59843383,2)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c59843383.rmfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT+REASON_REPLACE)
......
......@@ -27,7 +27,7 @@ function c60181553.indtg(e,c)
end
function c60181553.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
return Duel.SelectYesNo(tp,aux.Stringid(60181553,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c60181553.repop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
......
......@@ -57,7 +57,7 @@ function c61156777.spop(e,tp,eg,ep,ev,re,r,rp)
end
function c61156777.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x34,1,REASON_EFFECT) end
return Duel.SelectYesNo(tp,aux.Stringid(61156777,2))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c61156777.repop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(tp,0x34,1,REASON_EFFECT)
......
......@@ -51,7 +51,7 @@ function c6178850.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local tg=c:GetEquipTarget()
if chk==0 then return c and not c:IsStatus(STATUS_DESTROY_CONFIRMED)
and tg and tg:IsReason(REASON_BATTLE) end
return Duel.SelectYesNo(tp,aux.Stringid(6178850,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c6178850.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE)
......
......@@ -88,7 +88,7 @@ function c61936647.repfilter(c,e)
end
function c61936647.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDestructable() and eg:IsExists(c61936647.repfilter,1,nil,e) end
return Duel.SelectYesNo(tp,aux.Stringid(61936647,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c61936647.repval(e,c)
return c61936647.repfilter(c,e)
......
......@@ -62,7 +62,7 @@ function c62541668.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsReason(REASON_BATTLE+REASON_EFFECT)
and c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(62541668,3)) then
if Duel.SelectEffectYesNo(tp,c,96) then
c:RemoveOverlayCard(tp,1,1,REASON_EFFECT)
return true
else return false end
......
......@@ -56,7 +56,7 @@ function c63176202.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c63176202.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(63176202,0)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c63176202.repfilter,tp,LOCATION_MZONE,0,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -85,7 +85,7 @@ function c63465535.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ec=e:GetLabelObject():GetLabelObject()
if chk==0 then return c:IsReason(REASON_BATTLE) and ec and ec:IsHasCardTarget(c)
and not ec:IsStatus(STATUS_DESTROY_CONFIRMED) and ec:GetFlagEffect(63465535)~=0 end
return Duel.SelectYesNo(tp,aux.Stringid(63465535,1))
return Duel.SelectEffectYesNo(tp,c,96)
end
function c63465535.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetLabelObject():GetLabelObject(),REASON_EFFECT+REASON_REPLACE)
......
......@@ -95,7 +95,7 @@ function c63881033.repfilter(c,tp)
end
function c63881033.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c63881033.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(63881033,2))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c63881033.repval(e,c)
return c63881033.repfilter(c,e:GetHandlerPlayer())
......
......@@ -62,7 +62,7 @@ function c64398890.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c64398890.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(64398890,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c64398890.repfilter,tp,LOCATION_MZONE,0,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -28,7 +28,7 @@ function c64973287.repfilter(c,tp)
end
function c64973287.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c64973287.repfilter,1,e:GetHandler(),tp) and not e:GetHandler():IsStatus(STATUS_DESTROY_CONFIRMED) end
return Duel.SelectYesNo(tp,aux.Stringid(64973287,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c64973287.repval(e,c)
return c64973287.repfilter(c,e:GetHandlerPlayer())
......
......@@ -37,7 +37,7 @@ function c65025250.filter(c,tp)
end
function c65025250.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c65025250.filter,1,nil,tp) and not e:GetHandler():IsStatus(STATUS_DESTROY_CONFIRMED) end
return Duel.SelectYesNo(tp,aux.Stringid(65025250,1))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c65025250.repval(e,c)
return c65025250.filter(c,e:GetHandlerPlayer())
......
......@@ -113,7 +113,7 @@ end
function c65305468.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsReason(REASON_EFFECT) and c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(65305468,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
c:RemoveOverlayCard(tp,1,1,REASON_EFFECT)
return true
else return false end
......
......@@ -33,7 +33,7 @@ function c66835946.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=eg:GetFirst()
return eg:GetCount()==1 and tc:IsLocation(LOCATION_MZONE) and tc:IsControler(tp) and tc:IsFaceup() and tc:IsRace(RACE_ZOMBIE)
end
return Duel.SelectYesNo(tp,aux.Stringid(66835946,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c66835946.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
......
......@@ -38,7 +38,7 @@ end
c67173574.xyz_number=102
function c67173574.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(67173574,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
e:GetHandler():RemoveOverlayCard(tp,2,2,REASON_EFFECT)
return true
else return false end
......
......@@ -24,7 +24,7 @@ function c67511500.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE)
and Duel.IsExistingMatchingCard(Card.IsRace,tp,LOCATION_HAND,0,1,nil,RACE_DRAGON) end
if Duel.SelectYesNo(tp,aux.Stringid(67511500,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,Card.IsRace,tp,LOCATION_HAND,0,1,1,nil,RACE_DRAGON)
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REPLACE)
......
......@@ -53,7 +53,7 @@ end
function c675319.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c675319.desfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil,tp)
and eg:IsExists(c675319.repfilter,1,nil,tp,e) end
if Duel.SelectYesNo(tp,aux.Stringid(675319,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
local g=eg:Filter(c675319.repfilter,nil,tp,e)
if g:GetCount()==1 then
e:SetLabelObject(g:GetFirst())
......
......@@ -42,7 +42,7 @@ function c6853254.repfilter(c,tp)
end
function c6853254.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c6853254.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(6853254,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c6853254.repval(e,c)
return c6853254.repfilter(c,e:GetHandlerPlayer())
......
......@@ -29,7 +29,7 @@ function c69025477.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c69025477.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(69025477,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c69025477.repfilter,tp,LOCATION_MZONE,0,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -27,7 +27,7 @@ function c70458081.repfilter(c,tp)
end
function c70458081.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c70458081.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(70458081,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c70458081.repval(e,c)
return c70458081.repfilter(c,e:GetHandlerPlayer())
......
......@@ -59,7 +59,7 @@ function c72129804.repfilter(c,tp)
end
function c72129804.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c72129804.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(72129804,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c72129804.repval(e,c)
return c72129804.repfilter(c,e:GetHandlerPlayer())
......
......@@ -36,7 +36,7 @@ function c72497366.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=eg:GetFirst()
if chk==0 then return eg:GetCount()==1 and tc:IsFaceup() and tc:IsLocation(LOCATION_MZONE)
and tc:IsRace(RACE_FIEND) and tc:IsLevelAbove(5) and tc:IsSummonType(SUMMON_TYPE_NORMAL) end
if Duel.SelectYesNo(tp,aux.Stringid(72497366,1)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
return true
else return false end
......
......@@ -40,7 +40,7 @@ function c74580251.repfilter(c,tp)
end
function c74580251.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and aux.exccon(e) and eg:IsExists(c74580251.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(74580251,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c74580251.repval(e,c)
return c74580251.repfilter(c,e:GetHandlerPlayer())
......
......@@ -52,7 +52,7 @@ function c75775867.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup() and c:IsDefensePos()
and Duel.IsExistingMatchingCard(c75775867.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(75775867,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c75775867.repfilter,tp,LOCATION_MZONE,0,1,1,c)
Duel.SetTargetCard(g)
......
......@@ -63,7 +63,7 @@ function c76067258.repfilter(c,tp)
end
function c76067258.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetCardTarget():IsExists(c76067258.repfilter,1,nil,tp) end
if Duel.SelectYesNo(tp,aux.Stringid(76067258,1)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=e:GetHandler():GetCardTarget():FilterSelect(tp,c76067258.repfilter,1,1,nil,tp)
Duel.SendtoGrave(g,REASON_EFFECT)
......
......@@ -78,7 +78,7 @@ function c77610772.repfilter(c,tp,hc)
end
function c77610772.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGrave() and eg:IsExists(c77610772.repfilter,1,nil,tp,e:GetHandler()) end
return Duel.SelectYesNo(tp,aux.Stringid(77610772,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c77610772.repval(e,c)
return c77610772.repfilter(c,e:GetHandlerPlayer(),e:GetHandler())
......
......@@ -23,7 +23,7 @@ function c77631175.initial_effect(c)
end
function c77631175.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReason(REASON_BATTLE) and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(77631175,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
local c=e:GetHandler()
c:RemoveOverlayCard(tp,1,1,REASON_EFFECT)
Duel.RaiseSingleEvent(c,EVENT_CUSTOM+77631175,e,0,0,0,0)
......
......@@ -27,7 +27,7 @@ function c78156759.initial_effect(c)
end
function c78156759.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end
if Duel.SelectYesNo(tp,aux.Stringid(78156759,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
e:GetHandler():RegisterFlagEffect(78156759,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
return true
......
......@@ -34,7 +34,7 @@ function c78437364.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=c:GetLinkedGroup()
return not c:IsReason(REASON_REPLACE) and g:IsExists(c78437364.repfilter,1,nil,tp)
end
if Duel.SelectYesNo(tp,aux.Stringid(78437364,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
local g=c:GetLinkedGroup()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local sg=g:FilterSelect(tp,c78437364.repfilter,1,1,nil,tp)
......
......@@ -78,7 +78,7 @@ function c80143954.repfilter(c,tp)
end
function c80143954.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c80143954.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(80143954,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c80143954.repval(e,c)
return c80143954.repfilter(c,e:GetHandlerPlayer())
......
......@@ -54,7 +54,7 @@ end
function c80476891.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c80476891.desfilter,tp,LOCATION_ONFIELD,0,1,nil,tp)
and eg:IsExists(c80476891.repfilter,1,nil,tp,e) end
if Duel.SelectYesNo(tp,aux.Stringid(80476891,1)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
local g=eg:Filter(c80476891.repfilter,nil,tp,e)
if g:GetCount()==1 then
e:SetLabelObject(g:GetFirst())
......
......@@ -17,7 +17,7 @@ function c80566312.repfilter(c,tp)
end
function c80566312.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c80566312.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(80566312,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c80566312.repval(e,c)
return c80566312.repfilter(c,e:GetHandlerPlayer())
......
......@@ -77,7 +77,7 @@ end
function c83347294.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c83347294.repfilter,1,nil,tp)
and Duel.IsExistingMatchingCard(c83347294.desfilter,tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_PZONE,0,1,nil,tp) end
if Duel.SelectYesNo(tp,aux.Stringid(83347294,1)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c83347294.desfilter,tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_PZONE,0,1,1,nil,tp)
e:SetLabelObject(g:GetFirst())
......
......@@ -23,7 +23,7 @@ function c84341431.initial_effect(c)
end
function c84341431.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT) and Duel.CheckLPCost(tp,500) end
if Duel.SelectYesNo(tp,aux.Stringid(84341431,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.PayLPCost(tp,500)
return true
else return false end
......
......@@ -50,7 +50,7 @@ function c8437145.repfilter(c,tp)
end
function c8437145.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c8437145.repfilter,1,nil,tp) end
if Duel.SelectYesNo(tp,aux.Stringid(8437145,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
local g=eg:Filter(c8437145.repfilter,nil,tp)
if g:GetCount()==1 then
e:SetLabelObject(g:GetFirst())
......
......@@ -16,7 +16,7 @@ end
function c84847656.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not eg:IsContains(e:GetHandler())
and Duel.CheckLPCost(tp,500) and eg:IsExists(c84847656.dfilter,1,nil) end
if Duel.SelectYesNo(tp,aux.Stringid(84847656,0)) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then
Duel.PayLPCost(tp,500)
return true
else return false end
......
......@@ -29,7 +29,7 @@ function c88234365.repfilter(c,tp)
end
function c88234365.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() and eg:IsExists(c88234365.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(88234365,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c88234365.repval(e,c)
return c88234365.repfilter(c,e:GetHandlerPlayer())
......
......@@ -15,7 +15,7 @@ function c89333528.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c89333528.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(89333528,0)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c89333528.repfilter,tp,LOCATION_MZONE,0,1,1,c)
Duel.SetTargetCard(g)
......
......@@ -62,7 +62,7 @@ function c90397998.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c90397998.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(90397998,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c90397998.repfilter,tp,LOCATION_MZONE,0,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -67,8 +67,7 @@ function c95395761.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local tc=c:GetEquipTarget()
if chk==0 then return not c:IsStatus(STATUS_DESTROY_CONFIRMED) end
if Duel.SelectYesNo(tp,aux.Stringid(95395761,1)) then return true
else return false end
return Duel.SelectEffectYesNo(tp,c,96)
end
function c95395761.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE)
......
......@@ -44,7 +44,7 @@ function c95519486.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE) and c:IsOnField() and c:IsFaceup()
and Duel.IsExistingMatchingCard(c95519486.repfilter,tp,LOCATION_MZONE,0,1,c) end
if Duel.SelectYesNo(tp,aux.Stringid(95519486,1)) then
if Duel.SelectEffectYesNo(tp,c,96) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
local g=Duel.SelectMatchingCard(tp,c95519486.repfilter,tp,LOCATION_MZONE,0,1,1,c)
e:SetLabelObject(g:GetFirst())
......
......@@ -92,7 +92,7 @@ function c97617181.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ec=c:GetEquipTarget()
local ph=Duel.GetCurrentPhase()
if chk==0 then return (ph>PHASE_MAIN1 and ph<PHASE_MAIN2) and not c:IsStatus(STATUS_DESTROY_CONFIRMED) end
return Duel.SelectYesNo(tp,aux.Stringid(97617181,1))
return Duel.SelectEffectYesNo(tp,c,96)
end
function c97617181.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE)
......
......@@ -48,7 +48,7 @@ function c97648103.repfilter(c,tp)
end
function c97648103.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c97648103.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(97648103,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c97648103.repval(e,c)
return c97648103.repfilter(c,e:GetHandlerPlayer())
......
......@@ -76,7 +76,7 @@ function c97795930.repfilter(c,tp)
end
function c97795930.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c97795930.repfilter,1,nil,tp) end
return Duel.SelectYesNo(tp,aux.Stringid(97795930,0))
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c97795930.repval(e,c)
return c97795930.repfilter(c,e:GetHandlerPlayer())
......
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