Commit 87757019 authored by Tachibana's avatar Tachibana

得得得得得

parent 4f84ae90
Pipeline #12014 passed with stages
in 26 minutes and 23 seconds
......@@ -45,7 +45,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
--Effect 3
local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e4:SetCategory(CATEGORY_TOHAND)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_EXTRA)
e4:SetCountLimit(1,m)
......
......@@ -44,7 +44,7 @@ function cm.splimit(e,se,sp,st)
return se:IsHasType(EFFECT_TYPE_ACTIONS)
end
function cm.check(c)
return c:IsAbleToExtra() and c:IsSetCard(0xccd)
return c:IsAbleToExtra() and c:IsSetCard(0xccb)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -31,6 +31,11 @@ function cm.initial_effect(c)
e4:SetTarget(cm.sptg)
e4:SetOperation(cm.spop)
c:RegisterEffect(e4)
--
if not rk.Side_Check then
rk.Side_Check=true
local ce=rk.side_do(c)
end
end
function cm.filter(c)
return c:IsSetCard(0x92c2,0x3a8b,0x5a8b) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER)
......
......@@ -91,6 +91,9 @@ function cm.drop2(e,tp,eg,ep,ev,re,r,rp)
local g = Duel.SelectMatchingCard(1-tp,cm.sgfilter,tp,0,LOCATION_HAND+LOCATION_ONFIELD,1,1,nil,e,tp)
Duel.Destroy(g,REASON_EFFECT)
end
function cm.sdcon(e)
return not Duel.IsExistingMatchingCard(cm.sdfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
end
function iFunc(c,x)
local __this = (aux.GetValueType(c) == "Card" and {(x == nil and {Effect.CreateEffect(c)} or {x})[1]} or {x})[1]
local fe = function(name,...) if name =="RegisterEffect" then c:RegisterEffect(__this:Clone()) else (type(__this[name])=="function" and {__this[name]} or {""})[1](__this,...) end return iFunc(c,__this) end
......
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