From edcd61d9cc2fde0ed12d2f03b6eb1a642a899452 Mon Sep 17 00:00:00 2001 From: Playmaker1210 Date: Mon, 29 Nov 2021 14:04:29 +0100 Subject: [PATCH] Pendulum effect working --- ideas.txt | 2 ++ lua/c561586057.lua | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ideas.txt b/ideas.txt index 7a80c8a..201e1e0 100644 --- a/ideas.txt +++ b/ideas.txt @@ -1,5 +1,7 @@ Pendulum summon from Graveyard +set code = DEC(1542) HEX(0x606) + Card ideas: Universe Expedition (need another name "Research"?) - searcher card spell or trap \ No newline at end of file diff --git a/lua/c561586057.lua b/lua/c561586057.lua index f1a5b59..3568017 100644 --- a/lua/c561586057.lua +++ b/lua/c561586057.lua @@ -17,14 +17,14 @@ function s.initial_effect(c) e2:SetDescription(aux.Stringid(id,1)) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) --quick effect | copied from obelisk - e2:SetCode(EVENT_SUMMON_SUCCESS) --added from obelisk | works on summon but need to chain in order to activate effect + e2:SetCode(EVENT_SUMMON_SUCCESS) --added from obelisk e2:SetRange(LOCATION_MZONE) e2:SetTarget(s.sptg) e2:SetOperation(s.spop) c:RegisterEffect(e2) end function s.efilter(e,c) - return c:IsType(TYPE_NORMAL) --change to archetype code maybe | Pendulum effect + return c:IsSetCard(0x25e) and c:IsFaceup() --change to archetype code maybe | Pendulum effect condition return c:IsType(TYPE_NORMAL) end function s.spfilter(c,e,tp) return c:IsCode(561586057) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP_DEFENSE) --card id for sp summon @@ -43,4 +43,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) --special summon part if #g==2 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file