Commit 3cceaf8a authored by Tachibana's avatar Tachibana

eme

parent a03ceeb1
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -14,12 +14,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -14,12 +14,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(1-tp,Duel.GetLP(1-tp)*4) Duel.SetLP(1-tp,Duel.GetLP(1-tp)*4)
local t2=Duel.IsPlayerCanDraw(tp) local t2=Duel.IsPlayerCanDraw(tp)
local op=0 local op=0
local m1={} local m={}
local n={} local n={}
local ct=1 local ct=1
m1[ct]=aux.Stringid(m,0) n[ct]=1 ct=ct+1 m[ct]=aux.Stringid(m,0) n[ct]=1 ct=ct+1
if t2 then m1[ct]=aux.Stringid(m,1) n[ct]=2 ct=ct+1 end if t2 then m[ct]=aux.Stringid(m,1) n[ct]=2 ct=ct+1 end
local sp=Duel.SelectOption(tp,table.unpack(m1)) local sp=Duel.SelectOption(1-tp,table.unpack(m))
op=n[sp+1] op=n[sp+1]
Duel.BreakEffect() Duel.BreakEffect()
if op==1 then if op==1 then
...@@ -31,7 +31,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetTargetRange(0,1) e1:SetTargetRange(0,1)
e1:SetValue(cm.damval) e1:SetValue(cm.damval)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
elseif op==2 then else op==2 then
Duel.Draw(tp,3,REASON_EFFECT) Duel.Draw(tp,3,REASON_EFFECT)
end end
end end
......
...@@ -69,7 +69,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,7 +69,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsLocation(LOCATION_HAND+LOCATION_GRAVE) if chk==0 then return c:IsLocation(LOCATION_HAND+LOCATION_GRAVE)
and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_SZONE,POS_FACEUP,false)
c:CreateEffectRelation(e) c:CreateEffectRelation(e)
end end
function cm.mtop(e,tp,eg,ep,ev,re,r,rp) function cm.mtop(e,tp,eg,ep,ev,re,r,rp)
......
--无限魔力宝石 --无限魔力宝石
function c9300002.initial_effect(c) function c9300002.initial_effect(c)
aux.AddCodeList(c,9300002)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
......
...@@ -3,11 +3,11 @@ function c9310002.initial_effect(c) ...@@ -3,11 +3,11 @@ function c9310002.initial_effect(c)
--special summon --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,9310002+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,9310002+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c9310002.spcon) e1:SetCondition(c9310002.sprcon)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--nontuner --nontuner
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -24,7 +24,7 @@ function c9310002.initial_effect(c) ...@@ -24,7 +24,7 @@ function c9310002.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_PLAYER_TARGET) e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(EVENT_BE_MATERIAL) e3:SetCode(EVENT_BE_MATERIAL)
e3:SetCountLimit(2,9310002) e3:SetCountLimit(2,9311002)
e3:SetCondition(c9310002.drcon) e3:SetCondition(c9310002.drcon)
e3:SetTarget(c9310002.thtg) e3:SetTarget(c9310002.thtg)
e3:SetOperation(c9310002.thop) e3:SetOperation(c9310002.thop)
...@@ -32,11 +32,14 @@ function c9310002.initial_effect(c) ...@@ -32,11 +32,14 @@ function c9310002.initial_effect(c)
end end
c9310002.setname="Devildiocese" c9310002.setname="Devildiocese"
function c9310002.cfilter(c) function c9310002.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_TUNER) and aux.AtkEqualsDef(c) return c:IsFacedown() or not (c:IsType(TYPE_TUNER) and aux.AtkEqualsDef(c))
end end
function c9310002.spcon(e,tp,eg,ep,ev,re,r,rp) function c9310002.sprcon(e,c)
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0) if c==nil then return true end
return #g>0 and #g==Duel.GetMatchingGroupCount(c9310002.cfilter,tp,LOCATION_MZONE,0,1,nil) local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0
and not Duel.IsExistingMatchingCard(c9310002.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c9310002.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c9310002.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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