Commit 3decea34 authored by mercury233's avatar mercury233

fix

parent 8c080b97
Pipeline #9025 passed with stages
in 1 minute and 58 seconds
field/101108063.jpg

71.6 KB | W: | H:

field/101108063.jpg

131 KB | W: | H:

field/101108063.jpg
field/101108063.jpg
field/101108063.jpg
field/101108063.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -93,6 +93,9 @@ function c101108001.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -93,6 +93,9 @@ function c101108001.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end if chk==0 then return e:GetHandler():IsAbleToHand() end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
end end
function c101108001.thfilter(c)
return c:IsSetCard(0x9f,0x99) and c:IsAbleToHand()
end
function c101108001.thop(e,tp,eg,ep,ev,re,r,rp) function c101108001.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
...@@ -102,10 +105,8 @@ function c101108001.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,10 +105,8 @@ function c101108001.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.HintSelection(sg)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
end end
end end
end end
function c101108001.thfilter(c)
return c:IsSetCard(0x9f,0x99) and c:IsAbleToHand()
end
...@@ -29,7 +29,7 @@ function c101108008.tfilter(c,sc,tp) ...@@ -29,7 +29,7 @@ function c101108008.tfilter(c,sc,tp)
end end
function c101108008.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101108008.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
if chkc then return chkc:IsLocation(false) and chkc:IsControler(tp) and c101108008.tfilter(chkc,c,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c101108008.tfilter(chkc,c,tp) end
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingTarget(c101108008.tfilter,tp,LOCATION_MZONE,0,1,nil,c,tp) end and Duel.IsExistingTarget(c101108008.tfilter,tp,LOCATION_MZONE,0,1,nil,c,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
...@@ -15,7 +15,7 @@ function c101108012.initial_effect(c) ...@@ -15,7 +15,7 @@ function c101108012.initial_effect(c)
--tohand --tohand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101108012,0)) e2:SetDescription(aux.Stringid(101108012,0))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
...@@ -57,11 +57,6 @@ end ...@@ -57,11 +57,6 @@ end
function c101108012.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c101108012.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101108012.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c101108012.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
if Duel.GetMatchingGroupCount(Card.IsDefensePos,tp,LOCATION_MZONE,LOCATION_MZONE,nil)>=3 then
e:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_DRAW)
else
e:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
end
end end
function c101108012.thop(e,tp,eg,ep,ev,re,r,rp) function c101108012.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
...@@ -37,8 +37,8 @@ function c101108013.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,8 +37,8 @@ function c101108013.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(-2) e1:SetValue(-2)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
if c:IsRelateToEffect(e) then if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsRelateToEffect(e) then
Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP) if Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP) then
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
...@@ -48,6 +48,7 @@ function c101108013.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,6 +48,7 @@ function c101108013.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetTarget(c101108013.splimit) e2:SetTarget(c101108013.splimit)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e2,true) c:RegisterEffect(e2,true)
end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
end end
......
...@@ -36,7 +36,7 @@ function c101108014.repval(e,c) ...@@ -36,7 +36,7 @@ function c101108014.repval(e,c)
return c101108014.repfilter(c,e:GetHandlerPlayer()) return c101108014.repfilter(c,e:GetHandlerPlayer())
end end
function c101108014.repop(e,tp,eg,ep,ev,re,r,rp) function c101108014.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT+REASON_REPLACE)
end end
function c101108014.spcon(e,tp,eg,ep,ev,re,r,rp) function c101108014.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_HAND+LOCATION_GRAVE) return e:GetHandler():IsPreviousLocation(LOCATION_HAND+LOCATION_GRAVE)
...@@ -50,6 +50,7 @@ function c101108014.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,6 +50,7 @@ function c101108014.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)>0 if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)>0
and Duel.SelectYesNo(tp,aux.Stringid(101108014,0)) then and Duel.SelectYesNo(tp,aux.Stringid(101108014,0)) then
Duel.BreakEffect()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL) e1:SetCode(EFFECT_UPDATE_LEVEL)
......
...@@ -76,6 +76,7 @@ function c101108015.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,6 +76,7 @@ function c101108015.lvop(e,tp,eg,ep,ev,re,r,rp)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE) e2:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(c101108015.atktg) e2:SetTarget(c101108015.atktg)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
......
...@@ -32,10 +32,11 @@ function c101108019.ctcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,10 +32,11 @@ function c101108019.ctcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsLocation(LOCATION_GRAVE+LOCATION_EXTRA) and r==REASON_FUSION return c:IsLocation(LOCATION_GRAVE+LOCATION_EXTRA) and r==REASON_FUSION
end end
function c101108019.cttg(e,tp,eg,ep,ev,re,r,rp,chk) function c101108019.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanAddCounter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,0x1041,1) end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0
and Duel.IsExistingMatchingCard(Card.IsCanAddCounter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,0x1041,1) end
end end
function c101108019.ctop(e,tp,eg,ep,ev,re,r,rp) function c101108019.ctop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_MZONE,0,nil) local ct=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)
local g=Duel.GetMatchingGroup(Card.IsCanAddCounter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,0x1041,1) local g=Duel.GetMatchingGroup(Card.IsCanAddCounter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,0x1041,1)
if ct>0 then if ct>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_COUNTER) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_COUNTER)
......
...@@ -46,7 +46,7 @@ function c101108020.pfilter(c) ...@@ -46,7 +46,7 @@ function c101108020.pfilter(c)
end end
function c101108020.ptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101108020.ptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsControler(tp) and c101108020.pfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsControler(tp) and chkc~=c and c101108020.pfilter(chkc) end
if chk==0 then return c:IsAbleToHand() if chk==0 then return c:IsAbleToHand()
and Duel.IsExistingTarget(c101108020.pfilter,tp,LOCATION_ONFIELD,0,1,c) end and Duel.IsExistingTarget(c101108020.pfilter,tp,LOCATION_ONFIELD,0,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
...@@ -76,20 +76,16 @@ function c101108020.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,20 +76,16 @@ function c101108020.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function c101108020.thfilter(c)
return c:IsFaceup() and c:IsAbleToHand()
end
function c101108020.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101108020.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() if chkc then return chkc:IsLocation(LOCATION_PZONE) and chkc:IsControler(tp) and chkc:IsAbleToHand() end
if chkc then return chkc:IsLocation(LOCATION_PZONE) and chkc:IsControler(tp) and c101108020.thfilter(chkc) end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_PZONE,0,1,nil) end
if chk==0 then return Duel.IsExistingTarget(c101108020.thfilter,tp,LOCATION_PZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,c101108020.thfilter,tp,LOCATION_PZONE,0,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_PZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end end
function c101108020.thop(e,tp,eg,ep,ev,re,r,rp) function c101108020.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -18,7 +18,7 @@ function c101108021.initial_effect(c) ...@@ -18,7 +18,7 @@ function c101108021.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101108021,1)) e2:SetDescription(aux.Stringid(101108021,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_CHAINING) e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_PZONE) e2:SetRange(LOCATION_PZONE)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
...@@ -43,7 +43,7 @@ function c101108021.initial_effect(c) ...@@ -43,7 +43,7 @@ function c101108021.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c101108021.posfilter(c) function c101108021.posfilter(c)
return c:IsSetCard(0x1066) and c:IsFacedown() return c:IsSetCard(0x1066) and c:IsFacedown() and c:IsCanChangePosition()
end end
function c101108021.postg(e,tp,eg,ep,ev,re,r,rp,chk) function c101108021.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101108021.posfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c101108021.posfilter,tp,LOCATION_MZONE,0,1,nil) end
...@@ -79,8 +79,8 @@ end ...@@ -79,8 +79,8 @@ end
function c101108021.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c101108021.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local b=Duel.IsEnvironment(75304793,tp,LOCATION_FZONE) local b=Duel.IsEnvironment(75304793,tp,LOCATION_FZONE)
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(c101108021.spfilter1,tp,LOCATION_DECK,0,1,nil,e,tp) and (Duel.IsExistingMatchingCard(c101108021.spfilter1,tp,LOCATION_DECK,0,1,nil,e,tp)
or b and Duel.IsExistingMatchingCard(c101108021.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp) end or b and Duel.IsExistingMatchingCard(c101108021.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp)) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c101108021.spop(e,tp,eg,ep,ev,re,r,rp) function c101108021.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -55,7 +55,8 @@ function c101108023.rhcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,8 @@ function c101108023.rhcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c101108023.rhtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101108023.rhtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsControler(1-tp) and chkc:IsAbleToHand() end if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsControler(1-tp) and chkc:IsAbleToHand() end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return e:GetHandler():IsControlerCanBeChanged()
and Duel.IsExistingTarget(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,2,nil) local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,2,nil)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_CONTROL,e:GetHandler(),1,0,0)
......
...@@ -17,38 +17,38 @@ function c101108024.initial_effect(c) ...@@ -17,38 +17,38 @@ function c101108024.initial_effect(c)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--activate cost --activate cost
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EFFECT_ACTIVATE_COST)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,1)
e2:SetCondition(c101108024.costcon)
e2:SetCost(c101108024.costchk)
e2:SetOperation(c101108024.costop)
c:RegisterEffect(e2)
--accumulate
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(0x10000000+101108024) e3:SetCode(EFFECT_ACTIVATE_COST)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(0,1) e3:SetTargetRange(0,1)
e3:SetCondition(c101108024.costcon) e3:SetCondition(c101108024.costcon)
e3:SetCost(c101108024.costchk)
e3:SetOperation(c101108024.costop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--remove --accumulate
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(101108024,1)) e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCategory(CATEGORY_REMOVE+CATEGORY_DRAW) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetCode(0x10000000+101108024)
e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e4:SetCode(EVENT_TO_GRAVE)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,101108024+100) e4:SetTargetRange(0,1)
e4:SetCondition(c101108024.rmcon) e4:SetCondition(c101108024.costcon)
e4:SetTarget(c101108024.rmtg)
e4:SetOperation(c101108024.rmop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--remove
local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(101108024,1))
e5:SetCategory(CATEGORY_REMOVE+CATEGORY_DRAW)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e5:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e5:SetCode(EVENT_TO_GRAVE)
e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1,101108024+100)
e5:SetCondition(c101108024.rmcon)
e5:SetTarget(c101108024.rmtg)
e5:SetOperation(c101108024.rmop)
c:RegisterEffect(e5)
end end
function c101108024.thfilter(c) function c101108024.thfilter(c)
return c:IsSetCard(0x137) and ((c:IsLevelAbove(7) and c:IsType(TYPE_MONSTER)) or (c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsType(TYPE_CONTINUOUS))) and c:IsAbleToHand() return c:IsSetCard(0x137) and ((c:IsLevelAbove(7) and c:IsType(TYPE_MONSTER)) or (c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsType(TYPE_CONTINUOUS))) and c:IsAbleToHand()
......
...@@ -42,7 +42,7 @@ function c101108026.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c101108026.atkop(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
local tc=tg:GetFirst() local tc=tg:GetFirst()
while tc do while tc do
c:CreateRelation(tc,RESET_EVENT+RESETS_STANDARD+RESET_CONTROL) c:CreateRelation(tc,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
......
...@@ -28,7 +28,7 @@ function c101108028.initial_effect(c) ...@@ -28,7 +28,7 @@ function c101108028.initial_effect(c)
end end
function c101108028.regop(e,tp,eg,ep,ev,re,r,rp) function c101108028.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsPreviousLocation(LOCATION_SZONE) and c:IsPreviousPosition(POS_FACEDOWN) and c:IsReason(REASON_DESTROY) then if c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEDOWN) and c:IsReason(REASON_DESTROY) then
c:RegisterFlagEffect(101108028,RESET_EVENT+RESETS_STANDARD,1,0) c:RegisterFlagEffect(101108028,RESET_EVENT+RESETS_STANDARD,1,0)
end end
end end
......
...@@ -6,6 +6,7 @@ function c101108032.initial_effect(c) ...@@ -6,6 +6,7 @@ function c101108032.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SYNCHRO_LEVEL) e1:SetCode(EFFECT_SYNCHRO_LEVEL)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetValue(c101108032.synclv) e1:SetValue(c101108032.synclv)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -68,6 +68,7 @@ function c101108035.thfilter(c) ...@@ -68,6 +68,7 @@ function c101108035.thfilter(c)
end end
function c101108035.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c101108035.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101108035.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c101108035.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c101108035.thop(e,tp,eg,ep,ev,re,r,rp) function c101108035.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
...@@ -61,7 +61,8 @@ end ...@@ -61,7 +61,8 @@ end
function c101108036.spfilter(c,e,tp) function c101108036.spfilter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c101108036.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c101108036.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c101108036.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c101108036.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c101108036.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
...@@ -37,11 +37,11 @@ function c101108037.thfilter(c) ...@@ -37,11 +37,11 @@ function c101108037.thfilter(c)
end end
function c101108037.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c101108037.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101108037.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c101108037.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,1,nil,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA)
end end
function c101108037.thop(e,tp,eg,ep,ev,re,r,rp) function c101108037.thop(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,c101108037.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c101108037.thfilter),tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA,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)
......
...@@ -50,16 +50,16 @@ function c101108038.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,16 +50,16 @@ function c101108038.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2)) Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end end
function c101108038.atkfilter(c) function c101108038.atkfilter(c,lp)
return c:IsFaceup() return c:IsFaceup() and not c:GetAttack()==lp
end end
function c101108038.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c101108038.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101108038.atkfilter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c101108038.atkfilter,tp,0,LOCATION_MZONE,1,nil,Duel.GetLP(tp)) end
end end
function c101108038.atkop(e,tp,eg,ep,ev,re,r,rp) function c101108038.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local lp=Duel.GetLP(tp) local lp=Duel.GetLP(tp)
local g=Duel.GetMatchingGroup(c101108038.atkfilter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c101108038.atkfilter,tp,0,LOCATION_MZONE,nil,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
for tc in aux.Next(g) do for tc in aux.Next(g) do
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -85,7 +85,7 @@ function c101108042.pdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +85,7 @@ function c101108042.pdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local g=Group.FromCards(c,tc):Filter(Card.IsRelateToEffect,nil,e) local g=Group.FromCards(c,tc):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 then if g:GetCount()==2 then
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
end end
......
...@@ -70,6 +70,7 @@ function c101108043.atktg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,6 +70,7 @@ function c101108043.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c101108043.atkop(e,tp,eg,ep,ev,re,r,rp) function c101108043.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
...@@ -78,4 +79,5 @@ function c101108043.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,4 +79,5 @@ function c101108043.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(math.abs(Duel.GetLP(tp)-Duel.GetLP(1-tp))) e1:SetValue(math.abs(Duel.GetLP(tp)-Duel.GetLP(1-tp)))
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end
end end
...@@ -54,7 +54,6 @@ function c101108044.dbop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,6 @@ function c101108044.dbop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_BATTLE_START) e1:SetCode(EVENT_PHASE+PHASE_BATTLE_START)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetOperation(c101108044.sop) e1:SetOperation(c101108044.sop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
...@@ -65,16 +64,16 @@ function c101108044.sop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,16 +64,16 @@ function c101108044.sop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101108044,2)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101108044,2))
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.HintSelection(sg)
local tc=sg:GetFirst() local tc=sg:GetFirst()
if not tc:IsImmuneToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(tc:GetAttack()) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(tc:GetAttack()*2)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end
end end
function c101108044.upcon(e,tp,eg,ep,ev,re,r,rp) function c101108044.upcon(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetBattleMonster(1-tp) local tc=Duel.GetBattleMonster(1-tp)
...@@ -84,20 +83,21 @@ function c101108044.upcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -84,20 +83,21 @@ function c101108044.upcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c101108044.uptg(e,tp,eg,ep,ev,re,r,rp,chk) function c101108044.uptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and aux.nzatk(chkc) end
if chk==0 then return Duel.IsExistingTarget(aux.nzatk,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,aux.nzatk,tp,0,LOCATION_MZONE,1,1,nil)
end end
function c101108044.upop(e,tp,eg,ep,ev,re,r,rp) function c101108044.upop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel:GetFirstTarget() local tc=Duel:GetFirstTarget()
if c:IsRelateToEffect(e) and c:IsFaceup() and not c:IsImmuneToEffect(e) then if c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToEffect(e) and tc: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_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(tc:GetAttack()) e1:SetValue(tc:GetAttack())
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
...@@ -64,12 +64,12 @@ function c101108045.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,12 +64,12 @@ function c101108045.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0
and c:IsRelateToEffect(e) and c:IsFaceup() and not c:IsImmuneToEffect(e) then and 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_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(tc:GetBaseAttack()) e1:SetValue(tc:GetBaseAttack())
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
......
...@@ -52,6 +52,7 @@ function c101108046.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,6 +52,7 @@ function c101108046.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c101108046.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c101108046.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_ONFIELD) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_ONFIELD)
end end
function c101108046.rmop(e,tp,eg,ep,ev,re,r,rp) function c101108046.rmop(e,tp,eg,ep,ev,re,r,rp)
...@@ -73,6 +74,7 @@ function c101108046.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -73,6 +74,7 @@ function c101108046.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local g=c:GetOverlayGroup() local g=c:GetOverlayGroup()
if chk==0 then return g:IsExists(c101108046.toexfilter,1,nil) end if chk==0 then return g:IsExists(c101108046.toexfilter,1,nil) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c101108046.spop(e,tp,eg,ep,ev,re,r,rp) function c101108046.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -65,9 +65,6 @@ function c101108049.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -65,9 +65,6 @@ function c101108049.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c101108049.splimit(e,c)
return not c:IsSetCard(0x27b)
end
function c101108049.operation(e,tp,eg,ep,ev,re,r,rp) function c101108049.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then
...@@ -87,3 +84,6 @@ function c101108049.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,3 +84,6 @@ function c101108049.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c101108049.splimit(e,c)
return not c:IsSetCard(0x27b)
end
...@@ -53,8 +53,8 @@ function c101108051.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,8 +53,8 @@ function c101108051.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmDecktop(tp,ac) Duel.ConfirmDecktop(tp,ac)
local g=Duel.GetDecktopGroup(tp,ac) local g=Duel.GetDecktopGroup(tp,ac)
local og=g:Filter(c101108051.spfilter,nil,e,tp) local og=g:Filter(c101108051.spfilter,nil,e,tp)
if og:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(101108051,3)) then
local ft=math.min((Duel.GetLocationCount(tp,LOCATION_MZONE)),2) local ft=math.min((Duel.GetLocationCount(tp,LOCATION_MZONE)),2)
if og:GetCount()>0 and ft>0 and Duel.SelectYesNo(tp,aux.Stringid(101108051,3)) then
if ft>1 and Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end if ft>1 and Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=og:Select(tp,1,ft,nil) local sg=og:Select(tp,1,ft,nil)
......
...@@ -28,7 +28,7 @@ function c101108053.initial_effect(c) ...@@ -28,7 +28,7 @@ function c101108053.initial_effect(c)
e3:SetRange(LOCATION_FZONE) e3:SetRange(LOCATION_FZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCode(EVENT_BATTLE_DESTROYED) e3:SetCode(EVENT_BATTLE_DESTROYED)
e3:SetCountLimit(1,101108053) e3:SetCountLimit(1)
e3:SetTarget(c101108053.thtg) e3:SetTarget(c101108053.thtg)
e3:SetOperation(c101108053.thop) e3:SetOperation(c101108053.thop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
...@@ -15,7 +15,8 @@ function c101108055.initial_effect(c) ...@@ -15,7 +15,8 @@ function c101108055.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c101108055.costfilter(c) function c101108055.costfilter(c)
return (c:IsSetCard(0x27a) or c:IsCode(101108054)) and ((c:IsFaceup() and c:GetSequence()<5) or not c:IsLocation(LOCATION_SZONE)) and not c:IsCode(101108055) and c:IsAbleToGraveAsCost() return (c:IsSetCard(0x27a) or c:IsCode(101108054)) and not c:IsCode(101108055) and c:IsAbleToGraveAsCost()
and ((c:IsFaceup() and c:GetSequence()<5) or not c:IsLocation(LOCATION_SZONE))
end end
function c101108055.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c101108055.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101108055.costfilter,tp,LOCATION_HAND+LOCATION_SZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c101108055.costfilter,tp,LOCATION_HAND+LOCATION_SZONE,0,1,nil) end
......
...@@ -44,7 +44,7 @@ function c101108060.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c101108060.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local rc=Duel.SelectMatchingCard(tp,c101108060.rmfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,1,nil,tc):GetFirst() local rc=Duel.SelectMatchingCard(tp,c101108060.rmfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,1,nil,tc):GetFirst()
if rc and Duel.Remove(rc,POS_FACEUP,REASON_EFFECT)>0 and rc:IsLocation(LOCATION_REMOVED) and tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) and rc and Duel.Remove(rc,POS_FACEUP,REASON_EFFECT)>0 and rc:IsLocation(LOCATION_REMOVED) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end end
end end
......
...@@ -68,8 +68,11 @@ function c101108062.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,8 +68,11 @@ function c101108062.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c101108062.cfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x1066) and c:IsSummonPlayer(tp)
end
function c101108062.thcon2(e,tp,eg,ep,ev,re,r,rp) function c101108062.thcon2(e,tp,eg,ep,ev,re,r,rp)
return rp==tp and eg:IsExists(Card.IsSetCard,1,nil,0x1066) return eg:IsExists(c101108062.cfilter,1,nil,tp)
end end
function c101108062.thfilter2(c) function c101108062.thfilter2(c)
return c:IsCode(75304793) and c:IsAbleToHand() return c:IsCode(75304793) and c:IsAbleToHand()
......
...@@ -76,6 +76,7 @@ function c101108064.attop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,6 +76,7 @@ function c101108064.attop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
if e:GetLabel()==1-tp and tc:IsControler(1-tp) and tc:IsControlerCanBeChanged() if e:GetLabel()==1-tp and tc:IsControler(1-tp) and tc:IsControlerCanBeChanged()
and Duel.SelectYesNo(tp,aux.Stringid(101108064,2)) then and Duel.SelectYesNo(tp,aux.Stringid(101108064,2)) then
Duel.BreakEffect()
Duel.GetControl(tc,tp) Duel.GetControl(tc,tp)
end end
end end
......
...@@ -5,7 +5,6 @@ function c101108068.initial_effect(c) ...@@ -5,7 +5,6 @@ function c101108068.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,101108068+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,101108068+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c101108068.condition) e1:SetCondition(c101108068.condition)
...@@ -40,7 +39,7 @@ function c101108068.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +39,7 @@ function c101108068.activate(e,tp,eg,ep,ev,re,r,rp)
end end
if cl>=3 then if cl>=3 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.SendtoGrave(Duel.GetDecktopGroup(tp,1),REASON_EFFECT) Duel.DiscardDeck(tp,1,REASON_EFFECT)
end end
if cl>=4 then if cl>=4 then
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -8,6 +8,7 @@ function c101108071.initial_effect(c) ...@@ -8,6 +8,7 @@ function c101108071.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetCountLimit(1,101108071) e1:SetCountLimit(1,101108071)
e1:SetTarget(c101108071.target) e1:SetTarget(c101108071.target)
e1:SetOperation(c101108071.activate) e1:SetOperation(c101108071.activate)
...@@ -20,6 +21,7 @@ function c101108071.initial_effect(c) ...@@ -20,6 +21,7 @@ function c101108071.initial_effect(c)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e2:SetCountLimit(1,101108071) e2:SetCountLimit(1,101108071)
e2:SetCondition(c101108071.eqcon) e2:SetCondition(c101108071.eqcon)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
......
...@@ -44,7 +44,7 @@ function c101108074.adatktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -44,7 +44,7 @@ function c101108074.adatktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c101108074.adatkop(e,tp,eg,ep,ev,re,r,rp) function c101108074.adatkop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) or tc:IsImmuneToEffect(e) then return end if not tc:IsRelateToEffect(e) or tc:IsFacedown() then return end
--defense attack --defense attack
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -16,8 +16,10 @@ function c101108076.initial_effect(c) ...@@ -16,8 +16,10 @@ function c101108076.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101108076,1)) e2:SetDescription(aux.Stringid(101108076,1))
e2:SetCategory(CATEGORY_TODECK) e2:SetCategory(CATEGORY_TODECK)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetHintTiming(0,TIMING_END_PHASE)
e2:SetCountLimit(1,101108076) e2:SetCountLimit(1,101108076)
e2:SetTarget(c101108076.settg) e2:SetTarget(c101108076.settg)
e2:SetOperation(c101108076.setop) e2:SetOperation(c101108076.setop)
......
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