Commit eff9a5d2 authored by tsubaki's avatar tsubaki

2.0.0a

parent fb5f375b
Pipeline #39377 passed with stage
in 7 seconds
No preview for this file type
No preview for this file type
#[2.0.0 HCG][2015.10][2015.4.1][2015.4.1 TCG][2015.1.1][2015.1.1 TCG][2014.10.1][2014.10.1 TCG][2014.7.1][2014.7.14 TCG][2014世界赛][2014.4.1][2014.4.1 TCG][2014.2.1][2014.1.1 TCG][2013.9.1][2013.10.11 TCG][2013.9.1 TCG][2013.3.1][2012.9.1][2012.3.1][2011.9.1][2011.3.1][2010.9.1][2010.3.1][2009.9.1][2009.3.1][2008.9.1][2008.3.1][2007.9.1][2007.3.1][2006.9.1][2006.3.1][2005.9.1][2005.3.1][2004.9.1][2004.3.1][2003.10.15][2003.7.1][2003.4.10][2003.1.1][2002.10.1][2002.1.1][2000.12.1][2000.4.1][1999.8.26]
#[2.0.0a HCG][2015.10][2015.4.1][2015.4.1 TCG][2015.1.1][2015.1.1 TCG][2014.10.1][2014.10.1 TCG][2014.7.1][2014.7.14 TCG][2014世界赛][2014.4.1][2014.4.1 TCG][2014.2.1][2014.1.1 TCG][2013.9.1][2013.10.11 TCG][2013.9.1 TCG][2013.3.1][2012.9.1][2012.3.1][2011.9.1][2011.3.1][2010.9.1][2010.3.1][2009.9.1][2009.3.1][2008.9.1][2008.3.1][2007.9.1][2007.3.1][2006.9.1][2006.3.1][2005.9.1][2005.3.1][2004.9.1][2004.3.1][2003.10.15][2003.7.1][2003.4.10][2003.1.1][2002.10.1][2002.1.1][2000.12.1][2000.4.1][1999.8.26]
!2.0.0 HCG
!2.0.0a HCG
#limit
23252 0 --暴力取材
14028 2 --BAD APPLE!!
......@@ -65,6 +65,7 @@
74562040 1 --天人合一!
74560009 0 --银雨·露芙缇
74561013 1 --论外化
74562032 0 --鬼牌
--L
--金卡
86379706 0 --精神✿操作
......@@ -105,5 +106,4 @@
13959982 0 --2Pick技能-同调强化
13959983 0 --2Pick技能-超量强化
13959998 0 --2Pick
13949999 0 --展示用卡
2003200 0 --AIUUZ
\ No newline at end of file
13949999 0 --展示用卡
\ No newline at end of file
......@@ -66,7 +66,7 @@ function c86379088.initial_effect(c)
end
--
function c86379088.spfilter(c)
return c:GetLevel()<=0
return c:GetLevel()<=0
end
-- xyz2
function c86379088.xyzfilter(c,tp,xyzc,lv)
......@@ -153,10 +153,41 @@ end
function c86379088.dfilter(c)
return c:IsSetCard(0x606) and c:IsAbleToDeck() and not c:IsType(TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK+TYPE_FUSION)
end
function c86379088.dfilter2(c,tp)
return c:IsSetCard(0x606) and c:IsType(TYPE_XYZ) and c:IsFaceup() and c:CheckRemoveOverlayCard(tp,1,REASON_COST)
end
function c86379088.dcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,1,1,REASON_COST) end
if chk==0 then
local g=Duel.GetMatchingGroup(c86379088.dfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if g:GetCount()<=0 then return false end
local dg=Group.CreateGroup()
local tc=g:GetFirst()
while tc do
local og=tc:GetOverlayGroup()
dg:Merge(og)
tc=g:GetNext()
end
return dg:GetCount()>0
end
local gt=Duel.GetMatchingGroupCount(c86379088.dfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil)
local ct=Duel.RemoveOverlayCard(tp,1,1,1,gt,REASON_COST)
local g=Duel.GetMatchingGroup(c86379088.dfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local dg=Group.CreateGroup()
local tc=g:GetFirst()
while tc do
local og=tc:GetOverlayGroup()
dg:Merge(og)
tc=g:GetNext()
end
local dt=dg:GetCount()
if gt<dt then
dt=gt
end
if dt>3 then
dt=3
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVEXYZ)
local cg=dg:Select(tp,1,dt,nil)
local ct=Duel.SendtoGrave(cg,REASON_COST)
e:SetLabel(ct)
end
function c86379088.dtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -40,17 +40,19 @@ end
--
function c86379092.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local h2=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
return h2>0 and Duel.IsPlayerCanDraw(1-tp,h2)
local h2=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_HAND,nil)
return h2:GetCount()>0
end
local h2=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,h2)
local h2=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_HAND,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,0,1-tp,h2)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,h2)
end
function c86379092.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local h2=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD)
Duel.Draw(1-tp,h2,REASON_EFFECT)
local h2=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_HAND,nil)
if h2:GetCount()>0 then
Duel.DisableShuffleCheck()
local dt=Duel.SendtoDeck(h2,1-tp,1,REASON_EFFECT)
Duel.Draw(1-tp,dt,REASON_EFFECT)
end
end
......@@ -76,6 +76,15 @@ function c86379582.op(e,tp,eg,ep,ev,re,r,rp)
e6:SetValue(8)
tc:RegisterEffect(e6,true)
Duel.SpecialSummonComplete()
tc:ReplaceEffect(7770025,RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET)
--leave
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e7:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SET_AVAILABLE)
e7:SetCode(EVENT_LEAVE_FIELD_P)
e7:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET)
e7:SetOperation(c86379582.leaveop)
tc:RegisterEffect(e7)
if Duel.GetTurnPlayer()~=tp and tc:IsSetCard(0x150) then
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
......@@ -113,3 +122,8 @@ function c86379582.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(c,c:GetOwner(),REASON_EFFECT)
end
end
function c86379582.leaveop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=c:GetOriginalCode()
c:ReplaceEffect(ct,0)
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