Commit 53cbd350 authored by mercury233's avatar mercury233

fix

parent b7a23b3d
...@@ -35,10 +35,11 @@ function c11082056.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,10 +35,11 @@ function c11082056.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc and not tc:IsImmuneToEffect(e) then if tc and not tc:IsImmuneToEffect(e) then
if tc:IsOnField() and tc:IsFacedown() then Duel.ConfirmCards(1-tp,tc) end if tc:IsOnField() and tc:IsFacedown() then Duel.ConfirmCards(1-tp,tc) end
local code=tc:GetCode()
Duel.SendtoGrave(tc,REASON_EFFECT) Duel.SendtoGrave(tc,REASON_EFFECT)
if not tc:IsLocation(LOCATION_GRAVE) then return end if not tc:IsLocation(LOCATION_GRAVE) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c11082056.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc:GetCode()) local sg=Duel.SelectMatchingCard(tp,c11082056.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,code)
local sc=sg:GetFirst() local sc=sg:GetFirst()
if sc then if sc then
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -53,8 +53,11 @@ function c31759689.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,8 +53,11 @@ function c31759689.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE) Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE)
end end
end end
function c31759689.atkfilter(c,ec)
return (c:GetLinkedGroup() and c:GetLinkedGroup():IsContains(ec)) or (ec:GetLinkedGroup() and ec:GetLinkedGroup():IsContains(c))
end
function c31759689.val(e,c) function c31759689.val(e,c)
return c:GetLinkedGroupCount()*-1000 return Duel.GetMatchingGroupCount(c31759689.atkfilter,0,LOCATION_MZONE,LOCATION_MZONE,c,c)*-1000
end end
function c31759689.poscon(e,tp,eg,ep,ev,re,r,rp) function c31759689.poscon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -53,7 +53,7 @@ function c53266486.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c53266486.desop(e,tp,eg,ep,ev,re,r,rp)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetValue(RESET_TURN_SET) e2:SetValue(RESET_TURN_SET)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
local e4=e1:Clone() local e4=e1:Clone()
e4:SetCode(EFFECT_CANNOT_ATTACK) e4:SetCode(EFFECT_CANNOT_ATTACK)
......
...@@ -34,20 +34,20 @@ function c58582979.hspop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -34,20 +34,20 @@ function c58582979.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectMatchingCard(tp,c58582979.hspcfilter,tp,LOCATION_HAND,0,1,1,c) local g=Duel.SelectMatchingCard(tp,c58582979.hspcfilter,tp,LOCATION_HAND,0,1,1,c)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c58582979.spcfilter1(c,tp) function c58582979.spcfilter1(c,tp,ec)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost() return c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
and Duel.IsExistingMatchingCard(c58582979.spcfilter2,tp,LOCATION_GRAVE,0,2,c,c:GetCode()) and Duel.IsExistingMatchingCard(c58582979.spcfilter2,tp,LOCATION_GRAVE,0,2,Group.FromCards(ec,c),c:GetCode())
end end
function c58582979.spcfilter2(c,code) function c58582979.spcfilter2(c,code)
return c:IsCode(code) and c:IsAbleToRemoveAsCost() return c:IsCode(code) and c:IsAbleToRemoveAsCost()
end end
function c58582979.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c58582979.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c58582979.spcfilter1,tp,LOCATION_GRAVE,0,1,c,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c58582979.spcfilter1,tp,LOCATION_GRAVE,0,1,c,tp,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c58582979.spcfilter1,tp,LOCATION_GRAVE,0,1,1,c,tp) local g=Duel.SelectMatchingCard(tp,c58582979.spcfilter1,tp,LOCATION_GRAVE,0,1,1,c,tp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=Duel.SelectMatchingCard(tp,c58582979.spcfilter2,tp,LOCATION_GRAVE,0,2,2,g:GetFirst(),g:GetFirst():GetCode()) local g2=Duel.SelectMatchingCard(tp,c58582979.spcfilter2,tp,LOCATION_GRAVE,0,2,2,Group.FromCards(c,g:GetFirst()),g:GetFirst():GetCode())
g:Merge(g2) g:Merge(g2)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
......
...@@ -67,7 +67,7 @@ function c64454614.spfilter(c,e,tp) ...@@ -67,7 +67,7 @@ function c64454614.spfilter(c,e,tp)
and Duel.IsExistingMatchingCard(c64454614.thfilter,tp,LOCATION_DECK,0,1,c) and Duel.IsExistingMatchingCard(c64454614.thfilter,tp,LOCATION_DECK,0,1,c)
end end
function c64454614.thfilter(c) function c64454614.thfilter(c)
return c:IsType(TYPE_NORMAL) and c:GetLevel()==4 and c:IsRace(RACE_WARRIOR) and c:IsAbleToHand() return c:GetLevel()==4 and c:IsRace(RACE_WARRIOR) and c:IsAbleToHand()
end end
function c64454614.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c64454614.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -65,6 +65,7 @@ function c74063034.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,6 +65,7 @@ function c74063034.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
return res return res
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,LOCATION_MZONE+LOCATION_GRAVE)
end end
function c74063034.spop(e,tp,eg,ep,ev,re,r,rp) function c74063034.spop(e,tp,eg,ep,ev,re,r,rp)
local chkf=tp local chkf=tp
......
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