Commit e8225f4d authored by Tachibana's avatar Tachibana

ndyd

parent 2ff261e2
...@@ -19,6 +19,9 @@ function cm.initial_effect(c) ...@@ -19,6 +19,9 @@ function cm.initial_effect(c)
e3:SetTargetRange(1,0) e3:SetTargetRange(1,0)
e3:SetTarget(cm.sumlimit) e3:SetTarget(cm.sumlimit)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetCode(EFFECT_CANNOT_SUMMON)
c:RegisterEffect(e4)
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFaceup() and c:IsRace(RACE_FAIRY) return c:IsFaceup() and c:IsRace(RACE_FAIRY)
......
...@@ -31,6 +31,9 @@ function cm.initial_effect(c) ...@@ -31,6 +31,9 @@ function cm.initial_effect(c)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(cm.atkval) e2:SetValue(cm.atkval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e2_1=e2:Clone()
e2_1:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e2_1)
--indestructable --indestructable
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
...@@ -91,23 +94,17 @@ end ...@@ -91,23 +94,17 @@ end
function cm.refilter1(c) function cm.refilter1(c)
return c:IsXyzType(TYPE_XYZ) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x6341) return c:IsXyzType(TYPE_XYZ) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x6341)
end end
function cm.refilter2(c) function cm.refilter2(c,tp)
return c:IsXyzType(TYPE_XYZ) and c:IsType(TYPE_MONSTER) return c:IsXyzType(TYPE_XYZ) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x341) and Duel.IsExistingMatchingCard(cm.refilter1,tp,LOCATION_GRAVE,0,1,nil)
end
function cm.refilter3(c)
return c:IsXyzType(TYPE_XYZ) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x341)
end end
function cm.check(g) function cm.check(g)
return g:IsExists(Card.IsSetCard,1,nil,0x6341) return g:IsExists(Card.IsSetCard,1,nil,0x6341)
end end
function cm.xyzop(e,tp,chk,c) function cm.xyzop(e,tp,chk,c)
local g1nm=Duel.GetMatchingGroupCount(cm.refilter1,tp,LOCATION_GRAVE,0,nil) local g1nm=Duel.GetMatchingGroupCount(cm.refilter1,tp,LOCATION_GRAVE,0,nil)
local g2nm=Duel.GetMatchingGroupCount(cm.refilter2,tp,LOCATION_GRAVE,0,nil) local g2nm=Duel.GetMatchingGroupCount(cm.refilter2,tp,LOCATION_GRAVE,0,nil,tp)
local g3nm=Duel.GetMatchingGroupCount(cm.refilter3,tp,LOCATION_GRAVE,0,nil) if chk==0 then return g1nm>0 and g2nm>2 end
local cnm=g1nm+g2nm local g=Duel.GetMatchingGroup(cm.refilter2,tp,LOCATION_GRAVE,0,nil,tp)
local cnm2=g3nm-cnm
if chk==0 then return cnm>=3 or (g1nm==1 and g2nm==1 and cnm2>=1) end
local g=Duel.GetMatchingGroup(cm.refilter3,tp,LOCATION_GRAVE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g1=g:SelectSubGroup(tp,cm.check,false,3,99) local g1=g:SelectSubGroup(tp,cm.check,false,3,99)
Duel.Remove(g1,POS_FACEUP,REASON_COST) Duel.Remove(g1,POS_FACEUP,REASON_COST)
......
...@@ -60,8 +60,8 @@ function c60002005.cnop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,8 +60,8 @@ function c60002005.cnop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c60002005.actfilter(e,c) function c60002005.actfilter(e,re,tp)
return not c:IsLevelAbove(1) return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsLevelAbove(1) and re:GetHandler()~=e:GetHandler()
end end
function c60002005.cxcost(e,tp,eg,ep,ev,re,r,rp,chk) function c60002005.cxcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true 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