Commit c9c86592 authored by Tachibana's avatar Tachibana

1145141919810

parent 61cfe1f0
Pipeline #13966 passed with stage
in 21 minutes and 12 seconds
No preview for this file type
......@@ -76,7 +76,7 @@ function cm.effop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)<=3 and eg:IsExists(Card.IsPreviousLocation,1,nil,LOCATION_EXTRA)
return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)<=3 and eg:IsExists(Card.IsPreviousLocation,1,nil,LOCATION_EXTRA) and not eg:IsContains(e:GetHandler())
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m)
......
......@@ -35,14 +35,14 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.cfilter(c)
return c:GetRace()~=RACE_WYRM and c:GetAttribute()~=ATTRIBUTE_DARK
return c:IsFacedown() or not (c:IsRace(RACE_WYRM) and c:IsAttribute(ATTRIBUTE_DARK))
end
function cm.sprcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end
local g=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_MONSTER)
return g:GetCount()>0 and not g:IsExists(cm.cfilter,1,nil)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetFieldGroupCount(tp,LOCATION_REMOVED,0)>0
and not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_REMOVED,0,1,nil)
end
function cm.spfilter(c,e,tp)
return c:IsFaceup() and c:IsLevel(10) and c:IsRace(RACE_WYRM) and c:IsAttribute(ATTRIBUTE_DARK)
......
......@@ -19,7 +19,7 @@ function cm.initial_effect(c)
end
--e3
function cm.vfilter(c)
return c:IsType(TYPE_MONSTER) and c:GetRank()>0 and not c:IsLevel(c:GetOriginalLevel()) and c:IsFaceup()
return c:IsType(TYPE_MONSTER) and c:GetLevel()>0 and not c:IsLevel(c:GetOriginalLevel()) and c:IsFaceup()
end
function cm.adval(e,c)
local mc=e:GetHandler()
......
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