Commit 7ee9c1bb authored by Tachibana's avatar Tachibana

得得得得得

parent b5652dc9
Pipeline #12048 passed with stages
in 31 minutes and 12 seconds
...@@ -23,9 +23,14 @@ function cm.initial_effect(c) ...@@ -23,9 +23,14 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,m) e1:SetCountLimit(1,m)
e1:SetCondition(cm.condition1)
e1:SetTarget(cm.target) e1:SetTarget(cm.target)
e1:SetOperation(cm.operation) e1:SetOperation(cm.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e11=e1:Clone()
e11:SetProperty(EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE)
e11:SetCondition(cm.condition2)
c:RegisterEffect(e11)
end end
--cannot be target --cannot be target
function cm.cfilter(c) function cm.cfilter(c)
...@@ -35,16 +40,22 @@ function cm.tgcon(e) ...@@ -35,16 +40,22 @@ function cm.tgcon(e)
return Duel.IsExistingMatchingCard(cm.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(cm.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end end
--tohand --tohand
function cm.condition1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function cm.srfilter(c) function cm.srfilter(c)
return aux.IsCodeListed(c,m) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return not c:IsCode(m) and aux.IsCodeListed(c,m) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.srfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(aux.NecroValleyFilter(cm.srfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.srfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.srfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
......
...@@ -66,24 +66,25 @@ function cm.dcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,24 +66,25 @@ function cm.dcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.dtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.dtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
end end
function cm.dop(e,tp,eg,ep,ev,re,r,rp) function cm.dop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
--atk up --atk up
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(14261867,1))
e2:SetCategory(CATEGORY_ATKCHANGE) e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e2:SetProperty(EFFECT_FLAG_NO_TURN_RESET) e2:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e2:SetCondition(cm.atkcon) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetOperation(cm.atkop) e2:SetOperation(cm.atkop)
c:RegisterEffect(e2) tc:RegisterEffect(e2)
local sg=Duel.GetMatchingGroup(aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,nil,tc:GetLevel(),tc:GetAttribute()) local sg=Duel.GetMatchingGroup(aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,nil,tc:GetLevel(),tc:GetAttribute())
if #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then if #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect() Duel.BreakEffect()
...@@ -98,7 +99,7 @@ function cm.dop(e,tp,eg,ep,ev,re,r,rp) ...@@ -98,7 +99,7 @@ function cm.dop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,2) e:GetHandler():RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,2)
end end
function cm.thfilter(c,lv,att) function cm.thfilter(c,lv,att)
return c:IsLevel(lv) and c:IsAttribute(att) and c:IsAbleToHand() return (c:IsLevel(lv) or c:IsAttribute(att)) and c:IsAbleToHand()
end end
function cm.atkcon(e,tp,eg,ep,ev,re,r,rp) function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -107,14 +108,12 @@ function cm.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,14 +108,12 @@ function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.atkop(e,tp,eg,ep,ev,re,r,rp) function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL)
e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL) e1:SetValue(c:GetAttack()*2)
e1:SetValue(c:GetAttack()*2) c:RegisterEffect(e1)
c:RegisterEffect(e1)
end
end end
......
...@@ -69,7 +69,7 @@ function cm.spcon2(e) ...@@ -69,7 +69,7 @@ function cm.spcon2(e)
end end
--Destroy --Destroy
function cm.descon(e,tp,eg,ep,ev,re,r,rp) function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(m)==0 and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_GRAVE)<10 return e:GetHandler():GetFlagEffect(m)==0 and Duel.GetFieldGroupCount(tp,0,LOCATION_GRAVE)<10
end end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end
...@@ -88,7 +88,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,7 +88,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
end end
--tograve --tograve
function cm.tgcon(e,tp,eg,ep,ev,re,r,rp) function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(m)==0 and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_GRAVE)>=10 return e:GetHandler():GetFlagEffect(m)==0 and Duel.GetFieldGroupCount(tp,0,LOCATION_GRAVE)>=10
end end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end
......
...@@ -66,24 +66,25 @@ function cm.dcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,24 +66,25 @@ function cm.dcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.dtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.dtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end end
function cm.dop(e,tp,eg,ep,ev,re,r,rp) function cm.dop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
--atk up --atk up
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(14261867,1))
e2:SetCategory(CATEGORY_ATKCHANGE) e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e2:SetProperty(EFFECT_FLAG_NO_TURN_RESET) e2:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e2:SetCondition(cm.atkcon) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetOperation(cm.atkop) e2:SetOperation(cm.atkop)
c:RegisterEffect(e2) tc:RegisterEffect(e2)
local sg=Duel.GetMatchingGroup(aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,nil,tc:GetLevel(),e,tp) local sg=Duel.GetMatchingGroup(aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,nil,tc:GetLevel(),e,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect() Duel.BreakEffect()
...@@ -106,12 +107,10 @@ function cm.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -106,12 +107,10 @@ function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.atkop(e,tp,eg,ep,ev,re,r,rp) function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL)
e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL) e1:SetValue(c:GetAttack()*2)
e1:SetValue(c:GetAttack()*2) c:RegisterEffect(e1)
c:RegisterEffect(e1)
end
end end
...@@ -87,7 +87,7 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,7 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
local tgc=g:GetFirst() local tgc=g:GetFirst()
local type1=tgc:GetType()&0x7|type1 local type1=tgc:GetType()&0x7|type1
local sg=Duel.GetMatchingGroup(aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,nil,type1) local sg=Duel.GetMatchingGroup(aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,nil,type1)
if Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_DISCARD)~=0 and Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then if Duel.SendtoGrave(tgc,REASON_EFFECT+REASON_DISCARD)~=0 and Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local hg=sg:Select(tp,1,1,nil) local hg=sg:Select(tp,1,1,nil)
......
...@@ -10,6 +10,7 @@ function cm.initial_effect(c) ...@@ -10,6 +10,7 @@ function cm.initial_effect(c)
e1:SetCost(cm.cost) e1:SetCost(cm.cost)
e1:SetTarget(cm.settg) e1:SetTarget(cm.settg)
e1:SetOperation(cm.setop) e1:SetOperation(cm.setop)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
......
...@@ -10,6 +10,7 @@ function cm.initial_effect(c) ...@@ -10,6 +10,7 @@ function cm.initial_effect(c)
e1:SetDescription(aux.Stringid(m,0)) e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetCondition(cm.spcon1) e1:SetCondition(cm.spcon1)
e1:SetTarget(cm.sptg) e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop) e1:SetOperation(cm.spop)
......
...@@ -11,6 +11,7 @@ function cm.initial_effect(c) ...@@ -11,6 +11,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,m) e1:SetCountLimit(1,m)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetCondition(cm.spcon1) e1:SetCondition(cm.spcon1)
e1:SetTarget(cm.sptg) e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop) e1:SetOperation(cm.spop)
......
...@@ -20,7 +20,8 @@ function cm.initial_effect(c) ...@@ -20,7 +20,8 @@ function cm.initial_effect(c)
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(m,1)) e5:SetDescription(aux.Stringid(m,1))
e5:SetCategory(CATEGORY_SPECIAL_SUMMON) e5:SetCategory(CATEGORY_SPECIAL_SUMMON)
e5:SetType(EFFECT_TYPE_IGNITION) e5:SetType(EFFECT_TYPE_QUICK_O)
e5:SetCode(EVENT_FREE_CHAIN)
e5:SetRange(LOCATION_GRAVE) e5:SetRange(LOCATION_GRAVE)
e5:SetCountLimit(1,m+1) e5:SetCountLimit(1,m+1)
e5:SetCost(aux.bfgcost) e5:SetCost(aux.bfgcost)
......
...@@ -1956,21 +1956,21 @@ function cm.CyberNCheck(e,tp,eg,ep,ev,re,r,rp) ...@@ -1956,21 +1956,21 @@ function cm.CyberNCheck(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(53702500,9)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(53702500,9))
local sel=Duel.SelectOption(tp,aux.Stringid(53727004,6),aux.Stringid(53727005,6),aux.Stringid(53727006,6),aux.Stringid(53727007,6)) local sel=Duel.SelectOption(tp,aux.Stringid(53727004,6),aux.Stringid(53727005,6),aux.Stringid(53727006,6),aux.Stringid(53727007,6))
if sel==0 then if sel==0 then
Duel.Hint(24,tp,aux.Stringid(53702601,Duel.GetFlagEffect(0,53727004)+1)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702601,Duel.GetFlagEffect(0,53727004)+1))
Duel.Hint(24,tp,aux.Stringid(53702602,Duel.GetFlagEffect(0,53727037)+3)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702602,Duel.GetFlagEffect(0,53727037)+3))
Duel.Hint(24,tp,aux.Stringid(53702603,Duel.GetFlagEffect(0,53727070)+6)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702603,Duel.GetFlagEffect(0,53727070)+6))
elseif sel==1 then elseif sel==1 then
Duel.Hint(24,tp,aux.Stringid(53702604,Duel.GetFlagEffect(0,53727005)+1)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702604,Duel.GetFlagEffect(0,53727005)+1))
Duel.Hint(24,tp,aux.Stringid(53702605,Duel.GetFlagEffect(0,53727038)+3)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702605,Duel.GetFlagEffect(0,53727038)+3))
Duel.Hint(24,tp,aux.Stringid(53702606,Duel.GetFlagEffect(0,53727071)+5)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702606,Duel.GetFlagEffect(0,53727071)+5))
elseif sel==2 then elseif sel==2 then
Duel.Hint(24,tp,aux.Stringid(53702607,Duel.GetFlagEffect(0,53727006)+1)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702607,Duel.GetFlagEffect(0,53727006)+1))
Duel.Hint(24,tp,aux.Stringid(53702608,Duel.GetFlagEffect(0,53727039)+3)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702608,Duel.GetFlagEffect(0,53727039)+3))
Duel.Hint(24,tp,aux.Stringid(53702609,Duel.GetFlagEffect(0,53727072)+5)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702609,Duel.GetFlagEffect(0,53727072)+5))
else else
Duel.Hint(24,tp,aux.Stringid(53702610,Duel.GetFlagEffect(0,53727007)+1)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702610,Duel.GetFlagEffect(0,53727007)+1))
Duel.Hint(24,tp,aux.Stringid(53702611,Duel.GetFlagEffect(0,53727040)+3)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702611,Duel.GetFlagEffect(0,53727040)+3))
Duel.Hint(24,tp,aux.Stringid(53702612,Duel.GetFlagEffect(0,53727073)+5)) Duel.Hint(HINT_MESSAGE,tp,aux.Stringid(53702612,Duel.GetFlagEffect(0,53727073)+5))
end end
end end
function cm.CyberNRecord(c) function cm.CyberNRecord(c)
......
...@@ -6,7 +6,7 @@ cm.downside_code=m+25 ...@@ -6,7 +6,7 @@ cm.downside_code=m+25
if not pcall(function() require("expansions/script/c53702500") end) then require("script/c53702500") end if not pcall(function() require("expansions/script/c53702500") end) then require("script/c53702500") end
function cm.initial_effect(c) function cm.initial_effect(c)
SNNM.HartrazCheck(c) SNNM.HartrazCheck(c)
SNNM.ORsideLink(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x5533),1,1,nil,53729006) SNNM.ORsideLink(c,function(c)return c:IsLevelBelow(4) and c:IsLinkRace(RACE_PYRO)end,1,1,nil,53729006)
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS) e0:SetCode(EVENT_SPSUMMON_SUCCESS)
...@@ -44,6 +44,7 @@ end ...@@ -44,6 +44,7 @@ end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local zone=e:GetHandler():GetLinkedZone(tp)&0x1f local zone=e:GetHandler():GetLinkedZone(tp)&0x1f
if zone==0 or not Duel.CheckLocation(tp,LOCATION_MZONE,math.log(zone,2)) then return end if zone==0 or not Duel.CheckLocation(tp,LOCATION_MZONE,math.log(zone,2)) then return end
if tp==1 then zone=((zone&0xffff)<<16)|((zone>>16)&0xffff) end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DISABLE_FIELD) e1:SetCode(EFFECT_DISABLE_FIELD)
......
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