Commit fd806940 authored by Tachibana's avatar Tachibana 🐟

pic

parent 69974bf5
Pipeline #26434 passed with stages
in 23 minutes and 49 seconds
...@@ -20,16 +20,16 @@ function cm.initial_effect(c) ...@@ -20,16 +20,16 @@ function cm.initial_effect(c)
e2:SetOperation(cm.sprop) e2:SetOperation(cm.sprop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--special summon --special summon
local e3=Effect.CreateEffect(c) --local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,0)) --e3:SetDescription(aux.Stringid(m,0))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) --e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) --e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) --e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetProperty(EFFECT_FLAG_DELAY) --e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCondition(cm.spcon) --e3:SetCondition(cm.spcon)
e3:SetTarget(cm.sptg) --e3:SetTarget(cm.sptg)
e3:SetOperation(cm.spop) --e3:SetOperation(cm.spop)
c:RegisterEffect(e3) --c:RegisterEffect(e3)
--immune --immune
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE) e4:SetType(EFFECT_TYPE_SINGLE)
...@@ -115,7 +115,7 @@ end ...@@ -115,7 +115,7 @@ end
--------------------------------------------------------------- ---------------------------------------------------------------
function cm.negcon(e,tp,eg,ep,ev,re,r,rp) function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and ep==1-tp and re:GetActivateLocation()==LOCATION_GRAVE and Duel.IsChainNegatable(ev) return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and rp==1-tp and re:GetActivateLocation()==LOCATION_GRAVE and Duel.IsChainNegatable(ev)
end end
function cm.negop(e,tp,eg,ep,ev,re,r,rp) function cm.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
......
...@@ -66,7 +66,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT) e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_REDIRECT) e1:SetReset(RESET_EVENT+RESETS_REDIRECT)
e1:SetValue(LOCATION_EXTRA) e1:SetValue(LOCATION_DECK)
tc:RegisterEffect(e1,true) tc:RegisterEffect(e1,true)
end end
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