Commit e24644c9 authored by TanakaKotoha's avatar TanakaKotoha

tnndx

parent 701db0d4
No preview for this file type
...@@ -31,19 +31,6 @@ function cm.IsSliverScene(c) ...@@ -31,19 +31,6 @@ function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999))
end end
function cm.spcost(e,c,tp)
return Duel.GetActivityCount(tp,ACTIVITY_BATTLE_PHASE)==0
end
function cm.spcop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_BP)
e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function cm.spfilter(c) function cm.spfilter(c)
return cm.IsSliverScene(c) and c:IsType(TYPE_MONSTER) return cm.IsSliverScene(c) and c:IsType(TYPE_MONSTER)
end end
......
...@@ -22,7 +22,7 @@ function cm.initial_effect(c) ...@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,m+900) e2:SetCountLimit(1,m+900)
e2:SetCondition(cm.con) e2:SetCondition(cm.con)
e2:SetCost(cm.cost) e2:SetCost(Amana.SliverCost)
e2:SetTarget(cm.tgtg) e2:SetTarget(cm.tgtg)
e2:SetOperation(cm.tgop) e2:SetOperation(cm.tgop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -42,16 +42,6 @@ end ...@@ -42,16 +42,6 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_BATTLE_PHASE)==0 end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_BP)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(1-tp,3) end if chk==0 then return Duel.IsPlayerCanDiscardDeck(1-tp,3) end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,1-tp,3) Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,1-tp,3)
......
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