Commit 49597d19 authored by Nemo Ma's avatar Nemo Ma

fix

parent 16db89c0
......@@ -176,7 +176,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsType(TYPE_PENDULUM) or not c:IsRelateToEffect(e) then return end
if Duel.SendtoExtraP(c,nil,REASON_EFFECT)==0 then return end
if not Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil) then return end
if not Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil) then return end
if not Duel.SelectYesNo(tp,aux.Stringid(m,1)) then return end
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(m,3))
......
......@@ -72,7 +72,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsType(TYPE_PENDULUM) or not c:IsRelateToEffect(e) then return end
if Duel.SendtoExtraP(c,nil,REASON_EFFECT)==0 then return end
if not Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) then return end
if not Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) then return end
if not Duel.SelectYesNo(tp,aux.Stringid(m,1)) then return end
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
......@@ -66,7 +66,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsType(TYPE_PENDULUM) or not c:IsRelateToEffect(e) then return end
if Duel.SendtoExtraP(c,nil,REASON_EFFECT)==0 then return end
if not Duel.IsExistingTarget(Card.IsAbleToDeck,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,nil) then return end
if not Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,nil) then return end
if not Duel.SelectYesNo(tp,aux.Stringid(m,1)) then return end
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
......@@ -65,7 +65,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsType(TYPE_PENDULUM) or not c:IsRelateToEffect(e) then return end
if Duel.SendtoExtraP(c,nil,REASON_EFFECT)==0 then return end
if not Duel.IsExistingTarget(cm.upfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then return end
if not Duel.IsExistingMatchingCard(cm.upfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then return end
if not Duel.SelectYesNo(tp,aux.Stringid(m,1)) then return end
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
......@@ -61,7 +61,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsType(TYPE_PENDULUM) or not c:IsRelateToEffect(e) then return end
if Duel.SendtoExtraP(c,nil,REASON_EFFECT)==0 then return end
if not Duel.IsExistingTarget(cm.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) then return end
if not Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)==0 or not Duel.SelectYesNo(tp,aux.Stringid(m,1)) then return end
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
......@@ -69,7 +69,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsType(TYPE_PENDULUM) or not c:IsRelateToEffect(e) then return end
if Duel.SendtoExtraP(c,nil,REASON_EFFECT)==0 then return end
if not Duel.IsExistingTarget(cm.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then return end
if not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then return end
if not Duel.SelectYesNo(tp,aux.Stringid(m,1)) then return end
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
......
......@@ -58,7 +58,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsType(TYPE_PENDULUM) or not c:IsRelateToEffect(e) then return end
if Duel.SendtoExtraP(c,nil,REASON_EFFECT)==0 then return end
if not Duel.IsExistingTarget(cm.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then return end
if not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then return end
if not Duel.SelectYesNo(tp,aux.Stringid(m,1)) then return end
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
......@@ -46,8 +46,9 @@ function c91010021.initial_effect(c)
e4:SetOperation(cm.sumop)
c:RegisterEffect(e4)
local e5=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DOUBLE_TRIBUTE)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCode(EFFECT_DOUBLE_TRIBUTE)
e5:SetValue(1)
c:RegisterEffect(e5)
end
--e0
......
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