Commit 8556f92b authored by Tachibana's avatar Tachibana

eme

parent dd196eb7
Pipeline #8367 passed with stages
in 22 minutes and 25 seconds
No preview for this file type
...@@ -41,13 +41,13 @@ function cm.initial_effect(c) ...@@ -41,13 +41,13 @@ function cm.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function cm.filter(c) function cm.filter(c)
return c:IsSetCard(0x7b71) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x7a72) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function cm.chfilter(c,tp) function cm.chfilter(c,tp)
return (c:IsSetCard(0x7b71) or c:IsSetCard(0x8b71)) and c:IsFaceup() return (c:IsSetCard(0x7a72) or c:IsSetCard(0x8a72)) and c:IsFaceup()
end end
function cm.hfilter(c,tp) function cm.hfilter(c,tp)
return c:IsSetCard(0x8b71) and c:IsFaceup() return c:IsSetCard(0x8a72) and c:IsFaceup()
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_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
...@@ -62,12 +62,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,12 +62,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.target1(e,c) function cm.target1(e,c)
return c:IsSetCard(0x8b71) or c:IsSetCard(0x7b71) return c:IsSetCard(0x8a72) or c:IsSetCard(0x7a72)
end end
function cm.mfilter(c,e,tp) function cm.mfilter(c,e,tp)
return Duel.IsExistingMatchingCard(function(c,mc) return Duel.IsExistingMatchingCard(function(c,mc)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x8b71) and mc:IsCanBeXyzMaterial(c) and ((mc:IsReason(REASON_BATTLE) and mc:GetReasonPlayer()==tp and (mc:GetReasonCard():IsSetCard(0x8b71) or mc:GetReasonCard():IsSetCard(0x7b71))) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x8a72) and mc:IsCanBeXyzMaterial(c) and ((mc:IsReason(REASON_BATTLE) and mc:GetReasonPlayer()==tp and (mc:GetReasonCard():IsSetCard(0x8a72) or mc:GetReasonCard():IsSetCard(0x7a72)))
or (mc:IsReason(REASON_EFFECT) and mc:GetReasonPlayer()==tp)) or (mc:IsReason(REASON_EFFECT) and mc:GetReasonPlayer()==tp and (re:GetHandler():IsSetCard(0x8a72) or re:GetHandler():IsSetCard(0x7a72))))
end,tp,LOCATION_MZONE,0,1,nil,c) end,tp,LOCATION_MZONE,0,1,nil,c)
end end
function cm.ovtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.ovtg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -77,8 +77,8 @@ function cm.ovop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,8 +77,8 @@ function cm.ovop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SelectYesNo(tp,aux.Stringid(m,1)) then if Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
local g=eg:Filter(cm.mfilter,e:GetHandler(),e,tp) local g=eg:Filter(cm.mfilter,e:GetHandler(),e,tp)
local tc=Duel.SelectMatchingCard(tp,function(c,sg) local tc=Duel.SelectMatchingCard(tp,function(c,sg)
return c:IsType(TYPE_XYZ) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x8b71) and sg:IsExists(function(c,sc) return c:IsType(TYPE_XYZ) and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x8a72) and sg:IsExists(function(c,sc)
return c:IsCanBeXyzMaterial(sc) end,1,nil,c) end,tp,LOCATION_MZONE,0,1,1,nil,g):GetFirst() return c:IsCanBeXyzMaterial(sc) end,1,nil,c) end,tp,LOCATION_MZONE,0,1,1,nil,g):GetFirst()
if g==nil then return end if g==nil then return end
if tc==nil then return end if tc==nil then return end
if g:GetCount()>0 then if g:GetCount()>0 then
......
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