Commit 3fea3f44 authored by Nemo Ma's avatar Nemo Ma

Maint

parent fee0f01f
......@@ -1944,6 +1944,34 @@
30015045 0
30015080 0
30015100 0
#「枢机神」系列 - MerlinTC
60010079 0
60010080 0
60010081 0
60010082 0
60010083 0
60010084 0
60010085 0
60010086 0
60010087 0
60010088 0
60010089 0
60010090 0
60010091 0
60010092 0
60010093 0
60010094 0
#「缘」系列 - 煌武院悠阳
130006040 0
130006041 0
130006042 0
130006043 0
130006044 0
130006045 0
130006046 0
130006047 0
130006140 0
130006141 0
#「深土」系列 - 沃亚森斯奥克斯 & 魔方
9310011 0
30013000 0
......@@ -2259,6 +2287,16 @@
60362066 0
74920585 0
77103950 1
#241103
98920167 0
98920504 0
40008627 0
11513082 0
49811344 0
22348050 0
11533705 0
11561044 0
12847403 1
#241020
21401126 0
22348311 0
......@@ -2388,7 +2426,7 @@
11555601 0
31400080 0
75000724 0
65131116 1
65131116 2
53796145 2
#230827
10113033 0
......@@ -2498,7 +2536,7 @@
#230618
53796103 0
#230611
30005508 0
30005508 1
11451703 1
#230528
1003003 0
......@@ -2522,7 +2560,6 @@
25800364 1
25800401 1
25800405 1
29098630 1
82209007 1
91060003 2
98920091 1
......@@ -6277,6 +6314,7 @@
92107604 2 --Runick Fountain
!THE WILD LIST
20000 0
11450001 0
53796199 0
......
No preview for this file type
......@@ -39,7 +39,7 @@ end
function c12877030.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,c12877030.rlfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,e:GetHandler(),tp)
if Duel.Release(g,REASON_EFFECT)==0 then return end
if Duel.SendtoGrave(g,REASON_EFFECT+REASON_RELEASE)==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tc=Duel.SelectMatchingCard(tp,c12877030.thfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
if tc then
......
--植物娘·向日葵
function c65830000.initial_effect(c)
aux.AddLinkProcedure(c,c65830000.mat,1,1)
c:EnableReviveLimit()
--连接召唤效果
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,65830000)
e1:SetCondition(c65830000.scon)
e1:SetTarget(c65830000.target1)
e1:SetOperation(c65830000.activate1)
c:RegisterEffect(e1)
--加通召
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c65830000.scon)
e2:SetOperation(c65830000.sumop)
c:RegisterEffect(e2)
end
function c65830000.mat(c)
return c:IsLinkSetCard(0xa33) and c:IsType(TYPE_MONSTER) and not c:IsLinkType(TYPE_LINK)
end
function c65830000.scon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function c65830000.filter(c)
return c:IsSetCard(0xa33) and c:IsAbleToHand()
end
function c65830000.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65830000.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c65830000.activate1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c65830000.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c65830000.sumop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,65830000)~=0 then return end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(65830000,0))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xa33))
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,65830000,RESET_PHASE+PHASE_END,0,1)
end
\ No newline at end of file
--植物娘·睡莲
function c65830005.initial_effect(c)
--墓地跳
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(65830005,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_GRAVE)
e1:SetCountLimit(1,65830005)
e1:SetLabelObject(e0)
e1:SetCondition(c65830005.spcon)
e1:SetTarget(c65830005.sptg)
e1:SetOperation(c65830005.spop)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e2)
--特招
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_EQUIP)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,65830006)
e3:SetTarget(c65830005.target)
e3:SetOperation(c65830005.operation)
c:RegisterEffect(e3)
end
function c65830005.cfilter(c,tp,se)
return c:IsFaceup() and c:IsSummonPlayer(tp) and c:IsSetCard(0xa33)
end
function c65830005.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c65830005.cfilter,1,nil,tp)
end
function c65830005.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c65830005.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
function c65830005.filter(c,e,tp)
return c:IsSetCard(0xa33) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c65830005.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(c65830005.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end
function c65830005.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g = Duel.SelectMatchingCard(tp,c65830005.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) and c:IsRelateToEffect(e) then
local tc=g:GetFirst()
Duel.BreakEffect()
Duel.Equip(tp,c,tc)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetLabelObject(tc)
e1:SetValue(c65830005.eqlimit)
c:RegisterEffect(e1)
end
end
function c65830005.eqlimit(e,c)
return c==e:GetLabelObject()
end
--植物娘·香蒲
function c65830010.initial_effect(c)
c:SetSPSummonOnce(65830010)
--特招手续
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,c65830010.ffilter,1,false)
aux.AddContactFusionProcedure(c,Card.IsAbleToGraveAsCost,LOCATION_ONFIELD,0,Duel.SendtoGrave,REASON_COST)
--不能融合
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1)
--炸场上
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(65830010,0))
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,65830010)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetTarget(c65830010.destg)
e2:SetOperation(c65830010.desop)
c:RegisterEffect(e2)
--炸连锁
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(65830010,1))
e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_CHAINING)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,65830010)
e3:SetCondition(c65830010.condition)
e3:SetTarget(c65830010.target)
e3:SetOperation(c65830010.operation)
c:RegisterEffect(e3)
end
function c65830010.ffilter(c,fc,sub,mg,sg)
return c:IsCode(65830005)
end
function c65830010.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end
if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c65830010.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end
end
function c65830010.condition(e,tp,eg,ep,ev,re,r,rp)
local tc=re:GetHandler()
return tc:IsControler(1-tp) and tc:IsRelateToEffect(re)
end
function c65830010.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return re:GetHandler():IsDestructable() end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end
function c65830010.operation(e,tp,eg,ep,ev,re,r,rp)
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
end
end
--植物娘·玉米投手
function c65830015.initial_effect(c)
--特招
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,65830015+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c65830015.spcon)
c:RegisterEffect(e1)
--无效
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DISABLE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING)
e2:SetCountLimit(1,65830016)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c65830015.discon)
e2:SetCost(c65830015.discost)
e2:SetTarget(c65830015.distg)
e2:SetOperation(c65830015.disop)
c:RegisterEffect(e2)
end
function c65830015.filter(c)
return c:IsSetCard(0xa33) and c:IsFaceup()
end
function c65830015.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c65830015.filter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end
function c65830015.discon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainDisablable(ev)
end
function c65830015.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST)
end
function c65830015.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
end
function c65830015.disop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
Duel.NegateEffect(ev)
end
--植物娘·火爆辣椒
function c65830020.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c65830020.setcon)
e1:SetTarget(c65830020.target)
e1:SetOperation(c65830020.activate)
c:RegisterEffect(e1)
end
function c65830020.filter(c,e,tp)
return c:IsSetCard(0xa33) and c:IsFaceup()
end
function c65830020.setcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c65830020.filter,tp,LOCATION_MZONE,0,1,nil)
end
function c65830020.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc~=e:GetHandler() end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c65830020.filter1(c,e,tp)
return c:IsControler(1-tp)
end
function c65830020.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
local g=tc:GetColumnGroup():Filter(Card.IsControler,nil,1-tp)
if tc:IsRelateToEffect(e) then
if tc:IsControler(1-tp) then
Duel.Destroy(tc,REASON_EFFECT)
end
if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT)
end
end
end
\ No newline at end of file
--植物娘·双发射手
function c65830025.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,65830025)
e1:SetTarget(c65830025.target)
e1:SetOperation(c65830025.activate)
c:RegisterEffect(e1)
--extra attack
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_EXTRA_ATTACK)
e4:SetValue(1)
c:RegisterEffect(e4)
end
function c65830025.filter(c,e,tp)
return c:IsSetCard(0xa33) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_HAND+LOCATION_GRAVE)
end
function c65830025.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c65830025.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end
function c65830025.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c65830025.filter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
--植物娘·胆小菇
function c65830030.initial_effect(c)
--自己特招
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,65830030+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c65830030.spcon)
c:RegisterEffect(e1)
--手卡特招
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,65830031)
e3:SetCost(c65830030.cost3)
e3:SetTarget(c65830030.target3)
e3:SetOperation(c65830030.activate3)
c:RegisterEffect(e3)
end
function c65830030.filter(c)
return c:IsSetCard(0xa33) and c:IsFaceup()
end
function c65830030.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and (Duel.IsExistingMatchingCard(c65830030.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) or Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0)
end
function c65830030.cost3(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHandAsCost()
end
Duel.SendtoHand(e:GetHandler(),tp,REASON_COST)
end
function c65830030.spfilter(c,e,tp)
return c:IsSetCard(0xa33) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c65830030.target3(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c65830030.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end
function c65830030.activate3(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c65830030.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
--植物娘·大嘴花
function c65830035.initial_effect(c)
--装备
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,65830035)
e1:SetTarget(c65830035.Target1)
e1:SetOperation(c65830035.activate1)
c:RegisterEffect(e1)
end
function c65830035.nbfilter(c)
return c:IsAbleToRemove(tp,POS_FACEDOWN,REASON_EFFECT) and c:IsType(TYPE_MONSTER)
end
function c65830035.Target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsOnField() and c65830035.nbfilter(chkc) and c~=chkc end
if chk==0 then return Duel.IsExistingTarget(c65830035.nbfilter,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c65830035.nbfilter,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,1,c)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end
function c65830035.activate1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and c:IsType(TYPE_MONSTER) then
Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)
end
end
\ No newline at end of file
--植物娘·大蒜
function c65830040.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(65830040,0))
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLE_START)
e1:SetTarget(c65830040.destg)
e1:SetOperation(c65830040.desop)
c:RegisterEffect(e1)
--atk limit
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
e2:SetValue(c65830040.atlimit)
c:RegisterEffect(e2)
end
function c65830040.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local tc=Duel.GetAttacker()
if tc==c then tc=Duel.GetAttackTarget() end
if chk==0 then return tc end
Duel.SetOperationInfo(0,CATEGORY_TODECK,tc,1,0,0)
end
function c65830040.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetAttacker()
if tc==c then tc=Duel.GetAttackTarget() end
if tc:IsRelateToBattle() then Duel.SendtoDeck(tc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) end
end
function c65830040.atlimit(e,c)
return c~=e:GetHandler()
end
\ No newline at end of file
--植物娘·咖啡豆
function c65830050.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DECKDES+CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,65830050)
e2:SetCost(c65830050.cost2)
e2:SetTarget(c65830050.target2)
e2:SetOperation(c65830050.activate2)
c:RegisterEffect(e2)
end
function c65830050.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end
function c65830050.spfilter(c,e,tp)
return c:IsSetCard(0xa33) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c65830050.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c65830050.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
end
function c65830050.activate2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c65830050.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
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