Universe Seed hintmsg and Tuner Star code fix
This commit is contained in:
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 119 KiB |
BIN
card pics/cover2.png
Normal file
BIN
card pics/cover2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 119 KiB |
@@ -14,29 +14,30 @@ function s.initial_effect(c)
|
||||
c:RegisterEffect(e1)
|
||||
--Special summon 2 "Universe Seed" from hand or deck in defense
|
||||
local e2=Effect.CreateEffect(c)
|
||||
e2:SetDescription(aux.Stringid(id,1))
|
||||
e2:SetDescription(aux.Stringid(id,0))
|
||||
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
|
||||
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
|
||||
e2:SetCode(EVENT_SUMMON_SUCCESS)
|
||||
e2:SetRange(LOCATION_MZONE)
|
||||
e2:SetTarget(s.sptg)
|
||||
e2:SetOperation(s.spop)
|
||||
c:RegisterEffect(e2)
|
||||
end
|
||||
function s.efilter(e,c)
|
||||
return c:IsSetCard(0x25e) and c:IsFaceup() --Pendulum effect condition
|
||||
return c:IsSetCard(0x25e) and c:IsFaceup()
|
||||
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
|
||||
return c:IsCode(561586057) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP_DEFENSE)
|
||||
end
|
||||
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
|
||||
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
|
||||
if e:GetHandler():GetSequence()<5 then ft=ft+1 end --getting the targets
|
||||
if e:GetHandler():GetSequence()<5 then ft=ft+1 end
|
||||
if chk==0 then return ft>1 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,2,nil,e,tp)
|
||||
and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) end
|
||||
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
|
||||
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_HAND+LOCATION_DECK)
|
||||
end
|
||||
function s.spop(e,tp,eg,ep,ev,re,r,rp) --special summon part
|
||||
function s.spop(e,tp,eg,ep,ev,re,r,rp)
|
||||
if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end
|
||||
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
|
||||
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,2,2,nil,e,tp)
|
||||
|
||||
@@ -19,7 +19,7 @@ function s.initial_effect(c)
|
||||
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
|
||||
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
|
||||
e2:SetCode(EVENT_SUMMON_SUCCESS)
|
||||
e2:SetTarget(s.sptg)
|
||||
e2:SetTarget(s.sptged)
|
||||
e2:SetOperation(s.spops)
|
||||
c:RegisterEffect(e2)
|
||||
--spsummon from extra deck when special summon
|
||||
@@ -71,7 +71,6 @@ function s.spops(e,tp,eg,ep,ev,re,r,rp)
|
||||
end
|
||||
end
|
||||
-----Pendulum zone sp summon
|
||||
------ dark armed dragon
|
||||
function s.costfilter(c)
|
||||
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true)
|
||||
end
|
||||
@@ -81,8 +80,6 @@ end
|
||||
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil)
|
||||
Duel.Remove(g,POS_FACEUP,REASON_COST)
|
||||
end
|
||||
|
||||
--abyss actor
|
||||
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
|
||||
local c=e:GetHandler()
|
||||
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
|
||||
|
||||
Reference in New Issue
Block a user