Skip to content

Commit 1494929

Browse files
authored
Added new card scripts
1 parent 43ca0c4 commit 1494929

File tree

9 files changed

+406
-6
lines changed

9 files changed

+406
-6
lines changed

constant.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@ EFFECT_CLEAR_WALL = 6089145
973973
EFFECT_CLEAR_WORLD_IMMUNE = 97811903
974974
EFFECT_CYBERDARK_WORLD = 64753988
975975
EFFECT_FORMUD_SKIPPER = 50366775
976+
EFFECT_FUR_HIRE_REPLACE = 101303062
976977
EFFECT_GOLDEN_ALLURE_QUEEN = 95937545
977978
EFFECT_ICEBARRIER_REPLACE = 18319762
978979
EFFECT_MULTIPLE_TUNERS = 21142671

official/c1527418.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function s.initial_effect(c)
2323
e2:SetRange(LOCATION_MZONE)
2424
e2:SetCountLimit(1,{id,1})
2525
e2:SetCondition(s.negcon)
26-
e2:SetCost(s.negcost)
26+
e2:SetCost(aux.CostWithReplace(s.negcost,EFFECT_FUR_HIRE_REPLACE))
2727
e2:SetTarget(s.negtg)
2828
e2:SetOperation(s.negop)
2929
c:RegisterEffect(e2)
@@ -61,7 +61,5 @@ function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
6161
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
6262
end
6363
function s.negop(e,tp,eg,ep,ev,re,r,rp)
64-
if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
65-
Duel.SendtoGrave(eg,REASON_EFFECT)
66-
end
64+
Duel.NegateActivation(ev)
6765
end

official/c38916526.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function s.initial_effect(c)
2323
e2:SetRange(LOCATION_MZONE)
2424
e2:SetCountLimit(1,{id,1})
2525
e2:SetCondition(s.negcon)
26-
e2:SetCost(s.negcost)
26+
e2:SetCost(aux.CostWithReplace(s.negcost,EFFECT_FUR_HIRE_REPLACE))
2727
e2:SetTarget(s.negtg)
2828
e2:SetOperation(s.negop)
2929
c:RegisterEffect(e2)

official/c67466547.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function s.initial_effect(c)
2323
e2:SetRange(LOCATION_MZONE)
2424
e2:SetCountLimit(1,{id,1})
2525
e2:SetCondition(s.drcon)
26-
e2:SetCost(s.drcost)
26+
e2:SetCost(aux.CostWithReplace(s.drcost,EFFECT_FUR_HIRE_REPLACE))
2727
e2:SetTarget(s.drtg)
2828
e2:SetOperation(s.drop)
2929
c:RegisterEffect(e2)

pre-release/c101303017.lua

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
--空牙団の疾風 レクス
2+
--Rex, Gale Fur Hire
3+
--scripted by Naim
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Special Summon 1 "Fur Hire" from your hand, then Special Summon this card
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
10+
e1:SetType(EFFECT_TYPE_IGNITION)
11+
e1:SetRange(LOCATION_HAND)
12+
e1:SetCountLimit(1,id)
13+
e1:SetCost(Cost.SelfReveal)
14+
e1:SetTarget(s.sptg)
15+
e1:SetOperation(s.spop)
16+
c:RegisterEffect(e1)
17+
--Draw 1 card
18+
local e2=Effect.CreateEffect(c)
19+
e2:SetDescription(aux.Stringid(id,1))
20+
e2:SetCategory(CATEGORY_DRAW)
21+
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
22+
e2:SetProperty(EFFECT_FLAG_DELAY)
23+
e2:SetCode(EVENT_TO_HAND)
24+
e2:SetRange(LOCATION_MZONE)
25+
e2:SetCountLimit(1,0,EFFECT_COUNT_CODE_CHAIN)
26+
e2:SetCondition(s.drwcon)
27+
e2:SetTarget(s.drwtg)
28+
e2:SetOperation(s.drwop)
29+
c:RegisterEffect(e2)
30+
end
31+
s.listed_names={id}
32+
s.listed_series={SET_FUR_HIRE}
33+
function s.spfilter(c,e,tp)
34+
return c:IsSetCard(SET_FUR_HIRE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsCode(id)
35+
end
36+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
37+
local c=e:GetHandler()
38+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>=2
39+
and Duel.IsPlayerCanSpecialSummonCount(tp,2)
40+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp)
41+
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
42+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,2,tp,LOCATION_HAND)
43+
end
44+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
45+
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
46+
local c=e:GetHandler()
47+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
48+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
49+
if #g>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 and c:IsRelateToEffect(e) then
50+
Duel.BreakEffect()
51+
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
52+
end
53+
end
54+
function s.drwconfilter(c,opp)
55+
return c:IsPreviousLocation(LOCATION_DECK) and c:IsControler(opp) and c:IsReason(REASON_EFFECT)
56+
end
57+
function s.drwcon(e,tp,eg,ep,ev,re,r,rp)
58+
return re and not re:GetHandler():IsSetCard(SET_FUR_HIRE) and eg:IsExists(s.drwconfilter,1,nil,1-tp)
59+
end
60+
function s.drwtg(e,tp,eg,ep,ev,re,r,rp,chk)
61+
if chk==0 then return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_FUR_HIRE),tp,LOCATION_MZONE,0,1,e:GetHandler())
62+
and Duel.IsPlayerCanDraw(tp,1) end
63+
Duel.SetTargetPlayer(tp)
64+
Duel.SetTargetParam(1)
65+
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
66+
end
67+
function s.drwop(e,tp,eg,ep,ev,re,r,rp)
68+
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
69+
Duel.Draw(p,d,REASON_EFFECT)
70+
end

