Commit 3135b12a authored by TanakaKotoha's avatar TanakaKotoha

mopemope

parent b9272064
Pipeline #806 passed with stages
in 44 minutes and 1 second
......@@ -4,7 +4,7 @@ cm.name="灵感来袭!"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,113216+EFFECT_COUNT_CODE_OATH)
......@@ -23,8 +23,9 @@ function cm.filter2(c)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,nil,e,tp) and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
......
......@@ -35,6 +35,7 @@ function cm.initial_effect(c)
e5:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e5:SetType(EFFECT_TYPE_IGNITION)
e5:SetRange(LOCATION_SZONE)
e5:SetCountLimit(1,m)
e5:SetTarget(cm.srtg)
e5:SetOperation(cm.srop)
c:RegisterEffect(e5)
......
......@@ -59,7 +59,7 @@ function cm.spcon(e,c)
local tp=c:GetControler()
local b1=Duel.IsPlayerCanSpecialSummonMonster(tp,17055010,0,0x21,4000,4000,10,RACE_DRAGON,ATTRIBUTE_LIGHT)
local b2=Duel.IsPlayerCanSpecialSummonMonster(tp,17055020,0,0x21,4000,4000,10,RACE_DRAGON,ATTRIBUTE_DARK)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (b1 or b2) and Duel.GetFlagEffect(tp,17055000)>=0
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (b1 or b2) and Duel.GetFlagEffect(tp,17055000)>=10
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local b1=Duel.IsPlayerCanSpecialSummonMonster(tp,17055010,0,0x21,4000,4000,10,RACE_DRAGON,ATTRIBUTE_LIGHT)
......
......@@ -52,7 +52,7 @@ end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsOnField() and chkc:IsFaceup() and chkc~=c end
if chk==0 then return c:IsAttackAbove(2600) and Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) end
if chk==0 then return c:IsAttackAbove(1000) and Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,c)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
......
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