Commit b9a812c0 authored by Nemo Ma's avatar Nemo Ma

fix

parent da8cd225
......@@ -11,7 +11,6 @@ function c60000101.initial_effect(c)
e1:SetTarget(c60000101.target)
e1:SetOperation(c60000101.activate)
c:RegisterEffect(e1)
end
--Destroy
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY)
......@@ -42,36 +41,6 @@ function c60000101.activate(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
function c60000101.tgfilter(c)
return c:IsSetCard(0x56a9) and c:IsAbleToGrave()
end
function c60000101.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c60000101.tgfilter,tp,LOCATION_DECK,0,nil)
if chk==0 then return g:GetCount()>0 end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,g:GetCount(),tp,LOCATION_DECK)
end
function c60000101.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c60000101.tgfilter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
if Duel.IsExistingMatchingCard(c60000101.thfil,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(60000101,0)) then
sg=Duel.SelectMatchingCard(tp,c60000101.thfil,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil)
Duel.SendtoHand(sg,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetTargetRange(1,0)
e1:SetTarget(c60000101.splimit)
Duel.RegisterEffect(e1,tp)
end
function c60000101.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0x56a9)
end
function c60000101.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
......
......@@ -76,7 +76,7 @@ function c60000105.acop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c60000105.thfil1(c)
return (c:IsSetCard(0xa6a1) or c:IsSetCard(0xa6a2)) and c:IsAbleToHand() and not IsCode(60000105)
return (c:IsSetCard(0xa6a1) or c:IsSetCard(0xa6a2)) and c:IsAbleToHand() and not c:IsCode(60000105)
end
function c60000105.xxtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c60000105.thfil1,tp,LOCATION_GRAVE,0,1,nil) end
......
......@@ -29,8 +29,8 @@ end
function c60000116.lcheck(g)
return g:IsExists(Card.IsLinkSetCard,1,nil,0x56a9)
end
function c60000116,ckfil(c)
return c:IsType(TYPE_MONSTER) and IsSetCard(0x56a9)
function c60000116.ckfil(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x56a9)
end
function c60000116.actg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(c60000116.ckfil,tp,LOCATION_GRAVE,0,1,nil) end
......@@ -71,9 +71,6 @@ function c60000116.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,Duel.GetFieldGroup(tp,LOCATION_DECK,0),Duel.GetFieldGroupCount(tp,LOCATION_DECK,0),tp,LOCATION_DECK)
end
function c60000116(c)
return not c:IsSetCard(0x36a0)
end
function c60000116.rmop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
......
......@@ -20,7 +20,7 @@ function c60000117.initial_effect(c)
c:RegisterEffect(e2)
end
function c60000117.filter(c)
return c:IsSetCard(0x56a9) and c:IsAbleToHand()
return c:IsSetCard(0x56a9) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c60000117.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c60000117.filter,tp,LOCATION_DECK,0,1,nil) end
......@@ -41,12 +41,12 @@ function c60000117.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if not Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x56a9) then return true end
end
--「 No Game No Life」 怪 兽
function c60000117.filter(c)
function c60000117.filter1(c)
return c:IsFaceup() and c:IsSetCard(0x36a0)
end
-- 场 上 有 所 述 怪 兽
function c60000117.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c60000117.filter,tp,LOCATION_MZONE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c60000117.filter1,tp,LOCATION_MZONE,0,1,nil) end
end
-- 可 以 被 效 果 影 响 的「 No Game No Life」 怪 兽
function c60000117.filter2(c,e)
......
......@@ -31,7 +31,7 @@ function c9330016.initial_effect(c)
local e3=e2:Clone()
e3:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e3)
--
--cannot activate
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......@@ -46,7 +46,7 @@ function c9330016.initial_effect(c)
e5:SetCode(EFFECT_CANNOT_REMOVE)
e5:SetRange(LOCATION_ONFIELD)
e5:SetTargetRange(LOCATION_GRAVE,LOCATION_GRAVE)
e5:SetValue(c9330016.aclimit2)
e5:SetTarget(c9330016.aclimit2)
c:RegisterEffect(e5)
--set/to hand
local e6=Effect.CreateEffect(c)
......
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