Commit 7834a3cc authored by DailyShana's avatar DailyShana

fix

parent 6fc3adbf
...@@ -109,7 +109,7 @@ function c29432356.penop(e,tp,eg,ep,ev,re,r,rp) ...@@ -109,7 +109,7 @@ function c29432356.penop(e,tp,eg,ep,ev,re,r,rp)
e3:SetDescription(aux.Stringid(29432356,2)) e3:SetDescription(aux.Stringid(29432356,2))
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_SPSUMMON_PROC_G) e3:SetCode(EFFECT_SPSUMMON_PROC_G)
e3:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_BOTH_SIDE) e3:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
e3:SetRange(LOCATION_PZONE) e3:SetRange(LOCATION_PZONE)
e3:SetCountLimit(1,29432356) e3:SetCountLimit(1,29432356)
e3:SetCondition(c29432356.pencon2) e3:SetCondition(c29432356.pencon2)
......
...@@ -21,9 +21,7 @@ function c64389297.initial_effect(c) ...@@ -21,9 +21,7 @@ function c64389297.initial_effect(c)
e3:SetDescription(aux.Stringid(64389297,0)) e3:SetDescription(aux.Stringid(64389297,0))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetProperty(EFFECT_FLAG_BOTH_SIDE)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCondition(c64389297.spcon)
e3:SetCost(c64389297.spcost) e3:SetCost(c64389297.spcost)
e3:SetTarget(c64389297.sptg) e3:SetTarget(c64389297.sptg)
e3:SetOperation(c64389297.spop) e3:SetOperation(c64389297.spop)
...@@ -48,13 +46,11 @@ function c64389297.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,13 +46,11 @@ function c64389297.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,e:GetHandler(),tc) Duel.Equip(tp,e:GetHandler(),tc)
end end
end end
function c64389297.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipTarget():GetControler()==tp
end
function c64389297.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c64389297.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local tc=c:GetEquipTarget() local tc=c:GetEquipTarget()
if chk==0 then return c:IsReleasable() and tc:IsReleasable() end if chk==0 then return c:IsReleasable() and tc:IsReleasable()
and (tc:IsControler(tp) or tc:IsHasEffect(EFFECT_EXTRA_RELEASE)) end
local g=Group.FromCards(c,tc) local g=Group.FromCards(c,tc)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -17,7 +17,6 @@ function c95308449.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,6 @@ function c95308449.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if Duel.GetFlagEffect(tp,95308449)~=0 then return end if Duel.GetFlagEffect(tp,95308449)~=0 then return end
Duel.RegisterFlagEffect(tp,95308449,0,0,0) Duel.RegisterFlagEffect(tp,95308449,0,0,0)
c:SetTurnCounter(0)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
...@@ -29,9 +28,9 @@ function c95308449.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,9 +28,9 @@ function c95308449.activate(e,tp,eg,ep,ev,re,r,rp)
end end
function c95308449.checkop(e,tp,eg,ep,ev,re,r,rp) function c95308449.checkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ct=c:GetTurnCounter() local ct=Duel.GetFlagEffect(tp,95308449)
ct=ct+1 c:SetHint(CHINT_TURN,ct)
c:SetTurnCounter(ct) Duel.RegisterFlagEffect(tp,95308449,0,0,0)
if ct==20 then if ct==20 then
Duel.Win(tp,0x11) Duel.Win(tp,0x11)
c:ResetFlagEffect(1082946) c:ResetFlagEffect(1082946)
......
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