Commit b384dd9f authored by mercury233's avatar mercury233

update

parent 407a5f85
#created by ... #created by ...
#main #main
100274203
100273002
100273004
100273010
100273011
100273001 100273001
100273006 100273006
100273012 100273012
...@@ -38,12 +43,18 @@ ...@@ -38,12 +43,18 @@
100270217 100270217
100270218 100270218
#extra #extra
100274201
100274202
100273007
100273008
100273009
100270008 100270008
100270024 100270024
101104204 101104204
101104205 101104205
100270203 100270203
100270205 100270205
!side
100270210 100270210
100270211 100270211
100270212 100270212
...@@ -51,7 +62,6 @@ ...@@ -51,7 +62,6 @@
100270214 100270214
100270215 100270215
100270216 100270216
!side
100340001 100340001
100340202 100340202
100340003 100340003
......
#The first line is used for comment #The first line is used for comment
!victory 0x21 「混沌虚数No.1000 梦幻虚光神 原数天灵·原数天地」效果胜利
!setname 0x7e 异热同心 !setname 0x7e 异热同心
!setname 0x107e 异热同心武器 !setname 0x107e 异热同心武器
!setname 0x207e 异热同心从者 !setname 0x207e 异热同心从者
......
pics/100273001.jpg

77.3 KB | W: | H:

pics/100273001.jpg

77.6 KB | W: | H:

pics/100273001.jpg
pics/100273001.jpg
pics/100273001.jpg
pics/100273001.jpg
  • 2-up
  • Swipe
  • Onion skin
pics/100273006.jpg

81.2 KB | W: | H:

pics/100273006.jpg

86.7 KB | W: | H:

pics/100273006.jpg
pics/100273006.jpg
pics/100273006.jpg
pics/100273006.jpg
  • 2-up
  • Swipe
  • Onion skin
pics/100273012.jpg

79.1 KB | W: | H:

pics/100273012.jpg

81.5 KB | W: | H:

