Commit 15484bae authored by nanahira's avatar nanahira

eratta

parent 4ca3566d
...@@ -28,6 +28,7 @@ function c47946130.initial_effect(c) ...@@ -28,6 +28,7 @@ function c47946130.initial_effect(c)
e3:SetCode(EVENT_CHAINING) e3:SetCode(EVENT_CHAINING)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c47946130.negcon) e3:SetCondition(c47946130.negcon)
e3:SetCondition(c47946130.ChainUniqueCost) -- 8/19 eratta: chain unique
e3:SetTarget(c47946130.negtg) e3:SetTarget(c47946130.negtg)
e3:SetOperation(c47946130.negop) e3:SetOperation(c47946130.negop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -64,6 +65,11 @@ function c47946130.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,6 +65,11 @@ function c47946130.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end end
function c47946130.ChainUniqueCost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:GetFlagEffect(47946130)==0 end
c:RegisterFlagEffect(47946130,RESET_EVENT+RESETS_STANDARD+RESET_CHAIN,0,1)
end
function c47946130.negop(e,tp,eg,ep,ev,re,r,rp,chk) function c47946130.negop(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFacedown() or c:GetAttack()<500 or not c:IsRelateToEffect(e) if c:IsFacedown() or c:GetAttack()<500 or not c:IsRelateToEffect(e)
......
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