Commit 180e5d55 authored by DailyShana's avatar DailyShana

fix

parent eefb255c
......@@ -22,32 +22,6 @@ function c29146185.initial_effect(c)
e2:SetTarget(c29146185.destg)
e2:SetOperation(c29146185.desop)
c:RegisterEffect(e2)
if not c29146185.global_check then
c29146185.global_check=true
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_SPSUMMON_SUCCESS)
ge1:SetOperation(c29146185.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function c29146185.checkop(e,tp,eg,ep,ev,re,r,rp)
c29146185[0]=Duel.GetFlagEffect(0,29146185)
c29146185[1]=Duel.GetFlagEffect(1,29146185)
local tc=eg:GetFirst()
while tc do
local sump=tc:GetSummonPlayer()
if c29146185[sump]==0 then
if tc:GetCode()==29146185 and Duel.GetFlagEffect(sump,29146186)==0 then
tc:RegisterFlagEffect(29146185,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
Duel.RegisterFlagEffect(sump,29146186,RESET_PHASE+PHASE_END,0,1)
else
Duel.RegisterFlagEffect(sump,29146185,RESET_PHASE+PHASE_END,0,1)
c29146185[sump]=1
end
end
tc=eg:GetNext()
end
end
function c29146185.retcon(e,tp,eg,ep,ev,re,r,rp)
if not re then return false end
......@@ -55,7 +29,7 @@ function c29146185.retcon(e,tp,eg,ep,ev,re,r,rp)
return rc:IsRace(RACE_SPELLCASTER) or (rc:IsSetCard(0x106e) and rc:IsType(TYPE_SPELL))
end
function c29146185.retcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,29146185)==0 and e:GetHandler():GetFlagEffect(29146185)>0 end
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==1 end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
......@@ -45,7 +45,7 @@ function c4022819.ntop(e,tp,eg,ep,ev,re,r,rp,c)
c:RegisterEffect(e1)
end
function c4022819.lvfilter(c)
return c:IsType(TYPE_NORMAL) and c:IsRace(RACE_DRAGON)
return c:IsFaceup() and c:IsType(TYPE_NORMAL) and c:IsRace(RACE_DRAGON)
end
function c4022819.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c4022819.lvfilter(chkc) end
......
......@@ -31,7 +31,6 @@ function c53347303.initial_effect(c)
e4:SetCategory(CATEGORY_DISABLE)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_CHAINING)
e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e4:SetRange(LOCATION_MZONE)
e4:SetCondition(c53347303.discon)
e4:SetTarget(c53347303.distg)
......
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