Pendulum effect working
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
Pendulum summon from Graveyard
|
Pendulum summon from Graveyard
|
||||||
|
|
||||||
|
|
||||||
|
set code = DEC(1542) HEX(0x606)
|
||||||
|
|
||||||
Card ideas:
|
Card ideas:
|
||||||
Universe Expedition (need another name "Research"?) - searcher card spell or trap
|
Universe Expedition (need another name "Research"?) - searcher card spell or trap
|
||||||
@@ -17,14 +17,14 @@ function s.initial_effect(c)
|
|||||||
e2:SetDescription(aux.Stringid(id,1))
|
e2:SetDescription(aux.Stringid(id,1))
|
||||||
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
|
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
|
||||||
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) --quick effect | copied from obelisk
|
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:SetRange(LOCATION_MZONE)
|
||||||
e2:SetTarget(s.sptg)
|
e2:SetTarget(s.sptg)
|
||||||
e2:SetOperation(s.spop)
|
e2:SetOperation(s.spop)
|
||||||
c:RegisterEffect(e2)
|
c:RegisterEffect(e2)
|
||||||
end
|
end
|
||||||
function s.efilter(e,c)
|
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
|
end
|
||||||
function s.spfilter(c,e,tp)
|
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
|
return c:IsCode(561586057) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP_DEFENSE) --card id for sp summon
|
||||||
|
|||||||
Reference in New Issue
Block a user