pre-release/c101303050.lua

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
--空牙団の船匠 キール
2+
--Keel, Shipwright Fur Hire
3+
--scripted by Naim
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
c:EnableReviveLimit()
7+
--Link Summon procedure: 2 monsters with different types
8+
Link.AddProcedure(c,nil,2,nil,s.matfiltercheck)
9+
--Set 1 Spell/Trap "Fur Hire" or 1 "Fandora, the Flying Furtress" from your Deck
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetDescription(aux.Stringid(id,0))
12+
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
13+
e1:SetProperty(EFFECT_FLAG_DELAY)
14+
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
15+
e1:SetCountLimit(1,id)
16+
e1:SetTarget(s.settg)
17+
e1:SetOperation(s.setop)
18+
c:RegisterEffect(e1)
19+
--Banish this card from your GY, and if you do, Special Summon 1 monster "Fur Hire" from your hand
20+
local e2=Effect.CreateEffect(c)
21+
e2:SetDescription(aux.Stringid(id,1))
22+
e2:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON)
23+
e2:SetType(EFFECT_TYPE_QUICK_O)
24+
e2:SetCode(EVENT_FREE_CHAIN)
25+
e2:SetRange(LOCATION_GRAVE)
26+
e2:SetCountLimit(1,{id,1})
27+
e2:SetCondition(function(e,tp) return Duel.IsTurnPlayer(1-tp) end)
28+
e2:SetTarget(s.sptg)
29+
e2:SetOperation(s.spop)
30+
e2:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E)
31+
c:RegisterEffect(e2)
32+
end
33+
s.listed_names={64400161} --"Fandora, the Flying Furtress"
34+
s.listed_series={SET_FUR_HIRE}
35+
function s.matfiltercheck(g,lc,sumtype,tp)
36+
return g:CheckDifferentPropertyBinary(Card.GetRace,lc,sumtype,tp)
37+
end
38+
function s.setfilter(c)
39+
return ((c:IsSetCard(SET_FUR_HIRE) and c:IsSpellTrap()) or c:IsCode(64400161)) and c:IsSSetable()
40+
end
41+
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
42+
if chk==0 then return Duel.IsExistingMatchingCard(s.setfilter,tp,LOCATION_DECK,0,1,nil) end
43+
end
44+
function s.setop(e,tp,eg,ep,ev,re,r,rp)
45+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
46+
local g=Duel.SelectMatchingCard(tp,s.setfilter,tp,LOCATION_DECK,0,1,1,nil)
47+
if #g>0 then
48+
Duel.SSet(tp,g)
49+
end
50+
--You cannot Special Summon for the rest of this turn, except monsters "Fur Hire"
51+
local e1=Effect.CreateEffect(e:GetHandler())
52+
e1:SetDescription(aux.Stringid(id,2))
53+
e1:SetType(EFFECT_TYPE_FIELD)
54+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
55+
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
56+
e1:SetTargetRange(1,0)
57+
e1:SetTarget(function(e,c) return not c:IsSetCard(SET_FUR_HIRE) end)
58+
e1:SetReset(RESET_PHASE|PHASE_END)
59+
Duel.RegisterEffect(e1,tp)
60+
end
61+
function s.spfilter(c,e,tp)
62+
return c:IsSetCard(SET_FUR_HIRE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
63+
end
64+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
65+
local c=e:GetHandler()
66+
if chk==0 then return c:IsAbleToRemove() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
67+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
68+
Duel.SetOperationInfo(0,CATEGORY_REMOVE,c,1,tp,0)
69+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
70+
end
71+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
72+
local c=e:GetHandler()
73+
if c:IsRelateToEffect(e) and Duel.Remove(c,nil,REASON_EFFECT)>0 and c:IsLocation(LOCATION_REMOVED) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
74+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
75+
local g1=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
76+
if #g1>0 and Duel.SpecialSummon(g1,0,tp,tp,false,false,POS_FACEUP)>0
77+
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
78+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) then
79+
local atkg=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil):GetMaxGroup(Card.GetBaseAttack)
80+
if not atkg:IsExists(Card.IsControler,1,nil,1-tp) then return end
81+
if Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
82+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
83+
local g2=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
84+
if #g2>0 then
85+
Duel.BreakEffect()
86+
Duel.SpecialSummon(g2,0,tp,tp,false,false,POS_FACEUP)
87+
end
88+
end
89+
end
90+
end
91+
end