pics/100273012.jpg
pics/100273012.jpg
pics/100273012.jpg
pics/100273012.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -77,4 +77,4 @@ function c100200191.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,4 +77,4 @@ function c100200191.spop2(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(LOCATION_REMOVED) e2:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e2,true) c:RegisterEffect(e2,true)
end end
end end
...@@ -77,4 +77,4 @@ function c100270009.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,4 +77,4 @@ function c100270009.spop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
end end
end end
...@@ -24,7 +24,7 @@ function c100270043.initial_effect(c) ...@@ -24,7 +24,7 @@ function c100270043.initial_effect(c)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetTarget(c100270043.atktg) e2:SetTarget(c100270043.atktg)
e2:SetOperation(c100270043.atkop) e2:SetOperation(c100270043.atkop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c100270043.releasefilter(c) function c100270043.releasefilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsReleasableByEffect() return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsReleasableByEffect()
......
...@@ -13,7 +13,7 @@ function c100270044.initial_effect(c) ...@@ -13,7 +13,7 @@ function c100270044.initial_effect(c)
e1:SetCost(c100270044.spcost) e1:SetCost(c100270044.spcost)
e1:SetTarget(c100270044.sptg) e1:SetTarget(c100270044.sptg)
e1:SetOperation(c100270044.spop) e1:SetOperation(c100270044.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--To hand --To hand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND)
...@@ -25,7 +25,7 @@ function c100270044.initial_effect(c) ...@@ -25,7 +25,7 @@ function c100270044.initial_effect(c)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetTarget(c100270044.thtg) e2:SetTarget(c100270044.thtg)
e2:SetOperation(c100270044.thop) e2:SetOperation(c100270044.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c100270044.spcon(e,tp,eg,ep,ev,re,r,rp) function c100270044.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
......
...@@ -10,7 +10,7 @@ function c100270045.initial_effect(c) ...@@ -10,7 +10,7 @@ function c100270045.initial_effect(c)
e1:SetCountLimit(1,100270045+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,100270045+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c100270045.target) e1:SetTarget(c100270045.target)
e1:SetOperation(c100270045.activate) e1:SetOperation(c100270045.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c100270045.filter(c) function c100270045.filter(c)
return c:IsAbleToHand() return c:IsAbleToHand()
......
...@@ -15,7 +15,7 @@ function c100270046.initial_effect(c) ...@@ -15,7 +15,7 @@ function c100270046.initial_effect(c)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
e2:SetTarget(c100270046.extg) e2:SetTarget(c100270046.extg)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--draw --draw
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DRAW) e3:SetCategory(CATEGORY_DRAW)
...@@ -27,7 +27,7 @@ function c100270046.initial_effect(c) ...@@ -27,7 +27,7 @@ function c100270046.initial_effect(c)
e3:SetCondition(c100270046.drcon) e3:SetCondition(c100270046.drcon)
e3:SetTarget(c100270046.drtg) e3:SetTarget(c100270046.drtg)
e3:SetOperation(c100270046.drop) e3:SetOperation(c100270046.drop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c100270046.extg(e,c) function c100270046.extg(e,c)
return c:IsSetCard(0x25c) or (c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_DRAGON) and c:IsLevel(7)) return c:IsSetCard(0x25c) or (c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_DRAGON) and c:IsLevel(7))
...@@ -36,7 +36,7 @@ function c100270046.cfilter(c,tp) ...@@ -36,7 +36,7 @@ function c100270046.cfilter(c,tp)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsRace(RACE_DRAGON) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(7) and c:IsPreviousPosition(POS_FACEUP) return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsRace(RACE_DRAGON) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(7) and c:IsPreviousPosition(POS_FACEUP)
end end
function c100270046.drcon(e,tp,eg,ep,ev,re,r,rp) function c100270046.drcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c100270046.cfilter,1,nil,tp) and Duel.GetTurnPlayer()==tp return eg:IsExists(c100270046.cfilter,1,nil,tp) and Duel.GetTurnPlayer()==tp
end end
function c100270046.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c100270046.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
...@@ -19,7 +19,7 @@ function c100270049.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -19,7 +19,7 @@ function c100270049.condition(e,tp,eg,ep,ev,re,r,rp)
return ep==1-tp and Duel.IsChainDisablable(ev) return ep==1-tp and Duel.IsChainDisablable(ev)
end end
function c100270049.cfilter(c) function c100270049.cfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(7) and c:IsRace(RACE_DRAGON) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(7) and c:IsRace(RACE_DRAGON)
and c:IsAbleToHandAsCost() and c:IsAbleToHandAsCost()
end end
function c100270049.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c100270049.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -7,7 +7,6 @@ function c100270204.initial_effect(c) ...@@ -7,7 +7,6 @@ function c100270204.initial_effect(c)
e1:SetDescription(aux.Stringid(100270204,0)) e1:SetDescription(aux.Stringid(100270204,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCountLimit(1,100270204)
e1:SetTarget(c100270204.sumtg) e1:SetTarget(c100270204.sumtg)
e1:SetOperation(c100270204.sumop) e1:SetOperation(c100270204.sumop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -18,7 +17,7 @@ function c100270204.initial_effect(c) ...@@ -18,7 +17,7 @@ function c100270204.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,100270205) e2:SetCountLimit(1,100270204)
e2:SetTarget(c100270204.sptg) e2:SetTarget(c100270204.sptg)
e2:SetOperation(c100270204.spop) e2:SetOperation(c100270204.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
......
...@@ -47,7 +47,7 @@ function c100270205.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c100270205.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT) Duel.Draw(p,d,REASON_EFFECT)
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
tg=g:SelectSubGroup(tp,c100270205.tgfilter,false,2,2,tp) tg=g:SelectSubGroup(tp,c100270205.tgfilter,false,2,2,tp)
if tg then if tg then
if Duel.SendtoGrave(tg,REASON_EFFECT)==0 then if Duel.SendtoGrave(tg,REASON_EFFECT)==0 then
......
...@@ -17,7 +17,7 @@ function c100272002.initial_effect(c) ...@@ -17,7 +17,7 @@ function c100272002.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c100272002.actfilter(c) function c100272002.actfilter(c)
return c:IsFaceup() and c:IsOriginalCodeRule(10000030) return c:IsFaceup() and c:IsOriginalCodeRule(10000000)
end end
function c100272002.condition(e,tp,eg,ep,ev,re,r,rp) function c100272002.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c100272002.actfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c100272002.actfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
...@@ -48,7 +48,7 @@ function c100272002.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c100272002.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(RESET_TURN_SET) e2:SetValue(RESET_TURN_SET)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
if Duel.Destroy(tc,REASON_EFFECT)~=0 then if Duel.Destroy(tc,REASON_EFFECT)~=0 then
local e3=Effect.CreateEffect(e:GetHandler()) local e3=Effect.CreateEffect(e:GetHandler())
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_DISABLE) e3:SetCode(EFFECT_DISABLE)
...@@ -86,4 +86,4 @@ function c100272002.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -86,4 +86,4 @@ function c100272002.discon(e,tp,eg,ep,ev,re,r,rp)
end end
function c100272002.disop(e,tp,eg,ep,ev,re,r,rp) function c100272002.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
end end
...@@ -18,7 +18,7 @@ function c100272005.initial_effect(c) ...@@ -18,7 +18,7 @@ function c100272005.initial_effect(c)
e2:SetDescription(aux.Stringid(100272005,1)) e2:SetDescription(aux.Stringid(100272005,1))
e2:SetCategory(CATEGORY_EQUIP) e2:SetCategory(CATEGORY_EQUIP)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_REMOVE) e2:SetCode(EVENT_REMOVE)
e2:SetCountLimit(1,100272005) e2:SetCountLimit(1,100272005)
e2:SetTarget(c100272005.eqtg) e2:SetTarget(c100272005.eqtg)
...@@ -55,7 +55,7 @@ function c100272005.filter(c) ...@@ -55,7 +55,7 @@ function c100272005.filter(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsAbleToChangeControler() return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsAbleToChangeControler()
end end
function c100272005.eqfilter(c) function c100272005.eqfilter(c)
return c:IsFaceup() and c:IsSetCard(0x110) and c:IsType(TYPE_MONSTER) and not c:IsSummonableCard() return c:IsFaceup() and c:IsSetCard(0x110) and not c:IsSummonableCard()
end end
function c100272005.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c100272005.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c100272005.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c100272005.filter(chkc) end
......
--小天使テルス
--Telus the Little Angel
--LUA by Kohana Sonogami
function c100273002.initial_effect(c)
--Special Summon 1 Token
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(100273002,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCountLimit(1,100273002)
e1:SetCondition(c100273002.tkcon1)
e1:SetTarget(c100273002.tktg1)
e1:SetOperation(c100273002.tkop1)
c:RegisterEffect(e1)
--Special Summon 2 Token
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100273002,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,100273002+100)
e2:SetCost(c100273002.tkcost2)
e2:SetCondition(c100273002.tkcon2)
e2:SetTarget(c100273002.tktg2)
e2:SetOperation(c100273002.tkop2)
c:RegisterEffect(e2)
end
function c100273002.tkcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_MZONE)
end
function c100273002.tktg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,100273102,0,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
function c100273002.tkop1(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if Duel.IsPlayerCanSpecialSummonMonster(tp,100273102,0,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT) then
local token=Duel.CreateToken(tp,100273102)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end
end
function c100273002.tkcsfilter(c)
return c:IsType(TYPE_SPELL) and c:IsAbleToRemoveAsCost()
end
function c100273002.tkcost2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c100273002.tkcsfilter,tp,LOCATION_HAND,0,1,c) and c:IsAbleToRemoveAsCost() end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c100273002.tkcsfilter,tp,LOCATION_HAND,0,1,1,c)
g:AddCard(c)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c100273002.ctkfilter(c)
return c:IsFaceup() and c:IsCode(100273102)
end
function c100273002.tkcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c100273002.ctkfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c100273002.tktg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>1
and Duel.IsPlayerCanSpecialSummonMonster(tp,100273102,0,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,2,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,0,0)
end
function c100273002.tkop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.IsPlayerCanSpecialSummonMonster(tp,100273102,0,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT) then
for i=1,2 do
local token=Duel.CreateToken(tp,100273102)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end
end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetTarget(c100273002.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c100273002.splimit(e,c)
return not c:IsLocation(LOCATION_HAND)
end
--レベル・レジストウォール
--Level Resist Wall
--LUA by Kohana Sonogami and mercury233
function c100273004.initial_effect(c)
--Activate/Special Summon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_DESTROYED)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,100273004+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c100273004.target)
e1:SetOperation(c100273004.activate)
c:RegisterEffect(e1)
end
function c100273004.tgfilter(c,e,tp,rp,g,ft)
local lv=c:GetLevel()
if not ((c:IsReason(REASON_BATTLE) or (rp==tp and c:IsReason(REASON_EFFECT)))
and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp
and c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and c:IsCanBeEffectTarget(e)
and lv>0) then return false end
local sg=g:Filter(Card.IsLevelBelow,nil,lv)
aux.GCheckAdditional=c100273004.gcheck(lv)
local res=sg:CheckSubGroup(c100273004.fgoal,1,ft,lv)
aux.GCheckAdditional=nil
return res
end
function c100273004.gcheck(lv)
return function(sg)
return sg:GetSum(Card.GetLevel)<=lv
end
end
function c100273004.fgoal(sg,lv)
return sg:GetSum(Card.GetLevel)==lv
end
function c100273004.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end
function c100273004.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft>1 and Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
local g=Duel.GetMatchingGroup(c100273004.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
if chkc then return eg:IsContains(chkc) and c100273004.tgfilter(chkc,e,tp,rp,g,ft) end
if chk==0 then return ft>0 and eg:IsExists(c100273004.tgfilter,1,nil,e,tp,rp,g,ft) end
local tg
if #eg==1 then
tg=eg
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local tg=eg:FilterSelect(tp,c100273004.tgfilter,1,1,nil,e,tp,rp,g,ft)
end
Duel.SetTargetCard(tg)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c100273004.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
local g=Duel.GetMatchingGroup(c100273004.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
local lv=tc:GetLevel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
aux.GCheckAdditional=c100273004.gcheck(lv)
local sg=g:SelectSubGroup(tp,c100273004.fgoal,false,1,ft,lv)
aux.GCheckAdditional=nil
if not sg then return end
local tc=sg:GetFirst()
while tc do
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_DISABLE_EFFECT)
tc:RegisterEffect(e2)
tc=sg:GetNext()
end
Duel.SpecialSummonComplete()
end
--古生代化石マシン スカルコンボイ
--Fossil Machine Skull Convoy
--Script by TheOnePharaoh
function c100273007.initial_effect(c)
--fusion summon
c:EnableReviveLimit()
aux.AddFusionProcFun2(c,c100273007.matfilter,aux.FilterBoolFunction(Card.IsLevelAbove,7),true)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c100273007.splimit)
c:RegisterEffect(e1)
--extra attack
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_EXTRA_ATTACK_MONSTER)
e2:SetValue(2)
c:RegisterEffect(e2)
--damage
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(100273007,0))
e3:SetCategory(CATEGORY_DAMAGE)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(EVENT_BATTLE_DESTROYING)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCondition(aux.bdocon)
e3:SetTarget(c100273007.damtg)
e3:SetOperation(c100273007.damop)
c:RegisterEffect(e3)
--atkdown
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_UPDATE_ATTACK)
e4:SetRange(LOCATION_MZONE)
e4:SetTargetRange(0,LOCATION_MZONE)
e4:SetValue(c100273007.atkval)
c:RegisterEffect(e4)
end
function c100273007.matfilter(c,fc)
return c:IsRace(RACE_ROCK) and c:IsLocation(LOCATION_GRAVE) and c:IsControler(fc:GetControler())
end
function c100273007.splimit(e,se,sp,st)
return se:GetHandler():IsCode(59419719) or not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
function c100273007.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(1000)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,1000)
end
function c100273007.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
function c100273007.atkval(e,c)
local val=math.max(c:GetBaseDefense(),0)
return val*-1
end
--中生代化石マシン スカルワゴン
--Fossil Machine Skull Wagon
--Script by TheOnePharaoh
function c100273008.initial_effect(c)
--fusion summon
c:EnableReviveLimit()
aux.AddFusionProcFun2(c,c100273008.matfilter1,c100273008.matfilter2,true)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c100273008.splimit)
c:RegisterEffect(e1)
--extra attack
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_EXTRA_ATTACK_MONSTER)
e2:SetValue(1)
c:RegisterEffect(e2)
--damage
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(100273008,0))
e3:SetCategory(CATEGORY_DAMAGE)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(EVENT_BATTLE_DESTROYING)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCondition(aux.bdocon)
e3:SetTarget(c100273008.damtg)
e3:SetOperation(c100273008.damop)
c:RegisterEffect(e3)
--destroy
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(100273008,1))
e4:SetCategory(CATEGORY_DESTROY)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetRange(LOCATION_GRAVE)
e4:SetCountLimit(1,100273008)
e4:SetCost(aux.bfgcost)
e4:SetTarget(c100273008.destg)
e4:SetOperation(c100273008.desop)
c:RegisterEffect(e4)
end
function c100273008.matfilter1(c,fc)
return c:IsRace(RACE_ROCK) and c:IsLocation(LOCATION_GRAVE) and c:IsControler(fc:GetControler())
end
function c100273008.matfilter2(c,fc)
return c:IsLevel(5,6)
end
function c100273008.splimit(e,se,sp,st)
return se:GetHandler():IsCode(59419719) or not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
function c100273008.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(800)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,800)
end
function c100273008.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
function c100273008.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c100273008.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c100273008.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c100273008.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c100273008.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c100273008.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
--新生代化石マシン スカルバギー
--Fossil Machine Skull Buggy
--Script by TheOnePharaoh
function c100273009.initial_effect(c)
--fusion summon
c:EnableReviveLimit()
aux.AddFusionProcFun2(c,c100273009.matfilter,aux.FilterBoolFunction(Card.IsLevelBelow,4),true)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c100273009.splimit)
c:RegisterEffect(e1)
--damage
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100273009,0))
e2:SetCategory(CATEGORY_DAMAGE)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EVENT_BATTLE_DESTROYING)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCondition(aux.bdocon)
e2:SetTarget(c100273009.damtg)
e2:SetOperation(c100273009.damop)
c:RegisterEffect(e2)
--search
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(100273009,1))
e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1,100273009)
e3:SetCost(aux.bfgcost)
e3:SetTarget(c100273009.thtg)
e3:SetOperation(c100273009.thop)
c:RegisterEffect(e3)
end
function c100273009.matfilter(c,fc)
return c:IsRace(RACE_ROCK) and c:IsLocation(LOCATION_GRAVE) and c:IsControler(fc:GetControler())
end
function c100273009.splimit(e,se,sp,st)
return se:GetHandler():IsCode(59419719) or not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
function c100273009.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(600)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,600)
end
function c100273009.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
function c100273009.thfilter(c)
return aux.IsCodeListed(c,59419719) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c100273009.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100273009.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c100273009.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c100273009.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if #g>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
--インフェルニティ・セイジ
--Infernity Sage
--Script by TheOnePharaoh
function c100273010.initial_effect(c)
--Discard
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(100273010,0))
e1:SetCategory(CATEGORY_HANDES)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,100273010)
e1:SetTarget(c100273010.hdtg)
e1:SetOperation(c100273010.hdop)
c:RegisterEffect(e1)
--To GY
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100273010,1))
e2:SetCategory(CATEGORY_DRAW+CATEGORY_TODECK)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetCountLimit(1,100273110)
e2:SetCondition(c100273010.tgcon)
e2:SetTarget(c100273010.tgtg)
e2:SetOperation(c100273010.tgop)
c:RegisterEffect(e2)
end
function c100273010.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 end
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,g:GetCount())
end
function c100273010.hdop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
if g:GetCount()==0 then return end
Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD)
end
function c100273010.tgcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0
end
function c100273010.tgfilter(c)
return c:IsSetCard(0xb) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c100273010.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100273010.tgfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end
function c100273010.tgop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c100273010.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
end
end
--インフェルニティ・ポーン
--Infernity Pawn
--LUA by Kohana Sonogami
function c100273011.initial_effect(c)
--Optional
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(100273011,0))
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_GRAVE)
e1:SetCode(EVENT_PREDRAW)
e1:SetCost(aux.bfgcost)
e1:SetCondition(c100273011.opcon)
e1:SetTarget(c100273011.optg)
e1:SetOperation(c100273011.opop)
c:RegisterEffect(e1)
end
function c100273011.opcon(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer() and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0
and Duel.GetDrawCount(tp)>0 and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0
end
function c100273011.ttopfilter(c)
return c:IsSetCard(0xb)
end
function c100273011.ssetfilter(c)
return c:IsSetCard(0xc5) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
end
function c100273011.optg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(c100273011.ttopfilter,tp,LOCATION_DECK,0,1,nil) and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>1
local b2=Duel.IsExistingMatchingCard(c100273011.ssetfilter,tp,LOCATION_DECK,0,1,nil)
if chk==0 then return b1 or b2 end
local dt=Duel.GetDrawCount(tp)
if dt~=0 then
aux.DrawReplaceCount=0
aux.DrawReplaceMax=dt
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_DRAW_COUNT)
e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_DRAW)
e1:SetValue(0)
Duel.RegisterEffect(e1,tp)
end
local off=1
local ops,opval={},{}
if b1 then
ops[off]=aux.Stringid(100273011,1)
opval[off]=0
off=off+1
end
if b2 then
ops[off]=aux.Stringid(100273011,2)
opval[off]=1
off=off+1
end
local op=Duel.SelectOption(tp,table.unpack(ops))+1
local sel=opval[op]
e:SetLabel(sel)
end
function c100273011.opop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
aux.DrawReplaceCount=aux.DrawReplaceCount+1
if aux.DrawReplaceCount>aux.DrawReplaceMax then return end
local sel=e:GetLabel()
if sel==0 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(100273011,3))
local g=Duel.SelectMatchingCard(tp,c100273011.ttopfilter,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
if tc then
Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0)
Duel.ConfirmDecktop(tp,1)
end
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,c100273011.ssetfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SSet(tp,g:GetFirst())
end
end
end
...@@ -28,7 +28,7 @@ function c100273012.spfilter(c,e,tp) ...@@ -28,7 +28,7 @@ function c100273012.spfilter(c,e,tp)
end end
function c100273012.activate(e,tp,eg,ep,ev,re,r,rp) function c100273012.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
if g:GetCount()>0 and Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD)~=0 if g:GetCount()>0 and Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD)~=0
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c100273012.spfilter),tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c100273012.spfilter),tp,LOCATION_GRAVE,0,1,nil,e,tp)
and Duel.SelectYesNo(tp,aux.Stringid(100273012,0)) then and Duel.SelectYesNo(tp,aux.Stringid(100273012,0)) then
Duel.BreakEffect() Duel.BreakEffect()
......
--CNo.1000 夢幻虚神ヌメロニアス
--Number C1000: Numeronius
--Anime Retrain Version by Kohana Sonogami
function c100274201.initial_effect(c)
--Xyz Summon
aux.AddXyzProcedure(c,nil,12,5)
c:EnableReviveLimit()
--Destroy 1 other monster
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(100274201,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetCost(c100274201.descost1)
e1:SetTarget(c100274201.destg1)
e1:SetOperation(c100274201.desop1)
c:RegisterEffect(e1)
--Destroy all/Special Summon
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY)
e2:SetDescription(aux.Stringid(100274201,1))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_PHASE+PHASE_BATTLE)
e2:SetCountLimit(1)
e2:SetRange(LOCATION_MZONE)
e2:SetTarget(c100274201.destg2)
e2:SetOperation(c100274201.desop2)
c:RegisterEffect(e2)
--Xyz Summon
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(100274201,2))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_TO_GRAVE)
e3:SetCondition(c100274201.spcon)
e3:SetTarget(c100274201.sptg)
e3:SetOperation(c100274201.spop)
c:RegisterEffect(e3)
end
c100274201.xyz_number=1000
function c100274201.descost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c100274201.destg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler()) end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c100274201.desop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,e:GetHandler())
if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT)
end
end
function c100274201.destg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local sg=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,sg:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_GRAVE)
end
function c100274201.spfilter2(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end
function c100274201.desop2(e,tp,eg,ep,ev,re,r,rp)
local dg=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,LOCATION_MZONE,aux.ExceptThisCard(e))
if Duel.Destroy(dg,REASON_EFFECT)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
local g=Duel.GetMatchingGroup(c100274201.spfilter2,tp,0,LOCATION_GRAVE,nil,e,tp)
if #g>0 and Duel.SelectYesNo(tp,aux.Stringid(100274201,3)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,1,nil)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
end
end
end
function c100274201.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetOverlayGroup() and c:IsPreviousLocation(LOCATION_MZONE)
and rp==1-tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp
end
function c100274201.spfilter(c,e,tp)
return c:IsCode(100274202) and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end
function c100274201.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100274201.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp)
and e:GetHandler():IsCanOverlay() end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end
function c100274201.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c100274201.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
local tc=g:GetFirst()
if tc then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.Overlay(tc,Group.FromCards(c))
end
end
end
--CiNo.1000 夢幻虚光神ヌメロニアス・ヌメロニア
--Number Ci1000: Numeronius Numeronia
--Anime Retrain Version by Kohana Sonogami
function c100274202.initial_effect(c)
--Xyz Summon
aux.AddXyzProcedure(c,nil,13,5)
c:EnableReviveLimit()
--Gains the following effects
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c100274202.condition)
e1:SetOperation(c100274202.operation)
c:RegisterEffect(e1)
--Negate Attack/Gains LP
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100274202,0))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_BE_BATTLE_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c100274202.nacon)
e2:SetCost(c100274202.nacost)
e2:SetOperation(c100274202.naop)
c:RegisterEffect(e2)
end
c100274202.xyz_number=1000
function c100274202.condition(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler():IsCode(100274201)
end
function c100274202.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--100,000 ATK
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c100274202.atkcon)
e1:SetValue(100000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e2)
--Must attack this card
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_MUST_ATTACK)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetCondition(c100274202.effcon)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_MUST_ATTACK_MONSTER)
e3:SetValue(c100274202.atklimit)
c:RegisterEffect(e3)
--Win Condition
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EVENT_PHASE+PHASE_END)
e4:SetCondition(c100274202.wincon)
e4:SetOperation(c100274202.winop)
e4:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e4)
end
function c100274202.atkcon(e)
return Duel.GetTurnPlayer()==1-e:GetHandlerPlayer()
end
function c100274202.effcon(e)
return Duel.GetTurnCount()>=e:GetHandler():GetTurnID()+1
end
function c100274202.atklimit(e,c)
return c==e:GetHandler()
end
function c100274202.wincon(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer() and e:GetHandler():GetBattledGroupCount()==0 and c100274202.effcon(e)
end
function c100274202.winop(e,tp,eg,ep,ev,re,r,rp)
local WIN_REASON_NUMERONIUS_NUMERONIA=0x21
Duel.Win(tp,WIN_REASON_NUMERONIUS_NUMERONIA)
end
function c100274202.nacon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==1-tp
end
function c100274202.nacost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c100274202.naop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateAttack() then
Duel.Recover(tp,Duel.GetAttacker():GetAttack(),REASON_EFFECT)
end
end
--ヌメロン・カオス・リチューアル
--Numeron Chaos Ritual
--Anime Retrain Version by Kohana
function c100274203.initial_effect(c)
--Activate/Special Summon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c100274203.xyzcon)
e1:SetTarget(c100274203.xyztg)
e1:SetOperation(c100274203.xyzop)
c:RegisterEffect(e1)
if not c100274203.global_check then
c100274203.global_check=true
local ge1=Effect.GlobalEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_DESTROYED)
ge1:SetOperation(c100274203.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function c100274203.cfilter(c)
return c:GetPreviousLocation()&LOCATION_ONFIELD>0 and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousCodeOnField()==79747096
and c:IsReason(REASON_EFFECT) and c:GetReasonEffect():IsActiveType(TYPE_MONSTER)
end
function c100274203.checkop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(c100274203.cfilter,nil)
for tc in aux.Next(g) do
Duel.RegisterFlagEffect(tc:GetPreviousControler(),100274203,RESET_PHASE+PHASE_END,0,1)
end
end
function c100274203.xyzcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,100274203)>0
end
function c100274203.xyzfilter1(c)
return c:IsType(TYPE_XYZ) and c:IsSetCard(0x114a) and c:IsCanOverlay()
end
function c100274203.xyzfilter2(c)
return c:IsCode(41418852) and c:IsCanOverlay()
end
function c100274203.xyzfilter3(c,e,tp)
return c:IsCode(100274201) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end
function c100274203.xyztg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c100274203.xyzfilter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil)
and Duel.IsExistingTarget(c100274203.xyzfilter1,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,4,nil)
and Duel.IsExistingMatchingCard(c100274203.xyzfilter3,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local sg1=Duel.SelectTarget(tp,c100274203.xyzfilter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local sg2=Duel.SelectTarget(tp,c100274203.xyzfilter1,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,4,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function c100274203.mtfilter(c,e)
return c:IsRelateToEffect(e) and not c:IsImmuneToEffect(e)
end
function c100274203.xyzop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c100274203.xyzfilter3,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
local sc=sg:GetFirst()
if sc and Duel.SpecialSummonStep(sc,0,tp,tp,false,false,POS_FACEUP) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(10000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
sc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetValue(1000)
e2:SetCode(EFFECT_SET_DEFENSE_FINAL)
sc:RegisterEffect(e2)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local g=tg:Filter(c100274203.mtfilter,nil,e)
local tc=g:GetFirst()
while tc do
Duel.Overlay(sc,Group.FromCards(tc))
tc=g:GetNext()
end
end
Duel.SpecialSummonComplete()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetTargetRange(1,0)
e1:SetLabel(c100274203.getsummoncount(tp))
e1:SetTarget(c100274203.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
Duel.RegisterEffect(e2,tp)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_LEFT_SPSUMMON_COUNT)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetTargetRange(1,0)
e3:SetLabel(c100274203.getsummoncount(tp))
e3:SetValue(c100274203.countval)
e3:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e3,tp)
end
function c100274203.getsummoncount(tp)
return Duel.GetActivityCount(tp,ACTIVITY_SUMMON)+Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)
end
function c100274203.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c100274203.getsummoncount(sump)>e:GetLabel()
end
function c100274203.countval(e,re,tp)
if c100274203.getsummoncount(tp)>e:GetLabel() then return 0 else return 1 end
end
...@@ -14,7 +14,7 @@ function c100340027.initial_effect(c) ...@@ -14,7 +14,7 @@ function c100340027.initial_effect(c)
e2:SetCode(EFFECT_IMMUNE_EFFECT) e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xf)) e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x2f))
e2:SetCondition(c100340027.condition) e2:SetCondition(c100340027.condition)
e2:SetValue(c100340027.efilter) e2:SetValue(c100340027.efilter)
c:RegisterEffect(e2) c:RegisterEffect(e2)
......
...@@ -10,7 +10,7 @@ function c100340105.initial_effect(c) ...@@ -10,7 +10,7 @@ function c100340105.initial_effect(c)
e1:SetCountLimit(1,100340105) e1:SetCountLimit(1,100340105)
e1:SetTarget(c100340105.target) e1:SetTarget(c100340105.target)
e1:SetOperation(c100340105.activate) e1:SetOperation(c100340105.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--disable --disable
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DISABLE) e2:SetCategory(CATEGORY_DISABLE)
......
...@@ -24,7 +24,7 @@ end ...@@ -24,7 +24,7 @@ end
function c101104203.spcon(e,c) function c101104203.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0,nil)==0 and Duel.GetFieldGroupCount(c:GetControler(),LOCATION_ONFIELD,0)==0
end end
function c101104203.efcon(e,tp,eg,ep,ev,re,r,rp) function c101104203.efcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -82,7 +82,7 @@ function c101104204.cfilter(c) ...@@ -82,7 +82,7 @@ function c101104204.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x107e) and c:GetOriginalType()&TYPE_MONSTER~=0 return c:IsFaceup() and c:IsSetCard(0x107e) and c:GetOriginalType()&TYPE_MONSTER~=0
end end
function c101104204.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101104204.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and aux.disfilter1(chkc) end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and aux.disfilter1(chkc) end
local ct=e:GetHandler():GetEquipGroup():FilterCount(c101104204.cfilter,nil) local ct=e:GetHandler():GetEquipGroup():FilterCount(c101104204.cfilter,nil)
if chk==0 then return ct>0 and Duel.IsExistingTarget(aux.disfilter1,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return ct>0 and Duel.IsExistingTarget(aux.disfilter1,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
......
...@@ -11,7 +11,7 @@ function c101104206.initial_effect(c) ...@@ -11,7 +11,7 @@ function c101104206.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c101104206.target) e1:SetTarget(c101104206.target)
e1:SetOperation(c101104206.activate) e1:SetOperation(c101104206.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--draw --draw
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101104206,1)) e2:SetDescription(aux.Stringid(101104206,1))
...@@ -24,7 +24,7 @@ function c101104206.initial_effect(c) ...@@ -24,7 +24,7 @@ function c101104206.initial_effect(c)
e2:SetCondition(c101104206.drcon) e2:SetCondition(c101104206.drcon)
e2:SetTarget(c101104206.drtg) e2:SetTarget(c101104206.drtg)
e2:SetOperation(c101104206.drop) e2:SetOperation(c101104206.drop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c101104206.filter1(c,e,tp) function c101104206.filter1(c,e,tp)
local rk=c:GetRank() local rk=c:GetRank()
......
...@@ -11,7 +11,7 @@ function c101104207.initial_effect(c) ...@@ -11,7 +11,7 @@ function c101104207.initial_effect(c)
e1:SetCountLimit(1,101104207+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,101104207+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c101104207.target) e1:SetTarget(c101104207.target)
e1:SetOperation(c101104207.activate) e1:SetOperation(c101104207.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c101104207.filter(c) function c101104207.filter(c)
return ((c:IsSetCard(0x107e,0x207e) and c:IsType(TYPE_MONSTER)) return ((c:IsSetCard(0x107e,0x207e) and c:IsType(TYPE_MONSTER))
......
...@@ -11,7 +11,7 @@ function c101104208.initial_effect(c) ...@@ -11,7 +11,7 @@ function c101104208.initial_effect(c)
e1:SetCountLimit(1,101104208) e1:SetCountLimit(1,101104208)
e1:SetTarget(c101104208.target) e1:SetTarget(c101104208.target)
e1:SetOperation(c101104208.activate) e1:SetOperation(c101104208.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--draw --draw
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101104206,1)) e2:SetDescription(aux.Stringid(101104206,1))
...@@ -20,7 +20,7 @@ function c101104208.initial_effect(c) ...@@ -20,7 +20,7 @@ function c101104208.initial_effect(c)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,101104308) e2:SetCountLimit(1,101104308)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetCondition(c101104208.thcon) e2:SetCondition(c101104208.thcon)
e2:SetTarget(c101104208.thtg) e2:SetTarget(c101104208.thtg)
e2:SetOperation(c101104208.thop) e2:SetOperation(c101104208.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
......
...@@ -13,7 +13,7 @@ function c101104209.initial_effect(c) ...@@ -13,7 +13,7 @@ function c101104209.initial_effect(c)
e1:SetCost(c101104209.spcost) e1:SetCost(c101104209.spcost)
e1:SetTarget(c101104209.sptg) e1:SetTarget(c101104209.sptg)
e1:SetOperation(c101104209.spop) e1:SetOperation(c101104209.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c101104209.cfilter(c,tp) function c101104209.cfilter(c,tp)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsType(TYPE_XYZ) return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsType(TYPE_XYZ)
...@@ -41,7 +41,7 @@ function c101104209.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c101104209.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c101104209.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c101104209.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
if Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK) e1:SetCode(EFFECT_SET_ATTACK)
...@@ -60,18 +60,18 @@ function c101104209.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,18 +60,18 @@ function c101104209.spop(e,tp,eg,ep,ev,re,r,rp)
e3:SetValue(c101104209.indval) e3:SetValue(c101104209.indval)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
tc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(101104209,1)) tc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(101104209,1))
--to deck top
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101104209,2))
local g2=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_DECK,0,1,1,nil)
local tc2=g2:GetFirst()
if tc2 then
Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc2,0)
Duel.ConfirmDecktop(tp,1)
end
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
--to deck top
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101104209,2))
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
if tc then
Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0)
Duel.ConfirmDecktop(tp,1)
end
end end
function c101104209.indval(e,c) function c101104209.indval(e,c)
return not c:IsSetCard(0x48) return not c:IsSetCard(0x48)
end end
\ No newline at end of file
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