From 9a5837d5ffdbbf48fcb12901919beae34318eb44 Mon Sep 17 00:00:00 2001 From: ClaireStanfield Date: Thu, 3 Jul 2025 22:14:18 -0400 Subject: [PATCH] Add Galaxy Expedition (Anime) --- unofficial/c511027043.lua | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 unofficial/c511027043.lua diff --git a/unofficial/c511027043.lua b/unofficial/c511027043.lua new file mode 100644 index 0000000000..d4cbef3ba9 --- /dev/null +++ b/unofficial/c511027043.lua @@ -0,0 +1,35 @@ +--銀河遠征 (Anime) +--Galaxy Expedition (Anime) +local s,id=GetID() +function s.initial_effect(c) + --Special Summon 1 "Galaxy Knight" from your Deck + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(id,0)) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_ACTIVATE) + e1:SetCode(EVENT_FREE_CHAIN) + e1:SetCondition(s.condition) + e1:SetTarget(s.target) + e1:SetOperation(s.activate) + c:RegisterEffect(e1) +end +s.listed_names={CARD_GALAXYEYES_P_DRAGON,35950025} +function s.condition(e,tp,eg,ep,ev,re,r,rp) + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,CARD_GALAXYEYES_P_DRAGON),tp,LOCATION_ONFIELD,0,1,nil) +end +function s.spfilter(c,e,tp) + return c:IsCode(35950025) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function s.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) +end +function s.activate(e,tp,eg,ep,ev,re,r,rp) + if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) + if #g>0 then + Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) + end +end \ No newline at end of file