pre-release/c101303061.lua

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
--飛竜戦艇-ファンドラ
2+
--Fandora, the Fearsome Flying Furtress
3+
--scripted by pyrQ
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Activate
7+
local e0=Effect.CreateEffect(c)
8+
e0:SetType(EFFECT_TYPE_ACTIVATE)
9+
e0:SetCode(EVENT_FREE_CHAIN)
10+
c:RegisterEffect(e0)
11+
--Monsters "Fur Hire" you control gain 300 ATK for each monster "Fur Hire" you control with different names
12+
local e1=Effect.CreateEffect(c)
13+
e1:SetType(EFFECT_TYPE_FIELD)
14+
e1:SetCode(EFFECT_UPDATE_ATTACK)
15+
e1:SetRange(LOCATION_FZONE)
16+
e1:SetTargetRange(LOCATION_MZONE,0)
17+
e1:SetTarget(function(e,c) return c:IsSetCard(SET_FUR_HIRE) end)
18+
e1:SetValue(function(e,c) return 300*Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,SET_FUR_HIRE),e:GetHandlerPlayer(),LOCATION_MZONE,0,nil):GetClassCount(Card.GetCode) end)
19+
c:RegisterEffect(e1)
20+
--Add 1 monster "Fur Hire" from your Deck to your hand, then discard 1 card
21+
local e2=Effect.CreateEffect(c)
22+
e2:SetDescription(aux.Stringid(id,0))
23+
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_HANDES)
24+
e2:SetType(EFFECT_TYPE_IGNITION)
25+
e2:SetRange(LOCATION_FZONE)
26+
e2:SetCountLimit(1,id)
27+
e2:SetTarget(s.thtg)
28+
e2:SetOperation(s.thop)
29+
c:RegisterEffect(e2)
30+
--Special Summon 1 monster "Fur Hire" from your Deck
31+
local e3=Effect.CreateEffect(c)
32+
e3:SetDescription(aux.Stringid(id,1))
33+
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
34+
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
35+
e3:SetProperty(EFFECT_FLAG_DELAY)
36+
e3:SetCode(EVENT_DESTROYED)
37+
e3:SetRange(LOCATION_FZONE)
38+
e3:SetCountLimit(1,{id,1})
39+
e3:SetCondition(s.spcon)
40+
e3:SetTarget(s.sptg)
41+
e3:SetOperation(s.spop)
42+
c:RegisterEffect(e3)
43+
end
44+
s.listed_series={SET_FUR_HIRE}
45+
function s.thfilter(c)
46+
return c:IsSetCard(SET_FUR_HIRE) and c:IsMonster() and c:IsAbleToHand()
47+
end
48+
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
49+
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
50+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
51+
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,1,tp,1)
52+
end
53+
function s.thop(e,tp,eg,ep,ev,re,r,rp)
54+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
55+
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil)
56+
if #g>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)>0 then
57+
Duel.ConfirmCards(1-tp,g)
58+
Duel.ShuffleHand(tp)
59+
Duel.BreakEffect()
60+
Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT|REASON_DISCARD,nil)
61+
end
62+
end
63+
function s.spconfilter(c,tp)
64+
return c:IsPreviousSetCard(SET_FUR_HIRE) and c:IsReason(REASON_EFFECT) and c:IsPreviousPosition(POS_FACEUP)
65+
and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(tp) and c:IsReasonPlayer(1-tp)
66+
end
67+
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
68+
return eg:IsExists(s.spconfilter,1,nil,tp)
69+
end
70+
function s.spfilter(c,e,tp)
71+
return c:IsSetCard(SET_FUR_HIRE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
72+
end
73+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
74+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
75+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
76+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
77+
end
78+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
79+
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
80+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
81+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
82+
if #g>0 then
83+
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
84+
end
85+
end

pre-release/c101303062.lua

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
--飆風の空牙団
2+
--Storm Fur Hire
3+
--scripted by pyrQ
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Special Summon 1 Level 4 or lower monster "Fur Hire" from your Deck, then if your opponent controls 2 or more monsters, you can Special Summon 1 monster “Fur Hire” from your Deck, also you cannot Special Summon for the rest of this turn, except monsters "Fur Hire"
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
10+
e1:SetType(EFFECT_TYPE_ACTIVATE)
11+
e1:SetCode(EVENT_FREE_CHAIN)
12+
e1:SetCountLimit(1,id)
13+
e1:SetCondition(function(e,tp) return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 end)
14+
e1:SetTarget(s.target)
15+
e1:SetOperation(s.activate)
16+
e1:SetHintTiming(0,TIMING_STANDBY_PHASE|TIMING_MAIN_END|TIMINGS_CHECK_MONSTER_E)
17+
c:RegisterEffect(e1)
18+
--If you would discard a card(s) to activate the effect of a monster "Fur Hire", you can banish this card from your GY instead of 1 of those cards
19+
local e2=Effect.CreateEffect(c)
20+
e2:SetType(EFFECT_TYPE_FIELD)
21+
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
22+
e2:SetCode(EFFECT_FUR_HIRE_REPLACE)
23+
e2:SetRange(LOCATION_GRAVE)
24+
e2:SetTargetRange(1,0)
25+
e2:SetCountLimit(1,{id,1})
26+
e2:SetCondition(function(e) return e:GetHandler():IsAbleToRemoveAsCost() end)
27+
e2:SetValue(s.repval)
28+
e2:SetOperation(function(base,e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Remove(base:GetHandler(),POS_FACEUP,REASON_COST) end)
29+
c:RegisterEffect(e2)
30+
end
31+
s.listed_series={SET_FUR_HIRE}
32+
function s.spfilter(c,e,tp)
33+
return c:IsSetCard(SET_FUR_HIRE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
34+
end
35+
function s.lv4spfilter(c,e,tp)
36+
return c:IsLevelBelow(4) and s.spfilter(c,e,tp)
37+
end
38+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
39+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
40+
and Duel.IsExistingMatchingCard(s.lv4spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
41+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
42+
end
43+
function s.activate(e,tp,eg,ep,ev,re,r,rp)
44+
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
45+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
46+
local g1=Duel.SelectMatchingCard(tp,s.lv4spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
47+
if #g1>0 and Duel.SpecialSummon(g1,0,tp,tp,false,false,POS_FACEUP)>0
48+
and Duel.IsPlayerCanSpecialSummonCount(tp,2)
49+
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
50+
and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>=2
51+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp)
52+
and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
53+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
54+
local g2=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
55+
if #g2>0 then
56+
Duel.BreakEffect()
57+
Duel.SpecialSummon(g2,0,tp,tp,false,false,POS_FACEUP)
58+
end
59+
end
60+
end
61+
--You cannot Special Summon for the rest of this turn, except monsters "Fur Hire"
62+
local e1=Effect.CreateEffect(e:GetHandler())
63+
e1:SetDescription(aux.Stringid(id,2))
64+
e1:SetType(EFFECT_TYPE_FIELD)
65+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
66+
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
67+
e1:SetTargetRange(1,0)
68+
e1:SetTarget(function(e,c) return not c:IsSetCard(SET_FUR_HIRE) end)
69+
e1:SetReset(RESET_PHASE|PHASE_END)
70+
Duel.RegisterEffect(e1,tp)
71+
end
72+
function s.repval(base,e,tp,eg,ep,ev,re,r,rp,chk)
73+
local c=e:GetHandler()
74+
return c:IsSetCard(SET_FUR_HIRE) and c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)
75+
end

0 commit comments

Comments
 (0)