Commit cbe15864 authored by mercury233's avatar mercury233

fix

parent 62148d3a
pics/100268009.jpg

70.1 KB | W: | H:

pics/100268009.jpg

70.3 KB | W: | H:

pics/100268009.jpg
pics/100268009.jpg
pics/100268009.jpg
pics/100268009.jpg
  • 2-up
  • Swipe
  • Onion skin
pics/101102033.jpg

85 KB | W: | H:

pics/101102033.jpg

85 KB | W: | H:

pics/101102033.jpg
pics/101102033.jpg
pics/101102033.jpg
pics/101102033.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -38,10 +38,9 @@ function c100311001.spcostfilter(c)
return c:IsAbleToRemoveAsCost() and c:IsRace(RACE_DRAGON+RACE_WINDBEAST)
end
function c100311001.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c100311001.spcostfilter,tp,LOCATION_GRAVE,0,nil)
if chk==0 then return g:CheckSubGroup(aux.gfcheck,2,2,Card.IsRace,RACE_DRAGON,RACE_WINDBEAST) end
if chk==0 then return Duel.IsExistingMatchingCard(c100311001.spcostfilter,tp,LOCATION_GRAVE,0,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=g:SelectSubGroup(tp,aux.gfcheck,false,2,2,Card.IsRace,RACE_DRAGON,RACE_WINDBEAST)
local sg=Duel.SelectMatchingCard(tp,c100311001.spcostfilter,tp,LOCATION_GRAVE,0,2,2,nil)
Duel.Remove(sg,POS_FACEUP,REASON_COST)
end
function c100311001.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -24,16 +24,16 @@ function c100311026.initial_effect(c)
e2:SetOperation(c100311026.spop)
c:RegisterEffect(e2)
end
function c100311026.filter(c)
function c100311026.thfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsLevelAbove(5) and c:IsSetCard(0x29) and c:IsAbleToHand()
end
function c100311026.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c100311026.filter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c100311026.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
end
function c100311026.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c100311026.filter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c100311026.thfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
......
......@@ -54,15 +54,15 @@ function c100311051.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c100311051.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
if chk==0 then return aux.nbcon(tp,re) end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0)
ev:GetHandler():CreateEffectRelation(e)
if re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0)
end
end
function c100311051.negop(e,tp,eg,ep,ev,re,r,rp)
local rc=ev:GetHandler()
if Duel.NegateActivation(ev)~=0 and rc:IsRelateToEffect(e) then
Duel.Remove(rc,POS_FACEUP,REASON_EFFECT)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
end
end
function c100311051.rmcon(e,tp,eg,ep,ev,re,r,rp)
......@@ -84,7 +84,7 @@ end
function c100311051.rmop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetLabelObject()
if tc:IsRelateToEffect(e) then
Duel.Remove(rc,POS_FACEUP,REASON_EFFECT)
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end
end
function c100311051.descon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -30,7 +30,7 @@ end
function c101102001.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101102001.cfilter,tp,LOCATION_MZONE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101102001,2))
local c=Duel.SelectMatchingCard(tp,c101102069.cfilter,tp,LOCATION_MZONE,0,1,1,nil,tp):GetFirst()
local c=Duel.SelectMatchingCard(tp,c101102001.cfilter,tp,LOCATION_MZONE,0,1,1,nil,tp):GetFirst()
c:RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c101102001.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -29,7 +29,8 @@ function c101102004.ssfilter(c)
return not c:IsSetCard(0xba) or c:IsFacedown()
end
function c101102004.sscon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(c101102004.ssfilter,tp,LOCATION_MZONE,0,1,nil)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0
and not Duel.IsExistingMatchingCard(c101102004.ssfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c101102004.sstg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -55,7 +55,7 @@ function c101102018.spfilter2(c,e,tp,tc)
end
function c101102018.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsAbleToHand()
and Duel.IsExistingMatchingCard(c101102018.spfilter1,tp,LOCATION_HAND,0,nil,e,tp) end
and Duel.IsExistingMatchingCard(c101102018.spfilter1,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
......
......@@ -24,7 +24,7 @@ function c101102034.initial_effect(c)
e2:SetCode(EVENT_BATTLED)
e2:SetCondition(c101102034.thcon)
e2:SetTarget(c101102034.thtg)
e2:SetOperation(c101102034.thtop)
e2:SetOperation(c101102034.thop)
c:RegisterEffect(e2)
--negate
local e3=Effect.CreateEffect(c)
......
......@@ -43,14 +43,14 @@ function c101102059.activate(e,tp,eg,ep,ev,re,r,rp)
local b2=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil)
local sel=0
if b1 and b2 then
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_OPTION)
sel=Duel.SelectOption(1-tp,aux.Stringid(101102059,0),aux.Stringid(101102059,1))+1
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPTION)
sel=Duel.SelectOption(tp,aux.Stringid(101102059,0),aux.Stringid(101102059,1))+1
elseif b1 then
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_OPTION)
sel=Duel.SelectOption(1-tp,aux.Stringid(101102059,0))+1
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPTION)
sel=Duel.SelectOption(tp,aux.Stringid(101102059,0))+1
elseif b2 then
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_OPTION)
sel=Duel.SelectOption(1-tp,aux.Stringid(101102059,1))+2
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPTION)
sel=Duel.SelectOption(tp,aux.Stringid(101102059,1))+2
end
if sel==1 then
Duel.BreakEffect()
......
......@@ -52,7 +52,7 @@ function c101102069.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c101102069.tgfilter,tp,LOCATION_MZONE,0,1,1,nil)
if g then
local tc=g:GetFirst()
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
......
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