Commit bc66eefe authored by Huangnan's avatar Huangnan

fix

parent ea7c598a
Pipeline #35608 passed with stages
in 66 minutes and 8 seconds
No preview for this file type
......@@ -125,7 +125,7 @@ function cm.eqcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function cm.eqfilter(c,ec,tp)
if not c:IsControler(tp) and not c:IsControlerCanBeChanged() and not c:IsLocation(LOCATION_GRAVE) then return false end
if not c:IsControler(tp) and not c:IsControlerCanBeChanged(true) and not c:IsLocation(LOCATION_GRAVE) then return false end
return (c:IsLocation(LOCATION_ONFIELD) and c:GetEquipTarget()~=ec) or (c:IsLocation(LOCATION_GRAVE) and not c:IsForbidden())
end
function cm.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -59,7 +59,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.filter(c,e,tp)
return c:IsSetCard(0x6ce1) and e:GetHandler():IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,e:GetHandler(),c)>0
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,e:GetHandler(),c)>0 and c:IsType(TYPE_XYZ)
and Duel.IsExistingMatchingCard(s.ovfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,e:GetHandler())
end
function s.ovfilter(c)
......@@ -82,17 +82,19 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
sc:SetMaterial(Group.FromCards(c))
Duel.Overlay(sc,Group.FromCards(c))
if Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)~=0 and sc:CompleteProcedure()
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.ovfilter),tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,sc) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local sg=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.ovfilter),tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,sc)
local tc=sg:GetFirst()
local mg2=tc:GetOverlayGroup()
if mg2:GetCount()>0 then
Duel.SendtoGrave(mg2,REASON_RULE)
end
if Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)~=0 then
sc:CompleteProcedure()
if Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.ovfilter),tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,sc) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local sg=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.ovfilter),tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,sc)
local tc=sg:GetFirst()
local mg2=tc:GetOverlayGroup()
if mg2:GetCount()>0 then
Duel.SendtoGrave(mg2,REASON_RULE)
end
Duel.Overlay(sc,Group.FromCards(tc))
end
end
end
end
\ No newline at end of file
......@@ -37,7 +37,7 @@ function s.initial_effect(c)
c:RegisterEffect(e4)
end
function s.cfilter(c)
return c:IsFaceup() and c.MoJin and c:IsType(TYPE_MONSTER) and and c:IsLevelAbove(10)
return c:IsFaceup() and c.MoJin and c:IsType(TYPE_MONSTER)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
......@@ -120,7 +120,7 @@ function s.atkval(e,c)
return c:GetLevel()*1700
end
function s.thfilter(c)
return c.MoJin and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c.MoJin and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and c:IsLevelAbove(7)
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,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