Commit 81bc1172 authored by VanillaSalt's avatar VanillaSalt

fix

parent 3032315a
...@@ -7,10 +7,6 @@ function c5851097.initial_effect(c) ...@@ -7,10 +7,6 @@ function c5851097.initial_effect(c)
e1:SetHintTiming(0,0x1c1) e1:SetHintTiming(0,0x1c1)
e1:SetOperation(c5851097.activate) e1:SetOperation(c5851097.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end
function c5851097.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
--disable spsummon --disable spsummon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
...@@ -18,8 +14,11 @@ function c5851097.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,8 +14,11 @@ function c5851097.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,1) e2:SetTargetRange(1,1)
e2:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end
function c5851097.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
--destroy --destroy
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(5851097,0)) e3:SetDescription(aux.Stringid(5851097,0))
...@@ -30,7 +29,7 @@ function c5851097.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,7 +29,7 @@ function c5851097.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetTarget(c5851097.destg) e3:SetTarget(c5851097.destg)
e3:SetOperation(c5851097.desop) e3:SetOperation(c5851097.desop)
e3:SetReset(RESET_EVENT+0x1fe0000) e3:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e3) c:RegisterEffect(e3,true)
end end
function c5851097.filter(c,tp) function c5851097.filter(c,tp)
return c:IsPreviousLocation(LOCATION_DECK+LOCATION_ONFIELD) and c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) return c:IsPreviousLocation(LOCATION_DECK+LOCATION_ONFIELD) and c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp)
......
...@@ -79,5 +79,5 @@ function c65384188.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,5 +79,5 @@ function c65384188.posop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c65384188.effcon(e) function c65384188.effcon(e)
return e:GetHandler():GetFlagEffect(65384188)~=0 and e:GetLabelObject():ResetFlagEffect(65384188)~=0 return e:GetHandler():GetFlagEffect(65384188)~=0 and e:GetLabelObject():GetFlagEffect(65384188)~=0
end end
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