Commit 83e006c3 authored by TanakaKotoha's avatar TanakaKotoha

iNode

parent a9d11cf8
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
local m=26818000 local m=26818000
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
aux.AddCodeList(c,26818000)
--indestructable --indestructable
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE) e0:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
local m=26818001 local m=26818001
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
aux.AddCodeList(c,26818001)
--indestructable --indestructable
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE) e0:SetType(EFFECT_TYPE_SINGLE)
...@@ -72,7 +73,7 @@ function cm.indcon(e) ...@@ -72,7 +73,7 @@ function cm.indcon(e)
end end
function cm.atkcon(e,tp,eg,ep,ev,re,r,rp) function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
return Duel.IsAbleToEnterBP() and Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.IsAbleToEnterBP() and Duel.GetTurnPlayer()==tp
end end
function cm.costfilter(c) function cm.costfilter(c)
return aux.IsCodeListed(c,26818001) and c:IsType(TYPE_MONSTER) and (c:IsControler(tp) or c:IsFaceup()) return aux.IsCodeListed(c,26818001) and c:IsType(TYPE_MONSTER) and (c:IsControler(tp) or c:IsFaceup())
...@@ -99,7 +100,7 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -99,7 +100,7 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.askcon(e,tp,eg,ep,ev,re,r,rp) function cm.askcon(e,tp,eg,ep,ev,re,r,rp)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
return Duel.GetTurnPlayer()==1-tp and Duel.GetCurrentPhase()==PHASE_MAIN1 and Duel.IsAbleToEnterBP() return Duel.IsAbleToEnterBP() and Duel.GetTurnPlayer()==1-tp
end end
function cm.askop(e,tp,eg,ep,ev,re,r,rp) function cm.askop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
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