Commit 5672ac76 authored by VanillaSalt's avatar VanillaSalt

update

parent b68df2a6
......@@ -2,13 +2,12 @@
function c21377582.initial_effect(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(21377582,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c21377582.otcon)
e1:SetOperation(c21377582.otop)
e1:SetValue(SUMMON_TYPE_ADVANCE)
e1:SetCode(EFFECT_ADD_EXTRA_TRIBUTE)
e1:SetTargetRange(LOCATION_SZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_CONTINUOUS))
e1:SetValue(POS_FACEUP_ATTACK)
c:RegisterEffect(e1)
--tribute check
local e2=Effect.CreateEffect(c)
......@@ -41,38 +40,6 @@ function c21377582.initial_effect(c)
e4:SetOperation(c21377582.desop)
c:RegisterEffect(e4)
end
function c21377582.otfilter(c)
return c:IsType(TYPE_CONTINUOUS) and c:IsReleasable()
end
function c21377582.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c21377582.otfilter,tp,LOCATION_SZONE,0,nil)
return c:GetLevel()>6 and minc<=2
and (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and mg:GetCount()>=2
or Duel.CheckTribute(c,1) and mg:GetCount()>=1)
or c:GetLevel()>4 and c:GetLevel()<=6 and minc<=1
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and mg:GetCount()>=1
end
function c21377582.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c21377582.otfilter,tp,LOCATION_SZONE,0,nil)
local b1=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and mg:GetCount()>=2
local b2=Duel.CheckTribute(c,1)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=mg:Select(tp,1,1,nil)
if c:GetLevel()>6 then
local g2=nil
if b1 and (not b2 or Duel.SelectYesNo(tp,aux.Stringid(21377582,1))) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
g2=mg:Select(tp,1,1,g:GetFirst())
else
g2=Duel.SelectTribute(tp,c,1,1)
end
g:Merge(g2)
end
c:SetMaterial(g)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end
function c21377582.valcheck(e,c)
local g=c:GetMaterial()
local typ=0
......
......@@ -2,13 +2,12 @@
function c22499034.initial_effect(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22499034,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c22499034.otcon)
e1:SetOperation(c22499034.otop)
e1:SetValue(SUMMON_TYPE_ADVANCE)
e1:SetCode(EFFECT_ADD_EXTRA_TRIBUTE)
e1:SetTargetRange(LOCATION_SZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_CONTINUOUS))
e1:SetValue(POS_FACEUP_ATTACK)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c)
......@@ -23,21 +22,6 @@ function c22499034.initial_effect(c)
e2:SetOperation(c22499034.thop)
c:RegisterEffect(e2)
end
function c22499034.otfilter(c)
return c:IsType(TYPE_CONTINUOUS) and c:IsReleasable()
end
function c22499034.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
return c:GetLevel()>4 and minc<=1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c22499034.otfilter,tp,LOCATION_SZONE,0,1,nil)
end
function c22499034.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=Duel.SelectMatchingCard(tp,c22499034.otfilter,tp,LOCATION_SZONE,0,1,1,nil)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end
function c22499034.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and rp~=tp
end
......
......@@ -2,13 +2,12 @@
function c58984738.initial_effect(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(58984738,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c58984738.otcon)
e1:SetOperation(c58984738.otop)
e1:SetValue(SUMMON_TYPE_ADVANCE)
e1:SetCode(EFFECT_ADD_EXTRA_TRIBUTE)
e1:SetTargetRange(LOCATION_SZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_CONTINUOUS))
e1:SetValue(POS_FACEUP_ATTACK)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c)
......@@ -23,21 +22,6 @@ function c58984738.initial_effect(c)
e2:SetOperation(c58984738.thop)
c:RegisterEffect(e2)
end
function c58984738.otfilter(c)
return c:IsType(TYPE_CONTINUOUS) and c:IsReleasable()
end
function c58984738.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
return c:GetLevel()>4 and minc<=1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c58984738.otfilter,tp,LOCATION_SZONE,0,1,nil)
end
function c58984738.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=Duel.SelectMatchingCard(tp,c58984738.otfilter,tp,LOCATION_SZONE,0,1,1,nil)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end
function c58984738.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and rp~=tp
end
......
......@@ -2,13 +2,12 @@
function c82697428.initial_effect(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(82697428,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c82697428.otcon)
e1:SetOperation(c82697428.otop)
e1:SetValue(SUMMON_TYPE_ADVANCE)
e1:SetCode(EFFECT_ADD_EXTRA_TRIBUTE)
e1:SetTargetRange(LOCATION_SZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_TRAP))
e1:SetValue(POS_FACEUP_ATTACK)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
......@@ -25,38 +24,6 @@ end
function c82697428.counterfilter(c)
return c:IsSetCard(0x8)
end
function c82697428.otfilter(c)
return c:IsType(TYPE_TRAP) and c:IsReleasable()
end
function c82697428.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c82697428.otfilter,tp,LOCATION_SZONE,0,nil)
return c:GetLevel()>6 and minc<=2
and (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and mg:GetCount()>=2
or Duel.CheckTribute(c,1) and mg:GetCount()>=1)
or c:GetLevel()>4 and c:GetLevel()<=6 and minc<=1
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and mg:GetCount()>=1
end
function c82697428.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c82697428.otfilter,tp,LOCATION_SZONE,0,nil)
local b1=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and mg:GetCount()>=2
local b2=Duel.CheckTribute(c,1)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=mg:Select(tp,1,1,nil)
if c:GetLevel()>6 then
local g2=nil
if b1 and (not b2 or Duel.SelectYesNo(tp,aux.Stringid(82697428,2))) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
g2=mg:Select(tp,1,1,g:GetFirst())
else
g2=Duel.SelectTribute(tp,c,1,1)
end
g:Merge(g2)
end
c:SetMaterial(g)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end
function c82697428.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(82697428,tp,ACTIVITY_SPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -2,13 +2,12 @@
function c94982447.initial_effect(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(94982447,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c94982447.otcon)
e1:SetOperation(c94982447.otop)
e1:SetValue(SUMMON_TYPE_ADVANCE)
e1:SetCode(EFFECT_ADD_EXTRA_TRIBUTE)
e1:SetTargetRange(LOCATION_SZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_CONTINUOUS))
e1:SetValue(POS_FACEUP_ATTACK)
c:RegisterEffect(e1)
--spsummon
local e2=Effect.CreateEffect(c)
......@@ -36,21 +35,6 @@ function c94982447.initial_effect(c)
e4:SetValue(aux.tgoval)
c:RegisterEffect(e4)
end
function c94982447.otfilter(c)
return c:IsType(TYPE_CONTINUOUS) and c:IsReleasable()
end
function c94982447.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
return c:GetLevel()>4 and minc<=1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c94982447.otfilter,tp,LOCATION_SZONE,0,1,nil)
end
function c94982447.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=Duel.SelectMatchingCard(tp,c94982447.otfilter,tp,LOCATION_SZONE,0,1,1,nil)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end
function c94982447.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousPosition(POS_FACEUP) and
......
......@@ -2,13 +2,12 @@
function c95004025.initial_effect(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(95004025,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c95004025.otcon)
e1:SetOperation(c95004025.otop)
e1:SetValue(SUMMON_TYPE_ADVANCE)
e1:SetCode(EFFECT_ADD_EXTRA_TRIBUTE)
e1:SetTargetRange(LOCATION_SZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsType,TYPE_CONTINUOUS))
e1:SetValue(POS_FACEUP_ATTACK)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c)
......@@ -23,21 +22,6 @@ function c95004025.initial_effect(c)
e2:SetOperation(c95004025.thop)
c:RegisterEffect(e2)
end
function c95004025.otfilter(c)
return c:IsType(TYPE_CONTINUOUS) and c:IsReleasable()
end
function c95004025.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
return c:GetLevel()>4 and minc<=1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c95004025.otfilter,tp,LOCATION_SZONE,0,1,nil)
end
function c95004025.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=Duel.SelectMatchingCard(tp,c95004025.otfilter,tp,LOCATION_SZONE,0,1,1,nil)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end
function c95004025.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and rp~=tp
end
......
......@@ -420,6 +420,7 @@ EFFECT_EXTRA_RELEASE =153 --必須使用的代替解放(灵魂交错)
EFFECT_TRIBUTE_LIMIT =154 --祭品限制
EFFECT_EXTRA_RELEASE_SUM =155 --代替召唤解放(帝王的烈旋)
EFFECT_TRIPLE_TRIBUTE =156 --N/A
EFFECT_ADD_EXTRA_TRIBUTE =157 --
EFFECT_PUBLIC =160 --公开手牌
EFFECT_COUNTER_PERMIT =0x10000--允许放置指示物类型
EFFECT_COUNTER_LIMIT =0x20000--允许放置指示物数量
......
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