Commit ee544bc4 authored by POLYMER's avatar POLYMER

fix

parent 8423c227
...@@ -7,7 +7,6 @@ function s.initial_effect(c) ...@@ -7,7 +7,6 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH)
e1:SetCost(s.cost) e1:SetCost(s.cost)
e1:SetTarget(s.target) e1:SetTarget(s.target)
e1:SetOperation(s.activate) e1:SetOperation(s.activate)
...@@ -20,7 +19,6 @@ function s.initial_effect(c) ...@@ -20,7 +19,6 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1)
e2:SetCondition(s.thcon) e2:SetCondition(s.thcon)
e2:SetTarget(s.thtg) e2:SetTarget(s.thtg)
e2:SetOperation(s.thop) e2:SetOperation(s.thop)
......
...@@ -26,7 +26,6 @@ function s.initial_effect(c) ...@@ -26,7 +26,6 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1)
e2:SetCondition(s.thcon) e2:SetCondition(s.thcon)
e2:SetTarget(s.thtg) e2:SetTarget(s.thtg)
e2:SetOperation(s.thop) e2:SetOperation(s.thop)
......
...@@ -25,7 +25,6 @@ function s.initial_effect(c) ...@@ -25,7 +25,6 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1)
e2:SetCondition(s.thcon) e2:SetCondition(s.thcon)
e2:SetTarget(s.thtg) e2:SetTarget(s.thtg)
e2:SetOperation(s.thop) e2:SetOperation(s.thop)
......
...@@ -5,7 +5,6 @@ function s.initial_effect(c) ...@@ -5,7 +5,6 @@ function s.initial_effect(c)
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE) e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN) e0:SetCode(EVENT_FREE_CHAIN)
e0:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH)
e0:SetTarget(s.target) e0:SetTarget(s.target)
e0:SetOperation(s.activate) e0:SetOperation(s.activate)
c:RegisterEffect(e0) c:RegisterEffect(e0)
......
...@@ -85,9 +85,9 @@ function c22348307.sp2filter(c,e,tp) ...@@ -85,9 +85,9 @@ function c22348307.sp2filter(c,e,tp)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c22348307.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22348307.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and c:IsControler(tp) and c22348307.sp2filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and c:IsControler(tp) and c22348307.sp2filter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetMZoneCount(tp,c)>=1 and Duel.IsExistingTarget(c22348307.sp2filter,tp,LOCATION_REMOVED,0,1,nil,e,tp) end
and Duel.IsExistingTarget(c22348307.sp2filter,tp,LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c22348307.sp2filter,tp,LOCATION_REMOVED,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c22348307.sp2filter,tp,LOCATION_REMOVED,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
......
...@@ -32,7 +32,6 @@ function c22348459.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,7 +32,6 @@ function c22348459.target(e,tp,eg,ep,ev,re,r,rp,chk)
return e:IsHasType(EFFECT_TYPE_ACTIVATE) and #jg>0 return e:IsHasType(EFFECT_TYPE_ACTIVATE) and #jg>0
end end
e:SetLabel(0) e:SetLabel(0)
Debug.Message(11)
local g=jg:Select(tp,1,1,nil) local g=jg:Select(tp,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
Duel.SetTargetCard(g:GetFirst()) Duel.SetTargetCard(g:GetFirst())
...@@ -42,7 +41,6 @@ function c22348459.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +41,6 @@ function c22348459.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
Debug.Message(11)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c22348459.spfilter,tp,LOCATION_DECK,0,1,1,nil,tc,e,tp) local g=Duel.SelectMatchingCard(tp,c22348459.spfilter,tp,LOCATION_DECK,0,1,1,nil,tc,e,tp)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 and g:GetFirst():GetAttack()>0 and g:GetFirst():IsAttribute(ATTRIBUTE_DARK) then if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 and g:GetFirst():GetAttack()>0 and g:GetFirst():IsAttribute(ATTRIBUTE_DARK) then
......
...@@ -23,6 +23,14 @@ function c98921021.initial_effect(c) ...@@ -23,6 +23,14 @@ function c98921021.initial_effect(c)
e2:SetTarget(c98921021.tdtg) e2:SetTarget(c98921021.tdtg)
e2:SetOperation(c98921021.tdop) e2:SetOperation(c98921021.tdop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--cannot be target
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(aux.tgoval)
c:RegisterEffect(e3)
end end
function c98921021.pfilter(c,tp) function c98921021.pfilter(c,tp)
return c:IsType(TYPE_CONTINUOUS) and c:IsSetCard(0x7d) return c:IsType(TYPE_CONTINUOUS) and c:IsSetCard(0x7d)
......
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