Commit d938fff4 authored by 未闻皂名's avatar 未闻皂名
parents 6a01995a 2c8e39b0
...@@ -18,7 +18,7 @@ function cm.filter(c) ...@@ -18,7 +18,7 @@ function cm.filter(c)
return c:IsFaceup() and c:IsLevelAbove(6) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_SPELLCASTER) return c:IsFaceup() and c:IsLevelAbove(6) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_SPELLCASTER)
end end
function cm.exfilter(c) function cm.exfilter(c)
return c:IsFaceup() and (RD.IsLegendCode(c,LEGEND_DARK_MAGICIAN) or c:IsCode(list2[1])) return c:IsFaceup() and (RD.IsLegendCode(c,LEGEND_DARK_MAGICIAN) or c:IsCode(list[1]))
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -22,7 +22,7 @@ function cm.thfilter(c) ...@@ -22,7 +22,7 @@ function cm.thfilter(c)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsSummonTurn(e:GetHandler()) return RD.IsSummonTurn(e:GetHandler())
and Duel.IsExistingMatchingCard(cm.filter,tp,0,LOCATION_ONFIELD,2,nil) and Duel.IsExistingMatchingCard(cm.confilter,tp,0,LOCATION_ONFIELD,2,nil)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) 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