Commit cf0612dc authored by POLYMER's avatar POLYMER

fix

parent b6da4c62
...@@ -4,7 +4,7 @@ function s.initial_effect(c) ...@@ -4,7 +4,7 @@ function s.initial_effect(c)
aux.AddCodeList(c,12823285) aux.AddCodeList(c,12823285)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND) --e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(s.activate) e1:SetOperation(s.activate)
......
...@@ -216,7 +216,7 @@ function c22348354.val(e,c) ...@@ -216,7 +216,7 @@ function c22348354.val(e,c)
return Duel.GetMatchingGroupCount(c22348354.atkfilter,c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,nil)*200 return Duel.GetMatchingGroupCount(c22348354.atkfilter,c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,nil)*200
end end
function c22348354.filter(c) function c22348354.filter(c)
return c:IsSetCard(0x970a) and c:IsAbleToDeck() and not c:IsCode(22348354) return c:IsSetCard(0x970a) and c:IsFaceupEx() and c:IsAbleToDeck() and not c:IsCode(22348354)
end end
function c22348354.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22348354.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c22348354.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c22348354.filter(chkc) end
......
...@@ -38,7 +38,7 @@ function c28351818.cfilter(c) ...@@ -38,7 +38,7 @@ function c28351818.cfilter(c)
end end
function c28351818.reop(e,tp,eg,ep,ev,re,r,rp) function c28351818.reop(e,tp,eg,ep,ev,re,r,rp)
Duel.Recover(tp,1000,REASON_EFFECT) Duel.Recover(tp,1000,REASON_EFFECT)
local g=Duel.IsExistingMatchingCard(c28351818.cfilter,tp,LOCATION_GRAVE,0,1,nil) local g=Duel.GetMatchingGroup(c28351818.cfilter,tp,LOCATION_GRAVE,0,1,nil)
if Duel.GetLP(tp)>=10000 and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(28351818,0)) then if Duel.GetLP(tp)>=10000 and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(28351818,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg=g:Select(tp,1,1,nil) local tg=g:Select(tp,1,1,nil)
......
...@@ -48,7 +48,7 @@ function c28352012.reop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c28352012.reop(e,tp,eg,ep,ev,re,r,rp)
Duel.Recover(tp,2000,REASON_EFFECT,true) Duel.Recover(tp,2000,REASON_EFFECT,true)
Duel.Recover(1-tp,2000,REASON_EFFECT,true) Duel.Recover(1-tp,2000,REASON_EFFECT,true)
Duel.RDComplete() Duel.RDComplete()
local g=Duel.IsExistingMatchingCard(c28352012.cfilter,tp,LOCATION_GRAVE,0,1,nil) local g=Duel.GetMatchingGroup(c28352012.cfilter,tp,LOCATION_GRAVE,0,1,nil)
if Duel.GetLP(tp)>=10000 and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(28352012,0)) then if Duel.GetLP(tp)>=10000 and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(28352012,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg=g:Select(tp,1,1,nil) local tg=g:Select(tp,1,1,nil)
...@@ -71,7 +71,7 @@ function c28352012.tdcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +71,7 @@ function c28352012.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)>=10000 return Duel.GetLP(tp)>=10000
end end
function c28352012.tdfilter(c,e,tp,eg,ep,ev,re,r,rp) function c28352012.tdfilter(c,e,tp,eg,ep,ev,re,r,rp)
if not c:IsSetCard(0x287) and c:IsLevel(4) and c:IsAbleToDeck() then return false end if not (c:IsSetCard(0x287) and c:IsLevel(4) and c:IsAbleToDeck()) then return false end
local te=c.recover_effect local te=c.recover_effect
if not te then return false end if not te then return false end
local tg=te:GetTarget() local tg=te:GetTarget()
......
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