Commit d79fcc57 authored by TanakaKotoha's avatar TanakaKotoha

Nowhere

parent a9d96b5d
No preview for this file type
...@@ -48,9 +48,10 @@ function c33330083.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,9 +48,10 @@ function c33330083.operation(e,tp,eg,ep,ev,re,r,rp)
--indes --indes
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e3:SetValue(1) e3:SetValue(1)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
local e4=e3:Clone() local e4=e3:Clone()
......
...@@ -19,7 +19,7 @@ function cm.initial_effect(c) ...@@ -19,7 +19,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_REMOVED) e1:SetRange(LOCATION_REMOVED)
e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET) e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e1:SetCountLimit(1,m) e1:SetCountLimit(1,m+10000)
e1:SetCondition(cm.spcon) e1:SetCondition(cm.spcon)
e1:SetTarget(cm.target) e1:SetTarget(cm.target)
e1:SetOperation(cm.activate) e1:SetOperation(cm.activate)
......
...@@ -29,9 +29,9 @@ function c60151621.pcfilter(c,lv,rk) ...@@ -29,9 +29,9 @@ function c60151621.pcfilter(c,lv,rk)
return c:IsSetCard(0xcb25) and c:IsType(TYPE_PENDULUM) and (not c:IsForbidden() or c:IsAbleToHand()) and (c:GetLevel()==lv or c:GetLevel()==rk) return c:IsSetCard(0xcb25) and c:IsType(TYPE_PENDULUM) and (not c:IsForbidden() or c:IsAbleToHand()) and (c:GetLevel()==lv or c:GetLevel()==rk)
end end
function c60151621.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60151621.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c60151621.filter,tp,LOCATION_ONFIELD,0,1,nil,tp) end if chk==0 then return Duel.IsExistingTarget(c60151621.filter,tp,LOCATION_MZONE+LOCATION_PZONE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
Duel.SelectTarget(tp,c60151621.filter,tp,LOCATION_MZONE,0,1,1,nil,tp) Duel.SelectTarget(tp,c60151621.filter,tp,LOCATION_MZONE+LOCATION_PZONE,0,1,1,nil,tp)
end end
function c60151621.activate(e,tp,eg,ep,ev,re,r,rp) function c60151621.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
...@@ -26,7 +26,7 @@ function c65071047.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,7 +26,7 @@ function c65071047.spop(e,tp,eg,ep,ev,re,r,rp)
if t1 and t2 then if t1 and t2 then
op=Duel.SelectOption(1-tp,aux.Stringid(93445075,0),aux.Stringid(93445075,1)) op=Duel.SelectOption(1-tp,aux.Stringid(93445075,0),aux.Stringid(93445075,1))
elseif t1 then op=Duel.SelectOption(1-tp,aux.Stringid(93445075,0)) elseif t1 then op=Duel.SelectOption(1-tp,aux.Stringid(93445075,0))
elseif t2 then op=Duel.SelectOption(tp,aux.Stringid(93445075,1)) elseif t2 then op=Duel.SelectOption(1-tp,aux.Stringid(93445075,1))+1
else return end else return end
if op==0 then if op==0 then
local g=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD) local g=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD)
......
...@@ -47,7 +47,7 @@ function c81011006.ffilter(c,fc,sub,mg,sg) ...@@ -47,7 +47,7 @@ function c81011006.ffilter(c,fc,sub,mg,sg)
return (not c:IsType(TYPE_TOKEN)) and (not sg or sg:FilterCount(aux.TRUE,c)==0 or sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode())) return (not c:IsType(TYPE_TOKEN)) and (not sg or sg:FilterCount(aux.TRUE,c)==0 or sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode()))
end end
function c81011006.costfilter(c,tp) function c81011006.costfilter(c,tp)
return c:IsAbleToRemoveAsCost() and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and not c:IsCode(81011006) return c:IsAbleToRemoveAsCost() and not c:IsCode(81011006)
and Duel.IsExistingTarget(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) and Duel.IsExistingTarget(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end end
function c81011006.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c81011006.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -3,6 +3,13 @@ function c81011007.initial_effect(c) ...@@ -3,6 +3,13 @@ function c81011007.initial_effect(c)
--link summon --link summon
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddLinkProcedure(c,nil,3,3) aux.AddLinkProcedure(c,nil,3,3)
--spsummon bgm
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetCondition(c81011007.sumcon)
e0:SetOperation(c81011007.sumsuc)
c:RegisterEffect(e0)
--direct attack --direct attack
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -25,6 +32,12 @@ function c81011007.initial_effect(c) ...@@ -25,6 +32,12 @@ function c81011007.initial_effect(c)
e3:SetCondition(c81011007.actcon) e3:SetCondition(c81011007.actcon)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c81011007.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND) and e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c81011007.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(81011007,0))
end
function c81011007.dircon(e) function c81011007.dircon(e)
return e:GetHandler():GetColumnGroupCount()==0 return e:GetHandler():GetColumnGroupCount()==0
end end
......
...@@ -28,7 +28,7 @@ function c81011027.initial_effect(c) ...@@ -28,7 +28,7 @@ function c81011027.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c81011027.sumcon(e,tp,eg,ep,ev,re,r,rp) function c81011027.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND) return e:GetHandler():IsPreviousLocation(LOCATION_HAND) and e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c81011027.sumsuc(e,tp,eg,ep,ev,re,r,rp) function c81011027.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(81011027,0)) Duel.Hint(HINT_MUSIC,0,aux.Stringid(81011027,0))
......
...@@ -51,7 +51,7 @@ end ...@@ -51,7 +51,7 @@ end
function c81013001.ffiltera(c) function c81013001.ffiltera(c)
return c:IsFusionType(TYPE_FUSION) and c:IsRace(RACE_PLANT) and c:IsFusionAttribute(ATTRIBUTE_EARTH) and c:IsLevelBelow(9) return c:IsFusionType(TYPE_FUSION) and c:IsRace(RACE_PLANT) and c:IsFusionAttribute(ATTRIBUTE_EARTH) and c:IsLevelBelow(9)
end end
function c81013001.ffilterb(c) function c81013001.ffilterb(c,fc,sub,mg,sg)
return (not c:IsType(TYPE_TOKEN)) and (not sg or sg:FilterCount(aux.TRUE,c)==0 or sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode())) return (not c:IsType(TYPE_TOKEN)) and (not sg or sg:FilterCount(aux.TRUE,c)==0 or sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode()))
end end
function c81013001.bfilter(c,tp) function c81013001.bfilter(c,tp)
...@@ -67,7 +67,7 @@ function c81013001.efilter(e,re) ...@@ -67,7 +67,7 @@ function c81013001.efilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer() return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end end
function c81013001.desfilter(c) function c81013001.desfilter(c)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemove() return c:IsAbleToRemove()
and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end end
function c81013001.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c81013001.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -38,10 +38,10 @@ function c81013003.initial_effect(c) ...@@ -38,10 +38,10 @@ function c81013003.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c81013003.sumcon(e,tp,eg,ep,ev,re,r,rp) function c81013003.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND) return e:GetHandler():IsPreviousLocation(LOCATION_HAND) and e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c81013003.sumsuc(e,tp,eg,ep,ev,re,r,rp) function c81013003.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(81011027,0)) Duel.Hint(HINT_MUSIC,0,aux.Stringid(81013003,0))
end end
function c81013003.spfilter(c) function c81013003.spfilter(c)
return (bit.band(c:GetOriginalType(),TYPE_SPELL)~=0 or bit.band(c:GetOriginalType(),TYPE_TRAP)~=0) and c:IsAbleToGraveAsCost() return (bit.band(c:GetOriginalType(),TYPE_SPELL)~=0 or bit.band(c:GetOriginalType(),TYPE_TRAP)~=0) and c:IsAbleToGraveAsCost()
......
...@@ -3,6 +3,13 @@ function c81019004.initial_effect(c) ...@@ -3,6 +3,13 @@ function c81019004.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--link summon --link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsSummonType,SUMMON_TYPE_ADVANCE),1,1) aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsSummonType,SUMMON_TYPE_ADVANCE),1,1)
--spsummon bgm
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetCondition(c81019004.sumcon)
e0:SetOperation(c81019004.sumsuc)
c:RegisterEffect(e0)
--search --search
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
...@@ -22,6 +29,12 @@ function c81019004.initial_effect(c) ...@@ -22,6 +29,12 @@ function c81019004.initial_effect(c)
e3:SetValue(1) e3:SetValue(1)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c81019004.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND) and e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c81019004.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(81019004,0))
end
function c81019004.thcon(e,tp,eg,ep,ev,re,r,rp) function c81019004.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_SUMMON) return e:GetHandler():IsReason(REASON_SUMMON)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment