Commit f255e4c9 authored by nanahira's avatar nanahira

changes for eratta on 2020.4.1

parent 35bd216d
...@@ -2,17 +2,25 @@ ...@@ -2,17 +2,25 @@
function c21593977.initial_effect(c) function c21593977.initial_effect(c)
--activate trap in hand --activate trap in hand
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_TO_GRAVE) e1:SetCode(EVENT_TO_GRAVE)
e1:SetCountLimit(1,21593977)
e1:SetCondition(c21593977.condition)
e1:SetOperation(c21593977.operation) e1:SetOperation(c21593977.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c21593977.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE)
end
function c21593977.operation(e,tp,eg,ep,ev,re,r,rp) function c21593977.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_TRAP_ACT_IN_HAND) e1:SetCode(EFFECT_TRAP_ACT_IN_HAND)
e1:SetTargetRange(LOCATION_HAND,0) e1:SetTargetRange(LOCATION_HAND,0)
e1:SetCountLimit(1)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
...@@ -6,6 +6,7 @@ function c88264978.initial_effect(c) ...@@ -6,6 +6,7 @@ function c88264978.initial_effect(c)
e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,88264978)
e1:SetCondition(c88264978.hspcon) e1:SetCondition(c88264978.hspcon)
e1:SetOperation(c88264978.hspop) e1:SetOperation(c88264978.hspop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -14,7 +15,7 @@ function c88264978.initial_effect(c) ...@@ -14,7 +15,7 @@ function c88264978.initial_effect(c)
e2:SetDescription(aux.Stringid(88264978,0)) e2:SetDescription(aux.Stringid(88264978,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1) e2:SetCountLimit(1,88264979)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetTarget(c88264978.sptg) e2:SetTarget(c88264978.sptg)
e2:SetOperation(c88264978.spop) e2:SetOperation(c88264978.spop)
......
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