Commit 170f44d5 authored by DailyShana's avatar DailyShana

fix

parent 723ebefa
......@@ -7,6 +7,7 @@ function c3072077.initial_effect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetRange(LOCATION_GRAVE)
e1:SetCountLimit(1)
e1:SetCondition(c3072077.condition)
e1:SetCost(c3072077.cost)
e1:SetTarget(c3072077.target)
......
......@@ -33,7 +33,7 @@ end
function c48092532.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetFlagEffect(48092533)==0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
e:GetHandler():RegisterFlagEffect(48092533,RESET_PHASE+PHASE_END,0,1)
e:GetHandler():RegisterFlagEffect(48092533,RESET_EVENT+0x4760000+RESET_PHASE+PHASE_END,0,1)
end
function c48092532.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -17,6 +17,7 @@ function c69529567.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1)
e2:SetCondition(c69529567.spcon)
e2:SetTarget(c69529567.sptg)
e2:SetOperation(c69529567.spop)
......
......@@ -10,6 +10,7 @@ function c71628381.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_PHASE+PHASE_BATTLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(c71628381.spcon)
e1:SetTarget(c71628381.sptg)
e1:SetOperation(c71628381.spop)
......
......@@ -17,11 +17,12 @@ function c76263644.initial_effect(c)
c:RegisterEffect(e2)
--Special Summon
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(76263644,1))
e3:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_FIELD)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetCode(EVENT_PHASE+PHASE_STANDBY)
e3:SetRange(LOCATION_GRAVE)
e3:SetDescription(aux.Stringid(76263644,1))
e3:SetCountLimit(1)
e3:SetCondition(c76263644.spcon)
e3:SetCost(c76263644.spcost)
e3:SetTarget(c76263644.sptg)
......@@ -59,8 +60,7 @@ function c76263644.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c76263644.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
return Duel.GetTurnPlayer()==tp
end
function c76263644.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c76263644.spfilter,tp,LOCATION_GRAVE,0,1,nil) end
......@@ -72,7 +72,8 @@ function c76263644.spfilter(c)
return c:IsSetCard(0xc008) and c:IsAbleToRemoveAsCost()
end
function c76263644.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c76263644.spop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -26,6 +26,7 @@ function c80513550.initial_effect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetCode(EVENT_PHASE+PHASE_STANDBY)
e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1)
e3:SetCondition(c80513550.spcon)
e3:SetCost(c80513550.spcost)
e3:SetTarget(c80513550.sptg)
......
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