Commit 18d2fe0d authored by TanakaKotoha's avatar TanakaKotoha

foo foo

parent 44dbd714
No preview for this file type
......@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_ADD_EXTRA_TRIBUTE)
e1:SetTargetRange(LOCATION_SZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xfa4))
e1:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_CONTINUOUS))
e1:SetValue(POS_FACEUP_ATTACK)
c:RegisterEffect(e1)
--Release
......@@ -148,4 +148,4 @@ function cm.atkfilter(c)
end
function cm.atkval(e,c)
return Duel.GetMatchingGroupCount(cm.atkfilter,c:GetControler(),LOCATION_ONFIELD,LOCATION_ONFIELD,nil)*200
end
end
\ No newline at end of file
......@@ -35,8 +35,9 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_CHAINING)
ge1:SetRange(LOCATION_MZONE)
ge1:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
ge1:SetOperation(cm.checkop)
c:RegisterEffect(ge1)
......@@ -52,8 +53,9 @@ function cm.initial_effect(c)
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() then
if re:GetHandler()==c and c:IsFaceup() then
c:RegisterFlagEffect(m,RESET_EVENT+0x1fe0000,0,1)
Debug.Message(e:GetHandler():GetFlagEffect(m))
end
end
function cm.mfiter(c)
......
......@@ -73,7 +73,7 @@ function c12041003.operation(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1)
end
function c12041003.spfilter(c,e,tp)
return c:IsSetCard(0x3faa) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
return c:IsSetCard(0x3faa) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
end
function c12041003.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(c12041003.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetMZoneCount(tp)>0 end
......
......@@ -75,7 +75,7 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetOperatedGroup()
if g:IsExists(Card.IsLocation,1,nil,LOCATION_DECK) then Duel.ShuffleDeck(tp) end
local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)
if ct==2 then
if ct==3 then
Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT)
end
......
......@@ -22,7 +22,6 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCost(cm.cost1)
e3:SetTarget(cm.tg1)
e3:SetOperation(cm.op1)
......@@ -123,7 +122,7 @@ function cm.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=og:Filter(cm.cfilter3,nil)
local lg=mg:Select(tp,1,63,nil)
Duel.SendtoGrave(lg,REASON_COST)
local tt=Duel.GetOperatedGroup()
local tt=Duel.GetOperatedGroup():GetCount()
e:SetLabel(tt)
Duel.RaiseSingleEvent(c,EVENT_DETACH_MATERIAL,e,0,0,0,0)
end
......
......@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,m)
e1:SetCondition(cm.spcon)
e1:SetCondition(cm.thcon)
e1:SetCost(cm.spcost)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
......@@ -21,6 +21,9 @@ end
function cm.mfilter(c)
return c:IsType(TYPE_XYZ+TYPE_SYNCHRO)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
......
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