Commit 5ae5a76f authored by salix5's avatar salix5

fix

http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=12664
■「PSYフレーム・アクセラレーター」のカードの発動と同一のチェーンブロックにて『手札から「PSYフレーム」モンスター1体を特殊召喚する』効果を発動する事はできません。

http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=12628
ターン終了時まで
parent 869168dc
...@@ -27,7 +27,7 @@ function c41209827.initial_effect(c) ...@@ -27,7 +27,7 @@ function c41209827.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--destroy --destroy
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(41209827,3)) e3:SetDescription(aux.Stringid(41209827,2))
e3:SetCategory(CATEGORY_DESTROY) e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DELAY)
...@@ -91,31 +91,10 @@ function c41209827.copyop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,31 +91,10 @@ function c41209827.copyop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not tc:IsType(TYPE_TRAPMONSTER) then if not tc:IsType(TYPE_TRAPMONSTER) then
cid=c:CopyEffect(code,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,1) c:CopyEffect(code,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,1)
end end
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(41209827,2))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetLabelObject(e1)
e2:SetLabel(cid)
e2:SetOperation(c41209827.rstop)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
c:RegisterEffect(e2)
end end
end end
function c41209827.rstop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local cid=e:GetLabel()
if cid~=0 then c:ResetEffect(cid,RESET_COPY) end
local e1=e:GetLabelObject()
e1:Reset()
Duel.HintSelection(Group.FromCards(c))
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c41209827.descon(e,tp,eg,ep,ev,re,r,rp) function c41209827.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return c:IsPreviousLocation(LOCATION_MZONE) and bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
......
...@@ -9,18 +9,6 @@ function c51053997.initial_effect(c) ...@@ -9,18 +9,6 @@ function c51053997.initial_effect(c)
e1:SetTarget(c51053997.target1) e1:SetTarget(c51053997.target1)
e1:SetOperation(c51053997.operation) e1:SetOperation(c51053997.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--Activate(special summon)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(51053997,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_ACTIVATE)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_LEAVE_FIELD)
e2:SetCondition(c51053997.spcon)
e2:SetCost(c51053997.spcost)
e2:SetTarget(c51053997.sptg1)
e2:SetOperation(c51053997.spop)
c:RegisterEffect(e2)
--remove --remove
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(51053997,2)) e3:SetDescription(aux.Stringid(51053997,2))
...@@ -136,12 +124,6 @@ end ...@@ -136,12 +124,6 @@ end
function c51053997.spfilter(c,e,tp) function c51053997.spfilter(c,e,tp)
return c:IsSetCard(0xc1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xc1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c51053997.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c51053997.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c51053997.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c51053997.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return e:GetHandler():IsRelateToEffect(e)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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