Commit d8d88840 authored by VanillaSalt's avatar VanillaSalt

fix

parent 04aea9de
...@@ -61,7 +61,7 @@ function c3657444.operation2(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +61,7 @@ function c3657444.operation2(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFacedown() or not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) then return end if tc:IsFacedown() or not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) then return end
local sg=Group.FromCards(c,tc) local sg=Group.FromCards(c,tc)
if not Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)==2 then return end if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)~=2 then return end
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(tp,2,REASON_EFFECT) Duel.Draw(tp,2,REASON_EFFECT)
end end
...@@ -80,7 +80,7 @@ function c3657444.operation3(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,7 +80,7 @@ function c3657444.operation3(e,tp,eg,ep,ev,re,r,rp)
local hg=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,1,nil) local hg=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,1,nil)
if hg:GetCount()>0 then if hg:GetCount()>0 then
hg:AddCard(c) hg:AddCard(c)
if not Duel.Remove(hg,POS_FACEUP,REASON_EFFECT)==2 then return end if Duel.Remove(hg,POS_FACEUP,REASON_EFFECT)~=2 then return end
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local gg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_GRAVE,0,1,1,nil) local gg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_GRAVE,0,1,1,nil)
......
...@@ -36,7 +36,7 @@ function c64063868.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c64063868.condition(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP) and Duel.IsChainNegatable(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP) and Duel.IsChainNegatable(ev)
end end
function c64063868.cfilter(c) function c64063868.cfilter(c)
return c:IsSetCard(0xd2) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0xd2) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end end
function c64063868.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c64063868.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -65,16 +65,16 @@ function c64063868.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,16 +65,16 @@ function c64063868.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() and e:GetHandler():IsLocation(LOCATION_GRAVE) end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() and e:GetHandler():IsLocation(LOCATION_GRAVE) end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c64063868.thfilter(c,e,tp) function c64063868.thfilter(c)
return c:IsSetCard(0xd2) and c:IsLevelBelow(8) and c:IsAbleToHand() return c:IsSetCard(0xd2) and c:IsLevelBelow(8) and c:IsAbleToHand()
end end
function c64063868.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c64063868.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c64063868.thfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c64063868.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c64063868.thop(e,tp,eg,ep,ev,re,r,rp) function c64063868.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c64063868.thfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c64063868.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
......
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