Commit 19704819 authored by DailyShana's avatar DailyShana

fix (60/80)

parent d447fdcb
...@@ -10,9 +10,8 @@ function c10833828.initial_effect(c) ...@@ -10,9 +10,8 @@ function c10833828.initial_effect(c)
e2:SetDescription(aux.Stringid(10833828,0)) e2:SetDescription(aux.Stringid(10833828,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCost(c10833828.cost) e2:SetCountLimit(1)
e2:SetTarget(c10833828.sptg1) e2:SetTarget(c10833828.sptg1)
e2:SetOperation(c10833828.spop1) e2:SetOperation(c10833828.spop1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -39,10 +38,6 @@ function c10833828.initial_effect(c) ...@@ -39,10 +38,6 @@ function c10833828.initial_effect(c)
e4:SetOperation(c10833828.damop) e4:SetOperation(c10833828.damop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c10833828.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c10833828.spfilter1(c,e,tp) function c10833828.spfilter1(c,e,tp)
return c:IsSetCard(0x10af) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x10af) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
...@@ -50,6 +45,7 @@ function c10833828.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,6 +45,7 @@ function c10833828.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c10833828.spfilter1,tp,LOCATION_HAND,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c10833828.spfilter1,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c10833828.spop1(e,tp,eg,ep,ev,re,r,rp) function c10833828.spop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -102,6 +98,7 @@ function c10833828.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -102,6 +98,7 @@ function c10833828.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
return res return res
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c10833828.spop2(e,tp,eg,ep,ev,re,r,rp) function c10833828.spop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -29,7 +29,7 @@ function c11050415.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,7 +29,7 @@ function c11050415.activate(e,tp,eg,ep,ev,re,r,rp)
and Duel.SelectYesNo(tp,aux.Stringid(11050415,0)) then and Duel.SelectYesNo(tp,aux.Stringid(11050415,0)) then
local c=e:GetHandler() local c=e:GetHandler()
for i=1,ft do for i=1,ft do
local token=Duel.CreateToken(tp,18027138+i) local token=Duel.CreateToken(tp,11050415+i)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
function c111280.initial_effect(c) function c111280.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
...@@ -79,7 +80,6 @@ function c111280.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +80,6 @@ function c111280.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c111280.chainop(e,tp,eg,ep,ev,re,r,rp) function c111280.chainop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and ep~=tp then if re:IsHasType(EFFECT_TYPE_ACTIVATE) and ep~=tp then
Duel.SetChainLimit(c111280.chainlm) Duel.SetChainLimit(c111280.chainlm)
end end
......
...@@ -13,7 +13,6 @@ function c28016193.initial_effect(c) ...@@ -13,7 +13,6 @@ function c28016193.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetCode(EVENT_PRE_BATTLE_DAMAGE) e2:SetCode(EVENT_PRE_BATTLE_DAMAGE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c28016193.damcon) e2:SetCondition(c28016193.damcon)
......
...@@ -68,7 +68,6 @@ function c28139785.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,6 @@ function c28139785.thop(e,tp,eg,ep,ev,re,r,rp)
sg=sg:Select(tp,1,1,nil) sg=sg:Select(tp,1,1,nil)
end end
if sg:GetCount()>0 then if sg:GetCount()>0 then
Duel.HintSelection(sg)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
end end
......
...@@ -47,7 +47,7 @@ function c42566602.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c42566602.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c42566602.drcon(e,tp,eg,ep,ev,re,r,rp) function c42566602.drcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and bit.band(c:GetSummonType(),SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO return c:IsPreviousLocation(LOCATION_MZONE) and c:GetSummonType()==SUMMON_TYPE_SYNCHRO
end end
function c42566602.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c42566602.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
...@@ -23,12 +23,12 @@ function c46500985.initial_effect(c) ...@@ -23,12 +23,12 @@ function c46500985.initial_effect(c)
e4:SetCode(EFFECT_IMMUNE_EFFECT) e4:SetCode(EFFECT_IMMUNE_EFFECT)
e4:SetRange(LOCATION_FZONE) e4:SetRange(LOCATION_FZONE)
e4:SetTargetRange(LOCATION_MZONE,0) e4:SetTargetRange(LOCATION_MZONE,0)
e4:SetCondition(c46500985.condition) e4:SetCondition(c46500985.immcon)
e4:SetTarget(c46500985.etarget) e4:SetTarget(c46500985.etarget)
e4:SetValue(c46500985.efilter) e4:SetValue(c46500985.efilter)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c46500985.condition(e) function c46500985.immcon(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
local c1=Duel.GetFieldCard(tp,LOCATION_SZONE,6) local c1=Duel.GetFieldCard(tp,LOCATION_SZONE,6)
local c2=Duel.GetFieldCard(tp,LOCATION_SZONE,7) local c2=Duel.GetFieldCard(tp,LOCATION_SZONE,7)
......
...@@ -16,8 +16,8 @@ function c47222536.initial_effect(c) ...@@ -16,8 +16,8 @@ function c47222536.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,47222538) e2:SetCountLimit(1,47222537)
e2:SetCondition(c47222536.rmcon) e2:SetCondition(c47222536.rmcon)
e2:SetTarget(c47222536.rmtg) e2:SetTarget(c47222536.rmtg)
e2:SetOperation(c47222536.rmop) e2:SetOperation(c47222536.rmop)
......
...@@ -44,17 +44,10 @@ end ...@@ -44,17 +44,10 @@ end
function c55623480.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c55623480.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ct=-ft+1 local ct=-ft+1
if chk==0 then local sg=Duel.GetMatchingGroup(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,0,e:GetHandler())
if ft<=0 then if chk==0 then return sg:GetCount()>=7 and (ft>0 or sg:IsExists(Card.IsLocation,ct,nil,LOCATION_MZONE)) end
return Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_MZONE,0,ct,e:GetHandler())
and Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,0,7,e:GetHandler())
else
return Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,0,7,e:GetHandler())
end
end
local g=nil local g=nil
if ft<=0 then if ft<=0 then
local sg=Duel.GetMatchingGroup(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,0,e:GetHandler())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
g=sg:FilterSelect(tp,Card.IsLocation,ct,ct,nil,LOCATION_MZONE) g=sg:FilterSelect(tp,Card.IsLocation,ct,ct,nil,LOCATION_MZONE)
if ct<7 then if ct<7 then
...@@ -65,13 +58,12 @@ function c55623480.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,13 +58,12 @@ function c55623480.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
else else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,0,7,7,e:GetHandler()) g=sg:Select(tp,7,7,nil)
end end
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c55623480.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c55623480.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and not e:GetHandler():IsStatus(STATUS_CHAINING) end and not e:GetHandler():IsStatus(STATUS_CHAINING) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -6,7 +6,7 @@ function c74839123.initial_effect(c) ...@@ -6,7 +6,7 @@ function c74839123.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c74839123.cost) e1:SetCost(c74839123.cost)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--add set --add setcode
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
...@@ -17,6 +17,7 @@ function c74839123.initial_effect(c) ...@@ -17,6 +17,7 @@ function c74839123.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--return --return
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_TODECK)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_TO_GRAVE) e3:SetCode(EVENT_TO_GRAVE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
......
...@@ -84,7 +84,7 @@ function c80773359.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +84,7 @@ function c80773359.lvop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_LEVEL) e1:SetCode(EFFECT_CHANGE_LEVEL)
e1:SetValue(tc:GetLevel()) e1:SetValue(tc:GetLevel())
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
...@@ -95,6 +95,6 @@ function c80773359.condtion(e) ...@@ -95,6 +95,6 @@ function c80773359.condtion(e)
local c=e:GetHandler() local c=e:GetHandler()
local mg=c:GetMaterial() local mg=c:GetMaterial()
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) and bit.band(c:GetSummonType(),SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO return (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) and Duel.GetAttacker()==c
and Duel.GetAttacker()==c and mg:GetCount()>0 and not mg:IsExists(c80773359.mfilter,1,nil) and c:GetSummonType()==SUMMON_TYPE_SYNCHRO and mg:GetCount()>0 and not mg:IsExists(c80773359.mfilter,1,nil)
end end
...@@ -20,7 +20,7 @@ function c80896904.initial_effect(c) ...@@ -20,7 +20,7 @@ function c80896904.initial_effect(c)
e2:SetCondition(c80896904.syncon) e2:SetCondition(c80896904.syncon)
e2:SetTarget(c80896904.syntg) e2:SetTarget(c80896904.syntg)
e2:SetOperation(c80896904.synop) e2:SetOperation(c80896904.synop)
e2:SetValue(SUMMON_TYPE_SYNCHRO+0x10) e2:SetValue(SUMMON_TYPE_SYNCHRO)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--indes --indes
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -144,6 +144,7 @@ function c80896904.syntg(e,tp,eg,ep,ev,re,r,rp,chk,c,tuner,mg) ...@@ -144,6 +144,7 @@ function c80896904.syntg(e,tp,eg,ep,ev,re,r,rp,chk,c,tuner,mg)
tuner=pe:GetOwner() tuner=pe:GetOwner()
Group.FromCards(tuner):Select(tp,1,1,nil) Group.FromCards(tuner):Select(tp,1,1,nil)
end end
tuner:RegisterFlagEffect(80896904,RESET_EVENT+0x1fe0000,0,1)
g:AddCard(tuner) g:AddCard(tuner)
local lv1=tuner:GetSynchroLevel(c) local lv1=tuner:GetSynchroLevel(c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL)
...@@ -201,8 +202,7 @@ function c80896904.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -201,8 +202,7 @@ function c80896904.atkop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c80896904.thcon(e,tp,eg,ep,ev,re,r,rp) function c80896904.thcon(e,tp,eg,ep,ev,re,r,rp)
return (e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetLabel()==1) return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetLabel()==1
or e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO+0x10
end end
function c80896904.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c80896904.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and chkc:IsAbleToHand() end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and chkc:IsAbleToHand() end
...@@ -219,7 +219,8 @@ function c80896904.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -219,7 +219,8 @@ function c80896904.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c80896904.mfilter(c) function c80896904.mfilter(c)
return c:IsType(TYPE_TUNER) and c:IsType(TYPE_PENDULUM) and c:GetSummonType()==SUMMON_TYPE_PENDULUM return c:IsType(TYPE_PENDULUM) and c:GetSummonType()==SUMMON_TYPE_PENDULUM
and (c:IsType(TYPE_TUNER) or c:GetFlagEffect(80896904)~=0)
end end
function c80896904.valcheck(e,c) function c80896904.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
......
...@@ -39,18 +39,15 @@ function c85551711.initial_effect(c) ...@@ -39,18 +39,15 @@ function c85551711.initial_effect(c)
e5:SetOperation(c85551711.spop) e5:SetOperation(c85551711.spop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c85551711.handcon(e,tp,eg,ep,ev,re,r,rp) function c85551711.handcon(e)
return Duel.GetTurnPlayer()~=e:GetHandlerPlayer() and e:GetHandler():GetOverlayCount()~=0 return Duel.GetTurnPlayer()~=e:GetHandlerPlayer() and e:GetHandler():GetOverlayCount()~=0
end end
function c85551711.costtg(e,te,tp) function c85551711.costtg(e,te,tp)
local tc=te:GetHandler() local tc=te:GetHandler()
return Duel.GetTurnPlayer()~=e:GetHandlerPlayer() return Duel.GetTurnPlayer()~=e:GetHandlerPlayer()
and tc:IsLocation(LOCATION_HAND) and tc:GetEffectCount(85551711)>0 and tc:IsLocation(LOCATION_HAND) and tc:GetEffectCount(85551711)>0
and ( and ((tc:GetEffectCount(EFFECT_QP_ACT_IN_NTPHAND)<=tc:GetEffectCount(85551711) and tc:IsType(TYPE_QUICKPLAY))
(tc:GetEffectCount(EFFECT_QP_ACT_IN_NTPHAND)<=tc:GetEffectCount(85551711) and tc:IsType(TYPE_SPELL+TYPE_QUICKPLAY)) or (tc:GetEffectCount(EFFECT_TRAP_ACT_IN_HAND)<=tc:GetEffectCount(85551711) and tc:IsType(TYPE_TRAP)))
or
(tc:GetEffectCount(EFFECT_TRAP_ACT_IN_HAND)<=tc:GetEffectCount(85551711) and tc:IsType(TYPE_TRAP))
)
end end
function c85551711.costchk(e,te_or_c,tp) function c85551711.costchk(e,te_or_c,tp)
return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT) return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_EFFECT)
...@@ -62,7 +59,7 @@ end ...@@ -62,7 +59,7 @@ end
function c85551711.spcon(e,tp,eg,ep,ev,re,r,rp) function c85551711.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ((rp~=tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE)) return ((rp~=tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE))
or c:IsReason(REASON_BATTLE)) and bit.band(c:GetSummonType(),SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ or c:IsReason(REASON_BATTLE)) and c:GetSummonType()==SUMMON_TYPE_XYZ
end end
function c85551711.spfilter(c,e,tp) function c85551711.spfilter(c,e,tp)
return c:IsRace(RACE_SPELLCASTER) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_SPELLCASTER) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -76,14 +73,13 @@ function c85551711.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,14 +73,13 @@ function c85551711.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c85551711.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c85551711.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp)
local dg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0
and Duel.IsExistingMatchingCard(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) and dg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(85551711,0)) then
and Duel.SelectYesNo(tp,aux.Stringid(85551711,0)) then
Duel.BreakEffect() Duel.BreakEffect()
local dg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local des=dg:Select(tp,1,1,nil) local sg=dg:Select(tp,1,1,nil)
Duel.HintSelection(des) Duel.HintSelection(sg)
Duel.Destroy(des,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
end end
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