From 52cc5a64c6c8e395da3f55f65c3e424dccc1cd4d Mon Sep 17 00:00:00 2001 From: AndreOliveiraMendes Date: Mon, 16 Jan 2017 16:12:00 -0200 Subject: [PATCH 1/6] fix for BESP added the check --- script/c12958919.lua | 92 ++++++++++++++++++++++++++++++++++++++++++++ script/c32679370.lua | 37 ++++++++++++++++++ script/c3493978.lua | 33 ++++++++++++++++ script/c46384403.lua | 34 ++++++++++++++++ script/c6459419.lua | 38 ++++++++++++++++++ script/c68191243.lua | 41 ++++++++++++++++++++ script/c72714226.lua | 38 ++++++++++++++++++ script/c79279397.lua | 31 +++++++++++++++ script/c87483942.lua | 33 ++++++++++++++++ script/c95178994.lua | 44 +++++++++++++++++++++ 10 files changed, 421 insertions(+) create mode 100644 script/c12958919.lua create mode 100644 script/c32679370.lua create mode 100644 script/c3493978.lua create mode 100644 script/c46384403.lua create mode 100644 script/c6459419.lua create mode 100644 script/c68191243.lua create mode 100644 script/c72714226.lua create mode 100644 script/c79279397.lua create mode 100644 script/c87483942.lua create mode 100644 script/c95178994.lua diff --git a/script/c12958919.lua b/script/c12958919.lua new file mode 100644 index 00000000..ab27d93a --- /dev/null +++ b/script/c12958919.lua @@ -0,0 +1,92 @@ +--幻銃士 +function c12958919.initial_effect(c) + --token + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(12958919,0)) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) + e1:SetCode(EVENT_SUMMON_SUCCESS) + e1:SetTarget(c12958919.sptg) + e1:SetOperation(c12958919.spop) + c:RegisterEffect(e1) + local e2=e1:Clone() + e2:SetCode(EVENT_FLIP_SUMMON_SUCCESS) + c:RegisterEffect(e2) + --damage + local e2=Effect.CreateEffect(c) + e2:SetDescription(aux.Stringid(12958919,1)) + e2:SetCategory(CATEGORY_DAMAGE) + e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) + e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) + e2:SetCode(EVENT_PHASE+PHASE_STANDBY) + e2:SetRange(LOCATION_MZONE) + e2:SetCountLimit(1) + e2:SetCondition(c12958919.damcon) + e2:SetCost(c12958919.damcost) + e2:SetTarget(c12958919.damtg) + e2:SetOperation(c12958919.damop) + c:RegisterEffect(e2) + if not c12958919.global_check then + c12958919.global_check=true + local ge1=Effect.CreateEffect(c) + ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) + ge1:SetCode(EVENT_ATTACK_ANNOUNCE) + ge1:SetOperation(c12958919.checkop) + Duel.RegisterEffect(ge1,0) + end +end +function c12958919.checkop(e,tp,eg,ep,ev,re,r,rp) + local tc=eg:GetFirst() + if tc:IsSetCard(0x49) then + Duel.RegisterFlagEffect(tc:GetControler(),12958919,RESET_PHASE+PHASE_END,0,1) + end +end +function c12958919.sptg(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsPlayerCanSpecialSummonMonster(tp,12958920,0x49,0x4011,500,500,4,RACE_FIEND,ATTRIBUTE_DARK) end + Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) +end +function c12958919.spop(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + local ct=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0) + if ft>ct then ft=ct end + if ft<=0 then return end + if not Duel.IsPlayerCanSpecialSummonMonster(tp,12958920,0x49,0x4011,500,500,4,RACE_FIEND,ATTRIBUTE_DARK) then return end + local ctn=true + while ft>0 and ctn do + local token=Duel.CreateToken(tp,12958920) + Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) + ft=ft-1 + if ft<=0 or not Duel.SelectYesNo(tp,aux.Stringid(12958919,2)) or Duel.IsPlayerAffectedByEffect(tp,59822133) then ctn=false end + end + Duel.SpecialSummonComplete() +end +function c12958919.damcon(e,tp,eg,ep,ev,re,r,rp) + return tp==Duel.GetTurnPlayer() +end +function c12958919.damcost(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetFlagEffect(tp,12958919)==0 end + local e1=Effect.CreateEffect(e:GetHandler()) + e1:SetType(EFFECT_TYPE_FIELD) + e1:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE) + e1:SetProperty(EFFECT_FLAG_OATH) + e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x49)) + e1:SetTargetRange(LOCATION_MZONE,0) + e1:SetReset(RESET_PHASE+PHASE_END) + Duel.RegisterEffect(e1,tp) +end +function c12958919.damfilter(c) + return c:IsFaceup() and c:IsSetCard(0x49) +end +function c12958919.damtg(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return true end + local ct=Duel.GetMatchingGroupCount(c12958919.damfilter,tp,LOCATION_MZONE,0,nil) + Duel.SetTargetPlayer(1-tp) + Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,ct*300) +end +function c12958919.damop(e,tp,eg,ep,ev,re,r,rp) + local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) + local ct=Duel.GetMatchingGroupCount(c12958919.damfilter,tp,LOCATION_MZONE,0,nil) + Duel.Damage(p,ct*300,REASON_EFFECT) +end diff --git a/script/c32679370.lua b/script/c32679370.lua new file mode 100644 index 00000000..fc9d3557 --- /dev/null +++ b/script/c32679370.lua @@ -0,0 +1,37 @@ +--ヒーロー・キッズ +function c32679370.initial_effect(c) + --spsummon + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(32679370,0)) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) + e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) + e1:SetCode(EVENT_SPSUMMON_SUCCESS) + e1:SetTarget(c32679370.target) + e1:SetOperation(c32679370.operation) + c:RegisterEffect(e1) +end +function c32679370.filter(c,e,tp) + return c:IsCode(32679370) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c32679370.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingMatchingCard(c32679370.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) +end +function c32679370.operation(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ft<=0 then return end + local g=Duel.GetMatchingGroup(c32679370.filter,tp,LOCATION_DECK,0,nil,e,tp) + local tc=g:GetFirst() + if tc then + Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) + ft=ft-1 + end + tc=g:GetNext() + while ft>1 and tc and not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.SelectYesNo(tp,aux.Stringid(32679370,1)) then + Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) + ft=ft-1 + end + Duel.SpecialSummonComplete() +end diff --git a/script/c3493978.lua b/script/c3493978.lua new file mode 100644 index 00000000..c251ae19 --- /dev/null +++ b/script/c3493978.lua @@ -0,0 +1,33 @@ +--首領亀 +function c3493978.initial_effect(c) + --special summon + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(3493978,0)) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) + e1:SetCode(EVENT_SUMMON_SUCCESS) + e1:SetTarget(c3493978.target) + e1:SetOperation(c3493978.operation) + c:RegisterEffect(e1) + local e2=e1:Clone() + e2:SetCode(EVENT_FLIP_SUMMON_SUCCESS) + c:RegisterEffect(e2) +end +function c3493978.filter(c,e,tp) + return c:IsCode(3493978) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c3493978.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingMatchingCard(c3493978.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) +end +function c3493978.operation(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + local g=Duel.SelectMatchingCard(tp,c3493978.filter,tp,LOCATION_HAND,0,1,ft,nil,e,tp) + if g:GetCount()>0 then + Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) + end +end diff --git a/script/c46384403.lua b/script/c46384403.lua new file mode 100644 index 00000000..b7e1fe42 --- /dev/null +++ b/script/c46384403.lua @@ -0,0 +1,34 @@ +--素早いマンタ +function c46384403.initial_effect(c) + --special summon + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(46384403,0)) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) + e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) + e1:SetCode(EVENT_TO_GRAVE) + e1:SetCondition(c46384403.condition) + e1:SetTarget(c46384403.target) + e1:SetOperation(c46384403.operation) + c:RegisterEffect(e1) +end +function c46384403.condition(e,tp,eg,ep,ev,re,r,rp) + return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsReason(REASON_EFFECT) +end +function c46384403.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.IsExistingMatchingCard(c46384403.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) +end +function c46384403.filter(c,e,tp) + return c:IsCode(46384403) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c46384403.operation(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + local g=Duel.SelectMatchingCard(tp,c46384403.filter,tp,LOCATION_DECK,0,1,ft,nil,e,tp) + if g:GetCount()>0 then + Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) + end +end diff --git a/script/c6459419.lua b/script/c6459419.lua new file mode 100644 index 00000000..253795fb --- /dev/null +++ b/script/c6459419.lua @@ -0,0 +1,38 @@ +--アマゾネス転生術 +function c6459419.initial_effect(c) + --Activate + local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_ACTIVATE) + e1:SetCode(EVENT_FREE_CHAIN) + e1:SetTarget(c6459419.target) + e1:SetOperation(c6459419.activate) + c:RegisterEffect(e1) +end +function c6459419.dfilter(c) + return c:IsFaceup() and c:IsSetCard(0x4) +end +function c6459419.spfilter(c,e,tp) + return c:IsLevelBelow(4) and c:IsSetCard(0x4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c6459419.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.IsExistingMatchingCard(c6459419.dfilter,tp,LOCATION_MZONE,0,1,nil) end + local g=Duel.GetMatchingGroup(c6459419.dfilter,tp,LOCATION_MZONE,0,nil) + Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) +end +function c6459419.activate(e,tp,eg,ep,ev,re,r,rp) + local g=Duel.GetMatchingGroup(c6459419.dfilter,tp,LOCATION_MZONE,0,nil) + local ct=Duel.Destroy(g,REASON_EFFECT) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ft>ct then ft=ct end + if ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + local sg=Duel.GetMatchingGroup(c6459419.spfilter,tp,LOCATION_GRAVE,0,nil,e,tp) + if sg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(6459419,0)) then + Duel.BreakEffect() + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + local fg=sg:Select(tp,1,ft,nil) + if fg:IsExists(Card.IsHasEffect,1,nil,EFFECT_NECRO_VALLEY) then return end + Duel.SpecialSummon(fg,0,tp,tp,false,false,POS_FACEUP_DEFENSE) + end +end diff --git a/script/c68191243.lua b/script/c68191243.lua new file mode 100644 index 00000000..c893c082 --- /dev/null +++ b/script/c68191243.lua @@ -0,0 +1,41 @@ +--黒蠍団召集 +function c68191243.initial_effect(c) + --activate + local e1=Effect.CreateEffect(c) + e1:SetType(EFFECT_TYPE_ACTIVATE) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCode(EVENT_FREE_CHAIN) + e1:SetCondition(c68191243.con) + e1:SetTarget(c68191243.tg) + e1:SetOperation(c68191243.op) + c:RegisterEffect(e1) +end +function c68191243.cfilter(c) + return c:IsFaceup() and c:IsCode(76922029) +end +function c68191243.con(e,tp,eg,ep,ev,re,r,rp) + return Duel.IsExistingMatchingCard(c68191243.cfilter,tp,LOCATION_ONFIELD,0,1,nil) +end +function c68191243.filter(c,e,tp) + return c:IsSetCard(0x1a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c68191243.tg(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingMatchingCard(c68191243.filter,tp,LOCATION_HAND,0,1,nil,e,tp) + end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) +end +function c68191243.op(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ft<=0 then return end + local g=Duel.GetMatchingGroup(c68191243.filter,tp,LOCATION_HAND,0,nil,e,tp) + while g:GetCount()>0 and ft>0 do + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + local sg=g:Select(tp,1,1,nil) + Duel.SpecialSummonStep(sg:GetFirst(),0,tp,tp,false,false,POS_FACEUP) + ft=ft-1 + g:Remove(Card.IsCode,nil,sg:GetFirst():GetCode()) + if g:GetCount()>0 and ft>0 and (Duel.IsPlayerAffectedByEffect(tp,59822133) or not Duel.SelectYesNo(tp,aux.Stringid(68191243,0))) then ft=0 end + end + Duel.SpecialSummonComplete() +end diff --git a/script/c72714226.lua b/script/c72714226.lua new file mode 100644 index 00000000..c8ba5e05 --- /dev/null +++ b/script/c72714226.lua @@ -0,0 +1,38 @@ +--アサルト・ガンドッグ +function c72714226.initial_effect(c) + --special summon + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(72714226,0)) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) + e1:SetCode(EVENT_BATTLE_DESTROYED) + e1:SetCondition(c72714226.condition) + e1:SetTarget(c72714226.target) + e1:SetOperation(c72714226.operation) + c:RegisterEffect(e1) +end +function c72714226.condition(e,tp,eg,ep,ev,re,r,rp) + return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE) +end +function c72714226.filter(c,e,tp) + return c:IsCode(72714226) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c72714226.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingMatchingCard(c72714226.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) +end +function c72714226.operation(e,tp,eg,ep,ev,re,r,rp) + local ct=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ct<=0 then return end + local g=Duel.GetMatchingGroup(c72714226.filter,tp,LOCATION_DECK,0,nil,e,tp) + if g:GetCount()>0 then + local tc1=g:GetFirst() + local tc2=g:GetNext() + Duel.SpecialSummonStep(tc1,0,tp,tp,false,false,POS_FACEUP) + if tc2 and ct>1 and Duel.SelectYesNo(tp,aux.Stringid(72714226,1)) then + Duel.SpecialSummonStep(tc2,0,tp,tp,false,false,POS_FACEUP) + end + Duel.SpecialSummonComplete() + end +end diff --git a/script/c79279397.lua b/script/c79279397.lua new file mode 100644 index 00000000..24e728fe --- /dev/null +++ b/script/c79279397.lua @@ -0,0 +1,31 @@ +--Dボーイズ +function c79279397.initial_effect(c) + --spsummon + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(79279397,0)) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) + e1:SetProperty(EFFECT_FLAG_DELAY) + e1:SetTarget(c79279397.target) + e1:SetOperation(c79279397.spop) + c:RegisterEffect(e1) +end +function c79279397.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingMatchingCard(c79279397.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) +end +function c79279397.filter(c,e,tp) + return c:IsCode(79279397) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c79279397.spop(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + local g=Duel.GetMatchingGroup(c79279397.filter,tp,LOCATION_DECK,0,nil,e,tp) + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + if g:GetCount()>0 then + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + local sg=g:Select(tp,1,ft,nil) + Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP_ATTACK) + Duel.Damage(tp,sg:GetCount()*1000,REASON_EFFECT) + end +end diff --git a/script/c87483942.lua b/script/c87483942.lua new file mode 100644 index 00000000..a31f0551 --- /dev/null +++ b/script/c87483942.lua @@ -0,0 +1,33 @@ +--渋い忍者 +function c87483942.initial_effect(c) + c:SetUniqueOnField(1,1,87483942) + --spsummon + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(87483942,0)) + e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCode(EVENT_FLIP) + e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) + e1:SetTarget(c87483942.sptg) + e1:SetOperation(c87483942.spop) + c:RegisterEffect(e1) +end +function c87483942.filter(c,e,tp) + return c:IsSetCard(0x2b) and not c:IsCode(87483942) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) +end +function c87483942.sptg(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingMatchingCard(c87483942.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) +end +function c87483942.spop(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + local g=Duel.SelectMatchingCard(tp,c87483942.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,ft,nil,e,tp) + if g:GetCount()>0 and not g:IsExists(Card.IsHasEffect,1,nil,EFFECT_NECRO_VALLEY) then + Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE) + Duel.ConfirmCards(1-tp,g) + end +end \ No newline at end of file diff --git a/script/c95178994.lua b/script/c95178994.lua new file mode 100644 index 00000000..8e4434b9 --- /dev/null +++ b/script/c95178994.lua @@ -0,0 +1,44 @@ +--ジャイアントウィルス +function c95178994.initial_effect(c) + --battle destroyed + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(95178994,0)) + e1:SetCategory(CATEGORY_DAMAGE+CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) + e1:SetCode(EVENT_BATTLE_DESTROYED) + e1:SetCondition(c95178994.condition) + e1:SetTarget(c95178994.target) + e1:SetOperation(c95178994.operation) + c:RegisterEffect(e1) +end +function c95178994.condition(e,tp,eg,ep,ev,re,r,rp) + return e:GetHandler():IsLocation(LOCATION_GRAVE) + and e:GetHandler():IsReason(REASON_BATTLE) +end +function c95178994.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return true end + Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500) +end +function c95178994.filter(c,e,tp) + return c:IsCode(95178994) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c95178994.operation(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + Duel.Damage(1-tp,500,REASON_EFFECT) + if ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + local g=Duel.GetMatchingGroup(c95178994.filter,tp,LOCATION_DECK,0,nil,e,tp) + if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(95178994,1)) then + Duel.BreakEffect() + local gc=g:GetFirst() + Duel.SpecialSummonStep(gc,0,tp,tp,false,false,POS_FACEUP_ATTACK) + ft=ft-1 + gc=g:GetNext() + while ft>0 and gc and not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.SelectYesNo(tp,aux.Stringid(95178994,1)) do + Duel.SpecialSummonStep(gc,0,tp,tp,false,false,POS_FACEUP_ATTACK) + ft=ft-1 + gc=g:GetNext() + end + Duel.SpecialSummonComplete() + end +end From 1f38ebf2a7858f93961ad90aee2cfcadb11e6d25 Mon Sep 17 00:00:00 2001 From: AndreOliveiraMendes Date: Mon, 16 Jan 2017 16:14:07 -0200 Subject: [PATCH 2/6] fix --- script/c55705473.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/c55705473.lua b/script/c55705473.lua index 4b36f7c2..c8004873 100644 --- a/script/c55705473.lua +++ b/script/c55705473.lua @@ -59,7 +59,7 @@ function c55705473.sptg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) end function c55705473.spop(e,tp,eg,ep,ev,re,r,rp) - local ct=2 + local ct=Duel.GetLocationCount(tp,LOCATION_MZONE) if Duel.IsPlayerAffectedByEffect(tp,59822133) then ct=1 end ct=math.min(ct,Duel.GetLocationCount(tp,LOCATION_MZONE)) if ct<=0 then return end From ce193cf818556294018cd992c48452f984a28cc0 Mon Sep 17 00:00:00 2001 From: AndreOliveiraMendes Date: Mon, 16 Jan 2017 16:16:24 -0200 Subject: [PATCH 3/6] fix --- script/c513000047.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/script/c513000047.lua b/script/c513000047.lua index 7feeee43..560d9e2d 100644 --- a/script/c513000047.lua +++ b/script/c513000047.lua @@ -67,6 +67,7 @@ end function c513000047.spop(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if not e:GetHandler():IsRelateToEffect(e) or ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,c513000047.spfilter,tp,LOCATION_HAND,0,1,ft,nil,e,tp) if g:GetCount()>0 then From 0a9b0eec2a34a3b550c56a9d43f30c48955f9543 Mon Sep 17 00:00:00 2001 From: AndreOliveiraMendes Date: Mon, 16 Jan 2017 17:01:57 -0200 Subject: [PATCH 4/6] fix --- script/c72714226.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/c72714226.lua b/script/c72714226.lua index c8ba5e05..e5b3127e 100644 --- a/script/c72714226.lua +++ b/script/c72714226.lua @@ -27,11 +27,14 @@ function c72714226.operation(e,tp,eg,ep,ev,re,r,rp) if ct<=0 then return end local g=Duel.GetMatchingGroup(c72714226.filter,tp,LOCATION_DECK,0,nil,e,tp) if g:GetCount()>0 then - local tc1=g:GetFirst() + local tc1=g:GetFirst() local tc2=g:GetNext() Duel.SpecialSummonStep(tc1,0,tp,tp,false,false,POS_FACEUP) - if tc2 and ct>1 and Duel.SelectYesNo(tp,aux.Stringid(72714226,1)) then + ct=ct-1 + while tc2 and ct>0 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.SelectYesNo(tp,aux.Stringid(72714226,1)) then Duel.SpecialSummonStep(tc2,0,tp,tp,false,false,POS_FACEUP) + ct=ct-1 + tc2=g:GetNext() end Duel.SpecialSummonComplete() end From edaa72944f6947578e39e5739c620317ec37381b Mon Sep 17 00:00:00 2001 From: AndreOliveiraMendes Date: Mon, 16 Jan 2017 20:25:22 -0200 Subject: [PATCH 5/6] fix --- script/c22567609.lua | 39 ++++++++++++++++++++++++ script/c23681456.lua | 64 ++++++++++++++++++++++++++++++++++++++++ script/c28577986.lua | 54 ++++++++++++++++++++++++++++++++++ script/c40854824.lua | 44 ++++++++++++++++++++++++++++ script/c50766506.lua | 70 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 271 insertions(+) create mode 100644 script/c22567609.lua create mode 100644 script/c23681456.lua create mode 100644 script/c28577986.lua create mode 100644 script/c40854824.lua create mode 100644 script/c50766506.lua diff --git a/script/c22567609.lua b/script/c22567609.lua new file mode 100644 index 00000000..643ee4bc --- /dev/null +++ b/script/c22567609.lua @@ -0,0 +1,39 @@ +--素早いモモンガ +function c22567609.initial_effect(c) + --battle destroyed + local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(22567609,0)) + e1:SetCategory(CATEGORY_RECOVER+CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) + e1:SetCode(EVENT_BATTLE_DESTROYED) + e1:SetCondition(c22567609.condition) + e1:SetTarget(c22567609.target) + e1:SetOperation(c22567609.operation) + c:RegisterEffect(e1) +end +function c22567609.condition(e,tp,eg,ep,ev,re,r,rp) + return e:GetHandler():IsLocation(LOCATION_GRAVE) + and bit.band(e:GetHandler():GetReason(),REASON_BATTLE)~=0 +end +function c22567609.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return true end + Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000) +end +function c22567609.filter(c,e,tp) + return c:IsCode(22567609) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN) +end +function c22567609.operation(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + Duel.Recover(tp,1000,REASON_EFFECT) + if ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + local g=Duel.GetMatchingGroup(c22567609.filter,tp,LOCATION_DECK,0,nil,e,tp) + if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(22567609,1)) then + Duel.BreakEffect() + Duel.SpecialSummonStep(g:GetFirst(),0,tp,tp,false,false,POS_FACEDOWN_DEFENSE) + if ft>1 and g:GetCount()>1 and Duel.SelectYesNo(tp,aux.Stringid(22567609,1)) then + Duel.SpecialSummonStep(g:GetNext(),0,tp,tp,false,false,POS_FACEDOWN_DEFENSE) + end + Duel.SpecialSummonComplete() + end +end diff --git a/script/c23681456.lua b/script/c23681456.lua new file mode 100644 index 00000000..8b488890 --- /dev/null +++ b/script/c23681456.lua @@ -0,0 +1,64 @@ +--マドルチェ・ハッピーフェスタ +function c23681456.initial_effect(c) + --activate + local e1=Effect.CreateEffect(c) + e1:SetType(EFFECT_TYPE_ACTIVATE) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetCode(EVENT_FREE_CHAIN) + e1:SetTarget(c23681456.target) + e1:SetOperation(c23681456.operation) + c:RegisterEffect(e1) +end +function c23681456.filter(c,e,tp) + return c:IsSetCard(0x71) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c23681456.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingMatchingCard(c23681456.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) +end +function c23681456.operation(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ft<=0 then return end + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + local g=Duel.SelectMatchingCard(tp,c23681456.filter,tp,LOCATION_HAND,0,1,ft,nil,e,tp) + if g:GetCount()>0 then + local fid=e:GetHandler():GetFieldID() + local tc=g:GetFirst() + while tc do + Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) + tc:RegisterFlagEffect(23681456,RESET_EVENT+0x1fe0000,0,1,fid) + tc:RegisterFlagEffect(0,RESET_EVENT+0x1fe0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(23681456,0)) + tc=g:GetNext() + end + Duel.SpecialSummonComplete() + g:KeepAlive() + local e1=Effect.CreateEffect(e:GetHandler()) + e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) + e1:SetCode(EVENT_PHASE+PHASE_END) + e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) + e1:SetCountLimit(1) + e1:SetLabel(fid) + e1:SetLabelObject(g) + e1:SetCondition(c23681456.retcon) + e1:SetOperation(c23681456.retop) + Duel.RegisterEffect(e1,tp) + end +end +function c23681456.retfilter(c,fid) + return c:GetFlagEffectLabel(23681456)==fid +end +function c23681456.retcon(e,tp,eg,ep,ev,re,r,rp) + local g=e:GetLabelObject() + if not g:IsExists(c23681456.retfilter,1,nil,e:GetLabel()) then + g:DeleteGroup() + e:Reset() + return false + else return true end +end +function c23681456.retop(e,tp,eg,ep,ev,re,r,rp) + local g=e:GetLabelObject() + local tg=g:Filter(c23681456.retfilter,nil,e:GetLabel()) + Duel.SendtoDeck(tg,nil,2,REASON_EFFECT) +end diff --git a/script/c28577986.lua b/script/c28577986.lua new file mode 100644 index 00000000..dc85d587 --- /dev/null +++ b/script/c28577986.lua @@ -0,0 +1,54 @@ +--水精鱗-オーケアビス +function c28577986.initial_effect(c) + --spsummon + local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetDescription(aux.Stringid(28577986,0)) + e1:SetType(EFFECT_TYPE_IGNITION) + e1:SetProperty(EFFECT_FLAG_CARD_TARGET) + e1:SetRange(LOCATION_MZONE) + e1:SetCountLimit(1,28577986) + e1:SetTarget(c28577986.target) + e1:SetOperation(c28577986.operation) + c:RegisterEffect(e1) +end +function c28577986.cfilter(c,e,tp) + local lv=c:GetLevel() + return lv>0 and c:IsFaceup() and c:IsSetCard(0x74) + and Duel.IsExistingMatchingCard(c28577986.spfilter,tp,LOCATION_DECK,0,1,nil,lv,e,tp) +end +function c28577986.spfilter(c,lv,e,tp) + if lv>4 then lv=4 end + return c:IsLevelBelow(lv) and c:IsSetCard(0x74) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c28577986.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) + if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c28577986.cfilter(chkc,e,tp) end + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingTarget(c28577986.cfilter,tp,LOCATION_MZONE,0,1,nil,e,tp) end + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) + local g=Duel.SelectTarget(tp,c28577986.cfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp) + Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) +end +function c28577986.operation(e,tp,eg,ep,ev,re,r,rp) + local tc=Duel.GetFirstTarget() + if not tc:IsRelateToEffect(e) then return end + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + local slv=tc:GetLevel() + local sg=Duel.GetMatchingGroup(c28577986.spfilter,tp,LOCATION_DECK,0,nil,slv,e,tp) + if sg:GetCount()==0 then return end + repeat + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + local tc=sg:Select(tp,1,1,nil):GetFirst() + sg:RemoveCard(tc) + slv=slv-tc:GetLevel() + Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) + sg:Remove(Card.IsLevelAbove,nil,slv+1) + ft=ft-1 + until ft<=0 or sg:GetCount()==0 or not Duel.SelectYesNo(tp,aux.Stringid(28577986,1)) + Duel.SpecialSummonComplete() + Duel.BreakEffect() + Duel.SendtoGrave(tc,REASON_EFFECT) +end diff --git a/script/c40854824.lua b/script/c40854824.lua new file mode 100644 index 00000000..e6a58011 --- /dev/null +++ b/script/c40854824.lua @@ -0,0 +1,44 @@ +--オーバー・ザ・レインボー +function c40854824.initial_effect(c) + --Activate + local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_ACTIVATE) + e1:SetCode(EVENT_FREE_CHAIN) + e1:SetCondition(c40854824.condition) + e1:SetTarget(c40854824.target) + e1:SetOperation(c40854824.activate) + c:RegisterEffect(e1) + Duel.AddCustomActivityCounter(40854824,ACTIVITY_CHAIN,c40854824.chainfilter) +end +function c40854824.chainfilter(re,tp,cid) + local code1,code2=re:GetHandler():GetOriginalCodeRule() + return not (re:IsActiveType(TYPE_MONSTER) and (code1==79407975 or code1==79856792 or code2==79407975 or code2==79856792)) +end +function c40854824.condition(e,tp,eg,ep,ev,re,r,rp) + return Duel.GetCustomActivityCount(40854824,tp,ACTIVITY_CHAIN)~=0 +end +function c40854824.filter(c,e,tp) + return c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) +end +function c40854824.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 + and Duel.IsExistingMatchingCard(c40854824.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) +end +function c40854824.activate(e,tp,eg,ep,ev,re,r,rp) + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + local g=Duel.GetMatchingGroup(c40854824.filter,tp,LOCATION_DECK,0,nil,e,tp) + if g:GetCount()==0 then return end + repeat + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + local sg=g:Select(tp,1,1,nil) + local tc=sg:GetFirst() + Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) + g:Remove(Card.IsCode,nil,tc:GetCode()) + ft=ft-1 + until ft<=0 or g:GetCount()==0 or not Duel.SelectYesNo(tp,aux.Stringid(40854824,0)) + Duel.SpecialSummonComplete() +end diff --git a/script/c50766506.lua b/script/c50766506.lua new file mode 100644 index 00000000..47214e3b --- /dev/null +++ b/script/c50766506.lua @@ -0,0 +1,70 @@ +--忍法 分身の術 +function c50766506.initial_effect(c) + --Activate + local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_SPECIAL_SUMMON) + e1:SetType(EFFECT_TYPE_ACTIVATE) + e1:SetCode(EVENT_FREE_CHAIN) + e1:SetHintTiming(0,0x1c0) + e1:SetTarget(c50766506.target) + e1:SetOperation(c50766506.operation) + c:RegisterEffect(e1) + --Destroy + local e2=Effect.CreateEffect(c) + e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE) + e2:SetCode(EVENT_LEAVE_FIELD) + e2:SetOperation(c50766506.desop) + c:RegisterEffect(e2) +end +function c50766506.cfilter(c,e,tp) + local lv=c:GetLevel() + return lv>0 and c:IsSetCard(0x2b) + and Duel.IsExistingMatchingCard(c50766506.spfilter,tp,LOCATION_DECK,0,1,nil,lv,e,tp) +end +function c50766506.spfilter(c,lv,e,tp) + return c:IsLevelBelow(lv) and c:IsSetCard(0x2b) and + (c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK) or c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)) +end +function c50766506.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 and Duel.CheckReleaseGroup(tp,c50766506.cfilter,1,nil,e,tp) end + local rg=Duel.SelectReleaseGroup(tp,c50766506.cfilter,1,1,nil,e,tp) + e:SetLabel(rg:GetFirst():GetLevel()) + Duel.Release(rg,REASON_COST) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) +end +function c50766506.spfilter2(c,e,tp) + return c:IsSetCard(0x2b) and + (c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK) or c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)) +end +function c50766506.operation(e,tp,eg,ep,ev,re,r,rp) + if not e:GetHandler():IsRelateToEffect(e) then return end + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) + if ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end + local c=e:GetHandler() + local slv=e:GetLabel() + local sg=Duel.GetMatchingGroup(c50766506.spfilter2,tp,LOCATION_DECK,0,nil,e,tp) + sg:Remove(Card.IsLevelAbove,nil,slv+1) + if sg:GetCount()==0 then return end + local cg=Group.CreateGroup() + repeat + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + local tc=sg:Select(tp,1,1,nil):GetFirst() + sg:RemoveCard(tc) + slv=slv-tc:GetLevel() + local spos=0 + if tc:IsCanBeSpecialSummoned(e,0,tp,false,false) then spos=spos+POS_FACEUP_ATTACK end + if tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN) then spos=spos+POS_FACEDOWN_DEFENSE end + Duel.SpecialSummonStep(tc,0,tp,tp,false,false,spos) + if tc:IsFacedown() then cg:AddCard(tc) end + c:SetCardTarget(tc) + sg:Remove(Card.IsLevelAbove,nil,slv+1) + ft=ft-1 + until ft<=0 or sg:GetCount()==0 or not Duel.SelectYesNo(tp,aux.Stringid(50766506,0)) + Duel.SpecialSummonComplete() + Duel.ConfirmCards(1-tp,cg) +end +function c50766506.desop(e,tp,eg,ep,ev,re,r,rp) + local g=e:GetHandler():GetCardTarget():Filter(Card.IsLocation,nil,LOCATION_MZONE) + Duel.Destroy(g,REASON_EFFECT) +end From 8f7433b1b9f009496a0eb939702637ae9ef1d7bb Mon Sep 17 00:00:00 2001 From: AndreOliveiraMendes Date: Mon, 16 Jan 2017 20:26:22 -0200 Subject: [PATCH 6/6] fix --- script/c511002766.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/script/c511002766.lua b/script/c511002766.lua index 68dd6f72..19377d5c 100644 --- a/script/c511002766.lua +++ b/script/c511002766.lua @@ -40,6 +40,7 @@ end function c511002766.activate(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if ft<=0 then return end + if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,c511002766.filter,tp,LOCATION_HAND,0,1,ft,nil,e,tp) if g:GetCount()>0 then