Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion card_counter_constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CARD_DREAMING_NEMLERIA = 70155677
CARD_EHERO_BLAZEMAN = 63060238
CARD_EVIL_EYE_SELENE = 44133040
CARD_EXCHANGE_SPIRIT = 17484499
CARD_FAIRY_PRINCE = 10000120
CARD_PRINCE_OF_FAIRIES = 10000120
CARD_FAIRY_TALE_PROLOGUE = 43236494
CARD_FLAME_SWORDSMAN = 45231177
CARD_FIRE_FIST_EAGLE = 46241344
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101304084.lua → official/c14556954.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--豪回遊鯨VIPホエール
--VIP Whale
--scripted by pyrQ
local s,id=GetID()
Expand Down
4 changes: 2 additions & 2 deletions pre-release/c101304096.lua → official/c1463589.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--A-GMX最終検証
--Anti-GMX Final Experiment
--scripted by pyrQ
local s,id=GetID()
Expand Down Expand Up @@ -34,7 +34,7 @@ function s.excavop(e,tp,eg,ep,ev,re,r,rp)
local decktop5=Duel.GetDecktopGroup(tp,5)
if #decktop5==0 then return end
Duel.ConfirmDecktop(tp,5)
Duel.RaiseEvent(decktop5,EVENT_CUSTOM+101304092,e,REASON_EFFECT,tp,tp,#decktop5)
Duel.RaiseEvent(decktop5,EVENT_CUSTOM+1595137,e,REASON_EFFECT,tp,tp,#decktop5)
if decktop5:IsExists(Card.IsSetCard,1,nil,SET_GMX) then
Duel.BreakEffect()
Duel.NegateEffect(ev)
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101304081.lua → official/c15778492.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--ゲーミング・ゲーマーGG
--Gaming Gamer GG
--scripted by Naim
local s,id=GetID()
Expand Down
10 changes: 5 additions & 5 deletions pre-release/c101304092.lua → official/c1595137.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--暁世竜ダニアン
--Evolved Daneen
--scripted by pyrQ
local s,id=GetID()
Expand All @@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_CUSTOM+101304092)
e2:SetCode(EVENT_CUSTOM+1595137)
e2:SetRange(LOCATION_MZONE|LOCATION_GRAVE)
e2:SetCountLimit(1,{id,1})
e2:SetCondition(s.effcon)
Expand Down Expand Up @@ -55,7 +55,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
--● Field: Gain 1500 LP
local b1=not Duel.HasFlagEffect(tp,id) and c:IsLocation(LOCATION_MZONE)
--● GY: Special Summon this card
local b2=not Duel.HasFlagEffect(tp,id+100) and c:IsLocation(LOCATION_GRAVE)
local b2=not Duel.HasFlagEffect(tp,id+1) and c:IsLocation(LOCATION_GRAVE)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
if chk==0 then return b1 or b2 end
Expand All @@ -67,7 +67,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1500)
elseif op==2 then
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1)
Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,0)
end
end
Expand All @@ -83,4 +83,4 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
end
end
6 changes: 3 additions & 3 deletions official/c18795635.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--第55次GMX応用試験
--GMX Applied Experiment #55
--scripted by pyrQ
local s,id=GetID()
Expand Down Expand Up @@ -31,15 +31,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if #gmx_g==0 or #dino_g==0 then
Duel.ConfirmDecktop(tp,deck_count)
local excav_g=Duel.GetDecktopGroup(tp,deck_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+101304092,e,REASON_EFFECT,tp,tp,deck_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+1595137,e,REASON_EFFECT,tp,tp,deck_count)
Duel.SetLP(tp,Duel.GetLP(tp)-deck_count*400)
else
local gmx_c=gmx_g:GetMaxGroup(Card.GetSequence):GetFirst()
local dino_c=dino_g:GetMaxGroup(Card.GetSequence):GetFirst()
local excav_count=deck_count-math.min(gmx_c:GetSequence(),dino_c:GetSequence())
Duel.ConfirmDecktop(tp,excav_count)
local excav_g=Duel.GetDecktopGroup(tp,excav_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+101304092,e,REASON_EFFECT,tp,tp,excav_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+1595137,e,REASON_EFFECT,tp,tp,excav_count)
Duel.SetLP(tp,Duel.GetLP(tp)-excav_count*400)
local excav_monsters=Duel.GetDecktopGroup(tp,excav_count):Match(Card.IsMonster,nil)
local fusion_params={
Expand Down
6 changes: 3 additions & 3 deletions official/c19144622.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
end
s.listed_series={SET_FAIRY_TAIL}
s.listed_names={91957038,CARD_FAIRY_PRINCE} --"Fairy Tail Tales"
s.listed_names={91957038,CARD_PRINCE_OF_FAIRIES} --"Fairy Tale Tails"
function s.spconfilter(c)
return c:IsRace(RACE_SPELLCASTER) and c:IsBaseAttack(1850) and c:IsFaceup()
end
Expand Down Expand Up @@ -85,7 +85,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.namechangefilter(c)
return c:IsType(TYPE_EFFECT) and c:IsFaceup() and not c:IsCode(CARD_FAIRY_PRINCE)
return c:IsType(TYPE_EFFECT) and c:IsFaceup() and not c:IsCode(CARD_PRINCE_OF_FAIRIES)
end
function s.namechangetg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.namechangefilter,tp,0,LOCATION_MZONE,1,nil) end
Expand All @@ -100,7 +100,7 @@ function s.namechangeop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetValue(CARD_FAIRY_PRINCE)
e1:SetValue(CARD_PRINCE_OF_FAIRIES)
e1:SetReset(RESET_EVENT|RESETS_STANDARD)
sc:RegisterEffect(e1)
end
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101304090.lua → official/c2618725.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--GMX同絆者セランディア
--GMX Partner Selandea
--scripted by pyrQ
local s,id=GetID()
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101304087.lua → official/c3434362.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--ラスティン・マンモス
--Rustin Mammoth
--scripted by Naim
local s,id=GetID()
Expand Down
16 changes: 8 additions & 8 deletions pre-release/c101304094.lua → official/c38984832.lua
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
--JP name
--第55次GMX試験報告
--GMX 55th Experiment Report
--scripted by pyrQ
local s,id=GetID()
function s.initial_effect(c)
--Fusion Summon 1 Dinosaur Fusion Monster from your Extra Deck using monsters from your hand or field. If your opponent controls a monster, you can also use 1 "GMX" monster in your Deck as material
local e1=Fusion.CreateSummonEff({
handler=c,
fusfilter=function(c) return c:IsRace(RACE_DINOSAUR) end,
extrafil=s.fextra,
extratg=s.extratg
})
handler=c,
fusfilter=function(c) return c:IsRace(RACE_DINOSAUR) end,
extrafil=s.fextra,
extratg=s.extratg
})
e1:SetCountLimit(1,id)
e1:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E)
c:RegisterEffect(e1)
Expand Down Expand Up @@ -59,14 +59,14 @@ function s.excavop(e,tp,eg,ep,ev,re,r,rp)
if #g==0 then
Duel.ConfirmDecktop(tp,deck_count)
local excav_g=Duel.GetDecktopGroup(tp,deck_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+101304092,e,REASON_EFFECT,tp,tp,deck_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+1595137,e,REASON_EFFECT,tp,tp,deck_count)
else
local sc=g:GetMaxGroup(Card.GetSequence):GetFirst()
local sc_seq=sc:GetSequence()
local excav_count=deck_count-sc_seq
Duel.ConfirmDecktop(tp,excav_count)
local excav_g=Duel.GetDecktopGroup(tp,excav_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+101304092,e,REASON_EFFECT,tp,tp,excav_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+1595137,e,REASON_EFFECT,tp,tp,excav_count)
if Duel.SendtoHand(sc,nil,REASON_EFFECT) then
Duel.ConfirmCards(1-tp,sc)
Duel.ShuffleHand(tp)
Expand Down
6 changes: 3 additions & 3 deletions pre-release/c101304091.lua → official/c39706423.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--GMX鎮圧部隊アプト
--GMX Suppression Squad
--scripted by pyrQ
local s,id=GetID()
Expand Down Expand Up @@ -63,14 +63,14 @@ function s.excavop(e,tp,eg,ep,ev,re,r,rp)
if #g==0 then
Duel.ConfirmDecktop(tp,deck_count)
local excav_g=Duel.GetDecktopGroup(tp,deck_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+101304092,e,REASON_EFFECT,tp,tp,deck_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+1595137,e,REASON_EFFECT,tp,tp,deck_count)
else
local sc=g:GetMaxGroup(Card.GetSequence):GetFirst()
local sc_seq=sc:GetSequence()
local excav_count=deck_count-sc_seq
Duel.ConfirmDecktop(tp,excav_count)
local excav_g=Duel.GetDecktopGroup(tp,excav_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+101304092,e,REASON_EFFECT,tp,tp,excav_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+1595137,e,REASON_EFFECT,tp,tp,excav_count)
local tc=Duel.GetFirstTarget()
if Duel.SendtoGrave(sc,REASON_EFFECT|REASON_EXCAVATE) and sc:IsLocation(LOCATION_GRAVE) and tc:IsRelateToEffect(e)
and tc:IsFaceup() and not tc:IsRace(RACE_DINOSAUR) then
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101304085.lua → official/c40041559.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--指環の精霊ジーニャ
--Genia of the Ring
--scripted by Naim
local s,id=GetID()
Expand Down
4 changes: 2 additions & 2 deletions official/c4026187.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function s.initial_effect(c)
local e2b=Effect.CreateEffect(c)
e2b:SetType(EFFECT_TYPE_SINGLE)
e2b:SetCode(EFFECT_MATERIAL_CHECK)
e2b:SetValue(function(e,c) e2a:SetLabel(c:GetMaterial():IsExists(Card.IsCode,1,nil,CARD_FAIRY_PRINCE) and 1 or 0) end)
e2b:SetValue(function(e,c) e2a:SetLabel(c:GetMaterial():IsExists(Card.IsCode,1,nil,CARD_PRINCE_OF_FAIRIES) and 1 or 0) end)
c:RegisterEffect(e2b)
--Negate the activation of an opponent's card or effect, and if you do, destroy that card
local e3=Effect.CreateEffect(c)
Expand All @@ -48,7 +48,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
end
s.listed_series={SET_FAIRY_TAIL}
s.listed_names={CARD_FAIRY_PRINCE}
s.listed_names={CARD_PRINCE_OF_FAIRIES}
s.material_setcode={SET_FAIRY_TAIL}
function s.matfilter(c,fc,sumtype,tp)
return c:IsAttribute(ATTRIBUTE_LIGHT,fc,sumtype,tp) and c:IsSetCard(SET_FAIRY_TAIL,fc,sumtype,tp)
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101304082.lua → official/c41763141.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--蜃欺龍
--Fata Dragna
--Scripted by The Razgriz
local s,id=GetID()
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101304088.lua → official/c49828011.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--祭司 レヴァリー
--Officiating Reverie
--scripted by pyrQ
local s,id=GetID()
Expand Down
6 changes: 3 additions & 3 deletions official/c56725612.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
end
s.listed_series={SET_FAIRY_TAIL}
s.listed_names={91957038,CARD_FAIRY_PRINCE} --"Fairy Tail Tales"
s.listed_names={91957038,CARD_PRINCE_OF_FAIRIES} --"Fairy Tale Tails"
function s.thfilter(c)
return ((c:IsSetCard(SET_FAIRY_TAIL) and c:IsMonster()) or c:IsCode(91957038)) and c:IsAbleToHand()
and (c:IsLocation(LOCATION_DECK) or c:IsFaceup())
Expand All @@ -52,7 +52,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.disfilter(c)
return c:IsType(TYPE_EFFECT) and c:IsFaceup() and (c:IsNegatableMonster() or not c:IsCode(CARD_FAIRY_PRINCE))
return c:IsType(TYPE_EFFECT) and c:IsFaceup() and (c:IsNegatableMonster() or not c:IsCode(CARD_PRINCE_OF_FAIRIES))
end
function s.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and s.disfilter(chkc) end
Expand All @@ -73,7 +73,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetValue(CARD_FAIRY_PRINCE)
e1:SetValue(CARD_PRINCE_OF_FAIRIES)
e1:SetReset(RESET_EVENT|RESETS_STANDARD)
tc:RegisterEffect(e1)
end
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101304095.lua → official/c74378580.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--旧GMX第5研究所
--GMX Lab #5
--scripted by pyrQ
local s,id=GetID()
Expand Down
4 changes: 2 additions & 2 deletions pre-release/c101304093.lua → official/c75191028.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--GMX-COMPREX
--GMX - COMPREX
--scripted by pyrQ
local s,id=GetID()
Expand All @@ -25,7 +25,7 @@ function s.initial_effect(c)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_CUSTOM+101304092)
e2:SetCode(EVENT_CUSTOM+1595137)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(s.descon)
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101304089.lua → official/c76213610.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--死宰 サムエル
--Officiator of Doom Samuel
--scripted by pyrQ
local s,id=GetID()
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101304083.lua → official/c77157846.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--暗翳の信仰者
--Shade the Obscure
--Scripted by Hatter
local s,id=GetID()
Expand Down
4 changes: 2 additions & 2 deletions pre-release/c101304086.lua → official/c77435268.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--JP name
--チェツカー
--Checkker
--Scripted by The Razgriz
local s,id=GetID()
local TOKEN_IRON_RUBBLE=id+100
local TOKEN_IRON_RUBBLE=id+1
function s.initial_effect(c)
--Cannot be Normal Summoned if you control a monster
local e0=Effect.CreateEffect(c)
Expand Down
8 changes: 4 additions & 4 deletions official/c78021082.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ function s.initial_effect(c)
e3:SetCode(EFFECT_CHANGE_RACE)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e3:SetTarget(function(e,c) return c:IsCode(CARD_FAIRY_PRINCE) end)
e3:SetTarget(function(e,c) return c:IsCode(CARD_PRINCE_OF_FAIRIES) end)
e3:SetValue(RACE_SPELLCASTER)
c:RegisterEffect(e3)
end
s.listed_series={SET_FAIRY_TAIL}
s.listed_names={CARD_FAIRY_PRINCE}
s.listed_names={CARD_PRINCE_OF_FAIRIES}
s.material_setcode={SET_FAIRY_TAIL}
function s.spfilter(c,e,tp)
return c:IsSetCard(SET_FAIRY_TAIL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (c:IsLocation(LOCATION_DECK) or c:IsFaceup())
Expand All @@ -68,7 +68,7 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp)
return not eg:IsContains(e:GetHandler()) and eg:IsExists(s.disconfilter,1,nil,tp)
end
function s.disfilter(c)
return c:IsType(TYPE_EFFECT) and c:IsFaceup() and (c:IsNegatableMonster() or not c:IsCode(CARD_FAIRY_PRINCE))
return c:IsType(TYPE_EFFECT) and c:IsFaceup() and (c:IsNegatableMonster() or not c:IsCode(CARD_PRINCE_OF_FAIRIES))
end
function s.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and s.disfilter(chkc) end
Expand All @@ -88,7 +88,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetValue(CARD_FAIRY_PRINCE)
e1:SetValue(CARD_PRINCE_OF_FAIRIES)
e1:SetReset(RESET_EVENT|RESETS_STANDARD)
tc:RegisterEffect(e1)
end
Expand Down
10 changes: 5 additions & 5 deletions official/c82119326.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
--Fusion Summon 1 Spellcaster Fusion Monster from your Extra Deck, using monsters from your hand or field, when you do, you can also use any "Fairy Prince" your opponent controls
local fusion_params={
handler=c,
fusfilter=aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),
extrafil=function(e,tp,mg) return Duel.GetMatchingGroup(Fusion.IsMonsterFilter(aux.FaceupFilter(Card.IsCode,CARD_FAIRY_PRINCE)),tp,0,LOCATION_ONFIELD,nil) end
}
handler=c,
fusfilter=aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),
extrafil=function(e,tp,mg) return Duel.GetMatchingGroup(Fusion.IsMonsterFilter(aux.FaceupFilter(Card.IsCode,CARD_PRINCE_OF_FAIRIES)),tp,0,LOCATION_ONFIELD,nil) end
}
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
Expand All @@ -37,7 +37,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
end
s.listed_series={SET_FAIRY_TAIL}
s.listed_names={CARD_FAIRY_PRINCE}
s.listed_names={CARD_PRINCE_OF_FAIRIES}
function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_FAIRY_TAIL),tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Expand Down
6 changes: 3 additions & 3 deletions official/c82706696.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--JP name
--GMX-VELOX
--GMX - VELOX
--scripted by pyrQ
local s,id=GetID()
Expand Down Expand Up @@ -78,15 +78,15 @@ function s.excavop(e,tp,eg,ep,ev,re,r,rp)
if #g==0 then
Duel.ConfirmDecktop(tp,deck_count)
local excav_g=Duel.GetDecktopGroup(tp,deck_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+101304092,e,REASON_EFFECT,tp,tp,deck_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+1595137,e,REASON_EFFECT,tp,tp,deck_count)
Duel.SetLP(tp,Duel.GetLP(tp)-deck_count*400)
else
local sc=g:GetMaxGroup(Card.GetSequence):GetFirst()
local sc_seq=sc:GetSequence()
local excav_count=deck_count-sc_seq
Duel.ConfirmDecktop(tp,excav_count)
local excav_g=Duel.GetDecktopGroup(tp,excav_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+101304092,e,REASON_EFFECT,tp,tp,excav_count)
Duel.RaiseEvent(excav_g,EVENT_CUSTOM+1595137,e,REASON_EFFECT,tp,tp,excav_count)
Duel.SetLP(tp,Duel.GetLP(tp)-excav_count*400)
aux.ToHandOrElse(sc,tp,
function()
Expand Down