Commit 0a41ba0d authored by Tachibana's avatar Tachibana

ndyd

parent 1565ad38
...@@ -5,7 +5,9 @@ function c12003003.initial_effect(c) ...@@ -5,7 +5,9 @@ function c12003003.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetCategory(CATEGORY_TOHAND) e5:SetCategory(CATEGORY_TOHAND)
e5:SetType(EFFECT_TYPE_IGNITION) e5:SetType(EFFECT_TYPE_QUICK_O)
e5:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e5:SetCode(EVENT_FREE_CHAIN)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1,12003003) e5:SetCountLimit(1,12003003)
e5:SetCost(c12003003.cost) e5:SetCost(c12003003.cost)
......
...@@ -65,6 +65,9 @@ function c12028001.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,6 +65,9 @@ function c12028001.op1(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
end end
function c12028001.efilter1_1(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end
-- --
function c12028001.con2(e,tp,eg,ep,ev,re,r,rp) function c12028001.con2(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 return bit.band(r,REASON_EFFECT)~=0
......
...@@ -62,6 +62,9 @@ function c12028002.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,6 +62,9 @@ function c12028002.op1(e,tp,eg,ep,ev,re,r,rp)
end end
end end
-- --
function c12028002.efilter1_1(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end
function c12028002.con2(e,tp,eg,ep,ev,re,r,rp) function c12028002.con2(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 return bit.band(r,REASON_EFFECT)~=0
and re:GetHandler():IsRace(RACE_SEASERPENT) and re:GetHandler():IsRace(RACE_SEASERPENT)
......
...@@ -61,6 +61,9 @@ function c12028003.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,6 +61,9 @@ function c12028003.op1(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
end end
function c12028003.efilter1_1(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end
-- --
function c12028003.con2(e,tp,eg,ep,ev,re,r,rp) function c12028003.con2(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 return bit.band(r,REASON_EFFECT)~=0
......
...@@ -6,6 +6,7 @@ function c12031010.initial_effect(c) ...@@ -6,6 +6,7 @@ function c12031010.initial_effect(c)
-- --
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12031010,0)) e1:SetDescription(aux.Stringid(12031010,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
......
...@@ -8,7 +8,7 @@ function cm.initial_effect(c) ...@@ -8,7 +8,7 @@ function cm.initial_effect(c)
local e1=tayu_frtlk.SpecialSummonFun(c,m) local e1=tayu_frtlk.SpecialSummonFun(c,m)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0)) e2:SetDescription(aux.Stringid(m,0))
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetHintTiming(0,TIMING_END_PHASE) e2:SetHintTiming(0,TIMING_END_PHASE)
e2:SetCountLimit(1,m+100) e2:SetCountLimit(1,m+100)
......
...@@ -36,14 +36,13 @@ function cm.initial_effect(c) ...@@ -36,14 +36,13 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(1,1) e2:SetTargetRange(1,1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--CANNOT_REMOVE
local e2=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EFFECT_CANNOT_TO_GRAVE)
e2:SetCode(EFFECT_CANNOT_REMOVE) e1:SetRange(LOCATION_FZONE)
e2:SetRange(LOCATION_FZONE) e1:SetTargetRange(LOCATION_DECK,LOCATION_DECK)
e2:SetTargetRange(LOCATION_DECK,LOCATION_DECK) c:RegisterEffect(e1)
c:RegisterEffect(e2)
--tohand --tohand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
......
...@@ -43,7 +43,9 @@ function cm.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,9 @@ function cm.discon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsSetCard,1,nil,0xaa81) return eg:IsExists(Card.IsSetCard,1,nil,0xaa81)
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) end local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) and c:GetFlagEffect(m)==0 end
c:RegisterFlagEffect(m,RESET_CHAIN,0,1)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_ONFIELD) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_ONFIELD)
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -28,7 +28,9 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,9 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0xaa81) return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0xaa81)
end end
function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,re:GetHandlerPlayer()) end local c=e:GetHandler()
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,re:GetHandlerPlayer()) and c:GetFlagEffect(m)==0 end
c:RegisterFlagEffect(m,RESET_CHAIN,0,1)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),0,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),0,tp,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,0,tp,1)
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